ramips: Use dts alias based status led
[openwrt/staging/jow.git] / target / linux / ramips / dts / RT-N12-PLUS.dts
index f3e0284aedfc1c1814fdacd9a99d852461f781a0..8a22e144285b79ce4742ba60531a5c136437af36 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "asus,rt-n12p", "ralink,mt7620n-soc";
        model = "Asus RT-N12+";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        chosen {
                bootargs = "console=ttyS0,115200";
        };
@@ -26,7 +30,7 @@
                        gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
                };
 
-               power {
+               led_power: power {
                        label = "rt-n12p:green:power";
                        gpios = <&gpio2 3 GPIO_ACTIVE_LOW>;
                };