ramips: add support for Z-ROUTER ZR-2660
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_tplink_re210-v1.dts
index a1fa3330d73d161d50edc95473eab419a1d30ffe..c92c6e7f0d62577733d5e1efd49fcc4440cde0e9 100644 (file)
@@ -1,5 +1,6 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-/dts-v1/;
+
+#include <dt-bindings/leds/common.h>
 
 #include "mt7620a_tplink_re2x0-v1.dtsi"
 
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "re210-v1:green:power";
+                       function = LED_FUNCTION_POWER;
+                       color = <LED_COLOR_ID_GREEN>;
                        gpios = <&gpio1 3 GPIO_ACTIVE_LOW>;
                };
 
                rssi_high {
-                       label = "re210-v1:green:rssi-high";
+                       label = "green:rssi-high";
                        gpios = <&gpio1 1 GPIO_ACTIVE_LOW>;
                };
 
                rssi_low {
-                       label = "re210-v1:red:rssi-low";
+                       label = "red:rssi-low";
                        gpios = <&gpio1 2 GPIO_ACTIVE_LOW>;
                };
 
                wlan2g {
-                       label = "re210-v1:green:wlan2g";
+                       label = "green:wlan2g";
                        gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy1tpt";
                };
 
                wlan5g {
-                       label = "re210-v1:green:wlan5g";
+                       label = "green:wlan5g";
                        gpios = <&gpio0 1 GPIO_ACTIVE_LOW>;
                        linux,default-trigger = "phy0tpt";
                };
@@ -62,7 +64,8 @@
 };
 
 &gsw {
-       mediatek,port4 = "gmac";
+       mediatek,port4-gmac;
+       mediatek,ephy-base = /bits/ 8 <8>;
 };
 
 &ethernet {