// 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";
};
};
-ðernet {
+&gmac0 {
mtd-mac-address = <&factory 0xe000>;
};
+&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 {
- ralink,group = "jtag", "wdt";
- ralink,function = "gpio";
+ groups = "jtag", "wdt";
+ function = "gpio";
};
};