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: 
154 Views
Registered: ‎05-17-2019

Petalinux 2018.3 Kernel 4.14.0 - Device Tree Binding for PHY

Jump to solution

Hello,

I have a Z-Turn Board and would like to get my ethernet with Petalinux 2018.3 Kernel 4.14.0 running.

When I use the default generated fsbl & U-BOOT I get during the booting the following message:

macb e000b000.ethernet eth0: unable to generate target frequency: 125000000 Hz

macb e000b000.ethernet eth0: link up (1000/Full)

The Linux Kernel is compiled and it's booting, but the eth0 isn't detected correctly and no ipv4 Address gets assigned.

I think it depends on the device tree binding for the ethernet device, as in the original dtc from MYIR (Z-Turn Board) provider a PHY binding is included.

&gem0 {
compatible = "cdns,gem";
reg = <0xe000b000 0x4000>;
status = "okay";
interrupts = <0 22 4>;
interrupt-parent = <&intc>;
clocks = <&clkc 30>, <&clkc 30>, <&clkc 13>;
clock-names = "pclk", "hclk", "tx_clk";
phy-mode = "rgmii-id";
phy-handle = <&phy0>;
phy0: phy@0 {
compatible = "atheros,ar8035";
device_type = "ethernet-phy";
reg = <0>;
};
};

In the generated device tree from the Petalinux toolchain, I can't see a PHY bindning.

So I added to the system-user.dtsi the following, but it's still not detected correctly.

/include/ "system-conf.dtsi"
/ {
};
&gem0 {

phy-handle = <&phy0>;
phy0: phy@0 {
compatible = "ethernet-phy-id004d.d072";
interrupt-parent = <&intc>;
reg = <0>;
};
};

Do you have some suggestion how I can fix the problem?

0 Kudos
1 Solution

Accepted Solutions
Highlighted
119 Views
Registered: ‎05-17-2019

Re: Petalinux 2018.3 Kernel 4.14.0 - Device Tree Binding for PHY

Jump to solution

Hello,

I solved the issue by installing the complete 2017.4 toolchain (Vivado+SDK, Petalinux) :)

It seem to be the case that in the Vivado 2018.4 clock configuration is a bug, because the final PLL settings look complete different against the 2017.4.

Regards

Thomas

1 Reply
Highlighted
120 Views
Registered: ‎05-17-2019

Re: Petalinux 2018.3 Kernel 4.14.0 - Device Tree Binding for PHY

Jump to solution

Hello,

I solved the issue by installing the complete 2017.4 toolchain (Vivado+SDK, Petalinux) :)

It seem to be the case that in the Vivado 2018.4 clock configuration is a bug, because the final PLL settings look complete different against the 2017.4.

Regards

Thomas