[meta-xilinx] Control of two PHYs from a single MAC (Device tree configuration)

Stephen Mossom stephen.mossom at calnexsol.com
Thu May 21 04:37:26 PDT 2015


Hi All



I made use of a  patch to the dizzy branch to get my Ethernet PHY detected but my configuration is slightly different. I have a second PHY which has a MDIO connection from the same MAC.



The patch is discussed here:-



https://lists.yoctoproject.org/pipermail/meta-xilinx/2015-April/000960.html



I have 2 MACS (MAC0, MAC1) and 2 PHYS (PHY0, PHY1) but one of the MACs controls both PHYs.



The MDIO for both PHY0 and PHY1 is connected to MAC1.



The GMII for PHY0 is connected to MAC0 and the GMII for PHY1 is connected to MAC1.



It's a similar setup to that discussed here....



http://forums.xilinx.com/t5/Embedded-Linux/zynq-linux-dual-emacps-gem-problem/td-p/263964/page/3



...except the PHYs are both connected to the second MAC rather than the first one.



With the device tree like this the PHY for MAC1 (ps7_ethernet_1) is detected only:-



       ps7_ethernet_0: ps7-ethernet at e000b000 {

            phy-handle = <&phy0>;

            phy-mode = "rgmii-id";

            phy0: phy at 1 {

                compatible = "marvell,88e1116r";

                device_type = "ethernet-phy";

                reg = <1>;

            } ;

        } ;

        ps7_ethernet_1: ps7-ethernet at e000c000 {

            phy-handle = <&phy1>;

            phy-mode = "rgmii-id";

            phy1: phy at 2 {

                compatible = "marvell,88e1116r";

                device_type = "ethernet-phy";

                reg = <2>;

            } ;

        } ;





I also tried this (which is something like the link in the forums) and neither PHY is detected:-



       ps7_ethernet_0: ps7-ethernet at e000b000 {

            phy-handle = <&phy0>;

            phy-mode = "rgmii-id";

        } ;

        ps7_ethernet_1: ps7-ethernet at e000c000 {

            phy-handle = <&phy1>;

            phy-mode = "rgmii-id";

            phy1: phy at 2 {

                compatible = "marvell,88e1116r";

                device_type = "ethernet-phy";

                reg = <2>;

            } ;

            phy0: phy at 1 {

                compatible = "marvell,88e1116r";

                device_type = "ethernet-phy";

                reg = <1>;

            } ;

        } ;



How do I configure the device tree to get both PHYs detected through the second MAC?



Thanks



Stephen


Stephen Mossom  |  Calnex Solutions Ltd  |  +44 (0) 1506-671-416

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-xilinx/attachments/20150521/8edd5dec/attachment.html>


More information about the meta-xilinx mailing list