bcm63xx: convert to new LED color/function format where possible
[openwrt/staging/stintel.git] / target / linux / bcm63xx / dts / bcm6358-huawei-echolife-hg553.dts
index 243e2ca3003fa827980ec3031779472d7b359f33..052262dca710c464d13ad055b935f0a410a3cc41 100644 (file)
@@ -1,6 +1,7 @@
 #include "bcm6358.dtsi"
 
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "Huawei EchoLife HG553";
                compatible = "gpio-leds";
 
                led_power_blue: power_blue {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&pinctrl 4 1>;
                        default-state = "on";
                };
                power_red {
-                       label = "red:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&pinctrl 5 1>;
                };
                hspa_red {
                        gpios = <&pinctrl 13 1>;
                };
                lan_red {
-                       label = "red:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&pinctrl 22 1>;
                };
                lan_blue {
-                       label = "blue:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&pinctrl 23 1>;
                };
                wifi_red {