new file mode 100644
@@ -0,0 +1,61 @@
+// SPDX-License-Identifier: GPL-2.0+ OR MIT
+//
+// Copyright 2022 Toradex
+
+automotive-thermal {
+ trips {
+ temp_trip_passive_automotive: trip-point0 {
+ temperature = <115000>;
+ hysteresis = <0>;
+ type = "passive";
+ };
+ temp_trip_crit_automotive: trip-point1 {
+ temperature = <120000>;
+ hysteresis = <0>;
+ type = "critical";
+ };
+ };
+};
+commercial-thermal {
+ trips {
+ temp_trip_passive_commercial: trip-point0 {
+ temperature = <85000>;
+ hysteresis = <0>;
+ type = "passive";
+ };
+ temp_trip_crit_commercial: trip-point1 {
+ temperature = <90000>;
+ hysteresis = <0>;
+ type = "critical";
+ };
+ };
+};
+extended-commercial-thermal {
+ trips {
+ temp_trip_passive_ecommercial: trip-point0 {
+ temperature = <95000>;
+ hysteresis = <0>;
+ type = "passive";
+ };
+ temp_trip_crit_ecommercial: trip-point1 {
+ temperature = <100000>;
+ hysteresis = <0>;
+ type = "critical";
+ };
+ };
+};
+industrial-thermal {
+ trips {
+ temp_trip_passive_industrial: trip-point0 {
+ temperature = <95000>;
+ hysteresis = <0>;
+ type = "passive";
+ };
+ temp_trip_crit_industrial: trip-point1 {
+ temperature = <100000>;
+ hysteresis = <0>;
+ type = "critical";
+ };
+ };
+};
+
@@ -800,6 +800,8 @@ tempmon: tempmon {
nvmem-cell-names = "calib", "temp_grade";
clocks = <&clks IMX6QDL_CLK_PLL3_USB_OTG>;
#thermal-sensor-cells = <0>;
+
+ #include "imx-thermal.dtsi"
};
};
@@ -628,6 +628,8 @@ tempmon: tempmon {
nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>;
nvmem-cell-names = "calib", "temp_grade";
clocks = <&clks IMX6SL_CLK_PLL3_USB_OTG>;
+
+ #include "imx-thermal.dtsi"
};
};
@@ -530,6 +530,8 @@ tempmon: temperature-sensor {
nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>;
nvmem-cell-names = "calib", "temp_grade";
clocks = <&clks IMX6SLL_CLK_PLL3_USB_OTG>;
+
+ #include "imx-thermal.dtsi"
};
};
@@ -718,6 +718,8 @@ tempmon: tempmon {
nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>;
nvmem-cell-names = "calib", "temp_grade";
clocks = <&clks IMX6SX_CLK_PLL3_USB_OTG>;
+
+ #include "imx-thermal.dtsi"
};
};
@@ -639,6 +639,8 @@ tempmon: tempmon {
nvmem-cells = <&tempmon_calib>, <&tempmon_temp_grade>;
nvmem-cell-names = "calib", "temp_grade";
clocks = <&clks IMX6UL_CLK_PLL3_USB_OTG>;
+
+ #include "imx-thermal.dtsi"
};
};
@@ -604,6 +604,8 @@ tempmon: tempmon {
nvmem-cells = <&tempmon_calib>, <&fuse_grade>;
nvmem-cell-names = "calib", "temp_grade";
clocks = <&clks IMX7D_PLL_SYS_MAIN_CLK>;
+
+ #include "imx-thermal.dtsi"
};
};
Add thermal trip point to the i.MX[67]* dtsi for each available temperature grade. Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com> --- v2: no changes --- arch/arm/boot/dts/imx-thermal.dtsi | 61 ++++++++++++++++++++++++++++++ arch/arm/boot/dts/imx6qdl.dtsi | 2 + arch/arm/boot/dts/imx6sl.dtsi | 2 + arch/arm/boot/dts/imx6sll.dtsi | 2 + arch/arm/boot/dts/imx6sx.dtsi | 2 + arch/arm/boot/dts/imx6ul.dtsi | 2 + arch/arm/boot/dts/imx7s.dtsi | 2 + 7 files changed, 73 insertions(+) create mode 100644 arch/arm/boot/dts/imx-thermal.dtsi