Skip to contentSkip to conversation

arch: arm: dts: k3-r5: Drop a53_0 clock overrides in board files

PATCH In review Wadim Egorov 5 participants 5 messages Feb 19 – Mar 10 Arm (32-bit)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arch: arm: dts: k3-r5: Drop a53_0 clock overrides in board files

The a53_0 clock properties are already set correctly in their common k3-<soc>-r5.dtsi includes. Stop overriding them in the r5 board device trees.

Fixes the following error message:
Failed to set clock rates for '/a53@0': -61

---
 arch/arm/dts/k3-am625-r5-phycore-som-2gb.dts  | 5 -----
 arch/arm/dts/k3-am625-verdin-r5.dts           | 1 -
 arch/arm/dts/k3-am62a7-r5-phycore-som-2gb.dts | 5 -----
 arch/arm/dts/k3-am642-r5-phycore-som-2gb.dts  | 5 -----
 4 files changed, 16 deletions(-)
arch/arm/dts/k3-am625-r5-phycore-som-2gb.dts +0 -5
index 46b621242b5..ac6f1022a55 100644
@@ -21,11 +21,6 @@
 	};
 };
 
-&a53_0 {
-	clock-names = "gtc";
-	clocks = <&k3_clks 61 0>;
-};
-
 &main_pktdma {
 	ti,sci = <&dm_tifs>;
 };
