From patchwork Fri Mar 30 03:13:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Kaneko X-Patchwork-Id: 10316781 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 D5FFC602A7 for ; Fri, 30 Mar 2018 03:14:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C8C6A2A4BF for ; Fri, 30 Mar 2018 03:14:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BDD3E2A4C9; Fri, 30 Mar 2018 03:14:30 +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 80E9C2A4BF for ; Fri, 30 Mar 2018 03:14:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752620AbeC3DO3 (ORCPT ); Thu, 29 Mar 2018 23:14:29 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:35766 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751906AbeC3DO2 (ORCPT ); Thu, 29 Mar 2018 23:14:28 -0400 Received: by mail-pg0-f66.google.com with SMTP id j3so4316302pgf.2; Thu, 29 Mar 2018 20:14:28 -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=azCpDNrvtnNfPBVatbrqvczWh/AZq1q6MhfAweRGprI=; b=VMcNht54XkeOj3UEo2gSWrLboPk0kB6UDNfIt9WUBbrCydSlZw57zQkVzHLvpQGSR/ WD+g4zvNRna10K2ZObDs0oi8EVQAtMfefSLJ6CHlwkTYsPh7v4oJ0B+DQnmHGtfHf4PQ lgfPwSmJQ8w2hK23amxc2ISREMKlxn3QfK67FoUR22bosk5xpO+cMVSJRceUb+8UhZrd ajTNTKA20rO5UN8QDlzPaHhqHaJWNPWrR8asjEOOXxiitVrTUocUFpBehcxcvPzPKExP R6mq/IBfxyExjbsYfeuhufANNj3ydQmbQbpd3xPm0LQ9pdwa2wx1sObjmZNjf/0uNsK+ dpwA== 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=azCpDNrvtnNfPBVatbrqvczWh/AZq1q6MhfAweRGprI=; b=WzCu/deSgEieKu6nz6sk8VbIJR80LhQdMmrIZNuUbzcIGBPc7gUY/9YEo7LDYU+sgj mf5QUzQRtadWqFjjriAN52w9pUVL7EjhZcoyKpqWGJcNALvSA6HsCnAqpzqMNep/44sv m2RbIKml5Mo1rKMKEW/i0cZzGIIAorURXfbM5X4Z2cwHYDrHjTk+f8XeT56tiGs7Cteq org2ZlX4MroI3fkeGk2e2nqd0zmWfsMhvHJKXotiYn3kWfMq20taHTmwcnveikUUa+hp kC3rM8gkD25OniQsUpa/mYe3heyuKi1FS0mbwR6fWuPDle6AwljGgOTbzUgSJKcRVU3z qH0A== X-Gm-Message-State: AElRT7GdXpD09RC8U/wOjxXyzuQi0iGXWNW2O337AlIaTYx6rW0L1BCv QWnzVxcHPLCf8APFFJqfKqpg5A== X-Google-Smtp-Source: AIpwx4/xDufrYP5Lvsc9ekGtoONOW8h6jMRXJQgQ3M4pKUFLxK9GjAPpMq+glRxlKpe96A4jSVpx6Q== X-Received: by 10.99.53.6 with SMTP id c6mr7365085pga.413.1522379667714; Thu, 29 Mar 2018 20:14:27 -0700 (PDT) Received: from macc.flets-east.jp (p6016112-ipngn3302marunouchi.tokyo.ocn.ne.jp. [180.23.146.112]) by smtp.gmail.com with ESMTPSA id m185sm10564193pfc.88.2018.03.29.20.14.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 29 Mar 2018 20:14:27 -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/RFT v2 3/3] arm64: dts: renesas: r8a77995: add thermal device support Date: Fri, 30 Mar 2018 12:13:03 +0900 Message-Id: <1522379583-4503-4-git-send-email-ykaneko0929@gmail.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1522379583-4503-1-git-send-email-ykaneko0929@gmail.com> References: <1522379583-4503-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 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 { + }; + }; }; };