UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Explorer
Explorer
1,551 Views
Registered: ‎05-14-2015

Ethernet PHY KSZ9031RNX

Jump to solution

Hello, We're planning to use KSZ9031RNX PHY with Zynq Ultrascale+(XCZU7EV) for 100mhz(not 1G) ethernet communication. We are wondering how about the maturity of software support for this PHY chip on both U-Boot and Linux Kernel?

 

We're planning to use Petalinux 2017.3. I'm quite new for Petalinux and want to know the exact steps to configure PetaLinux to support KSZ9031RNX.Thank you!

 

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
Moderator
Moderator
2,163 Views
Registered: ‎09-12-2007

Re: Ethernet PHY KSZ9031RNX

Jump to solution

You can see the drivers for this PHY here:

https://github.com/Xilinx/linux-xlnx/blob/master/drivers/net/phy/micrel.c

 

So this would need to be enabled in the kernel config. You will also need to add the PHY node in your devicetree,

and set the compatiblity for this driver. So, open the system-user.dtsi, and add the node (assuming you are using GEM3)

 

&gem3 {
    status = "okay";
    phy-mode = "rgmii-id";
    phy-handle = <&phy0>;

    phy0: phy@7 {
        reg = <7>;
        compatible = "micrel,ksz9031";
               device_type = "ethernet-phy";
    };
};

 

Software support for this PHY would be from the vendor.

 

 

 

 

2 Replies
Moderator
Moderator
2,164 Views
Registered: ‎09-12-2007

Re: Ethernet PHY KSZ9031RNX

Jump to solution

You can see the drivers for this PHY here:

https://github.com/Xilinx/linux-xlnx/blob/master/drivers/net/phy/micrel.c

 

So this would need to be enabled in the kernel config. You will also need to add the PHY node in your devicetree,

and set the compatiblity for this driver. So, open the system-user.dtsi, and add the node (assuming you are using GEM3)

 

&gem3 {
    status = "okay";
    phy-mode = "rgmii-id";
    phy-handle = <&phy0>;

    phy0: phy@7 {
        reg = <7>;
        compatible = "micrel,ksz9031";
               device_type = "ethernet-phy";
    };
};

 

Software support for this PHY would be from the vendor.

 

 

 

 

Explorer
Explorer
1,307 Views
Registered: ‎05-14-2015

Re: Ethernet PHY KSZ9031RNX

Jump to solution

@stephenm, Sorry to interrupt you with one more question.

How to konw the "compatible " should equal to "micrel,ksz9031"? 

 

I checked micrel.c and didn't find something like the code below which will define the "compatible" string.

static const struct of_device_id zynq_fpga_of_match[] = {
	{ .compatible = "xlnx,zynq-devcfg-1.0", },
	{},
};
0 Kudos