ramips: convert to new LED color/function format where possible
[openwrt/staging/wigyori.git] / target / linux / ramips / dts / mt7621_unielec_u7621-06.dtsi
index 8dad53812f1ee41ceb4a64df0912ec292012a287..42f6cea2d3c0e2d2414f88c87ab61b4462d27c91 100644 (file)
@@ -9,6 +9,7 @@
 
 #include <dt-bindings/gpio/gpio.h>
 #include <dt-bindings/input/input.h>
+#include <dt-bindings/leds/common.h>
 
 / {
        compatible = "unielec,u7621-06", "mediatek,mt7621-soc";
@@ -49,7 +50,8 @@
                compatible = "gpio-leds";
 
                led_status: status {
-                       label = "green:status";
+                       function = LED_FUNCTION_STATUS;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
                };
 
        status = "okay";
 };
 
+&gmac1 {
+       status = "okay";
+       label = "wan";
+       phy-handle = <&ethphy4>;
+};
+
+&mdio {
+       ethphy4: ethernet-phy@4 {
+               reg = <4>;
+       };
+};
+
 &switch0 {
        ports {
                port@0 {
                        status = "okay";
                        label = "lan4";
                };
-
-               wan: port@4 {
-                       status = "okay";
-                       label = "wan";
-               };
        };
 };