Skip to contentSkip to conversation

arm: mach-k3: j722s: Update SoC auto-gen data

PATCH In review Chintan Vankar 2 participants 5 messages Nov 25, 2025 – Nov 28, 2025

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm: mach-k3: j722s: Update SoC auto-gen data

Update dev-data and clk-data to fix the eMMC boot for J722s-EVM.

Fixes a02009f3a816 ("arm: mach-k3: j722s: Update SoC autogenerated data to enable Ethernet boot")

---

This patch is based on commit "4a4871e3dc38" of origin/next branch of u-boot.

 arch/arm/mach-k3/r5/j722s/clk-data.c | 12 +++++++
 arch/arm/mach-k3/r5/j722s/dev-data.c | 50 +++++++++++++++-------------
 2 files changed, 38 insertions(+), 24 deletions(-)
arch/arm/mach-k3/r5/j722s/clk-data.c +12 -0
index 238d57d0aa0..cb3d864c5a3 100644
@@ -68,6 +68,11 @@ static const char * const main_cp_gemac_cpts_clk_sel_out0_parents[] = {
 	"sam62_pll_ctrl_wrap_main_0_chip_div1_clk_clk",
 };
 
+static const char * const main_emmcsd0_refclk_sel_out0_parents[] = {
+	"postdiv4_16ff_main_0_hsdivout5_clk",
+	"hsdiv4_16fft_main_2_hsdivout2_clk",
+};
+
 static const char * const main_emmcsd1_refclk_sel_out0_parents[] = {
 	"postdiv4_16ff_main_0_hsdivout5_clk",
 	"hsdiv4_16fft_main_2_hsdivout2_clk",
@@ -106,6 +111,8 @@ static const char * const main_timerclkn_sel_out0_parents[] = {
 	NULL,
 	NULL,
 	NULL,
+	NULL,
+	NULL,
 };
 
 static const char * const wkup_clkout_sel_out0_parents[] = {
@@ -205,6 +212,7 @@ static const struct clk_data clk_list[] = {
 	CLK_MUX_PLLCTRL("sam62_pll_ctrl_wrap_mcu_0_sysclkout_clk", sam62_pll_ctrl_wrap_mcu_0_sysclkout_clk_parents, 2, 0x4020000, 0),
 	CLK_DIV("sam62_pll_ctrl_wrap_mcu_0_chip_div1_clk_clk", "sam62_pll_ctrl_wrap_mcu_0_sysclkout_clk", 0x4020118, 0, 5, 0, 0),
 	CLK_MUX("clkout0_ctrl_out0", clkout0_ctrl_out0_parents, 2, 0x108010, 0, 1, 0),
+	CLK_MUX("main_emmcsd0_refclk_sel_out0", main_emmcsd0_refclk_sel_out0_parents, 2, 0x108160, 0, 1, 0),
 	CLK_MUX("main_cp_gemac_cpts_clk_sel_out0", main_cp_gemac_cpts_clk_sel_out0_parents, 8, 0x108140, 0, 3, 0),
 	CLK_MUX("main_emmcsd1_refclk_sel_out0", main_emmcsd1_refclk_sel_out0_parents, 2, 0x108168, 0, 1, 0),
 	CLK_MUX("main_gtcclk_sel_out0", main_gtcclk_sel_out0_parents, 8, 0x43008030, 0, 3, 0),
@@ -262,6 +270,10 @@ static const struct dev_clk soc_dev_clk_data[] = {
 	DEV_CLK(36, 10, "board_0_cp_gemac_cpts0_rft_clk_out"),
 	DEV_CLK(36, 11, "hsdiv4_16fft_main_1_hsdivout3_clk"),
 	DEV_CLK(36, 12, "postdiv4_16ff_main_2_hsdivout6_clk"),
+	DEV_CLK(57, 1, "sam62_pll_ctrl_wrap_main_0_chip_div1_clk_clk"),
+	DEV_CLK(57, 2, "main_emmcsd0_refclk_sel_out0"),
+	DEV_CLK(57, 3, "postdiv4_16ff_main_0_hsdivout5_clk"),
+	DEV_CLK(57, 4, "hsdiv4_16fft_main_2_hsdivout2_clk"),
 	DEV_CLK(36, 13, "cpsw_3guss_am67_main_0_cpts_genf0"),
 	DEV_CLK(36, 14, "cpsw_3guss_am67_main_0_cpts_genf1"),
 	DEV_CLK(58, 0, "main_emmcsd1_io_clklb_sel_out0"),
arch/arm/mach-k3/r5/j722s/dev-data.c +26 -24

62 lines not on this page · raw message

Signature · 1 line
2.34.1
Tested-by on v1 1/1
#1 lore raw
Quoted 1 line · Chintan Vankar

Update dev-data and clk-data to fix the eMMC boot for J722s-EVM.

Isn't there any more information? Why was it dropped in the previous commit?

Quoted 7 lines
Fixes a02009f3a816 ("arm: mach-k3: j722s: Update SoC autogenerated data to enable Ethernet boot")

---

This patch is based on commit "4a4871e3dc38" of origin/next branch of u-boot.

This shall go into origin/master, no? The issue is present in the v2026.01-rcN.

That being said,

Thanks,
-michael

#2 lore raw

Hello Michael,

Quoted 6 lines · Michael Walle
Quoted 1 line · Chintan Vankar

Update dev-data and clk-data to fix the eMMC boot for J722s-EVM.

Isn't there any more information? Why was it dropped in the previous commit?

It was not dropped on purpose, I was enabling CPSW device and unknowingly I removed device id 57.

Quoted 6 lines
Quoted 6 lines
Fixes a02009f3a816 ("arm: mach-k3: j722s: Update SoC autogenerated data to enable Ethernet boot")

---

Quoted 6 lines
Quoted 2 lines

This patch is based on commit "4a4871e3dc38" of origin/next branch of u-boot.

This shall go into origin/master, no? The issue is present in the v2026.01-rcN.

Ack, I will rebased onto origin/master and resend.

Quoted 3 lines

That being said,

Thank you.

Regards,
Chintan.

Quoted 2 lines

Thanks,
-michael

#3 lore raw

Hello Michael,

Quoted 4 lines · Chintan Vankar

Hello Michael,

Quoted 1 line · Michael Walle

On Tue Nov 25, 2025 at 10:46 AM CET, Chintan Vankar wrote:

Quoted 22 lines
Quoted 5 lines
Quoted 1 line

Update dev-data and clk-data to fix the eMMC boot for J722s-EVM.

Isn't there any more information? Why was it dropped in the previous commit?

It was not dropped on purpose, I was enabling CPSW device and unknowingly I removed device id 57.

Quoted 12 lines
Quoted 8 lines
Fixes a02009f3a816 ("arm: mach-k3: j722s: Update SoC autogenerated data to enable Ethernet boot")

---

This patch is based on commit "4a4871e3dc38" of origin/next branch of u-boot.

This shall go into origin/master, no? The issue is present in the v2026.01-rcN.

I saw that the patch is already on top of the origin/master branch with tag "v2026.01-rc3". Can you please add "Acked-By" to unblock it for a maintainer to get it merged?

Regards,
Chintan.

Quoted 15 lines

Ack, I will rebased onto origin/master and resend.

Quoted 3 lines

That being said,

Thank you.

Regards,
Chintan.

Quoted 2 lines

Thanks,
-michael

#4 lore raw

Hi,

Quoted 11 lines
Quoted 7 lines
Quoted 6 lines
Quoted 2 lines

This patch is based on commit "4a4871e3dc38" of origin/next branch of u-boot.

This shall go into origin/master, no? The issue is present in the v2026.01-rcN.

I saw that the patch is already on top of the origin/master branch with tag "v2026.01-rc3". Can you please add "Acked-By" to unblock it for a maintainer to get it merged?

Not sure what you mean. I don't it's up to me to ack this patch. FWIW, you already have my tested-tag.

-michael