ramips: add support for indicating the boot state using multiple leds
[openwrt/staging/lynxis.git] / target / linux / ramips / dts / WRC-1167GHBK2-S.dts
index 7b1cfd73047fb789c79d49e097eb0b2967864d07..93ec0ce8e713633cfa5ef23e049a61f927ffc12d 100644 (file)
@@ -9,6 +9,13 @@
        compatible = "elecom,wrc-1167ghbk2-s", "mediatek,mt7621-soc";
        model = "ELECOM WRC-1167GHBK2-S";
 
+       aliases {
+               led-boot = &led_power_green;
+               led-failsafe = &led_power_green;
+               led-running = &led_power_green;
+               led-upgrade = &led_power_green;
+       };
+
        memory@0 {
                device_type = "memory";
                reg = <0x0 0x8000000>;
@@ -31,7 +38,7 @@
                        gpios = <&gpio0 4 GPIO_ACTIVE_LOW>;
                };
 
-               power_green {
+               led_power_green: power_green {
                        label = "wrc-1167ghbk2-s:green:power";
                        gpios = <&gpio0 7 GPIO_ACTIVE_HIGH>;
                };
@@ -54,8 +61,6 @@
 
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
-               #address-cells = <1>;
-               #size-cells = <0>;
                poll-interval = <20>;
 
                reset {
        status = "okay";
 
        m25p80@0 {
-               #address-cells = <1>;
-               #size-cells = <1>;
                compatible = "jedec,spi-nor";
                reg = <0>;
                spi-max-frequency = <10000000>;
                m25p,chunked-io = <32>;
 
-               partition@0 {
-                       label = "u-boot";
-                       reg = <0x0 0x30000>;
-                       read-only;
-               };
-
-               partition@30000 {
-                       label = "u-boot-env";
-                       reg = <0x30000 0x10000>;
-                       read-only;
-               };
-
-               factory: partition@40000 {
-                       label = "factory";
-                       reg = <0x40000 0x10000>;
-                       read-only;
-               };
-
-               partition@50000 {
-                       label = "firmware";
-                       reg = <0x50000 0xf20000>;
-               };
-
-               partition@f70000 {
-                       label = "user_data";
-                       reg = <0xf70000 0x80000>;
-                       read-only;
-               };
-
-               partition@ff0000 {
-                       label = "NVRAM";
-                       reg = <0xff0000 0x10000>;
-                       read-only;
+               partitions {
+                       compatible = "fixed-partitions";
+                       #address-cells = <1>;
+                       #size-cells = <1>;
+
+                       partition@0 {
+                               label = "u-boot";
+                               reg = <0x0 0x30000>;
+                               read-only;
+                       };
+
+                       partition@30000 {
+                               label = "u-boot-env";
+                               reg = <0x30000 0x10000>;
+                               read-only;
+                       };
+
+                       factory: partition@40000 {
+                               label = "factory";
+                               reg = <0x40000 0x10000>;
+                               read-only;
+                       };
+
+                       partition@50000 {
+                               label = "firmware";
+                               reg = <0x50000 0xf20000>;
+                       };
+
+                       partition@f70000 {
+                               label = "user_data";
+                               reg = <0xf70000 0x80000>;
+                               read-only;
+                       };
+
+                       partition@ff0000 {
+                               label = "NVRAM";
+                               reg = <0xff0000 0x10000>;
+                               read-only;
+                       };
                };
        };
 };
 
 &pcie {
        status = "okay";
-       // WRC-1167GHBK2-S has MT7615D for 2.4/5 GHz wifi,
-       // but it's not supported in OpenWrt.
+       /*
+        * WRC-1167GHBK2-S has MT7615D for 2.4/5 GHz wifi,
+        * but it's not supported in OpenWrt.
+        */
 };
 
 &xhci {