ath79: convert to new LED color/function format where possible
[openwrt/staging/robimarko.git] / target / linux / ath79 / dts / ar9331_teltonika_rut230-v1.dts
index ad987dbca1db5c5f75ae4ec6fa37bce4ebb95cf9..054ccea52276bbeabe166ec23be639ed36cd5f39 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        model = "Teltonika RUT230 v1";
                };
 
                lan {
-                       label = "green:lan";
+                       function = LED_FUNCTION_LAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                        /* GPIO 13 - ACTIVE HIGH for hwrev 0 */
                };
 
                wan {
-                       label = "green:wan";
+                       function = LED_FUNCTION_WAN;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
                        /* GPIO 14 - ACTIVE HIGH for hwrev 0 */
                };