ramips: convert to new LED color/function format where possible
[openwrt/staging/jow.git] / target / linux / ramips / dts / mt7628an_ravpower_rp-wd009.dts
index 7c0e7551ce2aadc41a39319ac947191c8dd23861..0f0a3b0147e90cc64b9d7d5c64f7610b14afae90 100644 (file)
@@ -4,6 +4,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "ravpower,rp-wd009", "mediatek,mt7628an-soc";
                };
 
                sd_white {
-                       label = "white:sd";
+                       function = LED_FUNCTION_SD;
+                       color = <LED_COLOR_ID_WHITE>;
                        gpios = <&gpio 41 GPIO_ACTIVE_LOW>;
                };
 
                sd_red {
-                       label = "red:sd";
+                       function = LED_FUNCTION_SD;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&gpio 3 GPIO_ACTIVE_LOW>;
                };
        };