2020-08-13 15:39:10 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0-only
|
2016-07-20 13:44:51 +00:00
|
|
|
/*
|
|
|
|
* Device Tree Source for Meraki MR24 (Ikarem)
|
|
|
|
*
|
|
|
|
* Copyright (C) 2016 Chris Blake <chrisrblake93@gmail.com>
|
|
|
|
*
|
|
|
|
* Based on Cisco Meraki GPL Release r23-20150601 MR24 DTS
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
|
2020-08-13 16:26:19 +00:00
|
|
|
#include <dt-bindings/leds/common.h>
|
2016-11-12 13:46:32 +00:00
|
|
|
#include "apm82181.dtsi"
|
|
|
|
|
2016-07-20 13:44:51 +00:00
|
|
|
/ {
|
|
|
|
model = "Meraki MR24 Access Point";
|
2017-12-17 13:59:57 +00:00
|
|
|
compatible = "meraki,mr24", "meraki,ikarem", "apm,bluestone";
|
2016-07-20 13:44:51 +00:00
|
|
|
|
|
|
|
aliases {
|
2016-11-12 13:46:32 +00:00
|
|
|
serial0 = &UART1;
|
2016-07-20 13:44:51 +00:00
|
|
|
};
|
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
chosen {
|
2018-09-21 22:38:37 +00:00
|
|
|
stdout-path = "/plb/opb/serial@ef600400";
|
2016-07-20 13:44:51 +00:00
|
|
|
};
|
2016-11-12 13:46:32 +00:00
|
|
|
};
|
2016-07-20 13:44:51 +00:00
|
|
|
|
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
&CRYPTO {
|
|
|
|
status = "okay";
|
|
|
|
};
|
2016-07-20 13:44:51 +00:00
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
&PKA {
|
|
|
|
status = "okay";
|
|
|
|
};
|
2016-07-20 13:44:51 +00:00
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
&TRNG {
|
|
|
|
status = "okay";
|
|
|
|
};
|
2016-07-20 13:44:51 +00:00
|
|
|
|
2022-01-16 19:13:24 +00:00
|
|
|
&ndfc {
|
2016-11-12 13:46:32 +00:00
|
|
|
/* Ikarem has 32MB of NAND */
|
2022-01-16 19:13:24 +00:00
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
nand {
|
|
|
|
nand-is-boot-medium;
|
|
|
|
|
|
|
|
partitions {
|
|
|
|
compatible = "fixed-partitions";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
2021-02-20 16:44:12 +00:00
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
partition@0 {
|
|
|
|
label = "u-boot";
|
2018-10-17 20:37:33 +00:00
|
|
|
reg = <0x00000000 0x00150000>;
|
|
|
|
read-only;
|
|
|
|
};
|
|
|
|
|
|
|
|
partition@150000 {
|
|
|
|
/*
|
|
|
|
* The u-boot environment size is one NAND
|
|
|
|
* block (16KiB). u-boot allocates four NAND
|
|
|
|
* blocks (64KiB) in order to have spares
|
|
|
|
* around for bad block management
|
|
|
|
*/
|
2023-06-09 18:34:02 +00:00
|
|
|
label = "u-boot-env";
|
|
|
|
compatible = "u-boot,env";
|
|
|
|
reg = <0x00150000 0x00010000>;
|
|
|
|
read-only;
|
|
|
|
};
|
2018-10-17 20:37:33 +00:00
|
|
|
|
|
|
|
partition@160000 {
|
|
|
|
/*
|
|
|
|
* redundant u-boot environment.
|
|
|
|
* has to be kept it in sync with the
|
|
|
|
* data in "u-boot-env".
|
|
|
|
*/
|
|
|
|
label = "u-boot-env-redundant";
|
|
|
|
reg = <0x00160000 0x00010000>;
|
2016-11-12 13:46:32 +00:00
|
|
|
read-only;
|
2016-07-20 13:44:51 +00:00
|
|
|
};
|
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
partition@170000 {
|
|
|
|
label = "oops";
|
|
|
|
reg = <0x00170000 0x00010000>;
|
2016-07-20 13:44:51 +00:00
|
|
|
};
|
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
partition@180000 {
|
|
|
|
label = "ubi";
|
|
|
|
reg = <0x00180000 0x01e80000>;
|
2016-07-20 13:44:51 +00:00
|
|
|
};
|
2016-11-12 13:46:32 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2016-07-20 13:44:51 +00:00
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
&UART1 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
2016-07-20 13:44:51 +00:00
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
&GPIO0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
2016-07-20 13:44:51 +00:00
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
&IIC0 {
|
|
|
|
status = "okay";
|
|
|
|
/* Boot ROM is at 0x52-0x53, do not touch */
|
|
|
|
/* Unknown chip at 0x6e, not sure what it is */
|
|
|
|
};
|
2016-07-20 13:44:51 +00:00
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
&EMAC0 {
|
|
|
|
status = "okay";
|
2018-01-07 20:27:49 +00:00
|
|
|
|
|
|
|
phy-mode = "rgmii-id";
|
|
|
|
phy-map = <0x2>;
|
|
|
|
phy-address = <0x1>;
|
|
|
|
phy-handle = <&phy>;
|
|
|
|
|
|
|
|
mdio {
|
2018-09-21 22:38:39 +00:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
|
2018-01-07 20:27:49 +00:00
|
|
|
phy: phy@1 {
|
|
|
|
compatible = "ethernet-phy-ieee802.3-c22";
|
|
|
|
reg = <1>;
|
|
|
|
};
|
|
|
|
};
|
2016-11-12 13:46:32 +00:00
|
|
|
};
|
2016-07-20 13:44:51 +00:00
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
&POB0 {
|
2018-12-30 11:42:53 +00:00
|
|
|
leds {
|
2016-11-12 13:46:32 +00:00
|
|
|
compatible = "gpio-leds";
|
2016-07-20 13:44:51 +00:00
|
|
|
|
2020-08-13 16:26:19 +00:00
|
|
|
led-0 {
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
|
|
function = LED_FUNCTION_POWER;
|
2016-11-12 13:46:32 +00:00
|
|
|
gpios = <&GPIO0 18 GPIO_ACTIVE_LOW>;
|
2016-07-20 13:44:51 +00:00
|
|
|
};
|
|
|
|
|
2020-08-13 16:26:19 +00:00
|
|
|
led-1 {
|
|
|
|
color = <LED_COLOR_ID_AMBER>;
|
|
|
|
function = LED_FUNCTION_FAULT;
|
2016-11-12 13:46:32 +00:00
|
|
|
gpios = <&GPIO0 19 GPIO_ACTIVE_LOW>;
|
2020-08-13 16:26:19 +00:00
|
|
|
panic-indicator;
|
2016-11-12 13:46:32 +00:00
|
|
|
};
|
2016-07-20 13:44:51 +00:00
|
|
|
|
2020-08-13 16:26:19 +00:00
|
|
|
led-2 {
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
|
|
function = LED_FUNCTION_WAN;
|
2016-11-12 13:46:32 +00:00
|
|
|
gpios = <&GPIO0 17 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
2016-07-20 13:44:51 +00:00
|
|
|
|
2020-08-13 16:26:19 +00:00
|
|
|
led-3 {
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
|
|
function = LED_FUNCTION_WLAN;
|
|
|
|
function-enumerator = <0>;
|
2016-11-12 13:46:32 +00:00
|
|
|
gpios = <&GPIO0 23 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
2016-07-20 13:44:51 +00:00
|
|
|
|
2020-08-13 16:26:19 +00:00
|
|
|
led-4 {
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
|
|
function = LED_FUNCTION_WLAN;
|
|
|
|
function-enumerator = <1>;
|
2016-11-12 13:46:32 +00:00
|
|
|
gpios = <&GPIO0 22 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
2016-07-20 13:44:51 +00:00
|
|
|
|
2020-08-13 16:26:19 +00:00
|
|
|
led-5 {
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
|
|
function = LED_FUNCTION_WLAN;
|
|
|
|
function-enumerator = <2>;
|
2016-11-12 13:46:32 +00:00
|
|
|
gpios = <&GPIO0 21 GPIO_ACTIVE_LOW>;
|
2016-07-20 13:44:51 +00:00
|
|
|
};
|
|
|
|
|
2020-08-13 16:26:19 +00:00
|
|
|
led-6 {
|
|
|
|
color = <LED_COLOR_ID_GREEN>;
|
|
|
|
function = LED_FUNCTION_WLAN;
|
|
|
|
function-enumerator = <3>;
|
2016-11-12 13:46:32 +00:00
|
|
|
gpios = <&GPIO0 20 GPIO_ACTIVE_LOW>;
|
2016-07-20 13:44:51 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2018-12-30 11:17:25 +00:00
|
|
|
keys {
|
2019-05-31 14:28:51 +00:00
|
|
|
compatible = "gpio-keys";
|
2016-11-12 13:46:32 +00:00
|
|
|
|
2022-06-17 14:10:16 +00:00
|
|
|
button-restart {
|
2018-09-21 22:38:39 +00:00
|
|
|
/* Label as per Meraki's "MR24 Installation Guide" */
|
|
|
|
label = "Factory Reset Button";
|
2016-11-12 13:46:32 +00:00
|
|
|
linux,code = <KEY_RESTART>;
|
2019-05-31 14:28:51 +00:00
|
|
|
interrupt-parent = <&UIC1>;
|
|
|
|
interrupts = <0x15 IRQ_TYPE_EDGE_FALLING>;
|
2016-11-12 13:46:32 +00:00
|
|
|
gpios = <&GPIO0 16 GPIO_ACTIVE_LOW>;
|
2019-06-15 17:13:30 +00:00
|
|
|
debounce-interval = <60>;
|
2016-11-12 13:46:32 +00:00
|
|
|
};
|
2016-07-20 13:44:51 +00:00
|
|
|
};
|
|
|
|
};
|
2016-11-12 13:46:32 +00:00
|
|
|
|
|
|
|
&PCIE0 {
|
|
|
|
status = "okay";
|
2020-08-12 16:26:43 +00:00
|
|
|
/*
|
|
|
|
* relevant lspci topology:
|
|
|
|
*
|
|
|
|
* -+-[0000:40]---00.0-[41-7f]----00.0-[42-45]--+-02.0-[43]----00.0
|
|
|
|
* +-03.0-[44]----00.0
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
bridge@64,0 {
|
|
|
|
reg = <0x00400000 0 0 0 0>;
|
|
|
|
#address-cells = <3>;
|
|
|
|
#size-cells = <2>;
|
|
|
|
ranges;
|
|
|
|
|
|
|
|
bridge@65,0 {
|
|
|
|
/* IDT PES3T3 PCI Express Switch */
|
|
|
|
compatible = "pci111d,8039";
|
|
|
|
reg = <0x00410000 0 0 0 0>;
|
|
|
|
#address-cells = <3>;
|
|
|
|
#size-cells = <2>;
|
|
|
|
ranges;
|
|
|
|
|
|
|
|
bridge@66,2 {
|
|
|
|
compatible = "pci111d,8039";
|
|
|
|
reg = <0x00421000 0 0 0 0>;
|
|
|
|
#address-cells = <3>;
|
|
|
|
#size-cells = <2>;
|
|
|
|
ranges;
|
|
|
|
|
|
|
|
wifi0: wifi@67,0 {
|
|
|
|
/* Atheros AR9380 2.4GHz */
|
|
|
|
compatible = "pci168c,0030";
|
|
|
|
reg = <0x00430000 0 0 0 0>;
|
2020-09-03 19:24:16 +00:00
|
|
|
interrupts = <3>; /* INTC 4.1.1 */
|
2020-08-12 16:26:43 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
bridge@66,3 {
|
|
|
|
compatible = "pci111d,8039";
|
|
|
|
reg = <0x00421800 0 0 0 0>;
|
|
|
|
#address-cells = <3>;
|
|
|
|
#size-cells = <2>;
|
|
|
|
ranges;
|
|
|
|
|
|
|
|
wifi1: wifi@68,0 {
|
|
|
|
/* Atheros AR9380 5GHz */
|
|
|
|
compatible = "pci168c,0030";
|
|
|
|
reg = <0x00440000 0 0 0 0>;
|
2020-09-03 19:24:16 +00:00
|
|
|
interrupts = <4>; /* INTD 4.1.1 */
|
2020-08-12 16:26:43 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2016-11-12 13:46:32 +00:00
|
|
|
};
|