Support for TL-SG3210XHP-M2 (mvebu)

I’m trying to get this device up and running. I am able to build a custom bootloader, load it, then load a custom kernel. The SOC is based on the alleycat3 (AC3) platform. SFP detection works. mvneta works. I can communicate with the PoE controllers. I just can;t get the switch fabric to work and pass data. This is truly an Ethernyet (pun intended) switch.

I assume the switch would use the prestera kernel driver. There is a “prestera_pci” drive, but this seems to be MMIO – there is no “prestera_platform” driver. So I’m a a bit stuck. I wonder if anyone has any experience getting the switching fabric to work.

I assume this is the same switch fabric as in Netgear GS110EMX

I have the same problem with upstream kernel and buildroot.

I can see the switch ports bus no traffic between
From the dts

	model = "Netgear GS110EMX";
	compatible = "netgear,gs110emx", "marvell,armada380";
...
	ethernet-switch@0 {
		compatible = "marvell,mv88e6190";
		#interrupt-cells = <2>;
...

for the record. I've found another eth interface, in the
armada-385.dtsi.
Maybe this is wrong.

Now I need to remove the dust of the device

Hmm, armada 385 seems to be a bit different. My device is closer to armada 370. I have:

	switch: switch@a8000000 {
		compatible = "simple-bus";
		#address-cells = <1>;
		#size-cells = <1>;
		ranges = <0 MBUS_ID(0x03, 0x00) 0 0x100000>;

		pp0: packet-processor@0 {
			compatible = "marvell,prestera-98dx3236", "marvell,prestera";
			reg = <0 0x4000000>;
			interrupts = <33>, <34>, <35>;
			dfx = <&dfx>;
		};
	};