ramips: Use dts alias based status led
[openwrt/openwrt.git] / target / linux / ramips / dts / DIR-300-B7.dts
index 12ccd1620d51cf0ee3ca789ce86dfe356ee01648..52104d2451ca671c9d3d204a64b0f3c14feb82f5 100644 (file)
@@ -9,10 +9,14 @@
        compatible = "dlink,dir-300-b7", "ralink,rt5350-soc";
        model = "D-Link DIR-300 B7";
 
+       aliases {
+               led-status = &led_status;
+       };
+
        gpio-leds {
                compatible = "gpio-leds";
 
-               status {
+               led_status: status {
                        label = "dir-300-b7:green:status";
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };