arm: dts: k3-am6: Fix Ethernet/DMA
A message that is not in the archive (sent off-list or not yet received): [email protected]
Nishanth Menon
Reviewed-byQuoted 24 lines · Roger Quadros
Hi,
Since commit [1], Ethernet is broken on TI AM62 and AM64 platforms.
The commit [1] is not the culprit. It just unearths the problem by fixing the error check in
k3-udma.c. This issue was silently being ignored earlier due to wrong error check. [NULL instead ofFDT_ADDR_T_NONE].Fix the issue by adding the necessary register spaces for the u-boot K3-UDMA driver for AM62 and AM64 platforms.
[1] -
5fecea171de3dd("treewide: use dev_read_addr_*_ptr() where appropriate")cheers,
-rogerRoger Quadros (1):
arm: dts:k3-am625-verdin-wifi-dev-u-boot.dtsi: Fix DMA/EthernetSiddharth Vadapalli (2):
arm: dts:k3-am625-sk-u-boot.dtsi: Updatemain_bcdmaandmain_pktdma
nodes
arm: dts: k3-am642: Updatemain_bcdmaandmain_pktdmanodes
Quoted 11 lines
arch/arm/dts/k3-am625-sk-u-boot.dtsi | 27 +++++++++++++++++++ .../dts/k3-am625-verdin-wifi-dev-u-boot.dtsi | 27 +++++++++++++++++++ arch/arm/dts/k3-am642-evm-u-boot.dtsi | 27 +++++++++++++++++++ arch/arm/dts/k3-am642-sk-u-boot.dtsi | 23 ++++++++++++++++ 4 files changed, 104 insertions(+)base-commit:
351da15f71e3d70dbc63e90781b403415452d864Signature · 1 line
2.34.1
Thanks for this.
NOTE: These extra properties are already in discussion in Linux community.
https://lore.kernel.org/linux-arm-kernel/[email protected]/
Marcel, could the Toradex team confirm as well?
Signature · 3 lines
Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D
Hi Nishanth
Quoted 40 lines · Nishanth Menon
Quoted 24 lines · Roger Quadros
Hi,
Since commit [1], Ethernet is broken on TI AM62 and AM64 platforms.
The commit [1] is not the culprit. It just unearths the problem by fixing the error check in
k3-udma.c. This issue was silently being ignored earlier due to wrong error check. [NULL instead ofFDT_ADDR_T_NONE].Fix the issue by adding the necessary register spaces for the u-boot K3-UDMA driver for AM62 and AM64 platforms.
[1] -
5fecea171de3dd("treewide: use dev_read_addr_*_ptr() where appropriate")cheers,
-rogerRoger Quadros (1):
arm: dts:k3-am625-verdin-wifi-dev-u-boot.dtsi: Fix DMA/EthernetSiddharth Vadapalli (2):
arm: dts:k3-am625-sk-u-boot.dtsi: Updatemain_bcdmaandmain_pktdmanodes
arm: dts: k3-am642: Updatemain_bcdmaandmain_pktdmanodesQuoted 11 lines
arch/arm/dts/k3-am625-sk-u-boot.dtsi | 27 +++++++++++++++++++ .../dts/k3-am625-verdin-wifi-dev-u-boot.dtsi | 27 +++++++++++++++++++ arch/arm/dts/k3-am642-evm-u-boot.dtsi | 27 +++++++++++++++++++ arch/arm/dts/k3-am642-sk-u-boot.dtsi | 23 ++++++++++++++++
4 files changed, 104 insertions(+)base-commit:
351da15f71e3d70dbc63e90781b403415452d864Signature · 1 line
2.34.1Thanks for this.
Quoted 8 lines
Reviewed-by Nishanth Menon <[email protected]>NOTE: These extra properties are already in discussion in Linux community.
https://lore.kernel.org/linux-arm-kernel/[email protected]/
Marcel, could the Toradex team confirm as well?
Yes, I just successfully tested it. With what you say above I also assume eventually those properties will move to the SoC dtsi rather than having to be separately defined U-Boot-specific in each and every board.
Thanks guys.
Cheers
Marcel
On 08:16-20231028, Marcel Ziswiler wrote:
[..]
Quoted 7 lines
Quoted 3 lines
https://lore.kernel.org/linux-arm-kernel/[email protected]/
Marcel, could the Toradex team confirm as well?
Yes, I just successfully tested it. With what you say above I also assume eventually those properties will move to the SoC dtsi rather than having to be separately defined U-Boot-specific in each and every board.
Correct, that is the plan once we get through the maintainers in upstream kernel.
Signature · 3 lines
Regards, Nishanth Menon Key (0xDDB5849D1736249D) / Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D
A message that is not in the archive (sent off-list or not yet received): [email protected]
Re: [PATCH 1/3] arm: dts: k3-am625-sk-u-boot.dtsi: Update main_bcdma and main_pktdma nodes
Quoted 25 lines · Roger Quadros
From: Siddharth Vadapalli <[email protected]>
Update
main_bcdmaandmain_pktdmanodes for native configuration in the absence of DM services.Reported-by Nishanth Menon <[email protected]>Signed-off-by Siddharth Vadapalli <[email protected]>Signed-off-by Roger Quadros <[email protected]>---
arch/arm/dts/k3-am625-sk-u-boot.dtsi | 27 +++++++++++++++++++++++++++1 file changed, 27 insertions(+)arch/arm/dts/k3-am625-sk-u-boot.dtsi +0
-0@@ -154,6 +154,33 @@ bootph-all; };
+&main_bcdma {arch/arm/dts/k3-am625-sk-u-boot.dtsi +4
-0+ reg = <0x00 0x485c0100 0x00 0x100>, + <0x00 0x4c000000 0x00 0x20000>, + <0x00 0x4a820000 0x00 0x20000>, + <0x00 0x4aa40000 0x00 0x20000>,
arch/arm/dts/k3-am625-sk-u-boot.dtsi
Quoted 10 lines
arch/arm/dts/k3-am625-sk-u-boot.dtsi +10
-0+ <0x00 0x4bc00000 0x00 0x100000>, + <0x00 0x48600000 0x00 0x8000>, + <0x00 0x484a4000 0x00 0x2000>, + <0x00 0x484c2000 0x00 0x2000>; + reg-names = "gcfg", "bchanrt", "rchanrt", "tchanrt", + "ringrt" , "cfg", "tchan", "rchan"; +}; + +&main_pktdma { + bootph-all;
I believe that property would usually be added as the last item of a node.
Quoted 15 lines
arch/arm/dts/k3-am625-sk-u-boot.dtsi +12
-0+ reg = <0x00 0x485c0000 0x00 0x100>, + <0x00 0x4a800000 0x00 0x20000>, + <0x00 0x4aa00000 0x00 0x20000>, + <0x00 0x4b800000 0x00 0x200000>, + <0x00 0x485e0000 0x00 0x10000>, + <0x00 0x484a0000 0x00 0x2000>, + <0x00 0x484c0000 0x00 0x2000>, + <0x00 0x48430000 0x00 0x1000>; + reg-names = "gcfg", "rchanrt", "tchanrt", "ringrt", + "cfg", "tchan", "rchan", "rflow"; +}; +&cpsw3g {
bootph-all;
ethernet-ports {
Re: [PATCH 1/3] arm: dts: k3-am625-sk-u-boot.dtsi: Update main_bcdma and main_pktdma nodes
Quoted 30 lines · Marcel Ziswiler
Quoted 29 lines · Roger Quadros
From: Siddharth Vadapalli <[email protected]>
Update
main_bcdmaandmain_pktdmanodes for native configuration in the absence of DM services.Reported-by Nishanth Menon <[email protected]>Signed-off-by Siddharth Vadapalli <[email protected]>Signed-off-by Roger Quadros <[email protected]>---
arch/arm/dts/k3-am625-sk-u-boot.dtsi | 27 +++++++++++++++++++++++++++1 file changed, 27 insertions(+)arch/arm/dts/k3-am625-sk-u-boot.dtsi +0
-0@@ -154,6 +154,33 @@ bootph-all; };
+&main_bcdma {arch/arm/dts/k3-am625-sk-u-boot.dtsi +8
-0+ reg = <0x00 0x485c0100 0x00 0x100>, + <0x00 0x4c000000 0x00 0x20000>, + <0x00 0x4a820000 0x00 0x20000>, + <0x00 0x4aa40000 0x00 0x20000>, + <0x00 0x4bc00000 0x00 0x100000>, + <0x00 0x48600000 0x00 0x8000>, + <0x00 0x484a4000 0x00 0x2000>, + <0x00 0x484c2000 0x00 0x2000>;
Quoted 8 lines
arch/arm/dts/k3-am625-sk-u-boot.dtsi
Quoted 6 lines
arch/arm/dts/k3-am625-sk-u-boot.dtsi +6
-0+ reg-names = "gcfg", "bchanrt", "rchanrt", "tchanrt", + "ringrt" , "cfg", "tchan", "rchan"; +}; + +&main_pktdma { + bootph-all;I believe that property would usually be added as the last item of a node.
OK. I'll move it to the end. Thanks.
Quoted 16 lines
Quoted 16 lines
arch/arm/dts/k3-am625-sk-u-boot.dtsi +12
-0+ reg = <0x00 0x485c0000 0x00 0x100>, + <0x00 0x4a800000 0x00 0x20000>, + <0x00 0x4aa00000 0x00 0x20000>, + <0x00 0x4b800000 0x00 0x200000>, + <0x00 0x485e0000 0x00 0x10000>, + <0x00 0x484a0000 0x00 0x2000>, + <0x00 0x484c0000 0x00 0x2000>, + <0x00 0x48430000 0x00 0x1000>; + reg-names = "gcfg", "rchanrt", "tchanrt", "ringrt", + "cfg", "tchan", "rchan", "rflow"; +}; +&cpsw3g {
bootph-all;
ethernet-ports {
Signature · 2 lines
cheers, -roger
A message that is not in the archive (sent off-list or not yet received): [email protected]
Marcel Ziswiler
Tested-byRe: [PATCH 2/3] arm: dts: k3-am625-verdin-wifi-dev-u-boot.dtsi: Fix DMA/Ethernet
Quoted 6 lines · Roger Quadros
Update
main_bcdmaandmain_pktdmanodes for native configuration in the absence of DM services. u-boot k3-udma driver expects these additional register fields else probe will fail.Reported-by Nishanth Menon <[email protected]>Signed-off-by Roger Quadros <[email protected]>
With just one minor nitpick blow.
Quoted 18 lines
---
.../dts/k3-am625-verdin-wifi-dev-u-boot.dtsi | 27 +++++++++++++++++++1 file changed, 27 insertions(+)arch/arm/dts/k3-am625-verdin-wifi-dev-u- renamed from arch/arm/dts/k3-am625-verdin-wifi-dev-u-boot.dtsi +0
-0
boot.dtsi
indexafa24d07a4..730cb21ce9100644arch/arm/dts/k3-am625-verdin-wifi-dev-u-boot.dtsi +0
-0@@ -42,6 +42,33 @@ bootph-all; };
+&main_bcdma {arch/arm/dts/k3-am625-verdin-wifi-dev-u-boot.dtsi +4
-0+ reg = <0x00 0x485c0100 0x00 0x100>, + <0x00 0x4c000000 0x00 0x20000>, + <0x00 0x4a820000 0x00 0x20000>, + <0x00 0x4aa40000 0x00 0x20000>,
arch/arm/dts/k3-am625-verdin-wifi-dev-u-boot.dtsi
Quoted 10 lines
arch/arm/dts/k3-am625-verdin-wifi-dev-u-boot.dtsi +10
-0+ <0x00 0x4bc00000 0x00 0x100000>, + <0x00 0x48600000 0x00 0x8000>, + <0x00 0x484a4000 0x00 0x2000>, + <0x00 0x484c2000 0x00 0x2000>; + reg-names = "gcfg", "bchanrt", "rchanrt", "tchanrt", + "ringrt" , "cfg", "tchan", "rchan"; +}; + +&main_pktdma { + bootph-all;
Ditto, I believe that property would usually be added as the last item of a node.
Quoted 15 lines
arch/arm/dts/k3-am625-verdin-wifi-dev-u-boot.dtsi +12
-0+ reg = <0x00 0x485c0000 0x00 0x100>, + <0x00 0x4a800000 0x00 0x20000>, + <0x00 0x4aa00000 0x00 0x20000>, + <0x00 0x4b800000 0x00 0x200000>, + <0x00 0x485e0000 0x00 0x10000>, + <0x00 0x484a0000 0x00 0x2000>, + <0x00 0x484c0000 0x00 0x2000>, + <0x00 0x48430000 0x00 0x1000>; + reg-names = "gcfg", "rchanrt", "tchanrt", "ringrt", + "cfg", "tchan", "rchan", "rflow"; +}; +&cpsw3g {
bootph-all;
};