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