mx6cuboxi: Fix Ethernet after DT sync with Linux
Subsystems (2)
Fabio Estevam
reviewerPATCH v2 1/1 mx6cuboxi: Fix Ethernet after DT sync with Linux
From: Josua Mayer <[email protected]>
The i.MX6 Cubox-i and HummingBoards can have different PHYs at varying addresses. U-Boot needs to auto-detect which phy is actually present, and at which address it is responding.
Auto-detection from multiple phy nodes specified in device-tree does not currently work correct. As a work-around merge all three possible phys into one node with the special address 0xffffffff which indicates to the generic phy driver to probe all addresses.
---
Changes since v1:
- Disable ethernet-phy at addresses 0, 1 and 4.
- Remove the fixup of the fake 0xffffff address before booting Linux.
Josua and Christian,
I got access to a imx6 humming board and I was able to test it.
This is the minimal fix I came up based on your suggestions.
There is no need to fixup of the fake 0xffffff address before booting Linux, as this fake address does not exist in Linux.
Successfully tested Ethernet in U-Boot and in the kernel.
Given that Ethernet is currently broken, I suggest we go with this version to restore Ethernet for 2024.04.
What do you think?
...qdl-hummingboard2-emmc-som-v15-u-boot.dtsi | 1 + arch/arm/dts/imx6qdl-sr-som-u-boot.dtsi | 49 +++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 arch/arm/dts/imx6qdl-sr-som-u-boot.dtsi
arch/arm/dts/imx6qdl-hummingboard2-emmc-som-v15-u-boot.dtsi +1 -0
@@ -1,6 +1,7 @@ // SPDX-License-Identifier: GPL-2.0+ #include "imx6qdl-u-boot.dtsi" +#include "imx6qdl-sr-som-u-boot.dtsi" / { board-detect {
arch/arm/dts/imx6qdl-sr-som-u-boot.dtsi new file +49 -0
49 lines not on this page · raw message
Signature · 1 line
2.34.1
Hi Fabio
Quoted 29 lines
From: Josua Mayer <[email protected]>
The i.MX6 Cubox-i and HummingBoards can have different PHYs at varying addresses. U-Boot needs to auto-detect which phy is actually present, and at which address it is responding.
Auto-detection from multiple phy nodes specified in device-tree does not currently work correct. As a work-around merge all three possible phys into one node with the special address
0xffffffffwhich indicates to the generic phy driver to probe all addresses.Signed-off-by Josua Mayer <[email protected]>[fabio: Added the changes to imx6qdl-sr-som-u-boot.dtsi.]Signed-off-by Fabio Estevam <[email protected]>Tested-by Christian Gmeiner <[email protected]>---
Changes since v1:
- Disable ethernet-phy at addresses 0, 1 and 4.
- Remove the fixup of the fake0xffffffaddress before booting Linux.Josua and Christian,
I got access to a imx6 humming board and I was able to test it.
This is the minimal fix I came up based on your suggestions.
There is no need to fixup of the fake
0xffffffaddress before booting Linux, as this fake address does not exist in Linux.
Quoted 7 lines
Successfully tested Ethernet in U-Boot and in the kernel.
Given that Ethernet is currently broken, I suggest we go with this version to restore Ethernet for 2024.04.
What do you think?
I am happy with the patch and love the idea to fix Ethernet for 2024.04.
Thanks & Regards,
Christian
Fabio Estevam
reviewerHi Tom,
Quoted 3 lines · Christian Gmeiner
I am happy with the patch and love the idea to fix Ethernet for 2024.04.
Tested-by Christian Gmeiner <[email protected]>
Could you please pick this one directly for 2024.04?
It fixes an Ethernet regression on mx6cuboxi.
Christian has tested it on i.MX6 Cuboxi and I tested it on i.MX6 Hummingboard.
Thanks
Hi Fabio,
Am 01.04.24 um 12:13 schrieb Christian Gmeiner:
Quoted 33 lines
Hi Fabio
Quoted 31 lines
From: Josua Mayer <[email protected]>
The i.MX6 Cubox-i and HummingBoards can have different PHYs at varying addresses. U-Boot needs to auto-detect which phy is actually present, and at which address it is responding.
Auto-detection from multiple phy nodes specified in device-tree does not currently work correct. As a work-around merge all three possible phys into one node with the special address
0xffffffffwhich indicates to the generic phy driver to probe all addresses.Signed-off-by Josua Mayer <[email protected]>[fabio: Added the changes to imx6qdl-sr-som-u-boot.dtsi.]Signed-off-by Fabio Estevam <[email protected]>Tested-by Christian Gmeiner <[email protected]>---
Changes since v1:
- Disable ethernet-phy at addresses 0, 1 and 4.
- Remove the fixup of the fake0xffffffaddress before booting Linux.Josua and Christian,
I got access to a imx6 humming board and I was able to test it.
This is the minimal fix I came up based on your suggestions.
There is no need to fixup of the fake
0xffffffaddress before booting Linux, as this fake address does not exist in Linux.Successfully tested Ethernet in U-Boot and in the kernel.
Quoted 9 lines
Quoted 5 lines
Given that Ethernet is currently broken, I suggest we go with this version to restore Ethernet for 2024.04.
What do you think?
I am happy with the patch and love the idea to fix Ethernet for 2024.04.
Tested-by Christian Gmeiner <[email protected]>
Patch looks good to me, too (however I don't have the hardware handy for testing version with new phy)!
Quoted 12 lines · Fabio Estevam
From: Josua Mayer <[email protected]>
The i.MX6 Cubox-i and HummingBoards can have different PHYs at varying addresses. U-Boot needs to auto-detect which phy is actually present, and at which address it is responding.
Auto-detection from multiple phy nodes specified in device-tree does not currently work correct. As a work-around merge all three possible phys into one node with the special address
0xffffffffwhich indicates to the generic phy driver to probe all addresses.
Quoted 4 lines
Signed-off-by Josua Mayer <[email protected]>[fabio: Added the changes to imx6qdl-sr-som-u-boot.dtsi.]Signed-off-by Fabio Estevam <[email protected]>Tested-by Christian Gmeiner <[email protected]>
Applied, thanks.