arch/arm/dts/k3-am625-verdin-r5.dts +0 -1
index dfd960aaf3c..971bb752052 100644
@@ -24,7 +24,6 @@
 };
 
 &a53_0 {
-	clocks = <&k3_clks 61 0>;
 	/*
 	 * FIXME: Currently only the SPL running on the R5 has a clock
 	 * driver. As a workaround therefore move the assigned-clock
arch/arm/dts/k3-am62a7-r5-phycore-som-2gb.dts +0 -5
index b54cd9d48a4..c949485017e 100644
@@ -22,11 +22,6 @@
 	};
 };
 
-&a53_0 {
-	clocks = <&k3_clks 61 0>;
-	clock-names = "gtc";
-};
-
 &cbass_main {
 	bootph-pre-ram;
 	sa3_secproxy: secproxy@44880000 {
arch/arm/dts/k3-am642-r5-phycore-som-2gb.dts +0 -5
index 4b7a63db4ce..6f3a2628353 100644
@@ -21,8 +21,3 @@
 		ethernet0 = &cpsw3g;
 	};
 };
-
-&a53_0 {
-	clock-names = "gtc";
-	clocks = <&k3_clks 61 0>;
-};
Signature · 1 line
2.48.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 36 lines · Wadim Egorov

The a53_0 clock properties are already set correctly in their common k3-<soc>-r5.dtsi includes. Stop overriding them in the r5 board device trees.

Fixes the following error message:
Failed to set clock rates for '/a53@0': -61

---
 arch/arm/dts/k3-am625-r5-phycore-som-2gb.dts  | 5 -----
 arch/arm/dts/k3-am625-verdin-r5.dts           | 1 -
 arch/arm/dts/k3-am62a7-r5-phycore-som-2gb.dts | 5 -----
 arch/arm/dts/k3-am642-r5-phycore-som-2gb.dts  | 5 -----
 4 files changed, 16 deletions(-)
arch/arm/dts/k3-am625-r5-phycore-som-2gb.dts +0 -5
index 46b621242b5..ac6f1022a55 100644
@@ -21,11 +21,6 @@
 	};
 };
 
-&a53_0 {
-	clock-names = "gtc";
-	clocks = <&k3_clks 61 0>;
-};
-
 &main_pktdma {
 	ti,sci = <&dm_tifs>;
 };
arch/arm/dts/k3-am625-verdin-r5.dts +0 -0
index dfd960aaf3c..971bb752052 100644

arch/arm/dts/k3-am625-verdin-r5.dts line 29

Quoted 7 lines
arch/arm/dts/k3-am625-verdin-r5.dts +0 -1
@@ -24,7 +24,6 @@
 };
 
 &a53_0 {
-	clocks = <&k3_clks 61 0>;
 	/*
 	 * FIXME: Currently only the SPL running on the R5 has a clock
 	 * driver. As a workaround therefore move the assigned-clock

I wonder if there could be a better way to handle the hacky solution we have here and in k3-am62p5-verdin-r5 to configure the clocks for ETH_25MHz_CLK. Though that's a discussion for a separate patch, what we have here looks good to me.

Thanks for the cleanup,

Quoted 29 lines
arch/arm/dts/k3-am62a7-r5-phycore-som-2gb.dts +0 -5
index b54cd9d48a4..c949485017e 100644
@@ -22,11 +22,6 @@
 	};
 };
 
-&a53_0 {
-	clocks = <&k3_clks 61 0>;
-	clock-names = "gtc";
-};
-
 &cbass_main {
 	bootph-pre-ram;
 	sa3_secproxy: secproxy@44880000 {
arch/arm/dts/k3-am642-r5-phycore-som-2gb.dts +0 -5
index 4b7a63db4ce..6f3a2628353 100644
@@ -21,8 +21,3 @@
 		ethernet0 = &cpsw3g;
 	};
 };
-
-&a53_0 {
-	clock-names = "gtc";
-	clocks = <&k3_clks 61 0>;
-};
Reviewed-by
#2 lore raw

On February 19, 2026 thus sayeth Anshul Dalal:

Quoted 39 lines · Wadim Egorov
Quoted 38 lines

The a53_0 clock properties are already set correctly in their common k3-<soc>-r5.dtsi includes. Stop overriding them in the r5 board device trees.

Fixes the following error message:
Failed to set clock rates for '/a53@0': -61

---
 arch/arm/dts/k3-am625-r5-phycore-som-2gb.dts  | 5 -----
 arch/arm/dts/k3-am625-verdin-r5.dts           | 1 -
 arch/arm/dts/k3-am62a7-r5-phycore-som-2gb.dts | 5 -----
 arch/arm/dts/k3-am642-r5-phycore-som-2gb.dts  | 5 -----
 4 files changed, 16 deletions(-)
arch/arm/dts/k3-am625-r5-phycore-som-2gb.dts +0 -5
index 46b621242b5..ac6f1022a55 100644
@@ -21,11 +21,6 @@
 	};
 };
 
-&a53_0 {
-	clock-names = "gtc";
-	clocks = <&k3_clks 61 0>;
-};
-
 &main_pktdma {
 	ti,sci = <&dm_tifs>;
 };
arch/arm/dts/k3-am625-verdin-r5.dts +0 -0
index dfd960aaf3c..971bb752052 100644
@@ -24,7 +24,6 @@
 };
 
Quoted 10 lines

arch/arm/dts/k3-am625-verdin-r5.dts line 29

Quoted 5 lines
arch/arm/dts/k3-am625-verdin-r5.dts +0 -1
 &a53_0 {
-	clocks = <&k3_clks 61 0>;
 	/*
 	 * FIXME: Currently only the SPL running on the R5 has a clock
 	 * driver. As a workaround therefore move the assigned-clock

I wonder if there could be a better way to handle the hacky solution we have here and in k3-am62p5-verdin-r5 to configure the clocks for ETH_25MHz_CLK. Though that's a discussion for a separate patch, what we have here looks good to me.

There is but it will require us to re-think some things. The R5 SPL (before DM firmware is loaded) must use essentially a bare metal like, and very minimal, clk and lpsc driver before it can load DM along with the rest of the main domain binaries in the tispl[0]

The original idea was it could remain small enough for everyone to use regardless of board. As things have progressed though we have needed to modify the reset defaults[1], like we're doing here, or even configure different uarts[2] on other platforms if needed.

It's hard to keep increasing this tree though and still fit in the limited sram space. Maybe we should look into allowing the /board folder to override this clock and power tree if needed? IDK if that helps anything.

[0] http://source.denx.de/u-boot/u-boot/-/blob/master/arch/arm/mach-k3/r5/am62ax/clk-data.c
[1] https://lore.kernel.org/u-boot/[email protected]/
[2] https://github.com/beagleboard/u-boot/commit/c6678d3338ac2b8429028b5b36c6096761531142

~Bryan

Quoted 34 lines

Thanks for the cleanup,

Quoted 29 lines
arch/arm/dts/k3-am62a7-r5-phycore-som-2gb.dts +0 -5
index b54cd9d48a4..c949485017e 100644
@@ -22,11 +22,6 @@
 	};
 };
 
-&a53_0 {
-	clocks = <&k3_clks 61 0>;
-	clock-names = "gtc";
-};
-
 &cbass_main {
 	bootph-pre-ram;
 	sa3_secproxy: secproxy@44880000 {
arch/arm/dts/k3-am642-r5-phycore-som-2gb.dts +0 -5
index 4b7a63db4ce..6f3a2628353 100644
@@ -21,8 +21,3 @@
 		ethernet0 = &cpsw3g;
 	};
 };
-
-&a53_0 {
-	clock-names = "gtc";
-	clocks = <&k3_clks 61 0>;
-};
Tested-by on v1 1/1
#3 lore raw
In reply to Wadim Egorov

Thanks for the patch.

Quoted 8 lines · Wadim Egorov

The a53_0 clock properties are already set correctly in their common k3-<soc>-r5.dtsi includes. Stop overriding them in the r5 board device trees.

Fixes the following error message:
Failed to set clock rates for '/a53@0': -61

U-Boot SPL 2026.04-rc2-00034-gec24dd5dee18-dirty (Feb 19 2026 - 18:18:09 +0100) SYSFW ABI: 4.0 (firmware rev 0x000b '11.2.5--v11.02.05 (Fancy Rat)') Set clock rates for '/a53@0', CPU: 800MHz at Speed Grade 'K'

Francesco

#4 lore raw
In reply to Wadim Egorov
Quoted 8 lines · Wadim Egorov

The a53_0 clock properties are already set correctly in their common k3-<soc>-r5.dtsi includes. Stop overriding them in the r5 board device trees.

Fixes the following error message:
Failed to set clock rates for '/a53@0': -61

[...]

Applied to u-boot/next, thanks!

[1/1] arch: arm: dts: k3-r5: Drop a53_0 clock overrides in board files

      commit: 045fb42827cd8a24cc1024550421f867d1a954c7
Signature · 1 line
Tom