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
|
|
|
|
*
|
|
|
|
* This file is licensed under the terms of the GNU General Public
|
|
|
|
* License version 2. This program is licensed "as is" without
|
|
|
|
* any warranty of any kind, whether express or implied.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/dts-v1/;
|
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
#include "apm82181.dtsi"
|
|
|
|
|
2016-07-20 13:44:51 +00:00
|
|
|
/ {
|
|
|
|
model = "Meraki MR24 Access Point";
|
|
|
|
compatible = "meraki,ikarem";
|
|
|
|
|
|
|
|
aliases {
|
2016-11-12 13:46:32 +00:00
|
|
|
serial0 = &UART1;
|
2017-11-28 21:51:07 +00:00
|
|
|
led-boot = &status;
|
|
|
|
led-failsafe = &failsafe;
|
|
|
|
led-running = &status;
|
|
|
|
led-upgrade = &status;
|
2016-07-20 13:44:51 +00:00
|
|
|
};
|
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
chosen {
|
|
|
|
linux,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
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
&EBC0 {
|
|
|
|
/* Ikarem has 32MB of NAND */
|
|
|
|
ndfc@1,0 {
|
2016-07-20 13:44:51 +00:00
|
|
|
status = "okay";
|
2016-11-12 13:46:32 +00:00
|
|
|
/* 32 MiB NAND Flash */
|
|
|
|
nand {
|
2016-07-20 13:44:51 +00:00
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <1>;
|
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
partition@0 {
|
|
|
|
label = "u-boot";
|
|
|
|
reg = <0x00000000 0x00170000>;
|
|
|
|
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";
|
|
|
|
};
|
2016-07-20 13:44:51 +00:00
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
&POB0 {
|
|
|
|
gpio-leds {
|
|
|
|
compatible = "gpio-leds";
|
2016-07-20 13:44:51 +00:00
|
|
|
|
2017-11-28 21:51:07 +00:00
|
|
|
status: power-green {
|
2016-11-12 13:46:32 +00:00
|
|
|
label = "mr24:green:power";
|
|
|
|
gpios = <&GPIO0 18 GPIO_ACTIVE_LOW>;
|
2016-07-20 13:44:51 +00:00
|
|
|
};
|
|
|
|
|
2017-11-28 21:51:07 +00:00
|
|
|
failsafe: power-orange {
|
2016-11-12 13:46:32 +00:00
|
|
|
label = "mr24:orange:power";
|
|
|
|
gpios = <&GPIO0 19 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
2016-07-20 13:44:51 +00:00
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
lan {
|
|
|
|
label = "mr24:green:wan";
|
|
|
|
gpios = <&GPIO0 17 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
2016-07-20 13:44:51 +00:00
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
ssi-0 {
|
|
|
|
label = "mr24:green:wifi1";
|
|
|
|
gpios = <&GPIO0 23 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
2016-07-20 13:44:51 +00:00
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
ssi-1 {
|
|
|
|
label = "mr24:green:wifi2";
|
|
|
|
gpios = <&GPIO0 22 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
2016-07-20 13:44:51 +00:00
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
ssi-2 {
|
|
|
|
label = "mr24:green:wifi3";
|
|
|
|
gpios = <&GPIO0 21 GPIO_ACTIVE_LOW>;
|
2016-07-20 13:44:51 +00:00
|
|
|
};
|
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
ssi-3 {
|
|
|
|
label = "mr24:green:wifi4";
|
|
|
|
gpios = <&GPIO0 20 GPIO_ACTIVE_LOW>;
|
2016-07-20 13:44:51 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-11-12 13:46:32 +00:00
|
|
|
gpio_keys_polled {
|
|
|
|
compatible = "gpio-keys-polled";
|
|
|
|
#address-cells = <1>;
|
|
|
|
#size-cells = <0>;
|
|
|
|
poll-interval = <60>; /* 3 * 20 = 60ms */
|
|
|
|
autorepeat;
|
|
|
|
|
|
|
|
button@1 {
|
|
|
|
label = "Reset button";
|
|
|
|
linux,code = <KEY_RESTART>;
|
|
|
|
gpios = <&GPIO0 16 GPIO_ACTIVE_LOW>;
|
|
|
|
};
|
2016-07-20 13:44:51 +00:00
|
|
|
};
|
|
|
|
};
|
2016-11-12 13:46:32 +00:00
|
|
|
|
|
|
|
&PCIE0 {
|
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
|
|
|
|
&MSI {
|
|
|
|
status = "okay";
|
|
|
|
};
|