From patchwork Sun Mar 11 20:26:35 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Kaneko X-Patchwork-Id: 10274923 X-Patchwork-Delegate: eduardo.valentin@ti.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 063586057F for ; Sun, 11 Mar 2018 20:27:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EB27428CD5 for ; Sun, 11 Mar 2018 20:27:26 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DFDD028D3E; Sun, 11 Mar 2018 20:27:26 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9A82B28CD5 for ; Sun, 11 Mar 2018 20:27:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932297AbeCKU1Z (ORCPT ); Sun, 11 Mar 2018 16:27:25 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:41567 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932210AbeCKU1Y (ORCPT ); Sun, 11 Mar 2018 16:27:24 -0400 Received: by mail-pf0-f196.google.com with SMTP id f80so3468793pfa.8; Sun, 11 Mar 2018 13:27:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=B0mlGgcgj7y019WZtCka6l7CNfoaxciFXgyclzZW3lw=; b=vXhaDSNBXemK0YNFU3zKts/mvBqK4vo9qCvoaglyt4MEWAsJ/y1oWophAFEoF5XqOg S8NTe9LEx+jmfzUCwQrBLeP7stPgtKC879CodSF1oSrvUefa24kCIFtN9+t4DBy7RdrK R2b6gL0dholedgvxrbPALw+G05+ghN54P9+tqxxwazpBljh3KWVltJ2SFlFCXXm3cXOt n9IWOiHzeTbg1KLyubm3lSz/nOe/dN8mqrWcJNuaxmbnPhcl2af02PxpslaHj86zTH4V V10u93qk8a+WvhQJovDsyDF5imPZDbJ9y9L/SyajEjuZXj9U0eT5w4BV8SoT3Z039s0Z 6tMA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=B0mlGgcgj7y019WZtCka6l7CNfoaxciFXgyclzZW3lw=; b=rR9DjoA9XL6xJOb/40ug/fUZwz3R0afWnMQBQtSp2hF218vGrV92Qas0+k7iFABriu euQK86M23McPCTni8zy8RSBAFTHm3kRHEdNYH+J9vaDxSob8yqXHJPC4Fk6YBQ1JB22b dssHIs1gD3ROnBmdtPeIRjzaI0h0tPc3FdFbU3kO5Rqfi0og9Yh0dse0CiKL07V3cJ4B KhYkiAqmACqUDgFZT2Tpy3MsjQ0g5UGGAjw/elHg8U23Z+Fr98rt46KVlfO26P1v+Wzi sZ7jw68NNs1YOodacaN8I4NAzTcBhvyEerQkCWaK5BfGoZD1XGe233lIVqZfoFWXIiiZ SKQQ== X-Gm-Message-State: AElRT7EvKSndLDF+3wZvKtjykWESSurEoT3wx/T7giAnwjWvUh/Uyvpu x1wpFtyJBX86maKlZm9lnbXuiw== X-Google-Smtp-Source: AG47ELvH/aK16KMTdGQhoi8mcLNJa7uPMfBbffQyJQeNXKdq7P65O0Ro1/SDFgm937irgMQ8T2eA4g== X-Received: by 10.98.229.21 with SMTP id n21mr5634483pff.158.1520800043731; Sun, 11 Mar 2018 13:27:23 -0700 (PDT) Received: from localhost.localdomain (KD118152108246.ppp-bb.dion.ne.jp. [118.152.108.246]) by smtp.gmail.com with ESMTPSA id h67sm14313206pfk.184.2018.03.11.13.27.21 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 11 Mar 2018 13:27:23 -0700 (PDT) From: Yoshihiro Kaneko To: linux-renesas-soc@vger.kernel.org Cc: Zhang Rui , Eduardo Valentin , Rob Herring , linux-pm@vger.kernel.org, devicetree@vger.kernel.org Subject: [PATCH 3/3] arm64: dts: renesas: r8a77995: add thermal device support Date: Mon, 12 Mar 2018 05:26:35 +0900 Message-Id: <1520799995-26347-4-git-send-email-ykaneko0929@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1520799995-26347-1-git-send-email-ykaneko0929@gmail.com> References: <1520799995-26347-1-git-send-email-ykaneko0929@gmail.com> Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Yoshihiro Kaneko --- arch/arm64/boot/dts/renesas/r8a77995.dtsi | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm64/boot/dts/renesas/r8a77995.dtsi b/arch/arm64/boot/dts/renesas/r8a77995.dtsi index 788e3af..d1a5197 100644 --- a/arch/arm64/boot/dts/renesas/r8a77995.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a77995.dtsi @@ -402,5 +402,36 @@ #phy-cells = <0>; status = "disabled"; }; + + thermal: thermal@e61f0000 { + compatible = "renesas,thermal-r8a77995", + "renesas,rcar-thermal"; + reg = <0 0xe61f0000 0 0x10>, <0 0xe61f0100 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 { + }; + }; }; };