Skip to content

Commit

Permalink
arm64: dts: colibri-imx8x: Add PMIC thermal zone
Browse files Browse the repository at this point in the history
Add PMIC thermal zones.

Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>
  • Loading branch information
Francesco Dolcini authored and Shawn Guo committed Sep 4, 2024
1 parent ce97bdc commit 8b23ba4
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 2 deletions.
11 changes: 11 additions & 0 deletions arch/arm64/boot/dts/freescale/imx8dx-colibri.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
};
};
};
};
34 changes: 32 additions & 2 deletions arch/arm64/boot/dts/freescale/imx8x-colibri.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,6 @@
vref-supply = <&reg_module_vref_1v8>;
};

/* TODO Cooling maps for DX */

&cpu_alert0 {
hysteresis = <2000>;
temperature = <90000>;
Expand Down Expand Up @@ -420,6 +418,38 @@
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;
Expand Down

0 comments on commit 8b23ba4

Please sign in to comment.