Skip to content

Commit f0ed0e8

Browse files
nxpfrankliShawn Guo
authored andcommitted
arm64: dts: imx91: Add thermal-sensor and thermal-zone support
Add thermal-sensor and thermal-zone support. Signed-off-by: Frank Li <Frank.Li@nxp.com> Signed-off-by: Shawn Guo <shawnguo@kernel.org>
1 parent b4bf5e5 commit f0ed0e8

1 file changed

Lines changed: 58 additions & 0 deletions

File tree

arch/arm64/boot/dts/freescale/imx91.dtsi

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,54 @@
66
#include "imx91-pinfunc.h"
77
#include "imx91_93_common.dtsi"
88

9+
/{
10+
thermal-zones {
11+
cpu-thermal {
12+
polling-delay-passive = <250>;
13+
polling-delay = <2000>;
14+
thermal-sensors = <&tmu 0>;
15+
16+
trips {
17+
cpu_alert: cpu-alert {
18+
temperature = <80000>;
19+
hysteresis = <2000>;
20+
type = "passive";
21+
};
22+
23+
cpu_crit: cpu-crit {
24+
temperature = <90000>;
25+
hysteresis = <2000>;
26+
type = "critical";
27+
};
28+
};
29+
30+
cooling-maps {
31+
map0 {
32+
trip = <&cpu_alert>;
33+
cooling-device =
34+
<&A55_0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
35+
};
36+
};
37+
};
38+
};
39+
};
40+
41+
&aips1 {
42+
tmu: thermal-sensor@44482000 {
43+
compatible = "fsl,imx91-tmu";
44+
reg = <0x44482000 0x1000>;
45+
#thermal-sensor-cells = <0>;
46+
clocks = <&clk IMX93_CLK_TMC_GATE>;
47+
interrupt-parent = <&gic>;
48+
interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>,
49+
<GIC_SPI 84 IRQ_TYPE_LEVEL_HIGH>,
50+
<GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
51+
interrupt-names = "thr1", "thr2", "ready";
52+
nvmem-cells = <&tmu_trim1>, <&tmu_trim2>;
53+
nvmem-cell-names = "trim1", "trim2";
54+
};
55+
};
56+
957
&clk {
1058
compatible = "fsl,imx91-ccm";
1159
};
@@ -69,3 +117,13 @@
69117
clock-names = "apb", "axi", "nic", "disp", "cam",
70118
"lcdif", "isi", "csi";
71119
};
120+
121+
&ocotp {
122+
tmu_trim1: tmu-trim@a0 {
123+
reg = <0xa0 0x4>;
124+
};
125+
126+
tmu_trim2: tmu-trim@a4 {
127+
reg = <0xa4 0x4>;
128+
};
129+
};

0 commit comments

Comments
 (0)