aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/apm821xx/dts/meraki-mr24.dts
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@gmail.com>2017-12-17 14:59:58 +0100
committerMathias Kresin <dev@kresin.me>2017-12-21 01:05:16 +0100
commit1adeecf0d3ab6ba4e485bd3ad0749711d8aabac8 (patch)
treecb7a5a898716e4f8541bd6c38feed02bdb60ed6d /target/linux/apm821xx/dts/meraki-mr24.dts
parent70301af9150fbf61483bf12fec651beb437f55ac (diff)
downloadupstream-1adeecf0d3ab6ba4e485bd3ad0749711d8aabac8.tar.gz
upstream-1adeecf0d3ab6ba4e485bd3ad0749711d8aabac8.tar.bz2
upstream-1adeecf0d3ab6ba4e485bd3ad0749711d8aabac8.zip
apm821xx: dts: rename devices dts files to include the manufacturer
This patch rename all the DT source files in order to match upstream's "manufacturer-device.dts" format. Please note that the DEVICE_DTB isn't changed. This is because the u-boot of the MyBook Live defines the fdt_file variable to be "apollo3g/apollo3g.dtb". Signed-off-by: Christian Lamparter <chunkeey@gmail.com>
Diffstat (limited to 'target/linux/apm821xx/dts/meraki-mr24.dts')
-rw-r--r--target/linux/apm821xx/dts/meraki-mr24.dts155
1 files changed, 155 insertions, 0 deletions
diff --git a/target/linux/apm821xx/dts/meraki-mr24.dts b/target/linux/apm821xx/dts/meraki-mr24.dts
new file mode 100644
index 0000000000..2c2f8d281b
--- /dev/null
+++ b/target/linux/apm821xx/dts/meraki-mr24.dts
@@ -0,0 +1,155 @@
+/*
+ * 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/;
+
+#include "apm82181.dtsi"
+
+/ {
+ model = "Meraki MR24 Access Point";
+ compatible = "meraki,mr24", "meraki,ikarem", "apm,bluestone";
+
+ aliases {
+ serial0 = &UART1;
+ led-boot = &status;
+ led-failsafe = &failsafe;
+ led-running = &status;
+ led-upgrade = &status;
+ };
+
+ chosen {
+ linux,stdout-path = "/plb/opb/serial@ef600400";
+ };
+
+};
+
+
+&CRYPTO {
+ status = "okay";
+};
+
+&PKA {
+ status = "okay";
+};
+
+&TRNG {
+ status = "okay";
+};
+
+&EBC0 {
+ /* Ikarem has 32MB of NAND */
+ ndfc@1,0 {
+ status = "okay";
+ /* 32 MiB NAND Flash */
+ nand {
+ #address-cells = <1>;
+ #size-cells = <1>;
+
+ partition@0 {
+ label = "u-boot";
+ reg = <0x00000000 0x00170000>;
+ read-only;
+ };
+
+ partition@170000 {
+ label = "oops";
+ reg = <0x00170000 0x00010000>;
+ };
+
+ partition@180000 {
+ label = "ubi";
+ reg = <0x00180000 0x01e80000>;
+ };
+ };
+ };
+};
+
+&UART1 {
+ status = "okay";
+};
+
+&GPIO0 {
+ status = "okay";
+};
+
+&IIC0 {
+ status = "okay";
+ /* Boot ROM is at 0x52-0x53, do not touch */
+ /* Unknown chip at 0x6e, not sure what it is */
+};
+
+&EMAC0 {
+ status = "okay";
+};
+
+&POB0 {
+ gpio-leds {
+ compatible = "gpio-leds";
+
+ status: power-green {
+ label = "mr24:green:power";
+ gpios = <&GPIO0 18 GPIO_ACTIVE_LOW>;
+ };
+
+ failsafe: power-orange {
+ label = "mr24:orange:power";
+ gpios = <&GPIO0 19 GPIO_ACTIVE_LOW>;
+ };
+
+ lan {
+ label = "mr24:green:wan";
+ gpios = <&GPIO0 17 GPIO_ACTIVE_LOW>;
+ };
+
+ ssi-0 {
+ label = "mr24:green:wifi1";
+ gpios = <&GPIO0 23 GPIO_ACTIVE_LOW>;
+ };
+
+ ssi-1 {
+ label = "mr24:green:wifi2";
+ gpios = <&GPIO0 22 GPIO_ACTIVE_LOW>;
+ };
+
+ ssi-2 {
+ label = "mr24:green:wifi3";
+ gpios = <&GPIO0 21 GPIO_ACTIVE_LOW>;
+ };
+
+ ssi-3 {
+ label = "mr24:green:wifi4";
+ gpios = <&GPIO0 20 GPIO_ACTIVE_LOW>;
+ };
+ };
+
+ 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>;
+ };
+ };
+};
+
+&PCIE0 {
+ status = "okay";
+};
+
+&MSI {
+ status = "okay";
+};