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.

AM335x Linux driver setup for second phy in single-mac mode

Hi, I am basing a design on Beaglebone Black but with the second ethernet port available.  Would like cpsw acting as a normal switch (ALE enabled).  So the host would see only eth0 (one mac), but cpsw needs to turn on and configure both phys.  

From the datasheet it looks like the chip supports this, but I'm not sure of the fastest way to get there with Linux.    Looking in the dts files for Linux 3.8.x kernels (ie Angstrom distro shipped with the BBB and distros), I don't see how one would do this - for example in am335x-bone-common.dtsi the ethernet config has one phy for each of cpsw_eth0 and cpsw_eth1 - but dont I need cpsw_eth0 with two phys?    (Also documentation for device bindings I found here has only one phy per mac: http://git.kernel.org/cgit/linux/kernel/git/tmlind/linux-omap.git/tree/Documentation/devicetree/bindings/net/cpsw.txt )

Any pointers welcome - anybody done this with 3.8.x or other Linux?  Wondering if we'd need to change the driver in order to do it with 3.8.x, and if so maybe it's better to port an earlier kernel to our board.  Or a later one. 

Thanks and regards,

Kathryn.