Hi all, I'm working to port owrt/lede on the dwr-921 (mt7620n based). Currently I'm able to complete the boot but the wan port (port 4) doesn't work. All the other lan port (port 0-3) are working properly.
Yesterday with blogic we though the problem was related to the assignment of the port-4 to the embedded switch using the mediatek,port4 = "ephy"; property in the dts, but also this doesn't work. I check in the datasheet and I see that this feature is valid only in the mt7620a. According to the DS the mt7620n have only one switch configuration with 5 FE port: MT7620N MT7620A Switch 5p FE SW 5p FE SW + RGMII(1) 4p FE SW + RGMII(2) When I try, using the oem system, to switch from the 3g wan to the eth wan I get the following messages on the console: ramtd_write: to:ff0000 len:10 ramtd_write: to:ff0010 len:f56 ramtd_write: to:ff0000 len:1 ramtd_erase: addr:ff0000 len:0 ramtd_write: to:ff0000 len:10 ramtd_write: to:ff0010 len:f58 ramtd_write: to:ff0000 len:1 device eth2.1 left promiscuous mode br0: port 1(eth2.1) entering forwarding state device eth2 left promiscuous mode device eth2 entered promiscuous mode device eth2.1 entered promiscuous mode br0: port 1(eth2.1) entering forwarding state br0: port 1(eth2.1) entering forwarding state phy 0, reg 0, val 0x800 phy 1, reg 0, val 0x800 phy 2, reg 0, val 0x800 phy 3, reg 0, val 0x800 ESW: Link Status Changed - Port3 Link Down phy 4, reg 0, val 0x800 ESW: Link Status Changed - Port4 Link Down phy 5, reg 0, val 0x800 Ralink HW NAT Module Enabled ramtd_erase: addr:ff0000 len:0 phy 0, reg 0, val 0x3300 ramtd_write: to:ff0000 len:10 ramtd_write: to:ff0010 len:f58 ramtd_write: to:ff0000 len:1 addrconf_dad_completed 7 phy 1, reg 0, val 0x3300 addrconf_dad_completed 7 phy 2, reg 0, val 0x3300 phy 3, reg 0, val 0x3300 phy 4, reg 0, val 0x3300 phy 5, reg 0, val 0x3300 ESW: Link Status Changed - Port3 Link UP ESW: Link Status Changed - Port4 Link UP Ralink HW NAT Module Disabled And the wan port work as expected. Therefore, in some way, some sort of configuration is required. Any ideas? Following some additional detail: Device page: https://wiki.openwrt.org/inbox/d-link/d-link_dwr-921_c1 Preliminary Dts: /dts-v1/; #include "mt7620n.dtsi" #include <dt-bindings/gpio/gpio.h> #include <dt-bindings/input/input.h> / { compatible = "d-link,dwr-921", "ralink,mt7620n-soc"; model = "D-Link DWR-921 C1"; }; &gpio1 { status = "okay"; }; &gpio2 { status = "okay"; }; &gpio3 { status = "okay"; }; &spi0 { status = "okay"; m25p80@0 { #address-cells = <1>; #size-cells = <1>; compatible = "jedec,spi-nor"; reg = <0>; spi-max-frequency = <10000000>; bootloader: partition@0 { label = "bootloader"; reg = <0x0 0x10000>; read-only; }; kernel: partition@10000 { label = "kernel"; reg = <0x10000 0x170000>; }; rootfs: partition@180000 { label = "rootfs"; reg = <0x180000 0xe60000>; }; config: partition@ff0000 { label = "config"; reg = <0xff0000 0x10000>; read-only; }; }; }; &ehci { status = "okay"; }; &ohci { status = "okay"; }; ðernet { mtd-mac-address = <&config 0xe2ac>; mediatek,portmap = "llllw"; }; &wmac { ralink,mtd-eeprom = <&config 0xe08e>; }; &pinctrl { state_default: pinctrl0 { default { ralink,group = "uartf", "i2c", "wdt", "jtag"; ralink,function = "gpio"; }; }; }; etc/board.d/02_network: ... dir-615-h1|\ dwr-921-c1|\ firewrt|\ ... zbt-wr8305rt) ucidef_add_switch "switch0" \ "0:lan" "1:lan" "2:lan" "3:lan" "4:wan" "6@eth0" Bye. _______________________________________________ Lede-dev mailing list Lede-dev@lists.infradead.org http://lists.infradead.org/mailman/listinfo/lede-dev