ramips: Use dts alias based status led
[openwrt/openwrt.git] / target / linux / ramips / dts / GB-PC1.dts
index 609e058967949845abdaa291e252d8f28fb7212a..814d6d12261b99b0d9f3a0a26523f28034fff72a 100644 (file)
@@ -9,6 +9,10 @@
        compatible = "gnubee,gb-pc1", "mediatek,mt7621-soc";
        model = "GB-PC1";
 
+       aliases {
+               led-status = &led_status;
+       };
+
        memory@0 {
                device_type = "memory";
                reg = <0x0 0x1c000000>, <0x20000000 0x4000000>;
@@ -39,7 +43,7 @@
                        gpios = <&gpio0 6 GPIO_ACTIVE_LOW>;
                };
 
-               status {
+               led_status: status {
                        label = "gb-pc1:green:status";
                        gpios = <&gpio0 8 GPIO_ACTIVE_LOW>;
                };