ramips: convert to new LED color/function format where possible
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7620a_hnet_c108.dts
index 60c6b2a7d4ae51f59518dc8a83409d9a58294734..0c0adf26ebe8f1c6247474f0402f57848ec6ca0a 100644 (file)
@@ -8,6 +8,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "hnet,c108", "ralink,mt7620a-soc";
                };
 
                lan_red {
-                       label = "red:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio2 3 GPIO_ACTIVE_HIGH>;
                };
 
                led_lan_green: lan_green {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio2 4 GPIO_ACTIVE_HIGH>;
                };
        };