mediatek: convert to new LED color/function format where possible
[openwrt/staging/nbd.git] / target / linux / mediatek / dts / mt7981b-cmcc-rax3000m.dts
index e9c850e85b0172a4c6c3194c6a735f646c9d923d..c8db5b58f543290e2ca8966200b70ef0a3f130d8 100644 (file)
@@ -6,6 +6,7 @@
 /dts-v1/;
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 #include "mt7981.dtsi"
 
                compatible = "gpio-leds";
 
                green_led: led-0 {
-                       label = "green:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&pio 9 GPIO_ACTIVE_LOW>;
                };
 
                led-1 {
-                       label = "blue:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_BLUE>;
                        gpios = <&pio 12 GPIO_ACTIVE_LOW>;
                };
 
                red_led: led-2 {
-                       label = "red:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_RED>;
                        gpios = <&pio 35 GPIO_ACTIVE_LOW>;
                };
        };
@@ -90,7 +94,7 @@
 };
 
 &mdio_bus {
-       switch: switch@0 {
+       switch: switch@1f {
                compatible = "mediatek,mt7531";
                reg = <31>;
                reset-gpios = <&pio 39 GPIO_ACTIVE_HIGH>;