From: Marc Gonzalez Date: Wed, 4 May 2016 10:47:02 +0000 (+0200) Subject: ARM: dts: tango4: Initial thermal support X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a6e818898caeb5cb7bf478f74d58938ae1d520d3;p=linux-beck.git ARM: dts: tango4: Initial thermal support 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 Signed-off-by: Marc Gonzalez Signed-off-by: Arnd Bergmann --- diff --git a/arch/arm/boot/dts/tango4-smp8758.dtsi b/arch/arm/boot/dts/tango4-smp8758.dtsi index 7ed88ee629fb..01d5f8f1c71d 100644 --- a/arch/arm/boot/dts/tango4-smp8758.dtsi +++ b/arch/arm/boot/dts/tango4-smp8758.dtsi @@ -28,4 +28,27 @@ , ; }; + + 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"; + }; + }; + }; + }; };