imx: imx9: Imply IMX_TMU
Subsystems (3)
PATCH v2 1/5 imx: imx9: Imply IMX_TMU
If the CPU Information is displayed from imx8_cpu, it displays the cpu temperature grade and operating temperature if CONFIG_IMX9 is defined. This behavior is similar to what happens arch/arm/mach-imx/cpu.c except that the latter checks for CONFIG_IMX_THERMAL or CONFIG_IMX_TMU. In preparation to make imx8_cpu act like the previous implementation for any CPU, make IMX9 imply IMX_TMU so it will be always displayed unless a user decides to disable it.
--- arch/arm/mach-imx/imx9/Kconfig | 1 + 1 file changed, 1 insertion(+)
V2: New to series
arch/arm/mach-imx/imx9/Kconfig +1 -0
@@ -10,6 +10,7 @@ config IMX9 select BINMAN select HAS_CAAM select ROM_UNIFIED_SECTIONS + imply IMX_TMU config IMX93 bool
Signature · 1 line
2.45.2
PATCH v2 2/5 cpu: imx8_cpu: Print Speed grade if IMX_THERMAL or IMX_TMU
Much of the data that is display by imx8_cpu.c is also displayed from arch/arm/mach-imx/cpu.c, except the temperature grade and active temperature are only displayed when SoC is an i.MX9. Since IMX9 now implies IMX_TMU, change this to check for IMX_THERMAL or IMX_TMU in the same way it's done in mach-imx/cpu.c to enable displaying this information for any SoC with either of these configs enabled.
Before:
CPU: NXP i.MX8MP Rev1.1 A53 at 1200 MHz Model: Beacon EmbeddedWorks i.MX8MPlus Development kit
After:
CPU: NXP i.MX8MP Rev1.1 A53 at 1200 MHz CPU: Industrial temperature grade (-40C to 105C) at 28C Model: Beacon EmbeddedWorks i.MX8MPlus Development kit
--- drivers/cpu/imx8_cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
V2: No change
drivers/cpu/imx8_cpu.c +1 -1
@@ -177,7 +177,7 @@ static int cpu_imx_get_desc(const struct udevice *dev, char *buf, int size) ret =snprintf (buf, size,"NXP i.MX%s Rev%s %s at %u MHz" , plat->type, plat->rev, plat->name, plat->freq_mhz); -if (IS_ENABLED (CONFIG_IMX9 )) { +if (IS_ENABLED (CONFIG_IMX_THERMAL ) ||IS_ENABLED (CONFIG_IMX_TMU )) {switch (get_cpu_temp_grade (&minc, &maxc)) {case TEMP_AUTOMOTIVE : grade ="Automotive temperature grade " ;
Signature · 1 line
2.45.2
PATCH v2 3/5 arm64: imx: imx8mm-beacon: Enable CPU_IMX
In reply to Adam FordEnable CPU_IMX to register the ARM core and identify the speed and temperature information using the driver model.
--- configs/imx8mm_beacon_defconfig | 2 ++ 1 file changed, 2 insertions(+)
V2: No Change
configs/imx8mm_beacon_defconfig +2 -0
@@ -84,6 +84,8 @@ CONFIG_SPL_CLK_COMPOSITE_CCF=y CONFIG_CLK_COMPOSITE_CCF=y CONFIG_SPL_CLK_IMX8MM=y CONFIG_CLK_IMX8MM=y +CONFIG_CPU=y +CONFIG_CPU_IMX=y CONFIG_USB_FUNCTION_FASTBOOT=y CONFIG_FASTBOOT_BUF_ADDR=0x42800000 CONFIG_FASTBOOT_BUF_SIZE=0x20000000
Signature · 1 line
2.45.2
Re: [PATCH V2 3/5] arm64: imx: imx8mm-beacon: Enable CPU_IMX
Quoted 4 lines · Adam Ford
Enable
CPU_IMXto register the ARM core and identify the speed and temperature information using the driver model.Signed-off-by Adam Ford <[email protected]>
I am tempted to say, imply this for all iMX8M and iMX9 in arch/... Kconfig , so it gets consistently enabled for everyone .
Re: [PATCH V2 3/5] arm64: imx: imx8mm-beacon: Enable CPU_IMX
Quoted 8 lines · Marek Vasut
Quoted 4 lines · Adam Ford
Enable
CPU_IMXto register the ARM core and identify the speed and temperature information using the driver model.Signed-off-by Adam Ford <[email protected]>I am tempted to say, imply this for all iMX8M and iMX9 in
arch/...Kconfig, so it gets consistently enabled for everyone .
I was not super excited to change the behavior for everyone. Since the IMX9 always displayed it, it seems safe, since there would be no obvious change in behavior. Making this implied for everyone would result in a change in behavior.
adam
Re: [PATCH V2 3/5] arm64: imx: imx8mm-beacon: Enable CPU_IMX
Quoted 6 lines · Adam Ford
Quoted 5 lines · Marek Vasut
Quoted 3 lines · Adam Ford
Enable
CPU_IMXto register the ARM core and identify the speed and temperature information using the driver model.
Quoted 8 lines
Quoted 3 lines
Quoted 1 line
Signed-off-by Adam Ford <[email protected]>I am tempted to say, imply this for all iMX8M and iMX9 in
arch/...Kconfig, so it gets consistently enabled for everyone .I was not super excited to change the behavior for everyone. Since the IMX9 always displayed it, it seems safe, since there would be no obvious change in behavior. Making this implied for everyone would result in a change in behavior.
Yes, I know. But then, I can safely say it is desired on hardware I maintain, I think we could try and run a quick poll and see if others see it the same way ?
Either way is fine by me, feel free to ignore this suggestion.
Fabio Estevam
reviewerRe: [PATCH V2 3/5] arm64: imx: imx8mm-beacon: Enable CPU_IMX
Quoted 3 lines · Marek Vasut
Yes, I know. But then, I can safely say it is desired on hardware I maintain, I think we could try and run a quick poll and see if others see it the same way ?
I think it is a good idea to imply the thermal driver at the SoC level instead of per board.
Thanks
Re: [PATCH V2 3/5] arm64: imx: imx8mm-beacon: Enable CPU_IMX
Quoted 9 lines · Fabio Estevam
Quoted 3 lines · Marek Vasut
Yes, I know. But then, I can safely say it is desired on hardware I maintain, I think we could try and run a quick poll and see if others see it the same way ?
I think it is a good idea to imply the thermal driver at the SoC level instead of per board.
OK. I'll spin a V3 which implies the respective thermal driver at the SoC level for IMX8 and 8M families, since those are what are supported in the CPU driver. Should I expand this list beyond those? I am not sure how far back to go.
thanks,
adam
Quoted 2 lines
Thanks
Re: [PATCH V2 3/5] arm64: imx: imx8mm-beacon: Enable CPU_IMX
Quoted 8 lines · Adam Ford
Quoted 7 lines · Fabio Estevam
Quoted 3 lines · Marek Vasut
Yes, I know. But then, I can safely say it is desired on hardware I maintain, I think we could try and run a quick poll and see if others see it the same way ?
Quoted 7 lines
Quoted 2 lines
I think it is a good idea to imply the thermal driver at the SoC level instead of per board.
OK. I'll spin a V3 which implies the respective thermal driver at the SoC level for IMX8 and 8M families, since those are what are supported in the CPU driver. Should I expand this list beyond those? I am not sure how far back to go.
8/8M and newer seems like the right way, thanks !
PATCH v2 4/5 arm64: imx: imx8mn-beacon: Enable CPU_IMX
In reply to Adam FordEnable CPU_IMX to register the ARM core and identify the speed and temperature information using the driver model.
--- configs/imx8mn_beacon_defconfig | 2 ++ 1 file changed, 2 insertions(+)
V2: No Change
configs/imx8mn_beacon_defconfig +2 -0
@@ -93,6 +93,8 @@ CONFIG_REGMAP=y CONFIG_SYSCON=y CONFIG_SPL_CLK_IMX8MN=y CONFIG_CLK_IMX8MN=y +CONFIG_CPU=y +CONFIG_CPU_IMX=y CONFIG_USB_FUNCTION_FASTBOOT=y CONFIG_FASTBOOT_BUF_ADDR=0x42800000 CONFIG_FASTBOOT_BUF_SIZE=0x40000000
Signature · 1 line
2.45.2
PATCH v2 5/5 arm64: imx: imx8mp-beacon: Enable CPU_IMX
In reply to Adam FordEnable CPU_IMX to register the ARM core and identify the speed and temperature information using the driver model.
--- configs/imx8mp_beacon_defconfig | 2 ++ 1 file changed, 2 insertions(+)
V2: No Change
configs/imx8mp_beacon_defconfig +2 -0
@@ -88,6 +88,8 @@ CONFIG_SPL_DM=y CONFIG_CLK_COMPOSITE_CCF=y CONFIG_SPL_CLK_IMX8MP=y CONFIG_CLK_IMX8MP=y +CONFIG_CPU=y +CONFIG_CPU_IMX=y CONFIG_USB_FUNCTION_FASTBOOT=y CONFIG_FASTBOOT_BUF_ADDR=0x42800000 CONFIG_FASTBOOT_BUF_SIZE=0x20000000
Signature · 1 line
2.45.2