ipq806x: convert to new LED color/function format where possible
[openwrt/openwrt.git] / target / linux / ipq806x / files / arch / arm / boot / dts / qcom-ipq8064-c2600.dts
index cef1aba34445d3e4415e97c03529d0e19caa2448..33d8f78e58ac9b2e92e7a9eb2128ff5f2fe61a5a 100644 (file)
@@ -55,7 +55,8 @@
                pinctrl-names = "default";
 
                lan {
-                       label = "white:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&qcom_pinmux 6 GPIO_ACTIVE_HIGH>;
                };
 
                };
 
                wps {
-                       label = "white:wps";
+                       function = LED_FUNCTION_WPS;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&qcom_pinmux 9 GPIO_ACTIVE_HIGH>;
                };
 
                wan_amber {
-                       label = "amber:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_AMBER>;
                        gpios = <&qcom_pinmux 26 GPIO_ACTIVE_LOW>;
                };
 
                wan_white {
-                       label = "white:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&qcom_pinmux 33 GPIO_ACTIVE_LOW>;
                };
 
                power: power {
-                       label = "white:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&qcom_pinmux 53 GPIO_ACTIVE_HIGH>;
                        default-state = "keep";
                };
                        bias-pull-up;
                };
        };
+#include <dt-bindings/leds/common.h>
+
 };