Commit 8b23ba41 authored by Francesco Dolcini's avatar Francesco Dolcini Committed by Shawn Guo
Browse files

arm64: dts: colibri-imx8x: Add PMIC thermal zone



Add PMIC thermal zones.

Signed-off-by: default avatarFrancesco Dolcini <francesco.dolcini@toradex.com>
Signed-off-by: default avatarShawn Guo <shawnguo@kernel.org>
parent ce97bdc3
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -9,3 +9,14 @@
/ {
	model = "Toradex Colibri iMX8DX Module";
};

&thermal_zones {
	pmic-thermal {
		cooling-maps {
			map0 {
				cooling-device = <&A35_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
						 <&A35_1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
			};
		};
	};
};
+32 −2
Original line number Diff line number Diff line
@@ -88,8 +88,6 @@ &adc0 {
	vref-supply = <&reg_module_vref_1v8>;
};

/* TODO Cooling maps for DX */

&cpu_alert0 {
	hysteresis = <2000>;
	temperature = <90000>;
@@ -420,6 +418,38 @@ &sai0 {
	status = "okay";
};

&thermal_zones {
	pmic-thermal {
		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>;
			};
		};
	};
};

&usbotg1 {
	adp-disable;
	disable-over-current;