ARM: dts: tango4: Initial thermal support
authorMarc Gonzalez <marc_gonzalez@sigmadesigns.com>
Wed, 4 May 2016 10:47:02 +0000 (12:47 +0200)
committerArnd Bergmann <arnd@arndb.de>
Tue, 10 May 2016 14:11:27 +0000 (16:11 +0200)
Define the CPU temperature sensor, and critical trip point.

Commit 799d71da471c ("add temperature sensor support for tango SoC")
added the device driver.

Acked-by: Eduardo Valentin <edubezval@gmail.com>
Signed-off-by: Marc Gonzalez <marc_gonzalez@sigmadesigns.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/boot/dts/tango4-smp8758.dtsi

index 7ed88ee629fb78b559d5bbb312f586490f35d31f..01d5f8f1c71dfdaeee322b08fe463f3b3e73eb34 100644 (file)
                        <GIC_SPI 12 IRQ_TYPE_LEVEL_HIGH>,
                        <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
        };
+
+       soc {
+               cpu_temp: thermal@920100 {
+                       #thermal-sensor-cells = <0>;
+                       compatible = "sigma,smp8758-thermal";
+                       reg = <0x920100 12>;
+               };
+       };
+
+       thermal-zones {
+               cpu_thermal: cpu-thermal {
+                       polling-delay = <997>;          /* milliseconds */
+                       polling-delay-passive = <499>;  /* milliseconds */
+                       thermal-sensors = <&cpu_temp>;
+                       trips {
+                               cpu_critical {
+                                       temperature = <120000>;
+                                       hysteresis = <2500>;
+                                       type = "critical";
+                               };
+                       };
+               };
+       };
 };