diff mbox series

arm: dts: k3-j721s2-r5: Change GTC clock parent

Message ID 20240528094954.4135421-1-n-francis@ti.com
State Accepted
Commit 939f17c8a976ba9e1ea9f5f24c3d108c7175dff5
Delegated to: Tom Rini
Headers show
Series arm: dts: k3-j721s2-r5: Change GTC clock parent | expand

Commit Message

Neha Malcom Francis May 28, 2024, 9:49 a.m. UTC
MAIN_PLL0 has a flag set in DM (Device Manager) that removes its
capability to re-initialise clock frequencies. A72 CPU clock (GTC) and
RGMII has MAIN_PLL3 as their parent which does not have this flag. While
RGMII needs re-initialization to default frequency to be able to get
250MHz with its divider, GTC can not get its required 200MHz with its
dividers. Thus move GTC clock parent on J721S2 from MAIN_PLL3_HSDIV1 to
MAIN_PLL0_HSDIV6. This was already done on CPTS node in kernel which was
similarly affected (linked).

Link: https://lore.kernel.org/all/20230605110443.84568-1-n-francis@ti.com/
Signed-off-by: Neha Malcom Francis <n-francis@ti.com>
---
Boot logs: https://gist.github.com/nehamalcom/70676857dc3816a415af9861c38c76eb

 arch/arm/dts/k3-j721s2-r5.dtsi | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Tom Rini June 14, 2024, 2:54 p.m. UTC | #1
On Tue, 28 May 2024 15:19:54 +0530, Neha Malcom Francis wrote:

> MAIN_PLL0 has a flag set in DM (Device Manager) that removes its
> capability to re-initialise clock frequencies. A72 CPU clock (GTC) and
> RGMII has MAIN_PLL3 as their parent which does not have this flag. While
> RGMII needs re-initialization to default frequency to be able to get
> 250MHz with its divider, GTC can not get its required 200MHz with its
> dividers. Thus move GTC clock parent on J721S2 from MAIN_PLL3_HSDIV1 to
> MAIN_PLL0_HSDIV6. This was already done on CPTS node in kernel which was
> similarly affected (linked).
> 
> [...]

Applied to u-boot/master, thanks!
diff mbox series

Patch

diff --git a/arch/arm/dts/k3-j721s2-r5.dtsi b/arch/arm/dts/k3-j721s2-r5.dtsi
index eb0df42583a..40272abfc7c 100644
--- a/arch/arm/dts/k3-j721s2-r5.dtsi
+++ b/arch/arm/dts/k3-j721s2-r5.dtsi
@@ -22,7 +22,7 @@ 
 		resets = <&k3_reset 202 0>;
 		clocks = <&k3_clks 61 1>;
 		assigned-clocks = <&k3_clks 61 1>, <&k3_clks 202 0>;
-		assigned-clock-parents = <&k3_clks 61 2>;
+		assigned-clock-parents = <&k3_clks 61 3>;
 		assigned-clock-rates = <200000000>, <2000000000>;
 		ti,sci = <&sms>;
 		ti,sci-proc-id = <32>;