ramips: convert to new LED color/function format where possible
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7628an_d-team_pbr-d1.dts
index f5e9a169d4da7e55ffb11579bb78fd4b4b8d16a8..6545f8962334f7c898cff3f7905a2240e59ecde9 100644 (file)
@@ -2,6 +2,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "d-team,pbr-d1", "mediatek,mt7628an-soc";
                compatible = "gpio-leds";
 
                usb {
-                       label = "orange:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&gpio 0 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&ohci_port1>, <&ehci_port1>;
                        linux,default-trigger = "usbport";
                };
 
                led_power: power {
-                       label = "orange:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_ORANGE>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };