7a3d8be94b1c754333c4fe48c29b8b7d055bc375
[openwrt/staging/thess.git] /
1 From eba73069e7f6ac3bcb3669d980994ec42ddd810a Mon Sep 17 00:00:00 2001
2 From: Yuantian Tang <andy.tang@nxp.com>
3 Date: Thu, 16 Apr 2020 17:40:06 +0800
4 Subject: [PATCH] arm64: dts: lx2160a: add more thermal zone support
5
6 There are 7 thermal zones in lx2160a soc. Add the
7 rest thermal zone node to enable them.
8 Also correct one of the values for tmu-calibration property.
9
10 Signed-off-by: Yuantian Tang <andy.tang@nxp.com>
11 ---
12 .../arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 130 +++++++++++++++++-
13 1 file changed, 125 insertions(+), 5 deletions(-)
14
15 diff --git a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
16 index cab7468c3..fe9b8bf4d 100644
17 --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
18 +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
19 @@ -440,19 +440,19 @@
20 };
21
22 thermal-zones {
23 - core_thermal1: core-thermal1 {
24 + cluster6-7 {
25 polling-delay-passive = <1000>;
26 polling-delay = <5000>;
27 thermal-sensors = <&tmu 0>;
28
29 trips {
30 - core_cluster_alert: core-cluster-alert {
31 + cluster6_7_alert: cluster6-7-alert {
32 temperature = <85000>;
33 hysteresis = <2000>;
34 type = "passive";
35 };
36
37 - core_cluster_crit: core-cluster-crit {
38 + cluster6_7_crit: cluster6-7-crit {
39 temperature = <95000>;
40 hysteresis = <2000>;
41 type = "critical";
42 @@ -461,7 +461,7 @@
43
44 cooling-maps {
45 map0 {
46 - trip = <&core_cluster_alert>;
47 + trip = <&cluster6_7_alert>;
48 cooling-device =
49 <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
50 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
51 @@ -482,6 +482,126 @@
52 };
53 };
54 };
55 +
56 + ddr-cluster5 {
57 + polling-delay-passive = <1000>;
58 + polling-delay = <5000>;
59 + thermal-sensors = <&tmu 1>;
60 +
61 + trips {
62 + ddr-cluster5-alert {
63 + temperature = <85000>;
64 + hysteresis = <2000>;
65 + type = "passive";
66 + };
67 +
68 + ddr-cluster5-crit {
69 + temperature = <95000>;
70 + hysteresis = <2000>;
71 + type = "critical";
72 + };
73 + };
74 + };
75 +
76 + wriop {
77 + polling-delay-passive = <1000>;
78 + polling-delay = <5000>;
79 + thermal-sensors = <&tmu 2>;
80 +
81 + trips {
82 + wriop-alert {
83 + temperature = <85000>;
84 + hysteresis = <2000>;
85 + type = "passive";
86 + };
87 +
88 + wriop-crit {
89 + temperature = <95000>;
90 + hysteresis = <2000>;
91 + type = "critical";
92 + };
93 + };
94 + };
95 +
96 + dce-qbman-hsio2 {
97 + polling-delay-passive = <1000>;
98 + polling-delay = <5000>;
99 + thermal-sensors = <&tmu 3>;
100 +
101 + trips {
102 + dce-qbman-alert {
103 + temperature = <85000>;
104 + hysteresis = <2000>;
105 + type = "passive";
106 + };
107 +
108 + dce-qbman-crit {
109 + temperature = <95000>;
110 + hysteresis = <2000>;
111 + type = "critical";
112 + };
113 + };
114 + };
115 +
116 + ccn-dpaa-tbu {
117 + polling-delay-passive = <1000>;
118 + polling-delay = <5000>;
119 + thermal-sensors = <&tmu 4>;
120 +
121 + trips {
122 + ccn-dpaa-alert {
123 + temperature = <85000>;
124 + hysteresis = <2000>;
125 + type = "passive";
126 + };
127 +
128 + ccn-dpaa-crit {
129 + temperature = <95000>;
130 + hysteresis = <2000>;
131 + type = "critical";
132 + };
133 + };
134 + };
135 +
136 + cluster4-hsio3 {
137 + polling-delay-passive = <1000>;
138 + polling-delay = <5000>;
139 + thermal-sensors = <&tmu 5>;
140 +
141 + trips {
142 + clust4-hsio3-alert {
143 + temperature = <85000>;
144 + hysteresis = <2000>;
145 + type = "passive";
146 + };
147 +
148 + clust4-hsio3-crit {
149 + temperature = <95000>;
150 + hysteresis = <2000>;
151 + type = "critical";
152 + };
153 + };
154 + };
155 +
156 + cluster2-3 {
157 + polling-delay-passive = <1000>;
158 + polling-delay = <5000>;
159 + thermal-sensors = <&tmu 6>;
160 +
161 + trips {
162 + cluster2-3-alert {
163 + temperature = <85000>;
164 + hysteresis = <2000>;
165 + type = "passive";
166 + };
167 +
168 + cluster2-3-crit {
169 + temperature = <95000>;
170 + hysteresis = <2000>;
171 + type = "critical";
172 + };
173 + };
174 + };
175 };
176
177 soc {
178 @@ -760,7 +880,7 @@
179 /* Calibration data group 1 */
180 <0x00000000 0x00000035
181 /* Calibration data group 2 */
182 - 0x00010001 0x00000154>;
183 + 0x00000001 0x00000154>;
184 little-endian;
185 #thermal-sensor-cells = <1>;
186 };
187 --
188 2.17.1
189