ramips: fix LAN LED trigger assignment for Xiaomi Router 3 Pro
[openwrt/openwrt.git] / target / linux / ramips / dts / mt7621_youku_yk-l2.dts
index 3a9794da02e06f06e90f46a7cc00db40f189df9a..627188873d08a6126a427ce7d2ee79e6fcc0df30 100644 (file)
@@ -1,5 +1,4 @@
 // SPDX-License-Identifier: GPL-2.0-or-later OR MIT
-/dts-v1/;
 
 #include "mt7621.dtsi"
 
                compatible = "gpio-leds";
 
                led_power: power {
-                       label = "yk-l2:blue:power";
-                       gpios = <&gpio0 13 GPIO_ACTIVE_LOW>;
+                       label = "blue:power";
+                       gpios = <&gpio 13 GPIO_ACTIVE_LOW>;
                        default-state = "on";
                };
 
                led_wps: wps {
-                       label = "yk-l2:blue:wps";
-                       gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
+                       label = "blue:wps";
+                       gpios = <&gpio 14 GPIO_ACTIVE_LOW>;
                };
 
                usb {
-                       label = "yk-l2:blue:usb";
-                       gpios = <&gpio0 16 GPIO_ACTIVE_LOW>;
+                       label = "blue:usb";
+                       gpios = <&gpio 16 GPIO_ACTIVE_LOW>;
                        trigger-sources = <&xhci_ehci_port1>, <&ehci_port2>;
                        linux,default-trigger = "usbport";
                };
 
                reset {
                        label = "reset";
-                       gpios = <&gpio0 18 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio 18 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_RESTART>;
                };
 
                wps {
                        label = "wps";
-                       gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
+                       gpios = <&gpio 17 GPIO_ACTIVE_LOW>;
                        linux,code = <KEY_WPS_BUTTON>;
                };
        };
        status = "okay";
 };
 
-&xhci {
-       status = "okay";
-};
-
 &spi0 {
        status = "okay";
 
        };
 };
 
-&ethernet {
+&gmac0 {
        mtd-mac-address = <&factory 0xe000>;
 };
 
-&pinctrl {
-       state_default: pinctrl0 {
-               gpio {
-                       ralink,group = "jtag", "wdt";
-                       ralink,function = "gpio";
+&switch0 {
+       ports {
+               port@0 {
+                       status = "okay";
+                       label = "lan1";
+               };
+
+               port@1 {
+                       status = "okay";
+                       label = "lan2";
+               };
+
+               port@2 {
+                       status = "okay";
+                       label = "lan3";
                };
+
+               port@3 {
+                       status = "okay";
+                       label = "lan4";
+               };
+
+               port@4 {
+                       status = "okay";
+                       label = "wan";
+                       mtd-mac-address = <&factory 0xe006>;
+               };
+       };
+};
+
+&state_default {
+       gpio {
+               groups = "jtag", "wdt";
+               function = "gpio";
        };
 };