ramips: Use dts alias based status led
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / WHR-300HP2.dts
index d405686d7a290b40aa028af3d46cb7c1c576e8aa..85a3a5dcdd4ffaa7be5c5274a9c9522e0b27f8af 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "buffalo,whr-300hp2", "ralink,mt7620a-soc";
        model = "Buffalo WHR-300HP2";
 
+       aliases {
+               led-status = &led_power_green;
+       };
+
        gpio-leds {
                compatible = "gpio-leds";
 
@@ -22,7 +26,7 @@
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };
 
-               power2 {
+               led_power_green: power2 {
                        label = "whr-300hp2:green:power";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };