I am still in stuck with this *.dts
/dts-v1/;
#include "mt7620a.dtsi"
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/input/input.h>
/ {
compatible = "sitecom,wlr-4100", "ralink,mt7620a-soc";
model = "Sitecom WLR-4100 v1 002 sw07";
aliases {
led-boot = &led_status;
led-failsafe = &led_status;
led-running = &led_status;
led-upgrade = &led_status;
};
chosen {
bootargs = "console=ttyS0,115200";
};
keys {
compatible = "gpio-keys-polled";
poll-interval = <20>;
//SENAO_GPIO_BUTTON_WPS 2
wps {
label = "wps";
gpios = <&gpio0 2 GPIO_ACTIVE_LOW>;
linux,code = <KEY_WPS_BUTTON>;
};
//SENAO_GPIO_HW_RESET 17
/* reset {
label = "reset";
gpios = <&gpio0 17 GPIO_ACTIVE_LOW>;
linux,code = <KEY_RESTART>;
};
*/
};
leds {
compatible = "gpio-leds";
//SENAO_GPIO_LED_POWER 9
led_status: status {
label = "wlr-4100:green:status";
gpios = <&gpio0 14 GPIO_ACTIVE_LOW>;
};
//SENAO_GPIO_LED_24G 72
wifi2g {
label = "wlr-4100:green:wifi2g";
gpios = <&gpio3 0 GPIO_ACTIVE_LOW>;
};
//SENAO_GPIO_LED_WPS 39
/* led_wps: wps {
label = "wlr-4100:blue:wps";
gpios = <&gpio1 15 GPIO_ACTIVE_LOW>;
};
*/
};
//SENAO_GPIO_POWER_USB 38
//SENAO_GPIO_SWITCH_RESET 45
/*
gpio_export {
compatible = "gpio-export";
#size-cells = <0>;
usb-power {
gpio-export,name = "usb-power";
gpio-export,output = <1>;
gpios = <&gpio1 14 GPIO_ACTIVE_HIGH>;
};
};
*/
};
&gpio0 {
status = "okay";
};
/*
&gpio1 {
status = "okay";
};
&gpio2 {
status = "okay";
};
*/
&gpio3 {
status = "okay";
};
&spi0 {
status = "okay";
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <10000000>;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "uboot";
reg = <0x0 0x30000>;
read-only;
};
config: partition@30000 {
label = "config";
reg = <0x30000 0x10000>;
read-only;
};
factory: partition@40000 {
label = "factory";
reg = <0x40000 0x10000>;
read-only;
};
partition@50000 {
compatible = "denx,uimage";
label = "firmware";
reg = <0x50000 0x790000>;
};
partition@7e0000 {
label = "backup";
reg = <0x7e0000 0x10000>;
read-only;
};
partition@7f0000 {
label = "storage";
reg = <0x7f0000 0x10000>;
read-only;
};
};
};
};
ðernet {
status = "okay";
mtd-mac-address = <&factory 0x4>;
// mediatek,portmap = "wllll";
pinctrl-names = "default";
pinctrl-0 = <&rgmii1_pins &rgmii2_pins &mdio_pins>;
port@5 {
status = "okay";
phy-mode = "rgmii";
mediatek,fixed-link = <1000 1 1 1>;
phy-handle = <&phy0>;
};
mdio-bus {
status = "okay";
mediatek,mdio-mode = <1>;
phy0: ethernet-phy@0 {
reg = <0>;
phy-mode = "rgmii";
qca,ar8327-initvals = <
0x04 0x07600000 /* PORT0 PAD MODE CTRL */
0x08 0x07600000 /* PORT5 PAD MODE CTRL */
//0x0c 0x07600000 /* PORT6 PAD MODE CTRL */
//0x10 0x40000000 /* Power-on Strapping: 176-pin interface configuration */
0x50 0xc437c437 /* LED Control Register 0 */
0x54 0xc337c337 /* LED Control Register 1 */
0x58 0x00000000 /* LED Control Register 2 */
0x5c 0x03ffff00 /* LED Control Register 3 */
0x7c 0x0000007e /* PORT0_STATUS */
0x90 0x0000007e /* PORT5 STATUS */
//0x94 0x0000007e /* PORT6 STATUS */
>;
};
phy1: ethernet-phy@1 {
reg = <1>;
phy-mode = "rgmii";
};
phy2: ethernet-phy@2 {
reg = <2>;
phy-mode = "rgmii";
};
phy3: ethernet-phy@3 {
reg = <3>;
phy-mode = "rgmii";
};
phy4: ethernet-phy@4 {
reg = <4>;
phy-mode = "rgmii";
};
};
};
/*
&gsw {
mediatek,port4="gmac";
};
*/
&ehci {
status = "okay";
};
&ohci {
status = "okay";
};
&wmac {
status = "okay";
ralink,mtd-eeprom = <&factory 0>;
};
/*
&pcie {
status = "okay";
};
&pcie0 {
wifi@0,0 {
reg = <0x0000 0 0 0 0>;
mediatek,mtd-eeprom = <&factory 0x8000>;
mediatek,2ghz = <0>;
};
};
*/
&pinctrl {
state_default: pinctrl0 {
gpio {
//ralink,group = "mdio", "rgmii1", "uartf", "i2c", "wled";
ralink,group = "uartf", "i2c", "wled";
ralink,function = "gpio";
};
};
};
Generating this log:
[ 0.000000] Linux version 4.14.180 (andrea@tubo-wd) (gcc version 7.5.0 (OpenWrt GCC 7.5.0 r11063-85e04e9f46)) #0 Sat May 16 18:32:20 2020
[ 0.000000] Board has DDR2
[ 0.000000] Analog PMU set to hw control
[ 0.000000] Digital PMU set to hw control
[ 0.000000] SoC Type: MediaTek MT7620A ver:2 eco:3
[ 0.000000] bootconsole [early0] enabled
[ 0.000000] CPU0 revision is: 00019650 (MIPS 24KEc)
[ 0.000000] MIPS: machine is Sitecom WLR-4100 v1 002 sw06
[ 0.000000] Determined physical RAM map:
[ 0.000000] memory: 04000000 @ 00000000 (usable)
[ 0.000000] Initrd not found or empty - disabling initrd
[ 0.000000] Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
[ 0.000000] Primary data cache 32kB, 4-way, PIPT, no aliases, linesize 32 bytes
[ 0.000000] Zone ranges:
[ 0.000000] Normal [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Movable zone start for each node
[ 0.000000] Early memory node ranges
[ 0.000000] node 0: [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] Initmem setup node 0 [mem 0x0000000000000000-0x0000000003ffffff]
[ 0.000000] random: get_random_bytes called from start_kernel+0x90/0x478 with crng_init=0
[ 0.000000] Built 1 zonelists, mobility grouping on. Total pages: 16256
[ 0.000000] Kernel command line: console=ttyS0,115200 rootfstype=squashfs,jffs2
[ 0.000000] PID hash table entries: 256 (order: -2, 1024 bytes)
[ 0.000000] Dentry cache hash table entries: 8192 (order: 3, 32768 bytes)
[ 0.000000] Inode-cache hash table entries: 4096 (order: 2, 16384 bytes)
[ 0.000000] Writing ErrCtl register=0006f5fa
[ 0.000000] Readback ErrCtl register=0006f5fa
[ 0.000000] Memory: 56764K/65536K available (3704K kernel code, 179K rwdata, 864K rodata, 3116K init, 208K bss, 8772K reserved, 0K cma-reserved)
[ 0.000000] SLUB: HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
[ 0.000000] NR_IRQS: 256
[ 0.000000] CPU Clock: 600MHz
[ 0.000000] clocksource: systick: mask: 0xffff max_cycles: 0xffff, max_idle_ns: 583261500 ns
[ 0.000000] systick: enable autosleep mode
[ 0.000000] systick: running - mult: 214748, shift: 32
[ 0.000000] clocksource: MIPS: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 6370868154 ns
[ 0.000011] sched_clock: 32 bits at 300MHz, resolution 3ns, wraps every 7158278654ns
[ 0.007588] Calibrating delay loop... 398.13 BogoMIPS (lpj=1990656)
[ 0.073581] pid_max: default: 32768 minimum: 301
[ 0.078309] Mount-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.084671] Mountpoint-cache hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.097608] clocksource: jiffies: mask: 0xffffffff max_cycles: 0xffffffff, max_idle_ns: 19112604462750000 ns
[ 0.107169] futex hash table entries: 256 (order: -1, 3072 bytes)
[ 0.113129] pinctrl core: initialized pinctrl subsystem
[ 0.118708] NET: Registered protocol family 16
[ 0.147846] rt2880_gpio 10000600.gpio: registering 24 gpios
[ 0.153303] rt2880_gpio 10000600.gpio: registering 24 irq handlers
[ 0.159607] rt2880_gpio 10000688.gpio: registering 1 gpios
[ 0.164946] rt2880_gpio 10000688.gpio: registering 1 irq handlers
[ 0.174870] clocksource: Switched to clocksource systick
[ 0.181169] NET: Registered protocol family 2
[ 0.186213] TCP established hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.192936] TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
[ 0.199162] TCP: Hash tables configured (established 1024 bind 1024)
[ 0.205458] UDP hash table entries: 256 (order: 0, 4096 bytes)
[ 0.211085] UDP-Lite hash table entries: 256 (order: 0, 4096 bytes)
[ 0.217464] NET: Registered protocol family 1
[ 2.574864] random: fast init done
[ 3.614530] rt-timer 10000100.timer: maximum frequency is 1220Hz
[ 3.621198] Crashlog allocated RAM at address 0x3f00000
[ 3.627981] workingset: timestamp_bits=30 max_order=14 bucket_order=0
[ 3.639837] squashfs: version 4.0 (2009/01/31) Phillip Lougher
[ 3.645490] jffs2: version 2.2 (NAND) (SUMMARY) (LZMA) (RTIME) (CMODE_PRIORITY) (c) 2001-2006 Red Hat, Inc.
[ 3.735889] io scheduler noop registered
[ 3.739636] io scheduler deadline registered (default)
[ 3.745501] Serial: 8250/16550 driver, 2 ports, IRQ sharing disabled
[ 3.752666] console [ttyS0] disabled
[ 3.756183] 10000c00.uartlite: ttyS0 at MMIO 0x10000c00 (irq = 20, base_baud = 2500000) is a Palmchip BK-3103
[ 3.765807] console [ttyS0] enabled
[ 3.765807] console [ttyS0] enabled
[ 3.772837] bootconsole [early0] disabled
[ 3.772837] bootconsole [early0] disabled
[ 3.785969] spi spi0.0: force spi mode3
[ 3.790652] m25p80 spi0.0: mx25l6405d (8192 Kbytes)
[ 3.795748] 6 fixed-partitions partitions found on MTD device spi0.0
[ 3.802228] Creating 6 MTD partitions on "spi0.0":
[ 3.807150] 0x000000000000-0x000000030000 : "uboot"
[ 3.813023] 0x000000030000-0x000000040000 : "config"
[ 3.818990] 0x000000040000-0x000000050000 : "factory"
[ 3.825024] 0x000000050000-0x0000007e0000 : "firmware"
[ 3.833908] 2 uimage-fw partitions found on MTD device firmware
[ 3.840024] Creating 2 MTD partitions on "firmware":
[ 3.845121] 0x000000000000-0x0000001be000 : "kernel"
[ 3.851054] 0x0000001be000-0x000000790000 : "rootfs"
[ 3.856949] mtd: device 5 (rootfs) set to be root filesystem
[ 3.864215] 1 squashfs-split partitions found on MTD device rootfs
[ 3.870607] 0x000000500000-0x000000790000 : "rootfs_data"
[ 3.877043] 0x0000007e0000-0x0000007f0000 : "backup"
[ 3.882892] 0x0000007f0000-0x000000800000 : "storage"
[ 3.889722] libphy: Fixed MDIO Bus: probed
[ 3.903091] gsw: setting port4 to ephy mode
[ 3.907731] libphy: mdio: probed
[ 3.936930] switch0: Atheros AR8337 rev. 2 switch registered on mdio-bus
[ 4.242271] ar8327: qca,phy-rgmii-en is not specified
[ 4.272383] ar8327: qca,phy-rgmii-en is not specified
[ 4.277689] mtk_soc_eth 10100000.ethernet: using fixed link parameters
[ 4.285748] mtk_soc_eth 10100000.ethernet: loaded mt7620 driver
[ 4.292457] mtk_soc_eth 10100000.ethernet eth0: mediatek frame engine at 0xb0100000, irq 5
[ 4.301384] rt2880_wdt 10000120.watchdog: Initialized
[ 4.307838] NET: Registered protocol family 10
[ 4.316628] Segment Routing with IPv6
[ 4.320482] NET: Registered protocol family 17
[ 4.325149] 8021q: 802.1Q VLAN Support v1.8
[ 4.348087] Freeing unused kernel memory: 3116K
[ 4.352753] This architecture does not have kernel memory protection.
[ 4.374227] init: Console is alive
[ 4.377932] init: - watchdog -
[ 4.405478] kmodloader: loading kernel modules from /etc/modules-boot.d/*
[ 4.422971] usbcore: registered new interface driver usbfs
[ 4.428650] usbcore: registered new interface driver hub
[ 4.434236] usbcore: registered new device driver usb
[ 4.445275] ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
[ 4.453763] ehci-platform: EHCI generic platform driver
[ 4.469430] phy phy-usbphy.0: remote usb device wakeup disabled
[ 4.475509] phy phy-usbphy.0: UTMI 16bit 30MHz
[ 4.480059] ehci-platform 101c0000.ehci: EHCI Host Controller
[ 4.485985] ehci-platform 101c0000.ehci: new USB bus registered, assigned bus number 1
[ 4.494205] ehci-platform 101c0000.ehci: irq 26, io mem 0x101c0000
[ 4.508127] ehci-platform 101c0000.ehci: USB 2.0 started, EHCI 1.00
[ 4.515440] hub 1-0:1.0: USB hub found
[ 4.519796] hub 1-0:1.0: 1 port detected
[ 4.526853] ohci_hcd: USB 1.1 'Open' Host Controller (OHCI) Driver
[ 4.534919] ohci-platform: OHCI generic platform driver
[ 4.540633] ohci-platform 101c1000.ohci: Generic Platform OHCI controller
[ 4.547627] ohci-platform 101c1000.ohci: new USB bus registered, assigned bus number 2
[ 4.555835] ohci-platform 101c1000.ohci: irq 26, io mem 0x101c1000
[ 4.589649] hub 2-0:1.0: USB hub found
[ 4.593938] hub 2-0:1.0: 1 port detected
[ 4.601881] kmodloader: done loading kernel modules from /etc/modules-boot.d/*
[ 4.613423] init: - preinit -
[ 4.837993] mtk_soc_eth 10100000.ethernet eth0: port 5 link up (1000Mbps/Full duplex)
[ 4.846606] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 4.852607] 8021q: adding VLAN 0 to HW filter on device eth0
[ 4.858670] IPv6: ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 4.879601] random: procd: uninitialized urandom read (4 bytes read)
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[ 6.012540] mtk_soc_eth 10100000.ethernet eth0: port 5 link down
[ 6.029597] procd: - early -
[ 6.032659] procd: - watchdog -
[ 6.318135] procd: - watchdog -
[ 6.321693] procd: - ubus -
[ 6.331624] random: ubusd: uninitialized urandom read (4 bytes read)
[ 6.351298] random: ubusd: uninitialized urandom read (4 bytes read)
[ 6.358399] random: ubusd: uninitialized urandom read (4 bytes read)
[ 6.366017] procd: - init -
Please press Enter to activate this console.
[ 6.827841] kmodloader: loading kernel modules from /etc/modules.d/*
[ 6.856892] ip6_tables: (C) 2000-2006 Netfilter Core Team
[ 6.882346] Loading modules backported from Linux version v4.19.120-0-gfdc072324f3c
[ 6.890235] Backport generated by backports.git v4.19.120-1-0-g60c3a249
[ 6.916722] ip_tables: (C) 2000-2006 Netfilter Core Team
[ 6.942756] nf_conntrack version 0.5.0 (1024 buckets, 4096 max)
[ 7.067661] xt_time: kernel timezone is -0000
[ 7.187033] PPP generic driver version 2.4.2
[ 7.205139] NET: Registered protocol family 24
[ 7.260504] rt2800_wmac 10180000.wmac: loaded eeprom from mtd device "factory"
[ 7.267963] ieee80211 phy0: rt2x00_set_rt: Info - RT chipset 6352, rev 0500 detected
[ 7.275914] ieee80211 phy0: rt2x00_set_rf: Info - RF chipset 7620 detected
[ 7.336617] kmodloader: done loading kernel modules from /etc/modules.d/*
[ 7.382391] urngd: jent-rng init failed, err: 2
[ 33.578915] mtk_soc_eth 10100000.ethernet eth0: port 5 link up (1000Mbps/Full duplex)
[ 33.587299] 8021q: adding VLAN 0 to HW filter on device eth0
[ 33.617093] br-lan: port 1(eth0.1) entered blocking state
[ 33.622618] br-lan: port 1(eth0.1) entered disabled state
[ 33.628584] device eth0.1 entered promiscuous mode
[ 33.633479] device eth0 entered promiscuous mode
[ 33.690722] br-lan: port 1(eth0.1) entered blocking state
[ 33.696312] br-lan: port 1(eth0.1) entered forwarding state
[ 33.702209] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
[ 34.596463] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
And this:
root@OpenWrt:/# ifconfig -a
br-lan Link encap:Ethernet HWaddr 64:D1:A3:xx:xx:84
inet addr:192.168.1.1 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::66d1:a3ff:fexx:xx84/64 Scope:Link
inet6 addr: fd79:ffeb:bde7::1/60 Scope:Global
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:1964 (1.9 KiB)
eth0 Link encap:Ethernet HWaddr 64:D1:A3:xx:xx:84
inet6 addr: fe80::66d1:a3ff:fexx:xx84/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:66 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:13951 (13.6 KiB)
Interrupt:5
eth0.1 Link encap:Ethernet HWaddr 64:D1:A3:xx:xx:84
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:1964 (1.9 KiB)
eth0.2 Link encap:Ethernet HWaddr 64:D1:A3:xx:xx:85
inet6 addr: fe80::66d1:a3ff:fexx:xx85/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:38 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:9394 (9.1 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:80 errors:0 dropped:0 overruns:0 frame:0
TX packets:80 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:5440 (5.3 KiB) TX bytes:5440 (5.3 KiB)
wlan0 Link encap:Ethernet HWaddr 64:D1:A3:xx:xx:84
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
root@OpenWrt:/#
root@OpenWrt:/# [ 64.662206] random: crng init done
[ 64.665698] random: 6 urandom warning(s) missed due to ratelimiting
swconfig list
Found: switch0 - mdio-bus
Found: switch1 - mt7620
root@OpenWrt:/#
root@OpenWrt:/# swconfig dev switch0 show
Global attributes:
enable_vlan: 0
ar8xxx_mib_poll_interval: 0
ar8xxx_mib_type: 0
enable_mirror_rx: 0
enable_mirror_tx: 0
mirror_monitor_port: 0
mirror_source_port: 0
arl_age_time: 300
arl_table: address resolution table
Port 0: MAC 64:d1:a3:xx:xx:85
Port 0: MAC 64:d1:a3:xx:xx:84
igmp_snooping: 0
igmp_v3: 0
Port 0:
mib: ???
enable_eee: ???
igmp_snooping: 0
vlan_prio: 0
pvid: 0
link: port:0 link:up speed:1000baseT full-duplex txflow rxflow
Port 1:
mib: ???
enable_eee: 0
igmp_snooping: 0
vlan_prio: 0
pvid: 0
link: port:1 link:down
Port 2:
mib: ???
enable_eee: 0
igmp_snooping: 0
vlan_prio: 0
pvid: 0
link: port:2 link:down
Port 3:
mib: ???
enable_eee: 0
igmp_snooping: 0
vlan_prio: 0
pvid: 0
link: port:3 link:down
Port 4:
mib: ???
enable_eee: 0
igmp_snooping: 0
vlan_prio: 0
pvid: 0
link: port:4 link:down
Port 5:
mib: ???
enable_eee: 0
igmp_snooping: 0
vlan_prio: 0
pvid: 0
link: port:5 link:up speed:100baseT full-duplex auto
Port 6:
mib: ???
enable_eee: ???
igmp_snooping: 0
vlan_prio: 0
pvid: 0
link: port:6 link:up speed:10baseT half-duplex
root@OpenWrt:/#
root@OpenWrt:/# swconfig dev switch1 show
Global attributes:
enable_vlan: 0
mib: Switch MIB counters
PPE_AC_BCNT0: 0
PPE_AC_PCNT0: 0
PPE_AC_BCNT63: 0
PPE_AC_PCNT63: 0
PPE_MTR_CNT0: 0
PPE_MTR_CNT63: 0
GDM1_TX_GBCNT: 0
GDM1_TX_GPCNT: 0
GDM1_TX_SKIPCNT: 0
GDM1_TX_COLCNT: 0
GDM1_RX_GBCNT1: 0
GDM1_RX_GPCNT1: 0
GDM1_RX_OERCNT: 0
GDM1_RX_FERCNT: 0
GDM1_RX_SERCNT: 0
GDM1_RX_LERCNT: 0
GDM1_RX_CERCNT: 0
GDM1_RX_FCCNT: 0
GDM2_TX_GBCNT: 0
GDM2_TX_GPCNT: 0
GDM2_TX_SKIPCNT: 0
GDM2_TX_COLCNT: 0
GDM2_RX_GBCNT: 0
GDM2_RX_GPCNT: 0
GDM2_RX_OERCNT: 0
GDM2_RX_FERCNT: 0
GDM2_RX_SERCNT: 0
GDM2_RX_LERCNT: 3
GDM2_RX_CERCNT: 0
GDM2_RX_FCCNT: 0
Port 0:
mib: Port 0 MIB counters
TxGPC : 0
TxBOC : 0
TxGOC : 0
TxEPC : 0
RxGPC : 0
RxBOC : 0
RxGOC : 0
RxEPC1 : 0
RxEPC2 : 0
pvid: 0
link: port:0 link:down
Port 1:
mib: Port 1 MIB counters
TxGPC : 0
TxBOC : 0
TxGOC : 0
TxEPC : 0
RxGPC : 0
RxBOC : 0
RxGOC : 0
RxEPC1 : 0
RxEPC2 : 0
pvid: 0
link: port:1 link:down
Port 2:
mib: Port 2 MIB counters
TxGPC : 0
TxBOC : 0
TxGOC : 0
TxEPC : 0
RxGPC : 0
RxBOC : 0
RxGOC : 0
RxEPC1 : 0
RxEPC2 : 0
pvid: 0
link: port:2 link:down
Port 3:
mib: Port 3 MIB counters
TxGPC : 0
TxBOC : 0
TxGOC : 0
TxEPC : 0
RxGPC : 0
RxBOC : 0
RxGOC : 0
RxEPC1 : 0
RxEPC2 : 0
pvid: 0
link: port:3 link:down
Port 4:
mib: Port 4 MIB counters
TxGPC : 0
TxBOC : 0
TxGOC : 0
TxEPC : 0
RxGPC : 0
RxBOC : 0
RxGOC : 0
RxEPC1 : 0
RxEPC2 : 0
pvid: 0
link: port:4 link:down
Port 5:
mib: Port 5 MIB counters
TxGPC : 112
TxBOC : 0
TxGOC : 29959
TxEPC : 0
RxGPC : 0
RxBOC : 0
RxGOC : 0
RxEPC1 : 0
RxEPC2 : 0
pvid: 0
link: port:5 link:up speed:1000baseT full-duplex
Port 6:
mib: Port 6 MIB counters
TxGPC : 0
TxBOC : 0
TxGOC : 0
TxEPC : 0
RxGPC : 112
RxBOC : 0
RxGOC : 29959
RxEPC1 : 0
RxEPC2 : 0
pvid: 0
link: port:6 link:up speed:1000baseT full-duplex
Port 7:
mib: Port 7 MIB counters
TxGPC : 0
TxBOC : 0
TxGOC : 0
TxEPC : 0
RxGPC : 0
RxBOC : 0
RxGOC : 0
RxEPC1 : 0
RxEPC2 : 0
pvid: 0
link: port:7 link:down
root@OpenWrt:/#
root@OpenWrt:/# cat /etc/config/network
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd2b:4026:3b1d::/48'
config interface 'lan'
option type 'bridge'
option ifname 'eth0.1'
option proto 'static'
option ipaddr '192.168.1.1'
option netmask '255.255.255.0'
option ip6assign '60'
config device 'lan_eth0_1_dev'
option name 'eth0.1'
option macaddr '64:d1:a3:xx:xx:84'
config interface 'wan'
option ifname 'eth0.2'
option proto 'dhcp'
config device 'wan_eth0_2_dev'
option name 'eth0.2'
option macaddr '64:d1:a3:xx:xx:85'
config interface 'wan6'
option ifname 'eth0.2'
option proto 'dhcpv6'
root@OpenWrt:/#
I suspect MT7620 has 2 RGMII interfaces on port 4 and 5:
Which are both connected to QCA8337:
- one to Port 0 for managing LAN 1..4
- the other to Port 5 for WLAN
But I do not know how to reflect this in *.dts