devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] arm64: dts: imx8mp: Correct thermal sensor index
@ 2025-09-05  3:01 Peng Fan
  2025-09-05 14:25 ` Frank Li
  2025-09-11  3:25 ` Shawn Guo
  0 siblings, 2 replies; 3+ messages in thread
From: Peng Fan @ 2025-09-05  3:01 UTC (permalink / raw)
  To: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	Amit Kucheria
  Cc: devicetree, imx, linux-arm-kernel, linux-kernel, Peng Fan

The TMU has two temperature measurement sites located on the chip. The
probe 0 is located inside of the ANAMIX, while the probe 1 is located near
the ARM core. This has been confirmed by checking with HW design team and
checking RTL code.

So correct the {cpu,soc}-thermal sensor index.

Fixes: 30cdd62dce6b ("arm64: dts: imx8mp: Add thermal zones support")
Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx8mp.dtsi | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
index 5d10de3950c3488acc80f574c8c59b55b6fbf575..91e47b1d6902fc22a368511a57522aa7d55ae167 100644
--- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
@@ -298,7 +298,7 @@ thermal-zones {
 		cpu-thermal {
 			polling-delay-passive = <250>;
 			polling-delay = <2000>;
-			thermal-sensors = <&tmu 0>;
+			thermal-sensors = <&tmu 1>;
 			trips {
 				cpu_alert0: trip0 {
 					temperature = <85000>;
@@ -331,7 +331,7 @@ map0 {
 		soc-thermal {
 			polling-delay-passive = <250>;
 			polling-delay = <2000>;
-			thermal-sensors = <&tmu 1>;
+			thermal-sensors = <&tmu 0>;
 			trips {
 				soc_alert0: trip0 {
 					temperature = <85000>;

---
base-commit: 4ac65880ebca1b68495bd8704263b26c050ac010
change-id: 20250905-imx8mp-thermal-08271c5cb5c7

Best regards,
-- 
Peng Fan <peng.fan@nxp.com>


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] arm64: dts: imx8mp: Correct thermal sensor index
  2025-09-05  3:01 [PATCH] arm64: dts: imx8mp: Correct thermal sensor index Peng Fan
@ 2025-09-05 14:25 ` Frank Li
  2025-09-11  3:25 ` Shawn Guo
  1 sibling, 0 replies; 3+ messages in thread
From: Frank Li @ 2025-09-05 14:25 UTC (permalink / raw)
  To: Peng Fan
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	Amit Kucheria, devicetree, imx, linux-arm-kernel, linux-kernel

On Fri, Sep 05, 2025 at 11:01:09AM +0800, Peng Fan wrote:
> The TMU has two temperature measurement sites located on the chip. The
> probe 0 is located inside of the ANAMIX, while the probe 1 is located near
> the ARM core. This has been confirmed by checking with HW design team and
> checking RTL code.
>
> So correct the {cpu,soc}-thermal sensor index.
>
> Fixes: 30cdd62dce6b ("arm64: dts: imx8mp: Add thermal zones support")
> Signed-off-by: Peng Fan <peng.fan@nxp.com>

Reviewed-by: Frank Li <Frank.Li@nxp.com>

> ---
>  arch/arm64/boot/dts/freescale/imx8mp.dtsi | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/arch/arm64/boot/dts/freescale/imx8mp.dtsi b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
> index 5d10de3950c3488acc80f574c8c59b55b6fbf575..91e47b1d6902fc22a368511a57522aa7d55ae167 100644
> --- a/arch/arm64/boot/dts/freescale/imx8mp.dtsi
> +++ b/arch/arm64/boot/dts/freescale/imx8mp.dtsi
> @@ -298,7 +298,7 @@ thermal-zones {
>  		cpu-thermal {
>  			polling-delay-passive = <250>;
>  			polling-delay = <2000>;
> -			thermal-sensors = <&tmu 0>;
> +			thermal-sensors = <&tmu 1>;
>  			trips {
>  				cpu_alert0: trip0 {
>  					temperature = <85000>;
> @@ -331,7 +331,7 @@ map0 {
>  		soc-thermal {
>  			polling-delay-passive = <250>;
>  			polling-delay = <2000>;
> -			thermal-sensors = <&tmu 1>;
> +			thermal-sensors = <&tmu 0>;
>  			trips {
>  				soc_alert0: trip0 {
>  					temperature = <85000>;
>
> ---
> base-commit: 4ac65880ebca1b68495bd8704263b26c050ac010
> change-id: 20250905-imx8mp-thermal-08271c5cb5c7
>
> Best regards,
> --
> Peng Fan <peng.fan@nxp.com>
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] arm64: dts: imx8mp: Correct thermal sensor index
  2025-09-05  3:01 [PATCH] arm64: dts: imx8mp: Correct thermal sensor index Peng Fan
  2025-09-05 14:25 ` Frank Li
@ 2025-09-11  3:25 ` Shawn Guo
  1 sibling, 0 replies; 3+ messages in thread
From: Shawn Guo @ 2025-09-11  3:25 UTC (permalink / raw)
  To: Peng Fan
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Shawn Guo,
	Sascha Hauer, Pengutronix Kernel Team, Fabio Estevam,
	Amit Kucheria, devicetree, imx, linux-arm-kernel, linux-kernel

On Fri, Sep 05, 2025 at 11:01:09AM +0800, Peng Fan wrote:
> The TMU has two temperature measurement sites located on the chip. The
> probe 0 is located inside of the ANAMIX, while the probe 1 is located near
> the ARM core. This has been confirmed by checking with HW design team and
> checking RTL code.
> 
> So correct the {cpu,soc}-thermal sensor index.
> 
> Fixes: 30cdd62dce6b ("arm64: dts: imx8mp: Add thermal zones support")
> Signed-off-by: Peng Fan <peng.fan@nxp.com>

Applied, thanks!


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-09-11  3:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-05  3:01 [PATCH] arm64: dts: imx8mp: Correct thermal sensor index Peng Fan
2025-09-05 14:25 ` Frank Li
2025-09-11  3:25 ` Shawn Guo

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).