ramips: convert to new LED color/function format where possible
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7628an_wrtnode_wrtnode2r.dts
index 32b5f53d2a9d6e30be366a53dadc215e761c3bcd..37c2d1e9a4a0c750cb63cd321174cf2e742b39b8 100644 (file)
@@ -1,5 +1,3 @@
-/dts-v1/;
-
 #include "mt7628an_wrtnode_wrtnode2.dtsi"
 
 / {
@@ -20,7 +18,8 @@
                pinctrl-0 = <&led_pins>;
 
                led_indicator: indicator {
-                       label = "wrtnode:blue:indicator";
+                       function = LED_FUNCTION_INDICATOR;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&gpio 44 GPIO_ACTIVE_LOW>;
                };
        };
 
 &state_default {
        gpio {
-               ralink,group = "gpio";
-               ralink,function = "gpio";
+               groups = "gpio";
+               function = "gpio";
        };
 };
 
 &pinctrl {
        led_pins: led {
                gpio {
-                       ralink,group = "wled_an";
-                       ralink,function = "gpio";
+                       groups = "wled_an";
+                       function = "gpio";
                };
        };
 };
@@ -50,4 +49,6 @@
                reg = <1>;
                spi-max-frequency = <10000000>;
        };
+#include <dt-bindings/leds/common.h>
+
 };