This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Adding another ethernet port fails

Hi.

We are working on a dm8148 custom board. We currently have two sfp modules coinnected through the RGMII0 and RGMII1 lines, respectivly.
We are not being able to communicate with the second port.
The sfp modules are max24287, and in their data-sheet it is mentioned that when the chip initializesit hardcodes PHYAD(dress) to 0x4.
I changed the phy_id field in the cpsw_slaves struct in arch/arm/mach-omap2/devices.c to "0:04" and i am able to communicate with one of the ports.
When anything else other that is configured in phy_id, i get a message of "phy not found" when the bringing interface up.
But i when configure both interfaces with the same phy_id, i get unexpected and unwanted behaviour.

Feels to me like i am missing something. By my understanding, we have two phys, each is on a separate bus, so there is no problem that they are both on the same address (in a different bus). But it seems to me that my configurations in devices.c for cpsw_slaves struct and ti814x_cpsw_pdata, only has effect on a single bus.

Please help.

How do i make the second port talk to the phy that is on the other bus????

P.S i have CPSW_DUAL_EMAC enabled in kernel