ramips: Use dts alias based status led
[openwrt/openwrt.git] / target / linux / ramips / dts / DIR-810L.dts
index 7a1736d5632ceefc6ada6c695d2b1f219143d571..22487a8e5dfcef036adcb90a10fc3fc0f6c05831 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "dlink,dir-810l", "ralink,mt7620a-soc";
        model = "D-Link DIR-810L";
 
+       aliases {
+               led-status = &led_power_green;
+       };
+
        gpio-keys-polled {
                compatible = "gpio-keys-polled";
                #address-cells = <1>;
@@ -31,7 +35,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               power {
+               led_power_green: power {
                        label = "dir-810l:green:power";
                        gpios = <&gpio0 9 GPIO_ACTIVE_HIGH>;
                };
@@ -41,7 +45,7 @@
                        gpios = <&gpio0 12 GPIO_ACTIVE_HIGH>;
                };
 
-               status {
+               power2 {
                        label = "dir-810l:orange:power";
                        gpios = <&gpio0 13 GPIO_ACTIVE_HIGH>;
                };