ramips: add support for Z-ROUTER ZR-2660
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7620a_tplink_re210-v1.dts
index 49c56a8cb47f7cefa168c179436a97769b5e8f58..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";
                };
 
 &state_default {
        gpio {
-               ralink,group = "i2c", "uartf", "wled", "rgmii1";
-               ralink,function = "gpio";
+               groups = "i2c", "uartf", "wled", "rgmii1";
+               function = "gpio";
        };
 };
 
 &gsw {
-       mediatek,port4 = "gmac";
+       mediatek,port4-gmac;
+       mediatek,ephy-base = /bits/ 8 <8>;
 };
 
 &ethernet {