diff options
author | Miquel Raynal <miquel.raynal@bootlin.com> | 2018-08-30 04:14:59 -0400 |
---|---|---|
committer | Gregory CLEMENT <gregory.clement@bootlin.com> | 2018-09-21 10:13:24 -0400 |
commit | 3be148512ebcb8efbaa48b90b3ec2e9376945eb9 (patch) | |
tree | 8d82f1c8666572591306d15f3dc830f8143c404e | |
parent | 0863e01c39930cbefb25b4b111065a9089f46de0 (diff) |
arm64: dts: marvell: add thermal-zone node in ap806 DTSI file
Add a thermal-zone node and fill in all the sensors available in an
ap806 (one in the IC plus one per CPU).
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Signed-off-by: Gregory CLEMENT <gregory.clement@bootlin.com>
-rw-r--r-- | arch/arm64/boot/dts/marvell/armada-ap806.dtsi | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/marvell/armada-ap806.dtsi b/arch/arm64/boot/dts/marvell/armada-ap806.dtsi index 27930394249d..9a5abad72b66 100644 --- a/arch/arm64/boot/dts/marvell/armada-ap806.dtsi +++ b/arch/arm64/boot/dts/marvell/armada-ap806.dtsi | |||
@@ -6,6 +6,7 @@ | |||
6 | */ | 6 | */ |
7 | 7 | ||
8 | #include <dt-bindings/interrupt-controller/arm-gic.h> | 8 | #include <dt-bindings/interrupt-controller/arm-gic.h> |
9 | #include <dt-bindings/thermal/thermal.h> | ||
9 | 10 | ||
10 | /dts-v1/; | 11 | /dts-v1/; |
11 | 12 | ||
@@ -256,8 +257,67 @@ | |||
256 | ap_thermal: thermal-sensor@80 { | 257 | ap_thermal: thermal-sensor@80 { |
257 | compatible = "marvell,armada-ap806-thermal"; | 258 | compatible = "marvell,armada-ap806-thermal"; |
258 | reg = <0x80 0x10>; | 259 | reg = <0x80 0x10>; |
260 | #thermal-sensor-cells = <1>; | ||
259 | }; | 261 | }; |
260 | }; | 262 | }; |
261 | }; | 263 | }; |
262 | }; | 264 | }; |
265 | |||
266 | /* | ||
267 | * The thermal IP features one internal sensor plus, if applicable, one | ||
268 | * remote channel wired to one sensor per CPU. | ||
269 | * | ||
270 | * The cooling maps are always empty as there are no cooling devices. | ||
271 | */ | ||
272 | thermal-zones { | ||
273 | ap_thermal_ic: ap-thermal-ic { | ||
274 | polling-delay-passive = <1000>; | ||
275 | polling-delay = <1000>; | ||
276 | |||
277 | thermal-sensors = <&ap_thermal 0>; | ||
278 | |||
279 | trips { }; | ||
280 | cooling-maps { }; | ||
281 | }; | ||
282 | |||
283 | ap_thermal_cpu1: ap-thermal-cpu1 { | ||
284 | polling-delay-passive = <1000>; | ||
285 | polling-delay = <1000>; | ||
286 | |||
287 | thermal-sensors = <&ap_thermal 1>; | ||
288 | |||
289 | trips { }; | ||
290 | cooling-maps { }; | ||
291 | }; | ||
292 | |||
293 | ap_thermal_cpu2: ap-thermal-cpu2 { | ||
294 | polling-delay-passive = <1000>; | ||
295 | polling-delay = <1000>; | ||
296 | |||
297 | thermal-sensors = <&ap_thermal 2>; | ||
298 | |||
299 | trips { }; | ||
300 | cooling-maps { }; | ||
301 | }; | ||
302 | |||
303 | ap_thermal_cpu3: ap-thermal-cpu3 { | ||
304 | polling-delay-passive = <1000>; | ||
305 | polling-delay = <1000>; | ||
306 | |||
307 | thermal-sensors = <&ap_thermal 3>; | ||
308 | |||
309 | trips { }; | ||
310 | cooling-maps { }; | ||
311 | }; | ||
312 | |||
313 | ap_thermal_cpu4: ap-thermal-cpu4 { | ||
314 | polling-delay-passive = <1000>; | ||
315 | polling-delay = <1000>; | ||
316 | |||
317 | thermal-sensors = <&ap_thermal 4>; | ||
318 | |||
319 | trips { }; | ||
320 | cooling-maps { }; | ||
321 | }; | ||
322 | }; | ||
263 | }; | 323 | }; |