diff options
author | Max Krummenacher <max.krummenacher@toradex.com> | 2021-09-29 20:12:33 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2021-09-29 20:17:21 +0200 |
commit | cb88cc157bfba265f7cc1156d82f646d09520909 (patch) | |
tree | 9553a40d77e5959bfb13a4535c5e6301d1c39a38 /arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi | |
parent | 317d9d2a981db69dc1abf9d2cf3d98f8b49ceb59 (diff) |
arm64: dts: colibri-imx8qxp/dx: fix thermal sensor
With the rework of the colibri-imx8qxp/dx the pmic thermal zone nodes
were dropped which results in the thermal sensor driver no longer
probing correctly.
Add the node again.
fixes commit 022cb949c6ec0 ("ARM64: dts: colibri-imx8qxp/dx: new device trees").
root@colibri-imx8qxp:~# dmesg | grep thermal
[ 0.206928] thermal_sys: Registered thermal governor 'step_wise'
[ 0.206933] thermal_sys: Registered thermal governor 'power_allocator'
[ 1.790889] imx-sc-thermal scu:thermal-sensor: failed to get valid sensor resource id: -2
[ 1.799135] imx-sc-thermal: probe of scu:thermal-sensor failed with error -2
Related-to: ELB-4189
Signed-off-by: Max Krummenacher <max.krummenacher@toradex.com>
Diffstat (limited to 'arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi')
-rw-r--r-- | arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi b/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi index 617390dd7399..e53a296c5759 100644 --- a/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi @@ -1368,6 +1368,37 @@ status = "okay"; }; +&thermal_zones { + pmic-thermal0 { + polling-delay-passive = <250>; + polling-delay = <2000>; + thermal-sensors = <&tsens IMX_SC_R_PMIC_0>; + + trips { + pmic_alert0: trip0 { + temperature = <110000>; + hysteresis = <2000>; + type = "passive"; + }; + + pmic_crit0: trip1 { + temperature = <125000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + + cooling-maps { + pmic_cooling_map0: map0 { + trip = <&pmic_alert0>; + cooling-device = + <&A35_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&A35_1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + }; +}; + /* On-module eMMC */ &usdhc1 { bus-width = <8>; |