ramips: Use dts alias based status led
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / XDXRN502J.dts
index cba8f08812a038d63ea5f3820044fc4ddb319177..cd4b49b062ac22e8a332be3ad644c4adc4192959 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "unbranded,xdxrn502j", "ralink,rt3052-soc";
        model = "XDX RN502J";
 
+       aliases {
+               led-status = &led_power;
+       };
+
        cfi@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
@@ -49,7 +53,7 @@
                        gpios = <&gpio0 7 GPIO_ACTIVE_LOW>;
                };
 
-               power {
+               led_power: power {
                        label = "xdxrn502j:green:power";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };