5a29451564f8861956f57c42756a169e1f2b74cb
[openwrt/openwrt.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 --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
16 +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
17 @@ -440,19 +440,19 @@
18 };
19
20 thermal-zones {
21 - core_thermal1: core-thermal1 {
22 + cluster6-7 {
23 polling-delay-passive = <1000>;
24 polling-delay = <5000>;
25 thermal-sensors = <&tmu 0>;
26
27 trips {
28 - core_cluster_alert: core-cluster-alert {
29 + cluster6_7_alert: cluster6-7-alert {
30 temperature = <85000>;
31 hysteresis = <2000>;
32 type = "passive";
33 };
34
35 - core_cluster_crit: core-cluster-crit {
36 + cluster6_7_crit: cluster6-7-crit {
37 temperature = <95000>;
38 hysteresis = <2000>;
39 type = "critical";
40 @@ -461,7 +461,7 @@
41
42 cooling-maps {
43 map0 {
44 - trip = <&core_cluster_alert>;
45 + trip = <&cluster6_7_alert>;
46 cooling-device =
47 <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
48 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
49 @@ -482,6 +482,126 @@
50 };
51 };
52 };
53 +
54 + ddr-cluster5 {
55 + polling-delay-passive = <1000>;
56 + polling-delay = <5000>;
57 + thermal-sensors = <&tmu 1>;
58 +
59 + trips {
60 + ddr-cluster5-alert {
61 + temperature = <85000>;
62 + hysteresis = <2000>;
63 + type = "passive";
64 + };
65 +
66 + ddr-cluster5-crit {
67 + temperature = <95000>;
68 + hysteresis = <2000>;
69 + type = "critical";
70 + };
71 + };
72 + };
73 +
74 + wriop {
75 + polling-delay-passive = <1000>;
76 + polling-delay = <5000>;
77 + thermal-sensors = <&tmu 2>;
78 +
79 + trips {
80 + wriop-alert {
81 + temperature = <85000>;
82 + hysteresis = <2000>;
83 + type = "passive";
84 + };
85 +
86 + wriop-crit {
87 + temperature = <95000>;
88 + hysteresis = <2000>;
89 + type = "critical";
90 + };
91 + };
92 + };
93 +
94 + dce-qbman-hsio2 {
95 + polling-delay-passive = <1000>;
96 + polling-delay = <5000>;
97 + thermal-sensors = <&tmu 3>;
98 +
99 + trips {
100 + dce-qbman-alert {
101 + temperature = <85000>;
102 + hysteresis = <2000>;
103 + type = "passive";
104 + };
105 +
106 + dce-qbman-crit {
107 + temperature = <95000>;
108 + hysteresis = <2000>;
109 + type = "critical";
110 + };
111 + };
112 + };
113 +
114 + ccn-dpaa-tbu {
115 + polling-delay-passive = <1000>;
116 + polling-delay = <5000>;
117 + thermal-sensors = <&tmu 4>;
118 +
119 + trips {
120 + ccn-dpaa-alert {
121 + temperature = <85000>;
122 + hysteresis = <2000>;
123 + type = "passive";
124 + };
125 +
126 + ccn-dpaa-crit {
127 + temperature = <95000>;
128 + hysteresis = <2000>;
129 + type = "critical";
130 + };
131 + };
132 + };
133 +
134 + cluster4-hsio3 {
135 + polling-delay-passive = <1000>;
136 + polling-delay = <5000>;
137 + thermal-sensors = <&tmu 5>;
138 +
139 + trips {
140 + clust4-hsio3-alert {
141 + temperature = <85000>;
142 + hysteresis = <2000>;
143 + type = "passive";
144 + };
145 +
146 + clust4-hsio3-crit {
147 + temperature = <95000>;
148 + hysteresis = <2000>;
149 + type = "critical";
150 + };
151 + };
152 + };
153 +
154 + cluster2-3 {
155 + polling-delay-passive = <1000>;
156 + polling-delay = <5000>;
157 + thermal-sensors = <&tmu 6>;
158 +
159 + trips {
160 + cluster2-3-alert {
161 + temperature = <85000>;
162 + hysteresis = <2000>;
163 + type = "passive";
164 + };
165 +
166 + cluster2-3-crit {
167 + temperature = <95000>;
168 + hysteresis = <2000>;
169 + type = "critical";
170 + };
171 + };
172 + };
173 };
174
175 soc {
176 @@ -760,7 +880,7 @@
177 /* Calibration data group 1 */
178 <0x00000000 0x00000035
179 /* Calibration data group 2 */
180 - 0x00010001 0x00000154>;
181 + 0x00000001 0x00000154>;
182 little-endian;
183 #thermal-sensor-cells = <1>;
184 };