Why dp2 doesn't start with 2500 speed. It seems that a deeper look into the driver code is required.
ethttol shows that eth0 and eth1 are never up together. A question for the ipq experts (@robimarko, @georgem83) - should the switch function with only one (of two) successful CPU connection? The dts with my comments is in the post above.
Thanks. The AN8855 driver supports DSA (I've taken it from the mediatek/filogic target). Do you have any ideas why dp2 can't start at 2500 speed: swphy: unknown speed?
I changed switch CPU port from 5 to 4 and got WAN port working. LAN - not. I expect progress with this device to be slow. And in any case there will be a deadend with the wireless. 256 MB is insufficiently for Qualcomm drivers.
Still can't get the AN8855 switch CPU port to work (tried SGMII, 1000base-x, 2500base-x etc mode). I can see just the following packets every ~0.033 seconds on the switch ports:
60 bytes on wire (480 bits), 60 bytes captured (480 bits) on interface \Device\NPF, id 0
Ethernet II, Src: 00:00:00_17:a5:01 (00:00:00:17:a5:01), Dst: MAC-specific-ctrl-proto-01 (01:80:c2:00:00:01)
Destination: MAC-specific-ctrl-proto-01 (01:80:c2:00:00:01)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
.... ...1 .... .... .... .... = IG bit: Group address (multicast/broadcast)
Source: 00:00:00_17:a5:01 (00:00:00:17:a5:01)
.... ..0. .... .... .... .... = LG bit: Globally unique address (factory default)
.... ...0 .... .... .... .... = IG bit: Individual address (unicast)
Type: MAC Control (0x8808)
[Stream index: 0]
MAC Control
Opcode: Pause (0x0001)
pause_time: 65535
This is a different device, and the fact that it contains 5g modem hardware strongly suggests that it's a very different device. NAND isn't easily reflashed externally, nor has ipq50xx a convenient way to recover (as mediatek/ filogic would have via mtkuart), if you break it (and that includes secure boot and signed bootloaders, including SBL!), it will be broken for good. Please start a new thread for that device (again, RAM size is paramount, anything below 512 MB is an immediate disqualification), it will need its own discovery.