aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJavi Merino <javi.merino@arm.com>2016-06-13 11:15:15 -0400
committerSudeep Holla <sudeep.holla@arm.com>2016-06-21 10:17:31 -0400
commitf7b636a8d83c7c1285c55248e35458e03a007df3 (patch)
tree78fd921ae01278e3fb6f9fc38ba44a1914666240
parentbdeaa21affa696279ed9b676d6e4f8ddc6f42a54 (diff)
arm64: dts: juno: add thermal zones for scpi sensors
The juno dts have entries for the hwmon scpi, let's create thermal zones for the temperature sensors described in the Juno ARM Development Platform Implementation Details. Cc: Liviu Dudau <liviu.dudau@arm.com> Cc: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com> Cc: Rob Herring <robh+dt@kernel.org> Cc: Mark Rutland <mark.rutland@arm.com> Acked-by: Punit Agrawal <punit.agrawal@arm.com> Signed-off-by: Javi Merino <javi.merino@arm.com> Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
-rw-r--r--arch/arm64/boot/dts/arm/juno-base.dtsi42
-rw-r--r--arch/arm64/boot/dts/arm/juno-r1.dts16
-rw-r--r--arch/arm64/boot/dts/arm/juno-r2.dts16
3 files changed, 74 insertions, 0 deletions
diff --git a/arch/arm64/boot/dts/arm/juno-base.dtsi b/arch/arm64/boot/dts/arm/juno-base.dtsi
index 53820fa79bab..334271a25f70 100644
--- a/arch/arm64/boot/dts/arm/juno-base.dtsi
+++ b/arch/arm64/boot/dts/arm/juno-base.dtsi
@@ -440,6 +440,48 @@
440 }; 440 };
441 }; 441 };
442 442
443 thermal-zones {
444 pmic {
445 polling-delay = <1000>;
446 polling-delay-passive = <100>;
447 thermal-sensors = <&scpi_sensors0 0>;
448 };
449
450 soc {
451 polling-delay = <1000>;
452 polling-delay-passive = <100>;
453 thermal-sensors = <&scpi_sensors0 3>;
454 };
455
456 big_cluster_thermal_zone: big_cluster {
457 polling-delay = <1000>;
458 polling-delay-passive = <100>;
459 thermal-sensors = <&scpi_sensors0 21>;
460 status = "disabled";
461 };
462
463 little_cluster_thermal_zone: little_cluster {
464 polling-delay = <1000>;
465 polling-delay-passive = <100>;
466 thermal-sensors = <&scpi_sensors0 22>;
467 status = "disabled";
468 };
469
470 gpu0_thermal_zone: gpu0 {
471 polling-delay = <1000>;
472 polling-delay-passive = <100>;
473 thermal-sensors = <&scpi_sensors0 23>;
474 status = "disabled";
475 };
476
477 gpu1_thermal_zone: gpu1 {
478 polling-delay = <1000>;
479 polling-delay-passive = <100>;
480 thermal-sensors = <&scpi_sensors0 24>;
481 status = "disabled";
482 };
483 };
484
443 /include/ "juno-clocks.dtsi" 485 /include/ "juno-clocks.dtsi"
444 486
445 dma@7ff00000 { 487 dma@7ff00000 {
diff --git a/arch/arm64/boot/dts/arm/juno-r1.dts b/arch/arm64/boot/dts/arm/juno-r1.dts
index f4f8f54f8b85..123a58b29cbd 100644
--- a/arch/arm64/boot/dts/arm/juno-r1.dts
+++ b/arch/arm64/boot/dts/arm/juno-r1.dts
@@ -205,3 +205,19 @@
205&etm5 { 205&etm5 {
206 cpu = <&A53_3>; 206 cpu = <&A53_3>;
207}; 207};
208
209&big_cluster_thermal_zone {
210 status = "okay";
211};
212
213&little_cluster_thermal_zone {
214 status = "okay";
215};
216
217&gpu0_thermal_zone {
218 status = "okay";
219};
220
221&gpu1_thermal_zone {
222 status = "okay";
223};
diff --git a/arch/arm64/boot/dts/arm/juno-r2.dts b/arch/arm64/boot/dts/arm/juno-r2.dts
index d903e545b64c..007be826efce 100644
--- a/arch/arm64/boot/dts/arm/juno-r2.dts
+++ b/arch/arm64/boot/dts/arm/juno-r2.dts
@@ -205,3 +205,19 @@
205&etm5 { 205&etm5 {
206 cpu = <&A53_3>; 206 cpu = <&A53_3>;
207}; 207};
208
209&big_cluster_thermal_zone {
210 status = "okay";
211};
212
213&little_cluster_thermal_zone {
214 status = "okay";
215};
216
217&gpu0_thermal_zone {
218 status = "okay";
219};
220
221&gpu1_thermal_zone {
222 status = "okay";
223};