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


Groups > linux.kernel > #1630991

[PATCH 2/2] ARM: dts: NSP: Add Thermal Support

From Jon Mason <jon.mason@broadcom.com>
Newsgroups linux.kernel
Subject [PATCH 2/2] ARM: dts: NSP: Add Thermal Support
Date 2017-04-25 23:00 +0200
Message-ID <tAfIZ-18d-15@gated-at.bofh.it> (permalink)
References <tAfzk-14W-35@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Add thermal support via the ns-thermal driver and create a single
thermal zone for the entire SoC.

Signed-off-by: Jon Mason <jon.mason@broadcom.com>
---
 arch/arm/boot/dts/bcm-nsp.dtsi | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/arch/arm/boot/dts/bcm-nsp.dtsi b/arch/arm/boot/dts/bcm-nsp.dtsi
index 832795b..be6fcfb 100644
--- a/arch/arm/boot/dts/bcm-nsp.dtsi
+++ b/arch/arm/boot/dts/bcm-nsp.dtsi
@@ -383,6 +383,12 @@
 			      <0x3f408 0x04>;
 		};
 
+		thermal: thermal@3f2c0 {
+			compatible = "brcm,ns-thermal";
+			reg = <0x3f2c0 0x10>;
+			#thermal-sensor-cells = <0>;
+		};
+
 		sata_phy: sata_phy@40100 {
 			compatible = "brcm,iproc-nsp-sata-phy";
 			reg = <0x40100 0x340>;
@@ -533,4 +539,24 @@
 			brcm,pcie-msi-inten;
 		};
 	};
+
+	thermal-zones {
+		cpu-thermal {
+			polling-delay-passive = <0>;
+			polling-delay = <1000>;
+			coefficients = <(-556) 418000>;
+			thermal-sensors = <&thermal>;
+
+			trips {
+				cpu-crit {
+					temperature     = <125000>;
+					hysteresis      = <0>;
+					type            = "critical";
+				};
+			};
+
+			cooling-maps {
+			};
+		};
+	};
 };
-- 
2.7.4

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


Thread

[PATCH 0/2] thermal: broadcom: Add NSP Thermal Support Jon Mason <jon.mason@broadcom.com> - 2017-04-25 22:50 +0200
  [PATCH 1/2] thermal: broadcom: Allow for NSP to use ns-thermal driver Jon Mason <jon.mason@broadcom.com> - 2017-04-25 23:00 +0200
    Re: [PATCH 1/2] thermal: broadcom: Allow for NSP to use ns-thermal  driver Eduardo Valentin <edubezval@gmail.com> - 2017-04-27 18:40 +0200
      Re: [PATCH 1/2] thermal: broadcom: Allow for NSP to use ns-thermal driver Jon Mason <jon.mason@broadcom.com> - 2017-04-27 19:50 +0200
        Re: [PATCH 1/2] thermal: broadcom: Allow for NSP to use ns-thermal  driver Eduardo Valentin <edubezval@gmail.com> - 2017-04-28 15:10 +0200
          Re: [PATCH 1/2] thermal: broadcom: Allow for NSP to use ns-thermal driver Jon Mason <jon.mason@broadcom.com> - 2017-04-28 20:10 +0200
  [PATCH 2/2] ARM: dts: NSP: Add Thermal Support Jon Mason <jon.mason@broadcom.com> - 2017-04-25 23:00 +0200
    Re: [PATCH 2/2] ARM: dts: NSP: Add Thermal Support Eduardo Valentin <edubezval@gmail.com> - 2017-04-27 18:40 +0200

csiph-web