From patchwork Mon Nov 26 12:55:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Horman X-Patchwork-Id: 10698333 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 49BD515A8 for ; Mon, 26 Nov 2018 13:13:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 34EB7287FE for ; Mon, 26 Nov 2018 13:13:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 26DC828A4B; Mon, 26 Nov 2018 13:13:54 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id CA1B3287FE for ; Mon, 26 Nov 2018 13:13:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=rdTeh03S1tHiWVyKv1pq+D4Tz0ecysXD7zlckUITW6Q=; b=kdlmyhjdag7fZR37+hABWK/pfw FyiY9Fz4AlKMeOkTErVRgwTgItnMxd4oyhawRqwzAbqKVCLDcf+D42vejkGCbeZSTwhnJQhWb+YWJ f3kaheYCMe8eMOVxmizHBhy1coU/5AtHj5473mBUyNXf0Hxv/GTmt5I9dwkF9DthX3FVpYdkVX0x0 rZo6fdz7StwVJZ1MP7a9bpZB3NjUpqmXYt1fDGmZVMp3ufLQPn4PEiLZrDBtLniQAH/D7qttzFRWR frRK3djbGBD1KhynYC51E3RJJUdDUeuH5FBBvWsf3UTeGkb1rM0kMrwulQ3/LkNCXwrYfCv370ZJI F1S1mtqw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gRGhz-00074y-WB; Mon, 26 Nov 2018 13:13:52 +0000 Received: from casper.infradead.org ([85.118.1.10]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gRGgG-0005Gd-ML for linux-arm-kernel@bombadil.infradead.org; Mon, 26 Nov 2018 13:12:04 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=/ySGzwJsJjs7Erv2YlMdCDCjyC6gSRjjdroa9aKuWLg=; b=U9WA9/FRJJ1wil4DWwMGnPUlz BvXns+sX8Y9zV6wlyQzXoho8ld5bGskmbpFRCiqnW6OHPTmohvyuECtfIud58w2XGmvwqp47i1lNA iXsRaIbqDGnDzEPeDiAnxtbPfDAWIYRJph/ghE5CW7SrSvVvuTRKuMMM2QdYIQRh8xVRLuCs5AhRs p1Ej1qbjz1ZzhTbpq2rGjFt5rknGbGWlTb2QbNfrCye/mknCA8yepG9+uEMd+mK/eoPS3ZJr1rL9G vZgAtdn/qWjE82648hIejYDleMa7zbWPXzisOCT9rZmWXWvkHIr8A7WzTuv+sOd5sGl6y7ZPYDpCe 8jEg1gjQQ==; Received: from kirsty.vergenet.net ([202.4.237.240]) by casper.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1gRGb1-0005w7-9f for linux-arm-kernel@lists.infradead.org; Mon, 26 Nov 2018 13:06:40 +0000 Received: from reginn.horms.nl (watermunt.horms.nl [80.127.179.77]) by kirsty.vergenet.net (Postfix) with ESMTPA id 6916525BF4B; Mon, 26 Nov 2018 23:55:12 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=verge.net.au; s=mail; t=1543236912; bh=SvLbBMZqmezsvCnoz9G7eE457JNtdIqXp5eOkDy+B3g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=hzX+q5dST+nN0TRICMHlvFeX3ecZvJHYGmBhl9KO0+OVT0y6OAjzOEHKVajaOkKze RlQ7p5Cp1tUfGpAIkPuhXKsf4uO5CgrQHtYWeIps6XtvnYFKV+kyFWxHPhfpLJ/OTd 3l2UJnO5wQY5PzGphn/yz+PEo4i+joLB3klcISe0= Received: by reginn.horms.nl (Postfix, from userid 7100) id 4C22494026F; Mon, 26 Nov 2018 13:55:10 +0100 (CET) From: Simon Horman To: linux-renesas-soc@vger.kernel.org Subject: [PATCH 39/40] arm64: dts: renesas: r8a77990: add thermal device support Date: Mon, 26 Nov 2018 13:55:05 +0100 Message-Id: <8f1ee2a166f88388fd3b20698958334be357aa52.1543229516.git.horms+renesas@verge.net.au> X-Mailer: git-send-email 2.11.0 In-Reply-To: References: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181126_130639_610487_984F9D85 X-CRM114-Status: GOOD ( 12.29 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Yoshihiro Kaneko , Magnus Damm , linux-arm-kernel@lists.infradead.org, Simon Horman MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Yoshihiro Kaneko This patch adds the thermal device node and the thermal-zone for the R8A77990 SoC. Signed-off-by: Yoshihiro Kaneko Tested-by: Simon Horman Signed-off-by: Simon Horman --- arch/arm64/boot/dts/renesas/r8a77990.dtsi | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a77990.dtsi b/arch/arm64/boot/dts/renesas/r8a77990.dtsi index de25eda4f2f4..b2f606e286ce 100644 --- a/arch/arm64/boot/dts/renesas/r8a77990.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a77990.dtsi @@ -409,6 +409,18 @@ #power-domain-cells = <1>; }; + thermal: thermal@e6190000 { + compatible = "renesas,thermal-r8a77990"; + reg = <0 0xe6190000 0 0x10>, <0 0xe6190100 0 0x38>; + interrupts = , + , + ; + clocks = <&cpg CPG_MOD 522>; + power-domains = <&sysc R8A77990_PD_ALWAYS_ON>; + resets = <&cpg 522>; + #thermal-sensor-cells = <0>; + }; + intc_ex: interrupt-controller@e61c0000 { compatible = "renesas,intc-ex-r8a77990", "renesas,irqc"; #interrupt-cells = <2>; @@ -1745,6 +1757,25 @@ }; }; + thermal-zones { + cpu-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + thermal-sensors = <&thermal>; + + trips { + cpu-crit { + temperature = <120000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + + cooling-maps { + }; + }; + }; + timer { compatible = "arm,armv8-timer"; interrupts-extended = <&gic GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(2) | IRQ_TYPE_LEVEL_LOW)>,