imx: add i.MX952 support
Subsystems (6)
cover imx: add i.MX952 support
CI: https://github.com/u-boot/u-boot/pull/863/checks
---
Alice Guo (8):
arm: imx: Add i.MX952 CPU type support
imx: ele_ahab: Add i.MX952 support to display_life_cycle()
imx: container: Add i.MX952 support to get_imageset_end()
arm: imx952: Add watchdog base address definitions
arm: imx9: Add i.MX952 SoC support
cpu: imx952: Add i.MX952 support
dts: upstream: arm64: freescale: Sync i.MX952 device tree from Linux
arm: dts: Add U-Boot device tree for i.MX952 EVK
Peng Fan (1):
board: nxp: imx952_evk: Add i.MX952 15x15 lpddr4x board support
Ye Li (3):
imx9: scmi: Get DDR size through SM SCMI API imx95/imx94: Remove board_phys_sdram_size from each board
pinctrl: nxp: Add i.MX952 support
arch/arm/dts/imx952-evk-u-boot.dtsi | 58 + arch/arm/dts/imx952-u-boot.dtsi | 327 ++++++ arch/arm/include/asm/arch-imx/cpu.h | 1 + arch/arm/include/asm/arch-imx9/imx-regs.h | 6 + arch/arm/include/asm/mach-imx/sys_proto.h | 11 + arch/arm/mach-imx/Makefile | 2 +- arch/arm/mach-imx/ele_ahab.c | 2 +- arch/arm/mach-imx/image-container.c | 4 +- arch/arm/mach-imx/imx9/Kconfig | 23 + arch/arm/mach-imx/imx9/scmi/common.h | 10 + arch/arm/mach-imx/imx9/scmi/soc.c | 78 +- board/nxp/imx94_evk/imx94_evk.c | 7 - board/nxp/imx952_evk/Kconfig | 12 + board/nxp/imx952_evk/MAINTAINERS | 6 + board/nxp/imx952_evk/Makefile | 14 + board/nxp/imx952_evk/imx952_evk.c | 297 +++++ board/nxp/imx952_evk/imx952_evk.env | 137 +++ board/nxp/imx952_evk/spl.c | 115 ++ board/nxp/imx95_evk/imx95_evk.c | 7 - configs/imx952_evk_defconfig | 178 +++ doc/board/nxp/imx952_evk.rst | 112 ++ doc/board/nxp/index.rst | 1 + drivers/cpu/imx8_cpu.c | 2 + drivers/pinctrl/nxp/pinctrl-imx-scmi.c | 6 +- dts/upstream/src/arm64/freescale/imx952-clock.h | 215 ++++ dts/upstream/src/arm64/freescale/imx952-evk.dts | 596 ++++++++++ dts/upstream/src/arm64/freescale/imx952-pinfunc.h | 867 ++++++++++++++ dts/upstream/src/arm64/freescale/imx952-power.h | 44 + dts/upstream/src/arm64/freescale/imx952.dtsi | 1266 +++++++++++++++++++++ include/configs/imx952_evk.h | 31 + include/scmi_protocols.h | 3 +- 31 files changed, 4404 insertions(+), 34 deletions(-)
---
base-commit: b5213bbfdcb1812be510427857827ee8becb9f8f
change-id: 20260205-imx952-dc74666fd4ab
Best regards,
Signature · 1 line
Alice Guo <[email protected]>
PATCH 1/12 imx9: scmi: Get DDR size through SM SCMI API
From: Ye Li <[email protected]>
SM has implemented MISC protocol for get DDR info. Using this API, u-boot could get DDR size instead of static configs. This will facilitate the DDR ECC enabled case which has 1/8 DDR size reserved by ECC data. SM get DDR info API provides the reduced DDR size.
To be compatible with old SM, if calling this API failed, will fall back to static configs.
--- arch/arm/include/asm/mach-imx/sys_proto.h | 10 ++++ arch/arm/mach-imx/imx9/scmi/soc.c | 76 +++++++++++++++++++++++++------ include/scmi_protocols.h | 3 +- 3 files changed, 74 insertions(+), 15 deletions(-)
arch/arm/include/asm/mach-imx/sys_proto.h +10 -0
@@ -254,6 +254,16 @@ struct scmi_rom_passover_get_out { u32 passover[(sizeof(rom_passover_t) + 8) / 4]; }; +struct scmi_ddr_info_out { +s32 status; +u32 attributes; +u32 mts; +u32 startlow; +u32 starthigh; +u32 endlow; +u32 endhigh; +}; +#endif /* For i.MX ULP */
arch/arm/mach-imx/imx9/scmi/soc.c +62 -14
93 lines not on this page · raw message
include/scmi_protocols.h +2 -1
@@ -54,7 +54,8 @@ enum scmi_discovery_id { };enum scmi_imx_misc_message_id { -SCMI_MISC_ROM_PASSOVER_GET =0x7 +SCMI_MISC_ROM_PASSOVER_GET =0x7 , +SCMI_MISC_DDR_INFO_GET =0x22 , };/*
Signature · 1 line
2.43.0
Re: [PATCH v1 01/12] imx9: scmi: Get DDR size through SM SCMI API
Quoted 24 lines · On Thu, Feb 05, 2026 at 09:55:07PM +0800, [email protected] wrote:
From: Ye Li <[email protected]>
SM has implemented MISC protocol for get DDR info. Using this API, u-boot could get DDR size instead of static configs. This will facilitate the DDR ECC enabled case which has 1/8 DDR size reserved by ECC data. SM get DDR info API provides the reduced DDR size.
To be compatible with old SM, if calling this API failed, will fall back to static configs.Signed-off-by Ye Li <[email protected]>Signed-off-by Alice Guo <[email protected]>---
arch/arm/include/asm/mach-imx/sys_proto.h | 10 ++++ arch/arm/mach-imx/imx9/scmi/soc.c | 76 +++++++++++++++++++++++++------ include/scmi_protocols.h | 3 +- 3 files changed, 74 insertions(+), 15 deletions(-)arch/arm/include/asm/mach-imx/sys_proto.h +0
-0@@ -254,6 +254,16 @@ struct scmi_rom_passover_get_out {u32 passover[(sizeof (rom_passover_t) +8 ) /4 ]; };
arch/arm/include/asm/mach-imx/sys_proto.h struct scmi_rom_passover_get_out { · line 265
Quoted 10 lines
arch/arm/include/asm/mach-imx/sys_proto.h +9
-0+struct scmi_ddr_info_out { +s32 status; +u32 attributes; +u32 mts; +u32 startlow; +u32 starthigh; +u32 endlow; +u32 endhigh; +};
Add comment to explain the fields of the structure.
Quoted 17 lines
arch/arm/include/asm/mach-imx/sys_proto.h +1
-0+#endif /* For i.MX ULP */ arch/arm/mach-imx/imx9/scmi/soc.c +5
-0@@ -58,6 +58,35 @@ uint32_t scmi_get_rom_data(rom_passover_t *rom_data)return 0 ; } +int scmi_misc_ddrinfo (u32 ddrc_id,struct scmi_ddr_info_out *out) +{ +u32 in = ddrc_id; +struct scmi_msg msg = { + .protocol_id =SCMI_PROTOCOL_ID_IMX_MISC ,
arch/arm/mach-imx/imx9/scmi/soc.c uint32_t scmi_get_rom_data(rom_passover_t *rom_data) · line 75
Quoted 10 lines
arch/arm/mach-imx/imx9/scmi/soc.c +10
-0+ .message_id = SCMI_MISC_DDR_INFO_GET, + .in_msg = (u8 *)&in, + .in_msg_sz = sizeof(in), + .out_msg = (u8 *)out, + .out_msg_sz = sizeof(*out), + }; +int ret; +struct udevice *dev; + +memset (out,0 ,sizeof (*out));
This could be done in caller by set an initialization value to 0.
Quoted 18 lines
arch/arm/mach-imx/imx9/scmi/soc.c +14
-0+ ret =uclass_get_device_by_name (UCLASS_CLK ,"protocol@14" , &dev); +if (ret) +return ret; + + ret =devm_scmi_process_msg (dev, &msg); +if (ret !=0 || out->status !=0 ) { +printf ("Failed to get ddr cfg, scmi_err = %d\n" , + out->status); +return -EINVAL ; + } + +return 0 ; +} +#if IS_ENABLED (CONFIG_ENV_IS_IN_MMC )__weak int board_mmc_get_env_dev (int devno) {
arch/arm/mach-imx/imx9/scmi/soc.c void enable_caches(void) · line 367
Quoted 4 lines
arch/arm/mach-imx/imx9/scmi/soc.c +1
-0@@ -335,25 +364,44 @@ void enable_caches(void)__weak int board_phys_sdram_size (phys_size_t *size) { +struct scmi_ddr_info_out ddr_info;
Init with "= { 0 }"
Quoted 20 lines
arch/arm/mach-imx/imx9/scmi/soc.c +2
-13+int ret; +u32 ddrc_id =0 , ddrc_num =1 ;phys_size_t start, end; -phys_size_t val;if (!size)return -EINVAL ; - val =readl (REG_DDR_CS0_BNDS ); - start = (val >>16 ) <<24 ; - end = (val &0xFFFF ); - end = end ? end +1 :0 ; - end = end <<24 ; - *size = end - start; - - val =readl (REG_DDR_CS1_BNDS ); - start = (val >>16 ) <<24 ; - end = (val &0xFFFF ); - end = end ? end +1 :0 ; - end = end <<24 ;
arch/arm/mach-imx/imx9/scmi/soc.c void enable_caches(void) · line 383
Quoted 10 lines
arch/arm/mach-imx/imx9/scmi/soc.c +9
-1- *size += end - start; + *size =0 ; + do { + ret = scmi_misc_ddrinfo(ddrc_id++, &ddr_info); + if (ret) { + /* if get DDR info failed, fall to default config */ + *size = PHYS_SDRAM_SIZE; +#ifdef PHYS_SDRAM_2_SIZE + *size += PHYS_SDRAM_2_SIZE; +#endif
You dropped the method of directly reading REG_DDR_CS[0,1]_BNDS but switch to using PHYS_SDRAM[x]_SIZE, and commit log does not mention it.
Quoted 11 lines
arch/arm/mach-imx/imx9/scmi/soc.c +11
-0+return 0 ; + }else { + ddrc_num = ((ddr_info.attributes >>16 ) &0x3 ); + start = ddr_info.starthigh; + start <<=32 ; + start += ddr_info.startlow; + + end = ddr_info.endhigh; + end <<=32 ; + end += ddr_info.endlow; +
arch/arm/mach-imx/imx9/scmi/soc.c void enable_caches(void) · line 404
Quoted 10 lines
arch/arm/mach-imx/imx9/scmi/soc.c +10
-0+ *size += end +1 - start; + +debug ("ddr info attr 0x%x, start 0x%x 0x%x, end 0x%x 0x%x, mts %u\n" , + ddr_info.attributes, ddr_info.starthigh, ddr_info.startlow, + ddr_info.endhigh, ddr_info.endlow, ddr_info.mts); + } + }while (ddrc_id < ddrc_num); + +/* SM reports total DDR size, need remove secure memory */ + *size -=PHYS_SDRAM -0x80000000 ;
secure memory size is 2GB? Need to mention in commit log or at the place of struct scmi_ddr_info_out definition about this behavior.
Regards
Peng
PATCH 2/12 imx95/imx94: Remove board_phys_sdram_size from each board
In reply to [email protected]From: Ye Li <[email protected]>
Change to use default board_phys_sdram_size implementation in soc.c, which will call SM API to get DDR size.
If board has special implementation for DDR size, then board_phys_sdram_size could be implemented in board file to override the default one in soc.c.
--- board/nxp/imx94_evk/imx94_evk.c | 7 ------- board/nxp/imx95_evk/imx95_evk.c | 7 ------- 2 files changed, 14 deletions(-)
board/nxp/imx94_evk/imx94_evk.c +0 -7
@@ -32,10 +32,3 @@ int board_late_init(void)return 0 ; } - -int board_phys_sdram_size (phys_size_t *size) -{ - *size =PHYS_SDRAM_SIZE +PHYS_SDRAM_2_SIZE ; - -return 0 ; -}
board/nxp/imx95_evk/imx95_evk.c +0 -7
@@ -22,10 +22,3 @@ int board_late_init(void)return 0 ; } - -int board_phys_sdram_size (phys_size_t *size) -{ - *size =PHYS_SDRAM_SIZE +PHYS_SDRAM_2_SIZE ; - -return 0 ; -}
Signature · 1 line
2.43.0
Re: [PATCH v1 02/12] imx95/imx94: Remove board_phys_sdram_size from each board
Quoted 10 lines · On Thu, Feb 05, 2026 at 09:55:08PM +0800, [email protected] wrote:
From: Ye Li <[email protected]>
Change to use default
board_phys_sdram_sizeimplementation insoc.c, which will call SM API to get DDR size.If board has special implementation for DDR size, then
board_phys_sdram_sizecould be implemented in board file to override the default one insoc.c.Signed-off-by Ye Li <[email protected]>Signed-off-by Alice Guo <[email protected]>
PATCH 3/12 pinctrl: nxp: Add i.MX952 support
In reply to [email protected]From: Ye Li <[email protected]>
Multiple pads can drive the same module input pin, and a daisy chain register is used to select the active input path. This patch defines DAISY_OFFSET_IMX952 (0x460) and allows binding on i.MX952.
--- drivers/pinctrl/nxp/pinctrl-imx-scmi.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-)
drivers/pinctrl/nxp/pinctrl-imx-scmi.c +5 -1
@@ -17,6 +17,7 @@#define DAISY_OFFSET_IMX95 0x408#define DAISY_OFFSET_IMX94 0x608 +#define DAISY_OFFSET_IMX952 0x460/* SCMI pin control types */ #define PINCTRL_TYPE_MUX 192
@@ -136,6 +137,8 @@ static int imx_scmi_pinctrl_probe(struct udevice *dev) priv->daisy_offset =DAISY_OFFSET_IMX95 ; else if (IS_ENABLED(CONFIG_IMX94)) priv->daisy_offset = DAISY_OFFSET_IMX94; + else if (IS_ENABLED(CONFIG_IMX952)) + priv->daisy_offset = DAISY_OFFSET_IMX952; else return -EINVAL;
@@ -144,7 +147,8 @@ static int imx_scmi_pinctrl_probe(struct udevice *dev)static int imx_scmi_pinctrl_bind (struct udevice *dev) { -if (IS_ENABLED (CONFIG_IMX95 ) ||IS_ENABLED (CONFIG_IMX94 )) +if (IS_ENABLED (CONFIG_IMX95 ) ||IS_ENABLED (CONFIG_IMX94 ) || +IS_ENABLED (CONFIG_IMX952 ))return 0 ;return -ENODEV ;
Signature · 1 line
2.43.0
Re: [PATCH v1 03/12] pinctrl: nxp: Add i.MX952 support
Quoted 8 lines · On Thu, Feb 05, 2026 at 09:55:09PM +0800, [email protected] wrote:
From: Ye Li <[email protected]>
Multiple pads can drive the same module input pin, and a daisy chain register is used to select the active input path. This patch defines
DAISY_OFFSET_IMX952(0x460) and allows binding on i.MX952.Signed-off-by Ye Li <[email protected]>Signed-off-by Alice Guo <[email protected]>
PATCH 4/12 arm: imx: Add i.MX952 CPU type support
In reply to [email protected]From: Alice Guo <[email protected]>
Add CPU type definition and detection macro for i.MX952 SoC.
--- arch/arm/include/asm/arch-imx/cpu.h | 1 + arch/arm/include/asm/mach-imx/sys_proto.h | 1 + 2 files changed, 2 insertions(+)
arch/arm/include/asm/arch-imx/cpu.h +1 -0
@@ -79,6 +79,7 @@#define MXC_CPU_IMX95 0x1C1/* dummy ID */ #define MXC_CPU_IMX94 0x1C2/* dummy ID */ +#define MXC_CPU_IMX952 0x1C3/* dummy ID */ #define MXC_SOC_MX6 0x60#define MXC_SOC_MX7 0x70
arch/arm/include/asm/mach-imx/sys_proto.h +1 -0
@@ -99,6 +99,7 @@ struct bd_info;#define is_imx94 () (is_cpu_type(MXC_CPU_IMX94))#define is_imx95 () (is_cpu_type(MXC_CPU_IMX95)) +#define is_imx952 () (is_cpu_type(MXC_CPU_IMX952))#define is_imx9121 () (is_cpu_type(MXC_CPU_IMX9121))#define is_imx9111 () (is_cpu_type(MXC_CPU_IMX9111))
Signature · 1 line
2.43.0
Re: [PATCH v1 04/12] arm: imx: Add i.MX952 CPU type support
Quoted 5 lines · On Thu, Feb 05, 2026 at 09:55:10PM +0800, [email protected] wrote:
From: Alice Guo <[email protected]>
Add CPU type definition and detection macro for i.MX952 SoC.
Signed-off-by Alice Guo <[email protected]>
PATCH 5/12 imx: ele_ahab: Add i.MX952 support to display_life_cycle()
In reply to [email protected]From: Alice Guo <[email protected]>
Extend display_life_cycle() to support i.MX952.
--- arch/arm/mach-imx/ele_ahab.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm/mach-imx/ele_ahab.c +1 -1
@@ -411,7 +411,7 @@ static int do_authenticate(struct cmd_tbl *cmdtp, int flag, int argc,return CMD_RET_SUCCESS ; } -#if IS_ENABLED (CONFIG_IMX95 ) ||IS_ENABLED (CONFIG_IMX94 ) +#if IS_ENABLED (CONFIG_IMX95 ) ||IS_ENABLED (CONFIG_IMX94 ) ||IS_ENABLED (CONFIG_IMX952 )#define FSB_LC_OFFSET 0x414#define LC_OEM_OPEN 0x10static void display_life_cycle (u32 lc)
Signature · 1 line
2.43.0
Re: [PATCH v1 05/12] imx: ele_ahab: Add i.MX952 support to display_life_cycle()
Quoted 5 lines · On Thu, Feb 05, 2026 at 09:55:11PM +0800, [email protected] wrote:
From: Alice Guo <[email protected]>
Extend
display_life_cycle()to support i.MX952.Signed-off-by Alice Guo <[email protected]>
PATCH 6/12 imx: container: Add i.MX952 support to get_imageset_end()
In reply to [email protected]From: Alice Guo <[email protected]>
Extend get_imageset_end() to handle i.MX952.
--- arch/arm/mach-imx/image-container.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
arch/arm/mach-imx/image-container.c +2 -2
@@ -297,7 +297,7 @@ static ulong get_imageset_end(void *dev, int dev_type)debug ("seco container size 0x%x\n" , value_container[0 ]); -if (is_imx95 () ||is_imx94 ()) { +if (is_imx95 () ||is_imx94 () ||is_imx952 ()) { offset[1 ] =ALIGN (hdr_length,CONTAINER_HDR_ALIGNMENT ) + offset[0 ]; value_container[1 ] =get_dev_container_size (dev, dev_type, offset[1 ], &hdr_length, &v2x_fw);
@@ -321,7 +321,7 @@ static ulong get_imageset_end(void *dev, int dev_type) value_container[2 ] =get_dev_container_size (dev, dev_type, offset[2 ], &hdr_length,NULL );if (value_container[2 ] <0 ) {debug ("Parse scu container image failed %d, only seco container\n" , value_container[2 ]); -if (is_imx95 () ||is_imx94 ()) +if (is_imx95 () ||is_imx94 () ||is_imx952 ())return value_container[1 ] + offset[1 ];/* return seco + v2x container total size */ else return value_container[0 ] + offset[0 ];/* return seco container total size */
Signature · 1 line
2.43.0
Re: [PATCH v1 06/12] imx: container: Add i.MX952 support to get_imageset_end()
Quoted 5 lines · On Thu, Feb 05, 2026 at 09:55:12PM +0800, [email protected] wrote:
From: Alice Guo <[email protected]>
Extend
get_imageset_end()to handle i.MX952.Signed-off-by Alice Guo <[email protected]>
PATCH 7/12 arm: imx952: Add watchdog base address definitions
In reply to [email protected]From: Alice Guo <[email protected]>
Add WDG3, WDG4 and WDG5 base addresses for i.MX952.
--- arch/arm/include/asm/arch-imx9/imx-regs.h | 6 ++++++ 1 file changed, 6 insertions(+)
arch/arm/include/asm/arch-imx9/imx-regs.h +6 -0
@@ -17,6 +17,11 @@#define ANATOP_BASE_ADDR 0x44480000UL +#ifdef CONFIG_IMX952 +#define WDG3_BASE_ADDR 0x420b0000UL +#define WDG4_BASE_ADDR 0x420c0000UL +#define WDG5_BASE_ADDR 0x420d0000UL +#else #ifdef CONFIG_IMX94 #define WDG3_BASE_ADDR 0x49220000UL#define WDG4_BASE_ADDR 0x49230000UL
@@ -25,6 +30,7 @@#define WDG4_BASE_ADDR 0x424a0000UL#endif #define WDG5_BASE_ADDR 0x424b0000UL +#endif #define GPIO2_BASE_ADDR 0x43810000UL#define GPIO3_BASE_ADDR 0x43820000UL
Signature · 1 line
2.43.0
Re: [PATCH v1 07/12] arm: imx952: Add watchdog base address definitions
Quoted 5 lines · On Thu, Feb 05, 2026 at 09:55:13PM +0800, [email protected] wrote:
From: Alice Guo <[email protected]>
Add WDG3, WDG4 and WDG5 base addresses for i.MX952.
Signed-off-by Alice Guo <[email protected]>
Fabio Estevam
maintainerRe: [PATCH v1 07/12] arm: imx952: Add watchdog base address definitions
In reply to [email protected]Hi Alice,
Quoted 27 lines · On Thu, Feb 5, 2026 at 12:16 PM <[email protected]> wrote:
From: Alice Guo <[email protected]>
Add WDG3, WDG4 and WDG5 base addresses for i.MX952.
Signed-off-by Alice Guo <[email protected]>--- arch/arm/include/asm/arch-imx9/imx-regs.h | 6 ++++++ 1 file changed, 6 insertions(+)arch/arm/include/asm/arch-imx9/imx-regs.h +5
-0@@ -17,6 +17,11 @@#define ANATOP_BASE_ADDR 0x44480000UL +#ifdef CONFIG_IMX952 +#define WDG3_BASE_ADDR 0x420b0000UL +#define WDG4_BASE_ADDR 0x420c0000UL +#define WDG5_BASE_ADDR 0x420d0000UL +#else #ifdef CONFIG_IMX94 #define WDG3_BASE_ADDR 0x49220000UL#define WDG4_BASE_ADDR 0x49230000UL
arch/arm/include/asm/arch-imx9/imx-regs.h line 33
Quoted 4 lines
arch/arm/include/asm/arch-imx9/imx-regs.h +1
-0@@ -25,6 +30,7 @@#define WDG4_BASE_ADDR 0x424a0000UL#endif #define WDG5_BASE_ADDR 0x424b0000UL +#endif
Can we improve this and retrieve the watchdog base address from the devicetree?
回复: [PATCH v1 07/12] arm: imx952: Add watchdog base address definitions
Quoted 47 lines
-----邮件原件-----
发件人: Fabio Estevam <[email protected]>
发送时间: 2026年2月6日 11:59
收件人: Alice Guo (OSS) <[email protected]>
抄送: dl-uboot-imx <[email protected]>; [email protected]; Stefano Babic <[email protected]>; Tom Rini <[email protected]>; Peng Fan <[email protected]>; Ye Li <[email protected]>; Jindong Yue <[email protected]>; Jacky Bai <[email protected]>; Marek Vasut <[email protected]>; Rasmus Villemoes <[email protected]>; Ross, Fedor <[email protected]>; João Paulo Gonçalves <[email protected]>; Patrice Chotard <[email protected]>; Valentin Caron <[email protected]>; Vinh Nguyen <[email protected]>; Sam Protsenko <[email protected]>; Ranjani Vaidyanathan <[email protected]>; Ji Luo <[email protected]>; Frank Li <[email protected]>; Sumit Garg <[email protected]>; Adam Ford <[email protected]>; Frieder Schrempf <[email protected]>; David Zang <[email protected]>; Andrew Goodbody <[email protected]>; Sumit Garg <[email protected]>; Marek Vasut <[email protected]>; Joseph Guo <[email protected]>; [email protected]; Alice Guo <[email protected]>
主题: Re: [PATCH v1 07/12] arm: imx952: Add watchdog base address definitionsHi Alice,
Review
Quoted 11 lines · On Thu, Feb 5, 2026 at 12:16 PM <[email protected]> wrote:
From: Alice Guo <[email protected]>
Add WDG3, WDG4 and WDG5 base addresses for i.MX952.
Signed-off-by Alice Guo <[email protected]>--- arch/arm/include/asm/arch-imx9/imx-regs.h | 6 ++++++ 1 file changed, 6 insertions(+)(quoted diff) +0
-0
b/arch/arm/include/asm/arch-imx9/imx-regs.hQuoted 7 lines
index
2d084e5227a..7c7a34f74af100644arch/arm/include/asm/arch-imx9/imx-regs.h +0
-0@@ -17,6 +17,11 @@#define ANATOP_BASE_ADDR 0x44480000UL
Quoted 16 lines
arch/arm/include/asm/arch-imx9/imx-regs.h line 33
Quoted 13 lines
arch/arm/include/asm/arch-imx9/imx-regs.h +6
-0+#ifdef CONFIG_IMX952 +#define WDG3_BASE_ADDR 0x420b0000UL +#define WDG4_BASE_ADDR 0x420c0000UL +#define WDG5_BASE_ADDR 0x420d0000UL +#else #ifdef CONFIG_IMX94 #define WDG3_BASE_ADDR 0x49220000UL#define WDG4_BASE_ADDR 0x49230000UL@@ -25,6 +30,7 @@#define WDG4_BASE_ADDR 0x424a0000UL#endif #define WDG5_BASE_ADDR 0x424b0000UL +#endif Can we improve this and retrieve the watchdog base address from the devicetree?
Hi Fabio,
Thanks for the suggestion. Using the device tree would be cleaner, but this patch follows the existing i.MX9 imx-regs.h pattern. I suggest we merge this patch to keep consistency with the current codebase. Thoughts?
Best regards,
Alice Guo
Fabio Estevam
maintainerRe: [PATCH v1 07/12] arm: imx952: Add watchdog base address definitions
Hi Alice,
Quoted 3 lines · Alice Guo (OSS)
Hi Fabio,
Thanks for the suggestion. Using the device tree would be cleaner, but this patch follows the existing i.MX9
imx-regs.hpattern. I suggest we merge this patch to keep consistency with the current codebase. Thoughts?
If we always follow the existing codebase, we'll never improve it.
Please try retrieving the watchdog base from the devicetree, so we can make the code better.
Thanks
PATCH 8/12 arm: imx9: Add i.MX952 SoC support
In reply to [email protected]From: Alice Guo <[email protected]>
Add basic SoC support for i.MX952:
- Add CONFIG_IMX952 Kconfig option
- Include i.MX952 clock and power headers
- Set CPU speed grade to 1.7GHz for i.MX952
--- arch/arm/mach-imx/imx9/Kconfig | 9 +++++++++ arch/arm/mach-imx/imx9/scmi/common.h | 10 ++++++++++ arch/arm/mach-imx/imx9/scmi/soc.c | 2 ++ 3 files changed, 21 insertions(+)
arch/arm/mach-imx/imx9/Kconfig +9 -0
@@ -47,6 +47,15 @@ config IMX94 select SCMI_FIRMWARE select SPL_IMX_CONTAINER_USE_TRAMPOLINE +config IMX952 + bool + select ARMV8_SPL_EXCEPTION_VECTORS + select DM_MAILBOX + select IMX9 + select IMX_PQC_SUPPORT + select SCMI_FIRMWARE + select SPL_IMX_CONTAINER_USE_TRAMPOLINE + config SYS_SOC default "imx9"
arch/arm/mach-imx/imx9/scmi/common.h +10 -0
@@ -21,6 +21,16 @@#define IMX95_PD_M70 IMX95_PD_M7#endif +#ifdef CONFIG_IMX952 +#define IMX_PLAT 952 +#include <imx952-clock.h> +#include <imx952-power.h> + +#define IMX952_CLK_SEL_A55C0 IMX952_CLK_GPR_SEL_A55C0 +#define IMX952_PD_M70 IMX952_PD_M7 +#define IMX952_CLK_FLEXSPI1 IMX952_CLK_XSPI1 +#define IMX952_CLK_24M IMX952_CLK_OSC24M +#endif #define IMX_PLAT_STR__ (plat) # plat#define IMX_PLAT_STR_ (IMX_PLAT ) IMX_PLAT_STR__(IMX_PLAT)
arch/arm/mach-imx/imx9/scmi/soc.c +2 -0
@@ -154,6 +154,8 @@ u32 get_cpu_speed_grade_hz(void)if (is_imx95 ()) max_speed =2000000000 ; +if (is_imx952 ()) + max_speed =1700000000 ;/* In case the fuse of speed grade not programmed */ if (speed > max_speed)
Signature · 1 line
2.43.0
Re: [PATCH v1 08/12] arm: imx9: Add i.MX952 SoC support
Quoted 8 lines · On Thu, Feb 05, 2026 at 09:55:14PM +0800, [email protected] wrote:
From: Alice Guo <[email protected]>
Add basic SoC support for i.MX952:
- AddCONFIG_IMX952Kconfigoption
- Include i.MX952 clock and power headers
- Set CPU speed grade to 1.7GHz for i.MX952Signed-off-by Alice Guo <[email protected]>
Re: [PATCH v1 08/12] arm: imx9: Add i.MX952 SoC support
In reply to [email protected]Quoted 7 lines · On Thu, Feb 5, 2026 at 9:16 AM <[email protected]> wrote:
From: Alice Guo <[email protected]>
Add basic SoC support for i.MX952:
- AddCONFIG_IMX952Kconfigoption
- Include i.MX952 clock and power headers
- Set CPU speed grade to 1.7GHz for i.MX952
Quoted 8 lines
Signed-off-by Alice Guo <[email protected]>--- arch/arm/mach-imx/imx9/Kconfig | 9 +++++++++ arch/arm/mach-imx/imx9/scmi/common.h | 10 ++++++++++ arch/arm/mach-imx/imx9/scmi/soc.c | 2 ++ 3 files changed, 21 insertions(+)
David
PATCH 9/12 cpu: imx952: Add i.MX952 support
In reply to [email protected]From: Alice Guo <[email protected]>
This patch is used to add the imx type string of i.MX952 ao that the i.MX952 CPU info can be printed.
--- drivers/cpu/imx8_cpu.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/cpu/imx8_cpu.c +2 -0
@@ -115,6 +115,8 @@ static const char *get_imx_type_str(u32 imxtype)return "95" ;case MXC_CPU_IMX94 :return "94" ; +case MXC_CPU_IMX952 : +return "952" ;default :return "??" ; }
Signature · 1 line
2.43.0
Re: [PATCH v1 09/12] cpu: imx952: Add i.MX952 support
Quoted 3 lines · On Thu, Feb 05, 2026 at 09:55:15PM +0800, [email protected] wrote:
From: Alice Guo <[email protected]>
This patch is used to add the imx type string of i.MX952 ao that the
ao->so
Quoted 2 lines
i.MX952 CPU info can be printed.
Regards,
Peng
PATCH 10/12 dts: upstream: arm64: freescale: Sync i.MX952 device tree from Linux
In reply to [email protected]From: Alice Guo <[email protected]>
Sync i.MX952 device tree files from linux-next next-20260202:
- Add imx952.dtsi for SoC
- Add imx952-evk.dts for i.MX952 EVK board
- Add imx952-*.h headers for clock, pinctrl and power
Imported from linux-next commit 193579fe0138 ("Add linux-next specific ifiles for 20260202")
--- dts/upstream/src/arm64/freescale/imx952-clock.h | 215 ++++ dts/upstream/src/arm64/freescale/imx952-evk.dts | 596 ++++++++++ dts/upstream/src/arm64/freescale/imx952-pinfunc.h | 867 ++++++++++++++ dts/upstream/src/arm64/freescale/imx952-power.h | 44 + dts/upstream/src/arm64/freescale/imx952.dtsi | 1266 +++++++++++++++++++++ 5 files changed, 2988 insertions(+)
dts/upstream/src/arm64/freescale/imx952-clock.h new file +215 -0
@@ -0,0 +1,215 @@ +/* SPDX-License-Identifier: GPL-2.0-only OR MIT */ +/* +* Copyright 2025 NXP +*/ + +#ifndef __CLOCK_IMX952_H__ +#define __CLOCK_IMX952_H__ + +/* Clock Source */ +#define IMX952_CLK_EXT 0 +#define IMX952_CLK_OSC32K 1 +#define IMX952_CLK_OSC24M 2 +#define IMX952_CLK_FRO 3 +#define IMX952_CLK_SYSPLL1_VCO 4 +#define IMX952_CLK_SYSPLL1_PFD0_UNGATED 5 +#define IMX952_CLK_SYSPLL1_PFD0 6 +#define IMX952_CLK_SYSPLL1_PFD0_DIV2 7 +#define IMX952_CLK_SYSPLL1_PFD1_UNGATED 8 +#define IMX952_CLK_SYSPLL1_PFD1 9 +#define IMX952_CLK_SYSPLL1_PFD1_DIV2 10 +#define IMX952_CLK_SYSPLL1_PFD2_UNGATED 11 +#define IMX952_CLK_SYSPLL1_PFD2 12 +#define IMX952_CLK_SYSPLL1_PFD2_DIV2 13 +#define IMX952_CLK_AUDIOPLL1_VCO 14 +#define IMX952_CLK_AUDIOPLL1 15 +#define IMX952_CLK_AUDIOPLL2_VCO 16 +#define IMX952_CLK_AUDIOPLL2 17 +#define IMX952_CLK_VIDEOPLL1_VCO 18 +#define IMX952_CLK_VIDEOPLL1 19 +#define IMX952_CLK_SRC_RESERVED20 20 +#define IMX952_CLK_SYSPLL1_PFD3_UNGATED 21 +#define IMX952_CLK_SYSPLL1_PFD3 22 +#define IMX952_CLK_SYSPLL1_PFD3_DIV2 23 +#define IMX952_CLK_ARMPLL_VCO 24 +#define IMX952_CLK_ARMPLL_PFD0_UNGATED 25 +#define IMX952_CLK_ARMPLL_PFD0 26 +#define IMX952_CLK_ARMPLL_PFD1_UNGATED 27 +#define IMX952_CLK_ARMPLL_PFD1 28 +#define IMX952_CLK_ARMPLL_PFD2_UNGATED 29 +#define IMX952_CLK_ARMPLL_PFD2 30 +#define IMX952_CLK_ARMPLL_PFD3_UNGATED 31 +#define IMX952_CLK_ARMPLL_PFD3 32 +#define IMX952_CLK_DRAMPLL_VCO 33 +#define IMX952_CLK_DRAMPLL 34 +#define IMX952_CLK_HSIOPLL_VCO 35 +#define IMX952_CLK_HSIOPLL 36 +#define IMX952_CLK_LDBPLL_VCO 37 +#define IMX952_CLK_LDBPLL 38 +#define IMX952_CLK_EXT1 39 +#define IMX952_CLK_EXT2 40 + +/* Clock ROOT */ +#define IMX952_CLK_ADC 41 +#define IMX952_CLK_RESERVED1 42 +#define IMX952_CLK_BUSAON 43 +#define IMX952_CLK_CAN1 44 +#define IMX952_CLK_RESERVED4 45 +#define IMX952_CLK_I3C1SLOW 46 +#define IMX952_CLK_LPI2C1 47 +#define IMX952_CLK_LPI2C2 48 +#define IMX952_CLK_LPSPI1 49 +#define IMX952_CLK_LPSPI2 50 +#define IMX952_CLK_LPTMR1 51 +#define IMX952_CLK_LPUART1 52 +#define IMX952_CLK_LPUART2 53 +#define IMX952_CLK_M33 54 +#define IMX952_CLK_M33SYSTICK 55 +#define IMX952_CLK_RESERVED15 56 +#define IMX952_CLK_PDM 57 +#define IMX952_CLK_SAI1 58 +#define IMX952_CLK_RESERVED18 59 +#define IMX952_CLK_TPM2 60 +#define IMX952_CLK_RESERVED20 61 +#define IMX952_CLK_CAMAPB 62 +#define IMX952_CLK_CAMAXI 63 +#define IMX952_CLK_CAMCM0 64 +#define IMX952_CLK_CAMISI 65 +#define IMX952_CLK_CAMPHYCFG 66 +#define IMX952_CLK_MIPIPHYPLLBYPASS 67 +#define IMX952_CLK_RESERVED27 68 +#define IMX952_CLK_MIPITESTBYTE 69 +#define IMX952_CLK_A55 70 +#define IMX952_CLK_A55MTRBUS 71 +#define IMX952_CLK_A55PERIPH 72 +#define IMX952_CLK_DRAMALT 73 +#define IMX952_CLK_DRAMAPB 74 +#define IMX952_CLK_DISPAPB 75 +#define IMX952_CLK_DISPAXI 76 +#define IMX952_CLK_DISPLPSPI 77 +#define IMX952_CLK_DISPOCRAM 78 +#define IMX952_CLK_DISPPHYCFG 79 +#define IMX952_CLK_DISP1PIX 80 +#define IMX952_CLK_DISPCDPHYAPB 81 +#define IMX952_CLK_RESERVED41 82 +#define IMX952_CLK_GPUAPB 83 +#define IMX952_CLK_GPU 84 +#define IMX952_CLK_HSIOACSCAN480M 85 +#define IMX952_CLK_HSIOACSCAN80M 86 +#define IMX952_CLK_HSIO 87 +#define IMX952_CLK_HSIOPCIEAUX 88 +#define IMX952_CLK_HSIOPCIETEST160M 89 +#define IMX952_CLK_HSIOPCIETEST400M 90 +#define IMX952_CLK_HSIOPCIETEST500M 91 +#define IMX952_CLK_HSIOUSBTEST50M 92 +#define IMX952_CLK_HSIOUSBTEST60M 93 +#define IMX952_CLK_BUSM7 94 +#define IMX952_CLK_M7 95 +#define IMX952_CLK_M7SYSTICK 96 +#define IMX952_CLK_BUSNETCMIX 97 +#define IMX952_CLK_ENET 98 +#define IMX952_CLK_ENETPHYTEST200M 99 +#define IMX952_CLK_ENETPHYTEST500M 100 +#define IMX952_CLK_ENETPHYTEST667M 101 +#define IMX952_CLK_ENETREF 102 +#define IMX952_CLK_ENETTIMER1 103 +#define IMX952_CLK_RESERVED63 104 +#define IMX952_CLK_SAI2 105 +#define IMX952_CLK_NOCAPB 106 +#define IMX952_CLK_NOC 107 +#define IMX952_CLK_NPUAPB 108 +#define IMX952_CLK_NPU 109 +#define IMX952_CLK_CCMCKO1 110 +#define IMX952_CLK_CCMCKO2 111 +#define IMX952_CLK_CCMCKO3 112 +#define IMX952_CLK_CCMCKO4 113 +#define IMX952_CLK_VPUAPB 114 +#define IMX952_CLK_VPU 115 +#define IMX952_CLK_RESERVED75 116 +#define IMX952_CLK_RESERVED76 117 +#define IMX952_CLK_AUDIOXCVR 118 +#define IMX952_CLK_BUSWAKEUP 119 +#define IMX952_CLK_CAN2 120 +#define IMX952_CLK_CAN3 121 +#define IMX952_CLK_CAN4 122 +#define IMX952_CLK_CAN5 123 +#define IMX952_CLK_FLEXIO1 124 +#define IMX952_CLK_FLEXIO2 125 +#define IMX952_CLK_XSPI1 126 +#define IMX952_CLK_RESERVED86 127 +#define IMX952_CLK_I3C2SLOW 128 +#define IMX952_CLK_LPI2C3 129 +#define IMX952_CLK_LPI2C4 130 +#define IMX952_CLK_LPI2C5 131 +#define IMX952_CLK_LPI2C6 132 +#define IMX952_CLK_LPI2C7 133 +#define IMX952_CLK_LPI2C8 134 +#define IMX952_CLK_LPSPI3 135 +#define IMX952_CLK_LPSPI4 136 +#define IMX952_CLK_LPSPI5 137 +#define IMX952_CLK_LPSPI6 138 +#define IMX952_CLK_LPSPI7 139 +#define IMX952_CLK_LPSPI8 140 +#define IMX952_CLK_LPTMR2 141 +#define IMX952_CLK_LPUART3 142 +#define IMX952_CLK_LPUART4 143 +#define IMX952_CLK_LPUART5 144 +#define IMX952_CLK_LPUART6 145 +#define IMX952_CLK_LPUART7 146 +#define IMX952_CLK_LPUART8 147 +#define IMX952_CLK_SAI3 148 +#define IMX952_CLK_SAI4 149 +#define IMX952_CLK_SAI5 150 +#define IMX952_CLK_SPDIF 151 +#define IMX952_CLK_SWOTRACE 152 +#define IMX952_CLK_TPM4 153 +#define IMX952_CLK_TPM5 154 +#define IMX952_CLK_TPM6 155 +#define IMX952_CLK_MIPIPHYDFT400 156 +#define IMX952_CLK_MIPIPHYDFT540 157 +#define IMX952_CLK_USDHC1 158 +#define IMX952_CLK_USDHC2 159 +#define IMX952_CLK_USDHC3 160 +#define IMX952_CLK_V2XPK 161 +#define IMX952_CLK_WAKEUPAXI 162 +#define IMX952_CLK_XSPISLVROOT 163 +#define IMX952_CLK_AUDMIX1 164 +#define IMX952_CLK_ASRC1 165 +#define IMX952_CLK_ASRC2 166 +#define IMX952_CLK_GPT1 167 +#define IMX952_CLK_GPT2 168 +#define IMX952_CLK_GPT3 169 +#define IMX952_CLK_GPT4 170 + +/* Clock GPR SEL */ +#define IMX952_CLK_GPR_SEL_EXT 171 +#define IMX952_CLK_GPR_SEL_A55C0 172 +#define IMX952_CLK_GPR_SEL_A55C1 173 +#define IMX952_CLK_GPR_SEL_A55C2 174 +#define IMX952_CLK_GPR_SEL_A55C3 175 +#define IMX952_CLK_GPR_SEL_A55P 176 +#define IMX952_CLK_GPR_SEL_DRAM 177 +#define IMX952_CLK_GPR_SEL_TEMPSENSE 178 + +/* Clock CGC */ +#define IMX952_CLK_CGC_NPU 179 +#define IMX952_CLK_CGC_GPU 180 +#define IMX952_CLK_CGC_CAMISI 181 +#define IMX952_CLK_CGC_CAMISP 182 +#define IMX952_CLK_CGC_CAMCSI0 183 +#define IMX952_CLK_CGC_CAMCSI1 184 +#define IMX952_CLK_CGC_CAMOCRAM 185 +#define IMX952_CLK_CGC_HSIOUSB 186 +#define IMX952_CLK_CGC_HSIOPCIE 187 +#define IMX952_CLK_CGC_DISPOCRAM 188 +#define IMX952_CLK_CGC_DISPSEERIS 189 +#define IMX952_CLK_CGC_DISPDSI 190 +#define IMX952_CLK_CGC_NOCGIC 191 +#define IMX952_CLK_CGC_NOCOCRAM 192 +#define IMX952_CLK_CGC_NETC 193 +#define IMX952_CLK_CGC_VPUENC 194 +#define IMX952_CLK_CGC_VPUJPEGENC 195 +#define IMX952_CLK_CGC_VPUJPEGDEC 196 +#define IMX952_CLK_CGC_VPUDEC 197 + +#endif
dts/upstream/src/arm64/freescale/imx952-evk.dts new file +596 -0
596 lines not on this page · raw message
dts/upstream/src/arm64/freescale/imx952-pinfunc.h new file +867 -0
867 lines not on this page · raw message
dts/upstream/src/arm64/freescale/imx952-power.h new file +44 -0
44 lines not on this page · raw message
dts/upstream/src/arm64/freescale/imx952.dtsi new file +1266 -0
1,266 lines not on this page · raw message
Signature · 1 line
2.43.0
Re: [PATCH v1 10/12] dts: upstream: arm64: freescale: Sync i.MX952 device tree from Linux
Quoted 10 lines · On Thu, Feb 05, 2026 at 09:55:16PM +0800, [email protected] wrote:
From: Alice Guo <[email protected]>
Sync i.MX952 device tree files from linux-next next-20260202:
- Addimx952.dtsifor SoC
- Addimx952-evk.dtsfor i.MX952 EVK board
- Add imx952-*.h headers for clock, pinctrl and powerImported from linux-next commit
193579fe0138("Add linux-next specific ifiles for 20260202")
Quoted 8 lines
Signed-off-by Alice Guo <[email protected]>--- dts/upstream/src/arm64/freescale/imx952-clock.h | 215 ++++ dts/upstream/src/arm64/freescale/imx952-evk.dts | 596 ++++++++++ dts/upstream/src/arm64/freescale/imx952-pinfunc.h | 867 ++++++++++++++ dts/upstream/src/arm64/freescale/imx952-power.h | 44 + dts/upstream/src/arm64/freescale/imx952.dtsi | 1266 +++++++++++++++++++++ 5 files changed, 2988 insertions(+)
This needs to be done (as a series of, if needed) tools/update-subtree.sh cherry-pick operations. That gives the right commit message format that shows these are changes from upstream.
Signature · 1 line
Tom
回复: [PATCH v1 10/12] dts: upstream: arm64: freescale: Sync i.MX952 device tree from Linux
Quoted 46 lines
-----邮件原件-----
发件人: Tom Rini <[email protected]>
发送时间: 2026年2月5日 23:39
收件人: Alice Guo (OSS) <[email protected]>
抄送: dl-uboot-imx <[email protected]>; [email protected]; Stefano Babic <[email protected]>; Fabio Estevam <[email protected]>; Peng Fan <[email protected]>; Ye Li <[email protected]>; Jindong Yue <[email protected]>; Jacky Bai <[email protected]>; Marek Vasut <[email protected]>; Rasmus Villemoes <[email protected]>; Ross, Fedor <[email protected]>; João Paulo Gonçalves <[email protected]>; Patrice Chotard <[email protected]>; Valentin Caron <[email protected]>; Vinh Nguyen <[email protected]>; Sam Protsenko <[email protected]>; Ranjani Vaidyanathan <[email protected]>; Ji Luo <[email protected]>; Frank Li <[email protected]>; Sumit Garg <[email protected]>; Adam Ford <[email protected]>; Frieder Schrempf <[email protected]>; David Zang <[email protected]>; Andrew Goodbody <[email protected]>; Sumit Garg <[email protected]>; Marek Vasut <[email protected]>; Joseph Guo <[email protected]>; [email protected]; Alice Guo <[email protected]>
主题: Re: [PATCH v1 10/12] dts: upstream: arm64: freescale: Sync i.MX952 device tree from LinuxQuoted 7 lines · On Thu, Feb 05, 2026 at 09:55:16PM +0800, [email protected] wrote:
From: Alice Guo <[email protected]>
Sync i.MX952 device tree files from linux-next next-20260202:
- Addimx952.dtsifor SoC
- Addimx952-evk.dtsfor i.MX952 EVK board
- Add imx952-*.h headers for clock, pinctrl and powerQuoted 8 lines
Imported from linux-next commit
193579fe0138("Add linux-next specific ifiles for 20260202")Signed-off-by Alice Guo <[email protected]>--- dts/upstream/src/arm64/freescale/imx952-clock.h | 215 ++++ dts/upstream/src/arm64/freescale/imx952-evk.dts | 596 ++++++++++ dts/upstream/src/arm64/freescale/imx952-pinfunc.h | 867++++++++++++++
Quoted 2 lines
dts/upstream/src/arm64/freescale/imx952-power.h | 44 + dts/upstream/src/arm64/freescale/imx952.dtsi | 1266+++++++++++++++++++++
Quoted 8 lines
Quoted 1 line
5 files changed, 2988 insertions(+)This needs to be done (as a series of, if needed)
tools/update-subtree.shcherry-pick operations. That gives the right commit message format that shows these are changes from upstream.--
Tom
Hi Tom,
Thank you for the review. These i.MX952 files are not yet available in the devicetree-rebasing repository, so I cannot use the standard workflow: ./tools/update-subtree.sh pick dts <devicetree-rebasing-commit-id>
Should I wait for the devicetree-rebasing sync?
Best regards,
Alice Guo
Re: 回复: [PATCH v1 10/12] dts: upstream: arm64: freescale: Sync i.MX952 device tree from Linux
Quoted 52 lines · Alice Guo (OSS)
Quoted 52 lines
-----邮件原件-----
发件人: Tom Rini <[email protected]>
发送时间: 2026年2月5日 23:39
收件人: Alice Guo (OSS) <[email protected]>
抄送: dl-uboot-imx <[email protected]>; [email protected]; Stefano Babic <[email protected]>; Fabio Estevam <[email protected]>; Peng Fan <[email protected]>; Ye Li <[email protected]>; Jindong Yue <[email protected]>; Jacky Bai <[email protected]>; Marek Vasut <[email protected]>; Rasmus Villemoes <[email protected]>; Ross, Fedor <[email protected]>; João Paulo Gonçalves <[email protected]>; Patrice Chotard <[email protected]>; Valentin Caron <[email protected]>; Vinh Nguyen <[email protected]>; Sam Protsenko <[email protected]>; Ranjani Vaidyanathan <[email protected]>; Ji Luo <[email protected]>; Frank Li <[email protected]>; Sumit Garg <[email protected]>; Adam Ford <[email protected]>; Frieder Schrempf <[email protected]>; David Zang <[email protected]>; Andrew Goodbody <[email protected]>; Sumit Garg <[email protected]>; Marek Vasut <[email protected]>; Joseph Guo <[email protected]>; [email protected]; Alice Guo <[email protected]>
主题: Re: [PATCH v1 10/12] dts: upstream: arm64: freescale: Sync i.MX952 device tree from LinuxQuoted 7 lines · On Thu, Feb 05, 2026 at 09:55:16PM +0800, [email protected] wrote:
From: Alice Guo <[email protected]>
Sync i.MX952 device tree files from linux-next next-20260202:
- Addimx952.dtsifor SoC
- Addimx952-evk.dtsfor i.MX952 EVK board
- Add imx952-*.h headers for clock, pinctrl and powerQuoted 8 lines
Imported from linux-next commit
193579fe0138("Add linux-next specific ifiles for 20260202")Signed-off-by Alice Guo <[email protected]>--- dts/upstream/src/arm64/freescale/imx952-clock.h | 215 ++++ dts/upstream/src/arm64/freescale/imx952-evk.dts | 596 ++++++++++ dts/upstream/src/arm64/freescale/imx952-pinfunc.h | 867++++++++++++++
Quoted 2 lines
dts/upstream/src/arm64/freescale/imx952-power.h | 44 + dts/upstream/src/arm64/freescale/imx952.dtsi | 1266+++++++++++++++++++++
Quoted 1 line
5 files changed, 2988 insertions(+)This needs to be done (as a series of, if needed)
tools/update-subtree.shcherry-pick operations. That gives the right commit message format that shows these are changes from upstream.
Quoted 8 lines
Quoted 2 lines
--
TomHi Tom,
Thank you for the review. These i.MX952 files are not yet available in the devicetree-rebasing repository, so I cannot use the standard workflow:
./tools/update-subtree.shpick dts <devicetree-rebasing-commit-id>Should I wait for the devicetree-rebasing sync?
Yes, or not use OF_UPSTREAM until the device tree are in an upstream kernel tag.
Signature · 1 line
Tom
PATCH 11/12 arm: dts: Add U-Boot device tree for i.MX952 EVK
In reply to [email protected]From: Alice Guo <[email protected]>
Add U-Boot specific device tree configuration for i.MX952 EVK board.
--- arch/arm/dts/imx952-evk-u-boot.dtsi | 58 +++++++ arch/arm/dts/imx952-u-boot.dtsi | 327 ++++++++++++++++++++++++++++++++++++ 2 files changed, 385 insertions(+)
arch/arm/dts/imx952-evk-u-boot.dtsi new file +58 -0
@@ -0,0 +1,58 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2026 NXP + */ + +#include "imx952-u-boot.dtsi" + +&i2c3_pcal6408 { + compatible = "ti,tca6408"; + label = "i2c3_io"; +}; + +&i2c4_pcal6408 { + compatible = "ti,tca6408"; + label = "i2c4_io"; +}; + +&pcal6416 { + compatible = "ti,tca6416"; + label = "i2c6_io"; +}; + +&pcal6524 { + label = "i2c7_io"; +}; + +&usb1 { + compatible = "fsl,imx8mm-usb", "fsl,imx7d-usb"; + /delete-property/power-domains; + bootph-pre-ram; + extcon = <&ptn5110>; +}; + +&usb2 { + compatible = "fsl,imx8mm-usb", "fsl,imx7d-usb"; + /delete-property/power-domains; + bootph-pre-ram; +}; + +&usbmisc1 { + bootph-pre-ram; +}; + +&usbmisc2 { + bootph-pre-ram; +}; + +&usbphynop1 { + bootph-pre-ram; +}; + +&usbphynop2 { + bootph-pre-ram; +}; + +&wdog3 { + status = "disabled"; +};
arch/arm/dts/imx952-u-boot.dtsi new file +327 -0
327 lines not on this page · raw message
Signature · 1 line
2.43.0
Re: [PATCH v1 11/12] arm: dts: Add U-Boot device tree for i.MX952 EVK
Quoted 180 lines · On Thu, Feb 05, 2026 at 09:55:17PM +0800, [email protected] wrote:
From: Alice Guo <[email protected]>
Add U-Boot specific device tree configuration for i.MX952 EVK board.
Signed-off-by Alice Guo <[email protected]>---
arch/arm/dts/imx952-evk-u-boot.dtsi| 58 +++++++arch/arm/dts/imx952-u-boot.dtsi| 327 ++++++++++++++++++++++++++++++++++++2 files changed, 385 insertions(+)arch/arm/dts/imx952-evk-u-boot.dtsi new file +58
-0@@ -0,0 +1,58 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2026 NXP + */ + +#include "imx952-u-boot.dtsi" + +&i2c3_pcal6408 { + compatible = "ti,tca6408"; + label = "i2c3_io"; +}; + +&i2c4_pcal6408 { + compatible = "ti,tca6408"; + label = "i2c4_io"; +}; + +&pcal6416 { + compatible = "ti,tca6416"; + label = "i2c6_io"; +}; + +&pcal6524 { + label = "i2c7_io"; +}; + +&usb1 { + compatible = "fsl,imx8mm-usb", "fsl,imx7d-usb"; + /delete-property/power-domains; + bootph-pre-ram; + extcon = <&ptn5110>; +}; + +&usb2 { + compatible = "fsl,imx8mm-usb", "fsl,imx7d-usb"; + /delete-property/power-domains; + bootph-pre-ram; +}; + +&usbmisc1 { + bootph-pre-ram; +}; + +&usbmisc2 { + bootph-pre-ram; +}; + +&usbphynop1 { + bootph-pre-ram; +}; + +&usbphynop2 { + bootph-pre-ram; +}; + +&wdog3 { + status = "disabled"; +};arch/arm/dts/imx952-u-boot.dtsi new file +100
-0@@ -0,0 +1,327 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * Copyright 2026 NXP + */ + +/ { + binman { + multiple-images; + + m33-oei-ddrfw { + pad-byte = <0x00>; + align-size = <0x8>; + filename = "m33-oei-ddrfw.bin"; + + oei-m33-ddr { + align-size = <0x4>; + filename = "oei-m33-ddr.bin"; + type = "blob-ext"; + }; + + imx-lpddr { + type = "nxp-header-ddrfw"; + + imx-lpddr-imem { + filename = "lpddr4x_imem_v202409.bin"; + type = "blob-ext"; + }; + + imx-lpddr-dmem { + filename = "lpddr4x_dmem_v202409.bin"; + type = "blob-ext"; + }; + }; + + imx-lpddr-qb { + type = "nxp-header-ddrfw"; + + imx-lpddr-imem-qb { + filename = "lpddr4x_imem_qb_v202409.bin"; + type = "blob-ext"; + }; + + imx-lpddr-dmem-qb { + filename = "lpddr4x_dmem_qb_v202409.bin"; + type = "blob-ext"; + }; + }; + }; + + imx-boot { + filename = "flash.bin"; + pad-byte = <0x00>; + + spl { + type = "nxp-imx9image"; + cfg-path = "spl/u-boot-spl.cfgout"; + args; + + cntr-version = <2>; + boot-from = "sd"; + soc-type = "IMX9"; + append = "mx952a0-ahab-container.img"; + container; + dummy-ddr; + image0 = "oei", "m33-oei-ddrfw.bin", "0x1ffc0000"; + hold = <0x10000>; + image1 = "m33", "m33_image.bin", "0x1ffc0000"; + image2 = "a55", "spl/u-boot-spl.bin", "0x20480000"; + dummy-v2x = <0x8b000000>; + }; + + u-boot { + type = "nxp-imx9image"; + cfg-path = "u-boot-container.cfgout"; + args; + + cntr-version = <2>; + boot-from = "sd"; + soc-type = "IMX9"; + container; + image0 = "a55", "bl31.bin", "0x8a200000"; + image1 = "a55", "u-boot.bin", "0x90200000"; + }; + }; + }; + + chosen { + bootargs = "console=ttyLP0,115200 earlycon"; + }; + + aliases { + usb_gadget0 = &usbg1; + usb_gadget1 = &usbg2; + }; + + usbg1: usbg1 { + compatible = "fsl,imx27-usb-gadget"; + dr_mode = "peripheral"; + chipidea,usb = <&usb1>; + bootph-pre-ram;
arch/arm/dts/imx952-u-boot.dtsi line 110
Quoted 10 lines
arch/arm/dts/imx952-u-boot.dtsi new file +10
-0+ status = "okay"; + }; + + usbg2: usbg2 { + compatible = "fsl,imx27-usb-gadget"; + dr_mode = "peripheral"; + chipidea,usb = <&usb2>; + bootph-pre-ram; + status = "okay"; + };
The above two nodes does not have a working driver in upstream.
Quoted 169 lines
arch/arm/dts/imx952-u-boot.dtsi new file +169
-0+ + reg_m2_pwr: regulator-m2-pwr { + compatible = "regulator-fixed"; + regulator-name = "M.2-power"; + regulator-min-microvolt = <3300000>; + regulator-max-microvolt = <3300000>; + gpio = <&pcal6524 20 GPIO_ACTIVE_HIGH>; + enable-active-high; + /* + * M.2 device only can be enabled(W_DISABLE1#) after all Power + * Rails reach their minimum operating voltage (PCI Express M.2 + * Specification r5.1 3.1.4 Power-up Timing). + * Set a delay equal to the max value of Tsettle here. + */ + startup-delay-us = <5000>; + }; +}; + +&A55_0 { + clocks = <&scmi_clk IMX952_CLK_ARMPLL_PFD0>; + /delete-property/ power-domains; +}; + +&A55_1 { + clocks = <&scmi_clk IMX952_CLK_ARMPLL_PFD0>; + /delete-property/ power-domains; +}; + +&A55_2 { + clocks = <&scmi_clk IMX952_CLK_ARMPLL_PFD0>; + /delete-property/ power-domains; +}; + +&A55_3 { + clocks = <&scmi_clk IMX952_CLK_ARMPLL_PFD0>; + /delete-property/ power-domains; +}; + +&aips1 { + bootph-all; +}; + +&aips2 { + bootph-all; +}; + +&aips3 { + bootph-all; +}; + +&clk_ext1 { + bootph-all; +}; + +&clk_dummy { + bootph-all; +}; + +&clk_osc_24m { + bootph-all; +}; + +&elemu1 { + status = "okay"; + bootph-all; +}; + +&elemu3 { + status = "okay"; + bootph-all; +}; + +&{/firmware} { + bootph-all; +}; + +&{/firmware/scmi} { + bootph-all; +}; + +&{/firmware/scmi/protocol@11} { + bootph-all; +}; + +&{/firmware/scmi/protocol@13} { + bootph-all; +}; + +&{/firmware/scmi/protocol@14} { + bootph-all; +}; + +&{/firmware/scmi/protocol@15} { + bootph-all; +}; + +&{/firmware/scmi/protocol@19} { + bootph-all; +}; + +&gpio1 { + reg = <0 0x47400000 0 0x1000>, <0 0x47400040 0 0x40>; +}; + +&gpio2 { + reg = <0 0x43810000 0 0x1000>, <0 0x43810040 0 0x40>; + bootph-pre-ram; + /* + * Use one SPL/U-Boot for mx952evk and mx952evkrpmsg, since GPIO2 + * is assigned to M7, disable gpio2 here + */ + status = "disabled"; +}; + +&gpio3 { + reg = <0 0x43820000 0 0x1000>, <0 0x43820040 0 0x40>; + bootph-pre-ram; +}; + +&gpio4 { + reg = <0 0x43840000 0 0x1000>, <0 0x43840040 0 0x40>; + bootph-pre-ram; +}; + +&gpio5 { + reg = <0 0x43850000 0 0x1000>, <0 0x43850040 0 0x40>; + bootph-pre-ram; +}; + +&lpuart1 { + bootph-pre-ram; +}; + +&mu2 { + bootph-all; +}; + +®_usdhc2_vmmc { + bootph-pre-ram; +}; + +&scmi_buf0 { + reg = <0x0 0x400>; + bootph-all; +}; + +&scmi_buf1 { + bootph-all; +}; + +&{/soc} { + bootph-all; +}; + +&sram0 { + bootph-all; +}; + +&usdhc1 { + bootph-pre-ram; +}; + +&usdhc2 { + bootph-pre-ram; +}; + +&scmi_iomuxc { + pinctrl-names = "default"; + pinctrl-0 = <&pinctrl_hog>;
arch/arm/dts/imx952-u-boot.dtsi line 289
Quoted 10 lines
arch/arm/dts/imx952-u-boot.dtsi new file +10
-0+ + pinctrl_hog: hoggrp { + bootph-pre-ram; + + fsl,pins = < + IMX952_PAD_XSPI1_SS1_B__WAKEUPMIX_TOP_GPIO5_IO_11 0x3fe + IMX952_PAD_GPIO_IO12__WAKEUPMIX_TOP_TPM3_CH2 0x51e + IMX952_PAD_CCM_CLKO1__WAKEUPMIX_TOP_GPIO3_IO_26 0x3fe + IMX952_PAD_CCM_CLKO2__WAKEUPMIX_TOP_GPIO3_IO_27 0x3fe + >;
Add a comment for the settings, why they needs to be set in hog.
Quoted 28 lines
arch/arm/dts/imx952-u-boot.dtsi new file +28
-0+ }; +}; + +&pinctrl_uart1 { + bootph-pre-ram; +}; + +&pinctrl_usdhc1 { + bootph-pre-ram; +}; + +&pinctrl_usdhc1_100mhz { + bootph-pre-ram; +}; + +&pinctrl_usdhc1_200mhz { + bootph-pre-ram; +}; + +&pinctrl_usdhc2 { + bootph-pre-ram; +}; + +&pinctrl_usdhc2_100mhz { + bootph-pre-ram; +}; + +&pinctrl_usdhc2_200mhz {
arch/arm/dts/imx952-u-boot.dtsi line 327
Quoted 10 lines
arch/arm/dts/imx952-u-boot.dtsi new file +10
-0+ bootph-pre-ram; +}; + +&pinctrl_usdhc2_gpio { + bootph-pre-ram; +}; + +&pinctrl_reg_usdhc2_vmmc { + bootph-pre-ram; +};
Regards
Peng
Quoted 4 lines
Signature · 2 lines
-- 2.43.0
Re: [PATCH v1 11/12] arm: dts: Add U-Boot device tree for i.MX952 EVK
Quoted 6 lines · Peng Fan
Quoted 5 lines · On Thu, Feb 05, 2026 at 09:55:17PM +0800, [email protected] wrote:
From: Alice Guo <[email protected]>
Add U-Boot specific device tree configuration for i.MX952 EVK board.
Signed-off-by Alice Guo <[email protected]>
[snip]
Quoted 3 lines
Review
Quoted 3 lines
+&usbmisc1 {
(quoted diff) +2
-0+ bootph-pre-ram; +};
I forgot earlier, here and elsewhere, upstream this.
Signature · 1 line
Tom
PATCH 12/12 board: nxp: imx952_evk: Add i.MX952 15x15 lpddr4x board support
In reply to [email protected]From: Peng Fan <[email protected]>
Add support for i.MX952 15x15 lpddr4x board support.
--- arch/arm/mach-imx/Makefile | 2 +- arch/arm/mach-imx/imx9/Kconfig | 14 ++ board/nxp/imx952_evk/Kconfig | 12 ++ board/nxp/imx952_evk/MAINTAINERS | 6 + board/nxp/imx952_evk/Makefile | 14 ++ board/nxp/imx952_evk/imx952_evk.c | 297 ++++++++++++++++++++++++++++++++++++ board/nxp/imx952_evk/imx952_evk.env | 137 +++++++++++++++++ board/nxp/imx952_evk/spl.c | 115 ++++++++++++++ configs/imx952_evk_defconfig | 178 +++++++++++++++++++++ doc/board/nxp/imx952_evk.rst | 112 ++++++++++++++ doc/board/nxp/index.rst | 1 + include/configs/imx952_evk.h | 31 ++++ 12 files changed, 918 insertions(+), 1 deletion(-)
arch/arm/mach-imx/Makefile +1 -1
@@ -223,7 +223,7 @@ endif ifeq ($(CONFIG_ARCH_IMX9)$(CONFIG_ARCH_IMX8ULP), y) -ifneq ($(and $(CONFIG_BINMAN),$(or $(CONFIG_IMX95),$(CONFIG_IMX94))),) +ifneq ($(and $(CONFIG_BINMAN),$(or $(CONFIG_IMX95),$(CONFIG_IMX94),$(CONFIG_IMX952))),) SPL: spl/u-boot-spl.bin FORCE $(call if_changed,mkimage)
arch/arm/mach-imx/imx9/Kconfig +14 -0
@@ -162,6 +162,19 @@ config TARGET_TORADEX_SMARC_IMX95 bool "Support Toradex SMARC iMX95" select IMX95 +config TARGET_IMX952_EVK + bool "imx952_evk" + select CMD_REMOTEPROC + select IMX_SM_CPU + select IMX_SM_LMM + select IMX952 + select REMOTEPROC_IMX + select REGMAP + select SYSCON + imply BOOTSTD_BOOTCOMMAND + imply BOOTSTD_FULL + imply OF_UPSTREAM + endchoice source "board/nxp/imx91_evk/Kconfig"
@@ -175,5 +188,6 @@ source "board/variscite/imx93_var_som/Kconfig" source "board/nxp/imx94_evk/Kconfig" source "board/nxp/imx95_evk/Kconfig" source "board/toradex/smarc-imx95/Kconfig" +source "board/nxp/imx952_evk/Kconfig" endif
board/nxp/imx952_evk/Kconfig new file +12 -0
@@ -0,0 +1,12 @@ +if TARGET_IMX952_EVK + +config SYS_BOARD + default "imx952_evk" + +config SYS_VENDOR + default "nxp" + +config SYS_CONFIG_NAME + default "imx952_evk" + +endif
board/nxp/imx952_evk/MAINTAINERS new file +6 -0
@@ -0,0 +1,6 @@ +i.MX952 EVK BOARD +M: Alice Guo <[email protected]> +S: Maintained +F: board/nxp/imx952_evk/ +F: include/configs/imx952_evk.h +F: configs/imx952_evk_defconfig
board/nxp/imx952_evk/Makefile new file +14 -0
@@ -0,0 +1,14 @@ +# +# Copyright 2025-2026 NXP +# +# SPDX-License-Identifier: GPL-2.0+ +# + +# Add include path for NXP device tree header files from Linux. +ccflags-y += -I$(srctree)/dts/upstream/src/arm64/freescale/ + +obj-y += imx952_evk.o + +ifdef CONFIG_SPL_BUILD +obj-y += spl.o +endif
board/nxp/imx952_evk/imx952_evk.c new file +297 -0
297 lines not on this page · raw message
board/nxp/imx952_evk/imx952_evk.env new file +137 -0
137 lines not on this page · raw message
board/nxp/imx952_evk/spl.c new file +115 -0
115 lines not on this page · raw message
configs/imx952_evk_defconfig new file +178 -0
178 lines not on this page · raw message
doc/board/nxp/imx952_evk.rst new file +112 -0
112 lines not on this page · raw message
doc/board/nxp/index.rst +1 -0
@@ -19,6 +19,7 @@ NXP Semiconductors imx93_frdm imx943_evk imx95_evk + imx952_evk imxrt1020-evk imxrt1050-evk imxrt1170-evk
include/configs/imx952_evk.h new file +31 -0
@@ -0,0 +1,31 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* +* Copyright 2025-2026 NXP +*/ + +#ifndef __IMX952_EVK_H +#define __IMX952_EVK_H + +#include <linux/sizes.h> +#include <linux/stringify.h> +#include <asm/arch/imx-regs.h> + +#define CFG_SYS_INIT_RAM_ADDR 0x90000000 +#define CFG_SYS_INIT_RAM_SIZE 0x200000 + +#define CFG_SYS_SDRAM_BASE 0x90000000 +#define PHYS_SDRAM 0x90000000 + +#define PHYS_SDRAM_SIZE 0x70000000/* 2GB - 256MB DDR */ +#define PHYS_SDRAM_2_SIZE 0x380000000/* 14GB */ + +#define CFG_SYS_SECURE_SDRAM_BASE 0x8A000000/* Secure DDR region for A55, SPL could use first 2MB */ +#define CFG_SYS_SECURE_SDRAM_SIZE 0x06000000 + +#define WDOG_BASE_ADDR WDG3_BASE_ADDR + +#ifdef CONFIG_ANDROID_SUPPORT +#include "imx952_evk_android.h" +#endif + +#endif
Signature · 1 line
2.43.0
Re: [PATCH v1 12/12] board: nxp: imx952_evk: Add i.MX952 15x15 lpddr4x board support
Quoted 7 lines · On Thu, Feb 05, 2026 at 09:55:18PM +0800, [email protected] wrote:
From: Peng Fan <[email protected]>
Add support for i.MX952 15x15 lpddr4x board support.
Signed-off-by Peng Fan <[email protected]>Signed-off-by Ye Li <[email protected]>Signed-off-by Alice Guo <[email protected]>
[snip]
Quoted 13 lines
board/nxp/imx952_evk/imx952_evk.c new file +13
-0+void board_quiesce_devices (void ) +{ +int ret; +struct uclass *uc_dev; + + ret =imx9_scmi_power_domain_enable (PD_HSIO_TOP , false); +if (ret) { +printf ("%s: Failed for HSIO MIX: %d\n" , __func__, ret); +return ; + } + + ret =imx9_scmi_power_domain_enable (PD_NETC , false); +if (ret) {
board/nxp/imx952_evk/imx952_evk.c line 288
Quoted 10 lines
board/nxp/imx952_evk/imx952_evk.c new file +10
-0+printf ("%s: Failed for NETC MIX: %d\n" , __func__, ret); +return ; + } + + ret =uclass_get (UCLASS_SPI_FLASH , &uc_dev); +if (uc_dev) + ret =uclass_destroy (uc_dev); +if (ret) +printf ("couldn't remove SPI FLASH devices\n" ); +}
Can we instead handle all of this via setting DM_FLAG_OS_PREPARE in drivers as needed, so they're properly cleaned / released before OS boot?
[snip]
doc/board/nxp/imx952_evk.rst line 4
Quoted 10 lines
doc/board/nxp/imx952_evk.rst new file +4
-0@@ -0,0 +1,112 @@ +.. SPDX-License-Identifier: GPL-2.0+ + +imx952_evk +=======================
This will be a doc warning and fail CI, please either push through CI or build the docs locally (see doc/build/documentation.rst) with KDOC_WERROR=1
[snip]
Quoted 25 lines
include/configs/imx952_evk.h new file +19
-0@@ -0,0 +1,31 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* +* Copyright 2025-2026 NXP +*/ + +#ifndef __IMX952_EVK_H +#define __IMX952_EVK_H + +#include <linux/sizes.h> +#include <linux/stringify.h> +#include <asm/arch/imx-regs.h> + +#define CFG_SYS_INIT_RAM_ADDR 0x90000000 +#define CFG_SYS_INIT_RAM_SIZE 0x200000 + +#define CFG_SYS_SDRAM_BASE 0x90000000 +#define PHYS_SDRAM 0x90000000 + +#define PHYS_SDRAM_SIZE 0x70000000/* 2GB - 256MB DDR */
include/configs/imx952_evk.h line 29
Quoted 10 lines
include/configs/imx952_evk.h new file +10
-0+#define PHYS_SDRAM_2_SIZE 0x380000000/* 14GB */ + +#define CFG_SYS_SECURE_SDRAM_BASE 0x8A000000/* Secure DDR region for A55, SPL could use first 2MB */ +#define CFG_SYS_SECURE_SDRAM_SIZE 0x06000000 + +#define WDOG_BASE_ADDR WDG3_BASE_ADDR + +#ifdef CONFIG_ANDROID_SUPPORT +#include "imx952_evk_android.h" +#endif
It's a really bad idea having the board.h file bring in other includes. We aren't using SZ macros, and a patch to clean up WDOG_BASE_ADDR so it doesn't need to be in the board.h would be a good cleanup to do, but maybe for now just make sure the watchdog driver has the regs header included?
Signature · 1 line
Tom
Re: [PATCH v1 12/12] board: nxp: imx952_evk: Add i.MX952 15x15 lpddr4x board support
In reply to [email protected]Quoted 42 lines · On Thu, Feb 05, 2026 at 09:55:18PM +0800, [email protected] wrote:
From: Peng Fan <[email protected]>
Add support for i.MX952 15x15 lpddr4x board support.
Signed-off-by Peng Fan <[email protected]>Signed-off-by Ye Li <[email protected]>Signed-off-by Alice Guo <[email protected]>---
arch/arm/mach-imx/Makefile | 2 +- arch/arm/mach-imx/imx9/Kconfig | 14 ++ board/nxp/imx952_evk/Kconfig | 12 ++ board/nxp/imx952_evk/MAINTAINERS | 6 + board/nxp/imx952_evk/Makefile | 14 ++ board/nxp/imx952_evk/imx952_evk.c | 297 ++++++++++++++++++++++++++++++++++++ board/nxp/imx952_evk/imx952_evk.env | 137 +++++++++++++++++ board/nxp/imx952_evk/spl.c | 115 ++++++++++++++ configs/imx952_evk_defconfig | 178 +++++++++++++++++++++ doc/board/nxp/imx952_evk.rst | 112 ++++++++++++++ doc/board/nxp/index.rst | 1 + include/configs/imx952_evk.h | 31 ++++ 12 files changed, 918 insertions(+), 1 deletion(-)arch/arm/mach-imx/Makefile +1
-1@@ -223,7 +223,7 @@ endif ifeq ($(CONFIG_ARCH_IMX9)$(CONFIG_ARCH_IMX8ULP), y) -ifneq ($(and $(CONFIG_BINMAN),$(or $(CONFIG_IMX95),$(CONFIG_IMX94))),) +ifneq ($(and $(CONFIG_BINMAN),$(or $(CONFIG_IMX95),$(CONFIG_IMX94),$(CONFIG_IMX952))),)SPL: spl/u-boot-spl.bin FORCE
$(call if_changed,mkimage)arch/arm/mach-imx/imx9/Kconfig +0
-0@@ -162,6 +162,19 @@ config TARGET_TORADEX_SMARC_IMX95 bool "Support Toradex SMARC iMX95" select IMX95
arch/arm/mach-imx/imx9/Kconfig config TARGET_TORADEX_SMARC_IMX95 · line 173
Quoted 10 lines
arch/arm/mach-imx/imx9/Kconfig +9
-0+config TARGET_IMX952_EVK + bool "imx952_evk" + select CMD_REMOTEPROC + select IMX_SM_CPU + select IMX_SM_LMM + select IMX952 + select REMOTEPROC_IMX + select REGMAP + select SYSCON
Move the remoteproc related to defconfig.
Quoted 78 lines
arch/arm/mach-imx/imx9/Kconfig +4
-0+ imply BOOTSTD_BOOTCOMMAND + imply BOOTSTD_FULL + imply OF_UPSTREAM +endchoice
source "board/nxp/imx91_evk/Kconfig"
arch/arm/mach-imx/imx9/Kconfig +0
-0@@ -175,5 +188,6 @@ source "board/variscite/imx93_var_som/Kconfig"source "board/nxp/imx94_evk/Kconfig"
source "board/nxp/imx95_evk/Kconfig"
source "board/toradex/smarc-imx95/Kconfig"
+source "board/nxp/imx952_evk/Kconfig"endif
board/nxp/imx952_evk/Kconfig new file +12
-0@@ -0,0 +1,12 @@ +if TARGET_IMX952_EVK + +config SYS_BOARD + default "imx952_evk" + +config SYS_VENDOR + default "nxp" + +config SYS_CONFIG_NAME + default "imx952_evk" + +endifboard/nxp/imx952_evk/MAINTAINERS new file +6
-0@@ -0,0 +1,6 @@ +i.MX952 EVK BOARD +M: Alice Guo <[email protected]> +S: Maintained +F: board/nxp/imx952_evk/ +F: include/configs/imx952_evk.h +F: configs/imx952_evk_defconfigboard/nxp/imx952_evk/Makefile new file +14
-0@@ -0,0 +1,14 @@ +# +# Copyright 2025-2026 NXP +# +# SPDX-License-Identifier: GPL-2.0+ +# + +# Add include path for NXP device tree header files from Linux. +ccflags-y += -I$(srctree)/dts/upstream/src/arm64/freescale/ + +obj-y += imx952_evk.o + +ifdef CONFIG_SPL_BUILD +obj-y += spl.o +endifboard/nxp/imx952_evk/imx952_evk.c new file +8
-0@@ -0,0 +1,297 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* +* Copyright 2025-2026 NXP +*/ + +#include <asm/arch/clock.h> +#include <asm/arch/sys_proto.h> +#include <asm/gpio.h>
board/nxp/imx952_evk/imx952_evk.c line 18
Quoted 10 lines
board/nxp/imx952_evk/imx952_evk.c new file +10
-0+#include <dm/uclass.h> +#include <dm/uclass-internal.h> +#include <env.h> +#include <fdt_support.h> +#include <imx952-power.h> +#include <init.h> +#include <linux/delay.h> +#include <power/regulator.h> +#include <scmi_agent.h> +#include <usb.h>
sort the headers.
Generic headers
asm/headers
asm/arch/headers
asm/mach/headers
board/nxp/imx952_evk/imx952_evk.c line 23
Quoted 5 lines
board/nxp/imx952_evk/imx952_evk.c new file +5
-0+ +#define PD_HSIO_TOP IMX952_PD_HSIO_TOP +#define PD_NETC IMX952_PD_NETC +#define PD_DISPLAY IMX952_PD_DISPLAY +#define PD_CAMERA IMX952_PD_CAMERA
Use tab to align the macros.
Quoted 15 lines
board/nxp/imx952_evk/imx952_evk.c new file +15
-0+ +#if CONFIG_IS_ENABLED (EFI_HAVE_CAPSULE_SUPPORT ) +#define IMX_BOOT_IMAGE_GUID \ + EFI_GUID(0x58a661f3, 0xe7c7, 0x4173, 0x80, 0x21, \ + 0xa3, 0x1b, 0x95, 0xc8, 0x6e, 0x9b) + +struct efi_fw_image fw_images[] = { + { + .image_type_id =IMX_BOOT_IMAGE_GUID , + .fw_name =u"IMX952-EVK-RAW" , + .image_index =1 , + }, +}; + +struct efi_capsule_update_info update_info = {
board/nxp/imx952_evk/imx952_evk.c line 48
Quoted 10 lines
board/nxp/imx952_evk/imx952_evk.c new file +10
-0+ .dfu_string = "mmc 0=flash-bin raw 0 0x2000 mmcpart 1", + .num_images = ARRAY_SIZE(fw_images), + .images = fw_images, +}; +#endif /* EFI_HAVE_CAPSULE_SUPPORT */ + +int board_early_init_f (void ) +{ +/* UART1: A55, UART2: M33, UART3: M7 */ +init_uart_clk (0 );
Drop this. no need.
Quoted 17 lines
board/nxp/imx952_evk/imx952_evk.c new file +17
-0+ +return 0 ; +} + +#ifdef CONFIG_USB_TCPC +struct tcpc_port port; +struct tcpc_port_config port_config = { + .i2c_bus =6 ,/* i2c7 */ + .addr =0x50 , + .port_type =TYPEC_PORT_DRP , + .disable_pd = true, +}; + +static int setup_typec (void ) +{ +int ret; +
board/nxp/imx952_evk/imx952_evk.c line 75
Quoted 10 lines
board/nxp/imx952_evk/imx952_evk.c new file +10
-0+debug ("tcpc_init port 1\n" ); + ret =tcpc_init (&port, port_config,NULL ); +if (ret) { +printf ("%s: tcpc port init failed, err=%d\n" , + __func__, ret); + } + + return ret; +} +#endif
Drop the tcpc part. this is not supported in upstream.
Quoted 32 lines
board/nxp/imx952_evk/imx952_evk.c new file +32
-0+ +static int imx9_scmi_power_domain_enable (u32 domain,bool enable) +{ +struct udevice *dev; +int ret; + + ret =uclass_get_device_by_name (UCLASS_CLK ,"protocol@14" , &dev); +if (ret) +return ret; + +return scmi_pwd_state_set (dev,0 , domain, enable ?0 :BIT (30 )); +} + +int board_usb_init (int index,enum usb_init_type init) +{ +int ret =0 ; + +if (index ==0 && init ==USB_INIT_DEVICE ) { + ret =imx9_scmi_power_domain_enable (PD_HSIO_TOP , true); +if (ret) { +printf ("SCMI_POWWER_STATE_SET Failed for USB\n" ); +return ret; + } + }else if (index ==0 && init ==USB_INIT_HOST ) { +return ret; + } + +return 0 ; +} + +int board_usb_cleanup (int index,enum usb_init_type init) +{
board/nxp/imx952_evk/imx952_evk.c line 117
Quoted 10 lines
board/nxp/imx952_evk/imx952_evk.c new file +10
-0+int ret =0 ; + +if (index ==0 && init ==USB_INIT_HOST ) { +#ifdef CONFIG_USB_TCPC + ret =tcpc_disable_src_vbus (&port); +#endif + } + +return ret; +}
Drop the tcpc part. one more question, does the usb host and gadget both work?
Quoted 21 lines
board/nxp/imx952_evk/imx952_evk.c new file +21
-0+ +static void netc_phy_rst (const char *gpio_name,const char *label) +{ +int ret; +struct gpio_desc desc; + +/* ENET_RST_B */ + ret =dm_gpio_lookup_name (gpio_name, &desc); +if (ret) { +printf ("%s lookup %s failed ret = %d\n" , __func__, gpio_name, ret); +return ; + } + + ret =dm_gpio_request (&desc, label); +if (ret) { +printf ("%s request %s failed ret = %d\n" , __func__, label, ret); +return ; + } + +/* assert the ENET_RST_B */ +dm_gpio_set_dir_flags (&desc,GPIOD_IS_OUT |GPIOD_IS_OUT_ACTIVE |GPIOD_ACTIVE_LOW );
board/nxp/imx952_evk/imx952_evk.c line 148
Quoted 10 lines
board/nxp/imx952_evk/imx952_evk.c new file +10
-0+udelay (10000 ); +dm_gpio_set_value (&desc,0 );/* deassert the ENET_RST_B */ +udelay (80000 ); +} + +void netc_init (void ) +{ +int ret; + + ret =imx9_scmi_power_domain_enable (PD_NETC , false);
error check is not added.
board/nxp/imx952_evk/imx952_evk.c line 152
Quoted 4 lines
board/nxp/imx952_evk/imx952_evk.c new file +4
-0+udelay (10000 ); + +/* Power up the NETC MIX. */ + ret =imx9_scmi_power_domain_enable (PD_NETC , true);
An comment is required on why power down , then power up again.
board/nxp/imx952_evk/imx952_evk.c line 158
Quoted 6 lines
board/nxp/imx952_evk/imx952_evk.c new file +6
-0+if (ret) { +printf ("SCMI_POWWER_STATE_SET Failed for NETC MIX\n" ); +return ; + } + +netc_phy_rst ("i2c6_io@21_13" ,"ENET1_RST_B" );
This is not good to put here. Could phy rst be done in drivers?
Quoted 16 lines
board/nxp/imx952_evk/imx952_evk.c new file +16
-0+ +pci_init (); +} + +static void pcie_setup (void ) +{ +int ret; +struct udevice *dev; + + ret =regulator_get_by_devname ("regulator-m2-pwr" , &dev); +if (ret) { +printf ("Get regulator-m2-pwr regulator failed %d\n" , ret); +return ; + } + + ret =regulator_set_enable_if_allowed (dev, true);
board/nxp/imx952_evk/imx952_evk.c line 184
Quoted 10 lines
board/nxp/imx952_evk/imx952_evk.c new file +10
-0+if (ret) { +printf ("Enable regulator-m2-pwr regulator %d\n" , ret); +return ; + } +} + +void lvds_backlight_on (void ) +{ +/* None */ +}
Drop.
Two much code added from downstream. Please cleanup this patch to make it as i.MX95/4 EVK board code.
Then add more features step by step.
Regards
Peng