ipq40xx: convert to new LED color/function format where possible
[openwrt/staging/nbd.git] / target / linux / ipq40xx / files / arch / arm / boot / dts / qcom-ipq4019-fritzbox-7530.dts
index 71166231a907bcafa693a69afa8f3c60dcfcdbf0..a118bdf26bd6ca6e6a2365fe35f8a2546dd141b5 100644 (file)
@@ -3,6 +3,7 @@
 #include "qcom-ipq4019.dtsi"
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 #include <dt-bindings/soc/qcom,tcsr.h>
 
 / {
@@ -17,7 +18,7 @@
                led-boot = &power_green;
                led-failsafe = &info_red;
                led-running = &power_green;
-               led-upgrade = &info_green;
+               led-upgrade = &info_red;
        };
 
        soc {
                        gpios = <&tlmm 32 GPIO_ACTIVE_LOW>;
                };
 
-               info_green: info {
+               info {
                        label = "green:info";
                        gpios = <&tlmm 33 GPIO_ACTIVE_LOW>;
                };
 
                wlan {
-                       label = "green:wlan";
+                       function = LED_FUNCTION_WLAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 34 GPIO_ACTIVE_LOW>;
                };
 
                };
 
                power_green: power {
-                       label = "green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 39 GPIO_ACTIVE_LOW>;
                };
 
                wps {
-                       label = "green:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&tlmm 45 GPIO_ACTIVE_LOW>;
                };
        };