diff options
author | Francesco Dolcini <francesco.dolcini@toradex.com> | 2023-03-17 15:13:06 +0100 |
---|---|---|
committer | Francesco Dolcini <francesco.dolcini@toradex.com> | 2023-03-17 15:57:35 +0000 |
commit | 6f8a90c1d95264d1d3e6d2de87224a569624f54d (patch) | |
tree | d7a69be66e93e6d32510854c9c1a2866f6b3ff22 /arch | |
parent | d022e573f64a6768835d8ea329703d3a0ef080e9 (diff) |
arm64: dts: colibri-imx8x: Add PMIC thermal zone
Add PMIC thermal zone as is was present on both Colibri-iMX8x/BSP5 and
in MEK board.
Without this the thermal sensor driver fails to probe on colibri-imx8x
with i.MX8X DX SOC, this is happening because imx8dx-colibri.dtsi
creates an incomplete thermal zone node for the PMIC.
Upstream-Status: Pending
This should be send upstream, however the first batch of DTS files is
under review, therefore it seems better to just postpone it.
Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi b/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi index bf0b8eb25ad4..9e7c65a36bde 100644 --- a/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi +++ b/arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi @@ -720,6 +720,38 @@ 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>, + <&A35_2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>, + <&A35_3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>; + }; + }; + }; +}; + /* On-module eMMC */ &usdhc1 { bus-width = <8>; |