From cb88cc157bfba265f7cc1156d82f646d09520909 Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Wed, 29 Sep 2021 20:12:33 +0200 Subject: 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 --- arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi | 31 ++++++++++++++++++++++++ 1 file changed, 31 insertions(+) (limited to 'arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi') 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>; -- cgit v1.2.3