Alright here’s an interesting one. I can’t seem to get my AM3352 talking to a Marvell switch via DSA or otherwise and I’m completely stumped. The switch is an 88E6071 wired up to RGMII2 and MDIO. It’s using address space 0x10-0x1F and the phy is address 0.
I’ve tried setting it up a million different ways but since I don’t really need DSA, just need a “dumb” switch this is the most basic:
(using sdk 6.1.46 kernel)
&davinci_mdio_sw {
pinctrl-names = "default";
pinctrl-0 = <&davinci_mdio_default>;
//status = "okay";
bus-speed = <100000>;
ethphy0: ethernet-phy@0 {
reg = <0>;
};
};
&cpsw_port1 {
phy-handle = <ðphy0>;
phy-mode = "rgmii-id";
ti,dual-emac-pvid = <1>;
};
&cpsw_port2 {
phy-mode = "rgmii-id";
ti,dual-emac-pvid = <2>;
fixed-link {
speed = <100>;
full-duplex;
};
};
eth0 shows up, loads the proper PHY driver and is all happy. eth1 shows up, says the link is up but I can’t get an IP or seemingly get it to do anything.
doing ifconfig eth1 down/up gives me:
debian@arm:~$ sudo ifconfig eth1 down
[ 1892.884530] cpsw-switch 4a100000.switch eth1: Link is Down
debian@arm:~$ sudo ifconfig eth1 up
[ 1900.470543] cpsw-switch 4a100000.switch: starting ndev. mode: dual_mac
[ 1900.490068] Generic PHY fixed-0:00: attached PHY driver (mii_bus:phy_addr=fixed-0:00, irq=POLL)
[ 1900.498953] cpsw-switch 4a100000.switch eth1: Link is Up - 100Mbps/Full - flow control off
[ 1900.524258] IPv6: ADDRCONF(NETDEV_CHANGE): eth1: link becomes ready
It really looks like it’s trying to work, I have a feeling I’m missing something silly not being much a linux networking guy.
Any thoughts?