ramips: convert to new LED color/function format where possible
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_lenovo_newifi-y1s.dts
index f1d2c8733711664242e62c89074be752c39b3c1c..254472f72cfe0737ef2db548cc5e6c4ec8b04621 100644 (file)
                compatible = "gpio-leds";
 
                power1 {
-                       label = "yellow:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_YELLOW>;
                        gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
                };
 
                led_power_blue: power2 {
-                       label = "blue:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio0 9 GPIO_ACTIVE_LOW>;
                };
 
                };
 
                usb1 {
-                       label = "yellow:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_YELLOW>;
                        gpios = <&gpio2 13 GPIO_ACTIVE_LOW>;
                };
 
                usb2 {
-                       label = "blue:usb";
+                       function = LED_FUNCTION_USB;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio2 12 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&ohci_port1>, <&ehci_port1>;
                        linux,default-trigger = "usbport";
 &gsw {
        mediatek,port4-gmac;
        mediatek,ephy-base = /bits/ 8 <8>;
+#include <dt-bindings/leds/common.h>
+
 };