Re: [PATCH 00/42] imx: i.MX9 update
Hi peng, On 05.05.23 11:25, Peng Fan wrote: Hi Stefano, Fabio Do you have time to give a look? Is there a chance to for this patchset landed in 2023.07? Most patches are very small and clean. I have picked them up, I found a small issue due to the different place for sci.h, and I fixed this adding to your patch this: diff --git a/board/advantech/imx8qm_dmsse20_a1/imx8qm_dmsse20_a1.c b/board/advantech/imx8qm_dmsse20_a1/imx8qm_dmsse20_a1.c index 867ceff996..8b4d73052e 100644 --- a/board/advantech/imx8qm_dmsse20_a1/imx8qm_dmsse20_a1.c +++ b/board/advantech/imx8qm_dmsse20_a1/imx8qm_dmsse20_a1.c @@ -10,7 +10,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/board/advantech/imx8qm_dmsse20_a1/spl.c b/board/advantech/imx8qm_dmsse20_a1/spl.c index 49067bbfd6..7f2e972425 100644 --- a/board/advantech/imx8qm_dmsse20_a1/spl.c +++ b/board/advantech/imx8qm_dmsse20_a1/spl.c @@ -11,7 +11,7 @@ #include #include #include -#include +#include #include #include #include (by the way, I do not think it is required to repost the patch, as the reason is clear and could be easy fixed). I will rerun CI to check again, but then I agree to get this series soon. Best regards, Stefano Thanks, Peng On 4/28/2023 12:08 PM, Peng Fan (OSS) wrote: From: Peng Fan This patchset includes updates mainly for i.MX9, such as Clock, Memory, Parts, Low drive mode, DDR, cpu driver, Variants The first patch is not about i.MX9, just include it here since it is a simple one for i.MX8ULP. For the watchdog reset_cpu, I will move it out from watchdog driver in future patches which would includes other changes. I include it here mainly for sysreset support. This patchset depends on two patches from Marek: https://patchwork.ozlabs.org/project/uboot/patch/20230404192510.160819-1-ma...@denx.de/ https://patchwork.ozlabs.org/project/uboot/patch/20230404192510.160819-2-ma...@denx.de/ Jacky Bai (4): ddr: imx9: Change the saved ddr data base to 0x2051c000 ddr: imx93: Add 625M bypass clock support ddr: imx93: update the ddr init to support mult setpoints ddr: imx9: update the rank setting for multi fsp support Peng Fan (33): imx8ulp: build ahab imx: spl_imx_romapi: typo fix imx: move imx8 sci header file to include/firmware/imx imx: firmware: sci: add inline functions when IMX8 not enabled imx: imx8_cpu: use static for local functions imx: imx8_cpu: support i.MX9 imx: imx8_cpu: support get temperature for i.MX9 imx: imx8_cpu: print cpu grade temperature imx9: configure M33 systick to 24M imx9: add more PLL settings imx9: use parameter freq when set_arm_clk imx9: correct getting LPI2C clk imx9: simplify clk settings imx9: cut off OPTEE memory region from U-Boot imx9: imx93_evk: enable CPU_IMX imx9: imx93_evk: drop unused macro imx9: imx93_evk: select IMX_TMU imx9: imx93_evk: enable CONFIG_WDT watchdog: ulp_wdog: guard reset_cpu with condition check imx9: soc: support reset cause imx9: Get market segment and speed grading imx9: clock: clear HW_CTRL_SEL imx9: clock: add CONFIG_IMX9_LOW_DRIVE_MODE support imx9: clock: config arm alt root to 500mhz imx9: add i.MX93 variants support imx9: correct coding style imx9: use i.MX generic rom api function imx9: imx93_evk: add low drive mode support on 11x11 EVK arm: dts: imx93: sync device tree with Linux arm: dts: imx93: add tmu imx9: imx93_evk: Update spl stack & bss base address imx9: imx93_evk: update ddr timing file imx9: imx93_evk: enable sysreset Ye Li (5): thermal: imx_tmu: Update TMU driver to support iMX93 imx9: Change hard coded MAC to read from fuse imx9: allow to bootaux Mcore with input address ddr: imx9: Add workaround for DDRPHY rank-to-rank errata imx9: Calculate DDR size from DDRC setting arch/arm/dts/imx93-11x11-evk-u-boot.dtsi | 29 - arch/arm/dts/imx93-11x11-evk.dts | 385 +- arch/arm/dts/imx93-pinfunc.h | 194 +- arch/arm/dts/imx93.dtsi | 618 +-- arch/arm/include/asm/arch-imx/cpu.h | 7 + arch/arm/include/asm/arch-imx8/power-domain.h | 2 +- arch/arm/include/asm/arch-imx8/sci/sci.h | 138 - arch/arm/include/asm/arch-imx8/sys_proto.h | 2 +- arch/arm/include/asm/arch-imx8m/ddr.h | 2 +- arch/arm/include/asm/arch-imx9/clock.h | 6 + arch/arm/include/asm/arch-imx9/ddr.h | 23 +- arch/arm/include/asm/arch-imx9/imx-regs.h | 3 + arch/arm/include/asm/mach-imx/sys_proto.h | 12 +- arch/arm/mach-imx/cmd_dek.c | 2 +- arch/arm/mach-imx/imx8/ahab.c | 2 +- arch/arm/mach-imx/imx8/cpu.c | 2 +- arch/arm/mach-imx/imx8/fdt.c | 2 +- arch/arm/mach-imx/imx8/iomux.c | 2 +- arch/arm/mach-imx/imx8/misc.c | 2 +- arch/arm/mach-im
Re: [PATCH 00/42] imx: i.MX9 update
Hi Stefano, Fabio Do you have time to give a look? Is there a chance to for this patchset landed in 2023.07? Thanks, Peng On 4/28/2023 12:08 PM, Peng Fan (OSS) wrote: From: Peng Fan This patchset includes updates mainly for i.MX9, such as Clock, Memory, Parts, Low drive mode, DDR, cpu driver, Variants The first patch is not about i.MX9, just include it here since it is a simple one for i.MX8ULP. For the watchdog reset_cpu, I will move it out from watchdog driver in future patches which would includes other changes. I include it here mainly for sysreset support. This patchset depends on two patches from Marek: https://patchwork.ozlabs.org/project/uboot/patch/20230404192510.160819-1-ma...@denx.de/ https://patchwork.ozlabs.org/project/uboot/patch/20230404192510.160819-2-ma...@denx.de/ Jacky Bai (4): ddr: imx9: Change the saved ddr data base to 0x2051c000 ddr: imx93: Add 625M bypass clock support ddr: imx93: update the ddr init to support mult setpoints ddr: imx9: update the rank setting for multi fsp support Peng Fan (33): imx8ulp: build ahab imx: spl_imx_romapi: typo fix imx: move imx8 sci header file to include/firmware/imx imx: firmware: sci: add inline functions when IMX8 not enabled imx: imx8_cpu: use static for local functions imx: imx8_cpu: support i.MX9 imx: imx8_cpu: support get temperature for i.MX9 imx: imx8_cpu: print cpu grade temperature imx9: configure M33 systick to 24M imx9: add more PLL settings imx9: use parameter freq when set_arm_clk imx9: correct getting LPI2C clk imx9: simplify clk settings imx9: cut off OPTEE memory region from U-Boot imx9: imx93_evk: enable CPU_IMX imx9: imx93_evk: drop unused macro imx9: imx93_evk: select IMX_TMU imx9: imx93_evk: enable CONFIG_WDT watchdog: ulp_wdog: guard reset_cpu with condition check imx9: soc: support reset cause imx9: Get market segment and speed grading imx9: clock: clear HW_CTRL_SEL imx9: clock: add CONFIG_IMX9_LOW_DRIVE_MODE support imx9: clock: config arm alt root to 500mhz imx9: add i.MX93 variants support imx9: correct coding style imx9: use i.MX generic rom api function imx9: imx93_evk: add low drive mode support on 11x11 EVK arm: dts: imx93: sync device tree with Linux arm: dts: imx93: add tmu imx9: imx93_evk: Update spl stack & bss base address imx9: imx93_evk: update ddr timing file imx9: imx93_evk: enable sysreset Ye Li (5): thermal: imx_tmu: Update TMU driver to support iMX93 imx9: Change hard coded MAC to read from fuse imx9: allow to bootaux Mcore with input address ddr: imx9: Add workaround for DDRPHY rank-to-rank errata imx9: Calculate DDR size from DDRC setting arch/arm/dts/imx93-11x11-evk-u-boot.dtsi | 29 - arch/arm/dts/imx93-11x11-evk.dts | 385 +- arch/arm/dts/imx93-pinfunc.h | 194 +- arch/arm/dts/imx93.dtsi | 618 +-- arch/arm/include/asm/arch-imx/cpu.h |7 + arch/arm/include/asm/arch-imx8/power-domain.h |2 +- arch/arm/include/asm/arch-imx8/sci/sci.h | 138 - arch/arm/include/asm/arch-imx8/sys_proto.h|2 +- arch/arm/include/asm/arch-imx8m/ddr.h |2 +- arch/arm/include/asm/arch-imx9/clock.h|6 + arch/arm/include/asm/arch-imx9/ddr.h | 23 +- arch/arm/include/asm/arch-imx9/imx-regs.h |3 + arch/arm/include/asm/mach-imx/sys_proto.h | 12 +- arch/arm/mach-imx/cmd_dek.c |2 +- arch/arm/mach-imx/imx8/ahab.c |2 +- arch/arm/mach-imx/imx8/cpu.c |2 +- arch/arm/mach-imx/imx8/fdt.c |2 +- arch/arm/mach-imx/imx8/iomux.c|2 +- arch/arm/mach-imx/imx8/misc.c |2 +- arch/arm/mach-imx/imx8/snvs_security_sc.c |2 +- arch/arm/mach-imx/imx8ulp/Kconfig |5 + arch/arm/mach-imx/imx8ulp/Makefile|1 + arch/arm/mach-imx/imx9/Kconfig|5 + arch/arm/mach-imx/imx9/clock.c| 113 +- arch/arm/mach-imx/imx9/imx_bootaux.c | 10 +- arch/arm/mach-imx/imx9/soc.c | 384 +- arch/arm/mach-imx/parse-container.c |2 +- arch/arm/mach-imx/spl_imx_romapi.c|2 +- .../imx8qm_rom7720_a1/imx8qm_rom7720_a1.c |2 +- board/advantech/imx8qm_rom7720_a1/spl.c |2 +- board/congatec/cgtqmx8/cgtqmx8.c |2 +- board/freescale/imx8qm_mek/imx8qm_mek.c |2 +- board/freescale/imx8qxp_mek/imx8qxp_mek.c |2 +- board/freescale/imx8qxp_mek/spl.c |2 +- board/freescale/imx93_evk/MAINTAINERS |1 + board/freescale/imx93_evk/Makefile|4 + board/freescale/imx93_evk/lpddr4x_timing.c| 3361 ++--- board/freescale/imx93_evk/lpddr4x_timing_ld.c | 1496 board/freescale/imx93_evk/spl.c | 26 +
Re: [PATCH 00/42] imx: i.MX9 update
On 4/28/23 06:08, Peng Fan (OSS) wrote: From: Peng Fan This patchset includes updates mainly for i.MX9, such as Clock, Memory, Parts, Low drive mode, DDR, cpu driver, Variants The first patch is not about i.MX9, just include it here since it is a simple one for i.MX8ULP. For the watchdog reset_cpu, I will move it out from watchdog driver in future patches which would includes other changes. I include it here mainly for sysreset support. Good to hear, thanks for working on this. Thanks, Stefan This patchset depends on two patches from Marek: https://patchwork.ozlabs.org/project/uboot/patch/20230404192510.160819-1-ma...@denx.de/ https://patchwork.ozlabs.org/project/uboot/patch/20230404192510.160819-2-ma...@denx.de/ Jacky Bai (4): ddr: imx9: Change the saved ddr data base to 0x2051c000 ddr: imx93: Add 625M bypass clock support ddr: imx93: update the ddr init to support mult setpoints ddr: imx9: update the rank setting for multi fsp support Peng Fan (33): imx8ulp: build ahab imx: spl_imx_romapi: typo fix imx: move imx8 sci header file to include/firmware/imx imx: firmware: sci: add inline functions when IMX8 not enabled imx: imx8_cpu: use static for local functions imx: imx8_cpu: support i.MX9 imx: imx8_cpu: support get temperature for i.MX9 imx: imx8_cpu: print cpu grade temperature imx9: configure M33 systick to 24M imx9: add more PLL settings imx9: use parameter freq when set_arm_clk imx9: correct getting LPI2C clk imx9: simplify clk settings imx9: cut off OPTEE memory region from U-Boot imx9: imx93_evk: enable CPU_IMX imx9: imx93_evk: drop unused macro imx9: imx93_evk: select IMX_TMU imx9: imx93_evk: enable CONFIG_WDT watchdog: ulp_wdog: guard reset_cpu with condition check imx9: soc: support reset cause imx9: Get market segment and speed grading imx9: clock: clear HW_CTRL_SEL imx9: clock: add CONFIG_IMX9_LOW_DRIVE_MODE support imx9: clock: config arm alt root to 500mhz imx9: add i.MX93 variants support imx9: correct coding style imx9: use i.MX generic rom api function imx9: imx93_evk: add low drive mode support on 11x11 EVK arm: dts: imx93: sync device tree with Linux arm: dts: imx93: add tmu imx9: imx93_evk: Update spl stack & bss base address imx9: imx93_evk: update ddr timing file imx9: imx93_evk: enable sysreset Ye Li (5): thermal: imx_tmu: Update TMU driver to support iMX93 imx9: Change hard coded MAC to read from fuse imx9: allow to bootaux Mcore with input address ddr: imx9: Add workaround for DDRPHY rank-to-rank errata imx9: Calculate DDR size from DDRC setting arch/arm/dts/imx93-11x11-evk-u-boot.dtsi | 29 - arch/arm/dts/imx93-11x11-evk.dts | 385 +- arch/arm/dts/imx93-pinfunc.h | 194 +- arch/arm/dts/imx93.dtsi | 618 +-- arch/arm/include/asm/arch-imx/cpu.h |7 + arch/arm/include/asm/arch-imx8/power-domain.h |2 +- arch/arm/include/asm/arch-imx8/sci/sci.h | 138 - arch/arm/include/asm/arch-imx8/sys_proto.h|2 +- arch/arm/include/asm/arch-imx8m/ddr.h |2 +- arch/arm/include/asm/arch-imx9/clock.h|6 + arch/arm/include/asm/arch-imx9/ddr.h | 23 +- arch/arm/include/asm/arch-imx9/imx-regs.h |3 + arch/arm/include/asm/mach-imx/sys_proto.h | 12 +- arch/arm/mach-imx/cmd_dek.c |2 +- arch/arm/mach-imx/imx8/ahab.c |2 +- arch/arm/mach-imx/imx8/cpu.c |2 +- arch/arm/mach-imx/imx8/fdt.c |2 +- arch/arm/mach-imx/imx8/iomux.c|2 +- arch/arm/mach-imx/imx8/misc.c |2 +- arch/arm/mach-imx/imx8/snvs_security_sc.c |2 +- arch/arm/mach-imx/imx8ulp/Kconfig |5 + arch/arm/mach-imx/imx8ulp/Makefile|1 + arch/arm/mach-imx/imx9/Kconfig|5 + arch/arm/mach-imx/imx9/clock.c| 113 +- arch/arm/mach-imx/imx9/imx_bootaux.c | 10 +- arch/arm/mach-imx/imx9/soc.c | 384 +- arch/arm/mach-imx/parse-container.c |2 +- arch/arm/mach-imx/spl_imx_romapi.c|2 +- .../imx8qm_rom7720_a1/imx8qm_rom7720_a1.c |2 +- board/advantech/imx8qm_rom7720_a1/spl.c |2 +- board/congatec/cgtqmx8/cgtqmx8.c |2 +- board/freescale/imx8qm_mek/imx8qm_mek.c |2 +- board/freescale/imx8qxp_mek/imx8qxp_mek.c |2 +- board/freescale/imx8qxp_mek/spl.c |2 +- board/freescale/imx93_evk/MAINTAINERS |1 + board/freescale/imx93_evk/Makefile|4 + board/freescale/imx93_evk/lpddr4x_timing.c| 3361 ++--- board/freescale/imx93_evk/lpddr4x_timing_ld.c | 1496 board/freescale/imx93_evk/spl.c | 26 +- board/siemens/capricorn/board.c |2 +- board/tor