cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Explorer
Explorer
2,752 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
Highlighted
Moderator
Moderator
3,364 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.

 

 

 

 

View solution in original post

2 Replies
Highlighted
Moderator
Moderator
3,365 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.

 

 

 

 

View solution in original post

Highlighted
Explorer
Explorer
2,508 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