ramips: remove model name from LED labels
[openwrt/staging/mkresin.git] / target / linux / ramips / dts / mt7620a_phicomm_psg1218.dtsi
index f74506ea6172c20c1913b3a324bc4767b2360851..dbfec00f81b847e223d7e394e13fb16fc3546e99 100644 (file)
@@ -6,6 +6,13 @@
 / {
        compatible = "phicomm,psg1218", "ralink,mt7620a-soc";
 
+       aliases {
+               led-boot = &led_blue;
+               led-failsafe = &led_blue;
+               led-running = &led_blue;
+               led-upgrade = &led_blue;
+       };
+
        keys {
                compatible = "gpio-keys";
 
                        linux,code = <KEY_RESTART>;
                };
        };
+
+       leds {
+               compatible = "gpio-leds";
+
+               led_blue: blue {
+                       label = "blue:status";
+                       gpios = <&gpio0 10 GPIO_ACTIVE_LOW>;
+                       default-state = "on";
+               };
+
+               yellow {
+                       label = "yellow:status";
+                       gpios = <&gpio0 11 GPIO_ACTIVE_LOW>;
+               };
+
+               red {
+                       label = "red:status";
+                       gpios = <&gpio0 8 GPIO_ACTIVE_HIGH>;
+               };
+       };
 };
 
 &gpio0 {