ramips: add support for indicating the boot state using multiple leds
[openwrt/staging/dedeckeh.git] / target / linux / ramips / dts / ArcherMR200.dts
index 25be6bcd6b7d5840941e9a052f8aa640dc48f511..1df35e6f3f900992e32a0b65788ce317b79becc1 100644 (file)
@@ -1,13 +1,21 @@
 /dts-v1/;
 
 #include "mt7620a.dtsi"
-#include <dt-bindings/input/input.h>
+
 #include <dt-bindings/gpio/gpio.h>
+#include <dt-bindings/input/input.h>
 
 / {
-       compatible = "ralink,mt7620a-soc";
+       compatible = "tplink,mr200", "ralink,mt7620a-soc";
        model = "TP-Link Archer MR200";
 
+       aliases {
+               led-boot = &led_power;
+               led-failsafe = &led_power;
+               led-running = &led_power;
+               led-upgrade = &led_power;
+       };
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
@@ -25,7 +33,7 @@
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
-               power {
+               led_power: power {
                        label = "mr200:white:power";
                        gpios = <&gpio0 12 GPIO_ACTIVE_LOW>;
                };
@@ -68,8 +76,6 @@
 
        gpio-keys {
                compatible = "gpio-keys";
-               #address-cells = <1>;
-               #size-cells = <0>;
 
                reset {
                        label = "reset";
                power_usb {
                        gpio-export,name = "power_usb1";
                        gpio-export,output = <1>;
-                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio0 11 GPIO_ACTIVE_HIGH>;
                };
        };
-
 };
 
 &gpio1 {
        status = "okay";
 
        m25p80@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
-               linux,modalias = "m25p80", "mx25l6405d";
                spi-max-frequency = <10000000>;
 
-               partition@0 {
-                       label = "u-boot";
-                       reg = <0x0 0x20000>;
-                       read-only;
-               };
-
-               partition@20000 {
-                       label = "firmware";
-                       reg = <0x20000 0x7b0000>;
-               };
-
-               rom: partition@7d0000 {
-                       label = "rom";
-                       reg = <0x7d0000 0x10000>;
-                       read-only;
-               };
-
-               partition@7e0000 {
-                       label = "romfile";
-                       reg = <0x7e0000 0x10000>;
-                       read-only;
-               };
-
-               radio: partition@7f0000 {
-                       label = "radio";
-                       reg = <0x7f0000 0x10000>;
-                       read-only;
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 {
+                               label = "u-boot";
+                               reg = <0x0 0x20000>;
+                               read-only;
+                       };
+
+                       partition@20000 {
+                               label = "firmware";
+                               reg = <0x20000 0x7b0000>;
+                       };
+
+                       rom: partition@7d0000 {
+                               label = "rom";
+                               reg = <0x7d0000 0x10000>;
+                               read-only;
+                       };
+
+                       partition@7e0000 {
+                               label = "romfile";
+                               reg = <0x7e0000 0x10000>;
+                               read-only;
+                       };
+
+                       radio: partition@7f0000 {
+                               label = "radio";
+                               reg = <0x7f0000 0x10000>;
+                               read-only;
+                       };
                };
        };
 };
 
 &pcie {
        status = "okay";
+};
 
-       pcie-bridge {
-               mt76@0,0 {
-                       reg = <0x0000 0 0 0 0>;
-                       device_type = "pci";
-                       mediatek,mtd-eeprom = <&radio 32768>;
-               };
+&pcie0 {
+       mt76@0,0 {
+               reg = <0x0000 0 0 0 0>;
+               mediatek,mtd-eeprom = <&radio 32768>;
        };
 };