From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: From: Yoshihiro Kaneko Subject: [PATCH/RFT v3 3/3] arm64: dts: renesas: r8a77995: add thermal device support Date: Tue, 3 Apr 2018 21:43:05 +0900 Message-Id: <1522759385-17661-4-git-send-email-ykaneko0929@gmail.com> In-Reply-To: <1522759385-17661-1-git-send-email-ykaneko0929@gmail.com> References: <1522759385-17661-1-git-send-email-ykaneko0929@gmail.com> To: linux-renesas-soc@vger.kernel.org Cc: Zhang Rui , Eduardo Valentin , Rob Herring , linux-pm@vger.kernel.org, devicetree@vger.kernel.org List-ID: Signed-off-by: Yoshihiro Kaneko Reviewed-by: Geert Uytterhoeven --- arch/arm64/boot/dts/renesas/r8a77995.dtsi | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a77995.dtsi b/arch/arm64/boot/dts/renesas/r8a77995.dtsi index cff42cd..9a52b41 100644 --- a/arch/arm64/boot/dts/renesas/r8a77995.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a77995.dtsi @@ -636,5 +636,35 @@ #phy-cells = <0>; status = "disabled"; }; + + thermal: thermal@e6190000 { + compatible = "renesas,thermal-r8a77995"; + reg = <0 0xe6190000 0 0x10>, <0 0xe6190100 0 0x38>; + interrupts = , + , + ; + clocks = <&cpg CPG_MOD 522>; + power-domains = <&sysc R8A77995_PD_ALWAYS_ON>; + resets = <&cpg 522>; + #thermal-sensor-cells = <0>; + }; + }; + + thermal-zones { + cpu_thermal: cpu-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + thermal-sensors = <&thermal>; + + trips { + cpu-crit { + temperature = <120000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + cooling-maps { + }; + }; }; }; -- 1.9.1