1 From 314a3a062e5e8fe76b3c43a8731ffe4bd58bc1be Mon Sep 17 00:00:00 2001
2 From: Yuantian Tang <andy.tang@nxp.com>
3 Date: Mon, 5 Nov 2018 17:40:20 +0800
4 Subject: [PATCH] arm64: dts: nxp: add more thermal zone support
6 To enable all the supported thermal sensors, add sensor id information
8 Dts for ls1012a, ls1046a, ls1043a, ls1088a are updated.
10 Signed-off-by: Yuantian Tang <andy.tang@nxp.com>
12 arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 39 ++++------------
13 arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 61 ++++++++++++--------------
14 arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 57 ++++++++++--------------
15 arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 53 +++++++---------------
16 4 files changed, 75 insertions(+), 135 deletions(-)
18 --- a/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi
19 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi
25 + cooling_map0: cpu0: cpu@0 {
27 compatible = "arm,cortex-a53";
34 - cpu_thermal: cpu-thermal {
35 - polling-delay-passive = <1000>;
36 - polling-delay = <5000>;
37 - thermal-sensors = <&tmu 0>;
40 - cpu_alert: cpu-alert {
41 - temperature = <85000>;
42 - hysteresis = <2000>;
46 - cpu_crit: cpu-crit {
47 - temperature = <95000>;
48 - hysteresis = <2000>;
55 - trip = <&cpu_alert>;
57 - <&cpu0 THERMAL_NO_LIMIT
63 + #include "fsl-tmu.dtsi"
66 compatible = "simple-bus";
77 --- a/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi
78 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi
81 * Currently supported enable-method is psci v0.2
84 + cooling_map0: cpu0: cpu@0 {
86 compatible = "arm,cortex-a53";
93 - cpu_thermal: cpu-thermal {
94 - polling-delay-passive = <1000>;
95 - polling-delay = <5000>;
97 - thermal-sensors = <&tmu 3>;
100 - cpu_alert: cpu-alert {
101 - temperature = <85000>;
102 - hysteresis = <2000>;
105 - cpu_crit: cpu-crit {
106 - temperature = <95000>;
107 - hysteresis = <2000>;
114 - trip = <&cpu_alert>;
116 - <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
117 - <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
118 - <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
119 - <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
124 + #include "fsl-tmu.dtsi"
127 compatible = "arm,armv8-timer";
130 #include "qoriq-qman-portals.dtsi"
131 #include "qoriq-bman-portals.dtsi"
158 --- a/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi
159 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi
161 #address-cells = <1>;
165 + cooling_map0: cpu0: cpu@0 {
167 compatible = "arm,cortex-a72";
174 - cpu_thermal: cpu-thermal {
175 - polling-delay-passive = <1000>;
176 - polling-delay = <5000>;
177 - thermal-sensors = <&tmu 3>;
180 - cpu_alert: cpu-alert {
181 - temperature = <85000>;
182 - hysteresis = <2000>;
186 - cpu_crit: cpu-crit {
187 - temperature = <95000>;
188 - hysteresis = <2000>;
195 - trip = <&cpu_alert>;
197 - <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
198 - <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
199 - <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
200 - <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
205 + #include "fsl-tmu.dtsi"
208 compatible = "arm,armv8-timer";
211 #include "qoriq-qman-portals.dtsi"
212 #include "qoriq-bman-portals.dtsi"
235 --- a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi
236 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi
240 /* We have 2 clusters having 4 Cortex-A53 cores each */
242 + cooling_map0: cpu0: cpu@0 {
244 compatible = "arm,cortex-a53";
247 #cooling-cells = <2>;
251 + cooling_map1: cpu4: cpu@100 {
253 compatible = "arm,cortex-a53";
260 - cpu_thermal: cpu-thermal {
261 - polling-delay-passive = <1000>;
262 - polling-delay = <5000>;
263 - thermal-sensors = <&tmu 0>;
266 - cpu_alert: cpu-alert {
267 - temperature = <85000>;
268 - hysteresis = <2000>;
272 - cpu_crit: cpu-crit {
273 - temperature = <95000>;
274 - hysteresis = <2000>;
281 - trip = <&cpu_alert>;
283 - <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
284 - <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
285 - <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
286 - <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
287 - <&cpu4 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
288 - <&cpu5 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
289 - <&cpu6 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
290 - <&cpu7 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>;
295 + #include "fsl-tmu.dtsi"
298 compatible = "arm,armv8-timer";
304 +#include "fsl-tmu-map1.dtsi"