forked from Openwrt-EcoNet/openwrt
This change moves common elements of the WR3000H and the WR3000S to mt7981b-cudy-wr3000-nand.dtsi. This will simplify adding of new similar devices, for exapmle WR3000E. Signed-off-by: Roland Reinl <reinlroland+github@gmail.com> Link: https://github.com/openwrt/openwrt/pull/18619 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
154 lines
2.7 KiB
Plaintext
154 lines
2.7 KiB
Plaintext
// SPDX-License-Identifier: (GPL-2.0 OR MIT)
|
|
|
|
/dts-v1/;
|
|
|
|
#include "mt7981b-cudy-wr3000-nand.dtsi"
|
|
|
|
/ {
|
|
model = "Cudy WR3000H v1";
|
|
compatible = "cudy,wr3000h-v1", "mediatek,mt7981";
|
|
|
|
aliases {
|
|
label-mac-device = &gmac0;
|
|
led-boot = &led_status;
|
|
led-failsafe = &led_status;
|
|
led-running = &led_status;
|
|
led-upgrade = &led_status;
|
|
serial0 = &uart0;
|
|
};
|
|
|
|
leds {
|
|
compatible = "gpio-leds";
|
|
|
|
led_status: led-status {
|
|
function = LED_FUNCTION_STATUS;
|
|
color = <LED_COLOR_ID_WHITE>;
|
|
gpios = <&pio 5 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
led-internet {
|
|
function = LED_FUNCTION_WAN_ONLINE;
|
|
color = <LED_COLOR_ID_WHITE>;
|
|
gpios = <&pio 11 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
led-wps {
|
|
function = LED_FUNCTION_WPS;
|
|
color = <LED_COLOR_ID_WHITE>;
|
|
gpios = <&pio 9 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
led-wlan2g {
|
|
function = LED_FUNCTION_WLAN_2GHZ;
|
|
color = <LED_COLOR_ID_WHITE>;
|
|
gpios = <&pio 6 GPIO_ACTIVE_LOW>;
|
|
linux,default-trigger = "phy0tpt";
|
|
};
|
|
|
|
led-wlan5g {
|
|
function = LED_FUNCTION_WLAN_5GHZ;
|
|
color = <LED_COLOR_ID_WHITE>;
|
|
gpios = <&pio 7 GPIO_ACTIVE_LOW>;
|
|
linux,default-trigger = "phy1tpt";
|
|
};
|
|
|
|
led-lan1 {
|
|
function = LED_FUNCTION_LAN;
|
|
function-enumerator = <1>;
|
|
color = <LED_COLOR_ID_WHITE>;
|
|
gpios = <&pio 8 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
led-lan2 {
|
|
function = LED_FUNCTION_LAN;
|
|
function-enumerator = <2>;
|
|
color = <LED_COLOR_ID_WHITE>;
|
|
gpios = <&pio 10 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
led-lan3 {
|
|
function = LED_FUNCTION_LAN;
|
|
function-enumerator = <3>;
|
|
color = <LED_COLOR_ID_WHITE>;
|
|
gpios = <&pio 12 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
led-lan4 {
|
|
function = LED_FUNCTION_LAN;
|
|
function-enumerator = <4>;
|
|
color = <LED_COLOR_ID_WHITE>;
|
|
gpios = <&pio 13 GPIO_ACTIVE_LOW>;
|
|
};
|
|
|
|
led-wan {
|
|
function = LED_FUNCTION_WAN;
|
|
color = <LED_COLOR_ID_WHITE>;
|
|
gpios = <&pio 35 GPIO_ACTIVE_LOW>;
|
|
};
|
|
};
|
|
};
|
|
|
|
ð {
|
|
gmac1: mac@1 {
|
|
compatible = "mediatek,eth-mac";
|
|
reg = <1>;
|
|
phy-mode = "2500base-x";
|
|
phy-handle = <&phy6>;
|
|
nvmem-cell-names = "mac-address";
|
|
nvmem-cells = <&macaddr_bdinfo_de00 1>;
|
|
label = "wan";
|
|
};
|
|
};
|
|
|
|
&mdio_bus {
|
|
|
|
phy6: ethernet-phy@6 {
|
|
compatible = "ethernet-phy-ieee802.3-c45";
|
|
reg = <6>;
|
|
reset-assert-us = <100000>;
|
|
reset-deassert-us = <100000>;
|
|
reset-gpios = <&pio 3 GPIO_ACTIVE_LOW>;
|
|
};
|
|
};
|
|
|
|
&switch {
|
|
ports {
|
|
#address-cells = <1>;
|
|
#size-cells = <0>;
|
|
|
|
port@0 {
|
|
reg = <0>;
|
|
label = "lan1";
|
|
};
|
|
|
|
port@1 {
|
|
reg = <1>;
|
|
label = "lan2";
|
|
};
|
|
|
|
port@2 {
|
|
reg = <2>;
|
|
label = "lan3";
|
|
};
|
|
|
|
port@3 {
|
|
reg = <3>;
|
|
label = "lan4";
|
|
};
|
|
|
|
port@6 {
|
|
reg = <6>;
|
|
label = "cpu";
|
|
ethernet = <&gmac0>;
|
|
phy-mode = "2500base-x";
|
|
|
|
fixed-link {
|
|
speed = <2500>;
|
|
full-duplex;
|
|
pause;
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|