Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1368012

[PATCH 2/9] arm64: tegra: use tegra132-soctherm for Tegra132

From Wei Ni <wni@nvidia.com>
Newsgroups linux.kernel
Subject [PATCH 2/9] arm64: tegra: use tegra132-soctherm for Tegra132
Date 2016-03-31 11:00 +0200
Message-ID <riGCn-2kC-21@gated-at.bofh.it> (permalink)
References <riGsF-2h8-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


The Tegra132 has the specific settings for soctherm,
so change to use campatible "nvidia,tegra132-soctherm" for it.
And adds cpu, gpu, mem and pllx thermal zones.

Signed-off-by: Wei Ni <wni@nvidia.com>
---
 arch/arm64/boot/dts/nvidia/tegra132.dtsi | 34 +++++++++++++++++++++++++++++++-
 1 file changed, 33 insertions(+), 1 deletion(-)

diff --git a/arch/arm64/boot/dts/nvidia/tegra132.dtsi b/arch/arm64/boot/dts/nvidia/tegra132.dtsi
index 6e28e41d7e3e..bd5010a7cba4 100644
--- a/arch/arm64/boot/dts/nvidia/tegra132.dtsi
+++ b/arch/arm64/boot/dts/nvidia/tegra132.dtsi
@@ -4,6 +4,7 @@
 #include <dt-bindings/pinctrl/pinctrl-tegra.h>
 #include <dt-bindings/pinctrl/pinctrl-tegra-xusb.h>
 #include <dt-bindings/interrupt-controller/arm-gic.h>
+#include <dt-bindings/thermal/tegra124-soctherm.h>
 
 / {
 	compatible = "nvidia,tegra132", "nvidia,tegra124";
@@ -727,7 +728,7 @@
 	};
 
 	soctherm: thermal-sensor@0,700e2000 {
-		compatible = "nvidia,tegra124-soctherm";
+		compatible = "nvidia,tegra132-soctherm";
 		reg = <0x0 0x700e2000 0x0 0x1000>;
 		interrupts = <GIC_SPI 48 IRQ_TYPE_LEVEL_HIGH>;
 		clocks = <&tegra_car TEGRA124_CLK_TSENSOR>,
@@ -738,6 +739,37 @@
 		#thermal-sensor-cells = <1>;
 	};
 
+	thermal-zones {
+		cpu {
+			polling-delay-passive = <1000>;
+			polling-delay = <0>;
+
+			thermal-sensors =
+				<&soctherm TEGRA124_SOCTHERM_SENSOR_CPU>;
+		};
+		mem {
+			polling-delay-passive = <0>;
+			polling-delay = <0>;
+
+			thermal-sensors =
+				<&soctherm TEGRA124_SOCTHERM_SENSOR_MEM>;
+		};
+		gpu {
+			polling-delay-passive = <1000>;
+			polling-delay = <0>;
+
+			thermal-sensors =
+				<&soctherm TEGRA124_SOCTHERM_SENSOR_GPU>;
+		};
+		pllx {
+			polling-delay-passive = <0>;
+			polling-delay = <0>;
+
+			thermal-sensors =
+				<&soctherm TEGRA124_SOCTHERM_SENSOR_PLLX>;
+		};
+	};
+
 	ahub@0,70300000 {
 		compatible = "nvidia,tegra124-ahub";
 		reg = <0x0 0x70300000 0x0 0x200>,
-- 
1.9.1

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/9] Add HW throttle for Tegra soctherm Wei Ni <wni@nvidia.com> - 2016-03-31 10:50 +0200
  [PATCH 6/9] thermal: tegra: add hw-throttle for Tegra132 Wei Ni <wni@nvidia.com> - 2016-03-31 10:50 +0200
  [PATCH 8/9] arm64: tegra: set hot trips for Tegra132 Wei Ni <wni@nvidia.com> - 2016-03-31 10:50 +0200
  [PATCH 9/9] arm: tegra: set hot trips for Tegra124 Wei Ni <wni@nvidia.com> - 2016-03-31 10:50 +0200
  [PATCH 5/9] thermal: tegra: add hw-throttle function Wei Ni <wni@nvidia.com> - 2016-03-31 10:50 +0200
  [PATCH 4/9] of: Add bindings of hw throttle for soctherm Wei Ni <wni@nvidia.com> - 2016-03-31 10:50 +0200
  [PATCH 2/9] arm64: tegra: use tegra132-soctherm for Tegra132 Wei Ni <wni@nvidia.com> - 2016-03-31 11:00 +0200
  Re: [PATCH 0/9] Add HW throttle for Tegra soctherm Wei Ni <wni@nvidia.com> - 2016-03-31 11:00 +0200
  [PATCH 1/9] thermal: tegra: add Tegra132 specific SOC_THERM driver Wei Ni <wni@nvidia.com> - 2016-03-31 11:00 +0200

csiph-web