|
|
@@ -0,0 +1,137 @@
|
|
|
+// SPDX-License-Identifier: (GPL-2.0 OR MIT)
|
|
|
+
|
|
|
+/dts-v1/;
|
|
|
+
|
|
|
+#include "mt7981b-cudy-wr3000-nand.dtsi"
|
|
|
+
|
|
|
+/ {
|
|
|
+ aliases {
|
|
|
+ label-mac-device = &gmac0;
|
|
|
+ led-boot = &led_status;
|
|
|
+ led-failsafe = &led_warning;
|
|
|
+ led-running = &led_status;
|
|
|
+ led-upgrade = &led_warning;
|
|
|
+ serial0 = &uart0;
|
|
|
+ };
|
|
|
+
|
|
|
+ leds {
|
|
|
+ compatible = "gpio-leds";
|
|
|
+
|
|
|
+ led_status: led_power {
|
|
|
+ function = LED_FUNCTION_POWER;
|
|
|
+ color = <LED_COLOR_ID_BLUE>;
|
|
|
+ gpios = <&pio 8 GPIO_ACTIVE_LOW>;
|
|
|
+ };
|
|
|
+
|
|
|
+ led_internet {
|
|
|
+ function = LED_FUNCTION_WAN_ONLINE;
|
|
|
+ color = <LED_COLOR_ID_BLUE>;
|
|
|
+ gpios = <&pio 10 GPIO_ACTIVE_LOW>;
|
|
|
+ };
|
|
|
+
|
|
|
+ led_warning: led_fault {
|
|
|
+ function = LED_FUNCTION_FAULT;
|
|
|
+ color = <LED_COLOR_ID_RED>;
|
|
|
+ gpios = <&pio 4 GPIO_ACTIVE_LOW>;
|
|
|
+ };
|
|
|
+
|
|
|
+ led_wan {
|
|
|
+ function = LED_FUNCTION_WAN;
|
|
|
+ color = <LED_COLOR_ID_BLUE>;
|
|
|
+ gpios = <&pio 11 GPIO_ACTIVE_LOW>;
|
|
|
+ };
|
|
|
+
|
|
|
+ led_lan {
|
|
|
+ function = LED_FUNCTION_LAN;
|
|
|
+ color = <LED_COLOR_ID_BLUE>;
|
|
|
+ gpios = <&pio 9 GPIO_ACTIVE_LOW>;
|
|
|
+ };
|
|
|
+
|
|
|
+ led_wps {
|
|
|
+ function = LED_FUNCTION_WPS;
|
|
|
+ color = <LED_COLOR_ID_RED>;
|
|
|
+ gpios = <&pio 5 GPIO_ACTIVE_LOW>;
|
|
|
+ };
|
|
|
+
|
|
|
+ led_wifi2g {
|
|
|
+ function = LED_FUNCTION_WLAN_2GHZ;
|
|
|
+ color = <LED_COLOR_ID_BLUE>;
|
|
|
+ gpios = <&pio 6 GPIO_ACTIVE_LOW>;
|
|
|
+ linux,default-trigger = "phy0tpt";
|
|
|
+ };
|
|
|
+
|
|
|
+ led_wifi5g {
|
|
|
+ function = LED_FUNCTION_WLAN_5GHZ;
|
|
|
+ color = <LED_COLOR_ID_BLUE>;
|
|
|
+ gpios = <&pio 7 GPIO_ACTIVE_LOW>;
|
|
|
+ linux,default-trigger = "phy1tpt";
|
|
|
+ };
|
|
|
+ };
|
|
|
+
|
|
|
+ usb_vbus: regulator-usb {
|
|
|
+ compatible = "regulator-fixed";
|
|
|
+ regulator-name = "usb-vbus";
|
|
|
+ regulator-min-microvolt = <5000000>;
|
|
|
+ regulator-max-microvolt = <5000000>;
|
|
|
+ gpios = <&pio 35 GPIO_ACTIVE_HIGH>;
|
|
|
+ enable-active-high;
|
|
|
+ regulator-boot-on;
|
|
|
+ };
|
|
|
+};
|
|
|
+
|
|
|
+&switch {
|
|
|
+ ports {
|
|
|
+ #address-cells = <1>;
|
|
|
+ #size-cells = <0>;
|
|
|
+
|
|
|
+ port@0 {
|
|
|
+ reg = <0>;
|
|
|
+ label = "wan";
|
|
|
+
|
|
|
+ nvmem-cell-names = "mac-address";
|
|
|
+ nvmem-cells = <&macaddr_bdinfo_de00 1>;
|
|
|
+ };
|
|
|
+
|
|
|
+ port@1 {
|
|
|
+ reg = <1>;
|
|
|
+ label = "lan1";
|
|
|
+ };
|
|
|
+
|
|
|
+ port@2 {
|
|
|
+ reg = <2>;
|
|
|
+ label = "lan2";
|
|
|
+ };
|
|
|
+
|
|
|
+ port@3 {
|
|
|
+ reg = <3>;
|
|
|
+ label = "lan3";
|
|
|
+ };
|
|
|
+
|
|
|
+ port@4 {
|
|
|
+ reg = <4>;
|
|
|
+ label = "lan4";
|
|
|
+ };
|
|
|
+
|
|
|
+ port@6 {
|
|
|
+ reg = <6>;
|
|
|
+ label = "cpu";
|
|
|
+ ethernet = <&gmac0>;
|
|
|
+ phy-mode = "2500base-x";
|
|
|
+
|
|
|
+ fixed-link {
|
|
|
+ speed = <2500>;
|
|
|
+ full-duplex;
|
|
|
+ pause;
|
|
|
+ };
|
|
|
+ };
|
|
|
+ };
|
|
|
+};
|
|
|
+
|
|
|
+&usb_phy {
|
|
|
+ status = "okay";
|
|
|
+};
|
|
|
+
|
|
|
+&xhci {
|
|
|
+ status = "okay";
|
|
|
+ vbus-supply = <&usb_vbus>;
|
|
|
+};
|