Texas Instruments CPSWG - acontis/atemsys GitHub Wiki
The unbind feature of the am65-cpsw-nuss Linux driver isn't supported and the atemsys kernel module must be assigned as driver for the platform device.
So the "ethernet/am654-cpsw-nuss" device tree node must be modified, by changing compatible = "atemsys"; and adding atemsys-Ident = "CPSWG"; and atemsys-Instance = <0x1>;, also remove or comment out dma-coherent;.
ethernet@46000000 {
compatible = "atemsys";
atemsys-Ident = "CPSWG";
atemsys-Instance = <0x1>;
...
#dma-coherent;
...
So the "ethernet/am642-cpsw-nuss" device tree node must be modified likewise, for one port.
ethernet@8000000 {
compatible = "atemsys";
atemsys-Ident = "CPSWG";
atemsys-Instance = <0x1>;
...
#dma-coherent;
...
For both ports: but you maybe need to adjust pinctrl.
ethernet@8000000 {
compatible = "atemsys";
atemsys-Ident = "CPSWG";
#address-cells = <0x02>;
...
ethernet-ports {
...
port@1 {
compatible = "atemsys";
atemsys-Ident = "CPSWG";
atemsys-Instance = <0x1>;
...
mdio@f00 {
...
};
};
port@2 {
compatible = "atemsys";
atemsys-Ident = "CPSWG";
atemsys-Instance = <0x2>;
...
};
};
...
};