ramips: Use dts alias based status led
[openwrt/staging/jow.git] / target / linux / ramips / dts / ATP-52B.dts
index ca62a443c8796c2a216b125bd6e56641614a050f..c463bc91d8147c2b988ce157cc2d2bb7194b3856 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "argus,atp-52b", "ralink,rt3052-soc";
        model = "Argus ATP-52B";
 
+       aliases {
+               led-status = &led_run;
+       };
+
        cfi@1f000000 {
                compatible = "cfi-flash";
                reg = <0x1f000000 0x800000>;
@@ -42,7 +46,7 @@
        gpio-leds {
                compatible = "gpio-leds";
 
-               run {
+               led_run: run {
                        label = "atp-52b:green:run";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };