1
UltraScale / Re: make two ethernet ports work with TE820
« Last post by BNT on Today at 12:40:19 PM »Hallo Oleksandr,
thanks for your answer.
“At MDIO address 5 you have GMII to RGMII core, not PHY.” => ok, I corrected reg = <5> to <0>
“You should put here an address and if possible driver settings for your real physical PHY” =>
I am not sure what Linux compatible to use for the TI DP83822
And I am not sure if the Phy requires other settings in the DT.
I tried following deviceTree-Settings:
/* Ethernet 0 */
&gem0 {
phy-handle = <&phy0>;
status = "okay";
phy-mode = "rgmii-id";
phy0: ethernet-phy@0 {
compatible = "marvell,88e1510";
device_type = "ethernet-phy";
reg = <0>;
};
};
Result: Terminaloutput while booting:
Cannot find device "eth1"
Cannot find device "eth1:1"
Cannot find device "eth1:1"
Second try:
/* Ethernet 0 */
&gem0 {
status = "okay";
phy-mode = "rgmii-id";
ethernet_phy0: ethernet-phy@0 {
compatible = "xlnx,xps-ethernetlite-1.00.a";
device_type = "ethernet-phy";
reg = <0>;
};
Result:
Both ethernets can be recognized. Still pinging Ethernet 1 is not possible.
Third try: Removing compatible
/* Ethernet 0 */
&gem0 {
status = "okay";
phy-mode = "rgmii-id";
ethernet_phy0: ethernet-phy@0 {
//compatible = "xlnx,xps-ethernetlite-1.00.a";
device_type = "ethernet-phy";
reg = <0>;
};
Result:
Cannot find device "eth1"
Cannot find device "eth1:1"
Cannot find device "eth1:1"
Still I am not able to run both Ethernets.
My questions:
1.) What is the correct compatible for TI DP83822 Phy? Or exists a compatible list, where I can check?
2.) Is there any need to mention MDIO in the devicetree?
3.) Is there any need to mention rgmii-convertion in the devicetree?
4.) At the moment I am changing devicetree, compiling and booting Linux to check what my changes effected. This workflow is very time-consuming: Is there any possibility to test changes in the devicetree without rebuilding Linuximage?
5.) Is there any need to use petalinux 2018.3? At moment I am using
Linux PetaLinux 4.14.0-xilinx-v2018.2 #1 SMP Mon Dec 9 13:09:18 CET 2019 aarch64 aarch64 aarch64 GNU/Linux
Thanks a lot!
Kind Regards
Thomas
thanks for your answer.
“At MDIO address 5 you have GMII to RGMII core, not PHY.” => ok, I corrected reg = <5> to <0>
“You should put here an address and if possible driver settings for your real physical PHY” =>
I am not sure what Linux compatible to use for the TI DP83822
And I am not sure if the Phy requires other settings in the DT.
I tried following deviceTree-Settings:
/* Ethernet 0 */
&gem0 {
phy-handle = <&phy0>;
status = "okay";
phy-mode = "rgmii-id";
phy0: ethernet-phy@0 {
compatible = "marvell,88e1510";
device_type = "ethernet-phy";
reg = <0>;
};
};
Result: Terminaloutput while booting:
Cannot find device "eth1"
Cannot find device "eth1:1"
Cannot find device "eth1:1"
Second try:
/* Ethernet 0 */
&gem0 {
status = "okay";
phy-mode = "rgmii-id";
ethernet_phy0: ethernet-phy@0 {
compatible = "xlnx,xps-ethernetlite-1.00.a";
device_type = "ethernet-phy";
reg = <0>;
};
Result:
Both ethernets can be recognized. Still pinging Ethernet 1 is not possible.
Third try: Removing compatible
/* Ethernet 0 */
&gem0 {
status = "okay";
phy-mode = "rgmii-id";
ethernet_phy0: ethernet-phy@0 {
//compatible = "xlnx,xps-ethernetlite-1.00.a";
device_type = "ethernet-phy";
reg = <0>;
};
Result:
Cannot find device "eth1"
Cannot find device "eth1:1"
Cannot find device "eth1:1"
Still I am not able to run both Ethernets.
My questions:
1.) What is the correct compatible for TI DP83822 Phy? Or exists a compatible list, where I can check?
2.) Is there any need to mention MDIO in the devicetree?
3.) Is there any need to mention rgmii-convertion in the devicetree?
4.) At the moment I am changing devicetree, compiling and booting Linux to check what my changes effected. This workflow is very time-consuming: Is there any possibility to test changes in the devicetree without rebuilding Linuximage?
5.) Is there any need to use petalinux 2018.3? At moment I am using
Linux PetaLinux 4.14.0-xilinx-v2018.2 #1 SMP Mon Dec 9 13:09:18 CET 2019 aarch64 aarch64 aarch64 GNU/Linux
Thanks a lot!
Kind Regards
Thomas