From patchwork Tue Apr 3 12:43:05 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Kaneko X-Patchwork-Id: 10321023 X-Patchwork-Delegate: horms@verge.net.au 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 9CB4A60318 for ; Tue, 3 Apr 2018 12:45:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 84A0928774 for ; Tue, 3 Apr 2018 12:45:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6E59E28B2B; Tue, 3 Apr 2018 12:45:02 +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=ham 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 1329F28774 for ; Tue, 3 Apr 2018 12:45:02 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932152AbeDCMpB (ORCPT ); Tue, 3 Apr 2018 08:45:01 -0400 Received: from mail-pl0-f68.google.com ([209.85.160.68]:44190 "EHLO mail-pl0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932101AbeDCMpA (ORCPT ); Tue, 3 Apr 2018 08:45:00 -0400 Received: by mail-pl0-f68.google.com with SMTP id b6-v6so6629364pla.11; Tue, 03 Apr 2018 05:45:00 -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=HcETZ35E5+K+be80f6YI1/+XBEEQCLA9e1lNu0rzwq4=; b=t6iE+5xgYu44S7ckMxK4ZMsxH1nXoxdirWGRr1xlEUnDwiBLOD4lIpaJHemdhKzHXe oCOBRRBsW/PkqCUYkqZhp8syqwdtFjOhXgOFr6kDIb777cCP9x/cXh/q1pyXOrzqrRm6 GZ4KlhyOE083QFZLVhQF3CmlS38dONikmYpYgT6GN0kOKAbPquQh4cCGbEnNStAAFVQB nOpGTif4wg34QAmb2eTzUPXquvxV/LXC5mUG4qAT9a7We59zbAgGpEyL96+XdbsqYjKb diZ7CL5tB1tsKhiik/7jhDe11+/Is5ArjV1iKBgRvkZgCRdV4RvvXs5q8q8Wy6o5sTo4 CKEA== 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=HcETZ35E5+K+be80f6YI1/+XBEEQCLA9e1lNu0rzwq4=; b=ddB1GQPCHNlwTfDvvpLses6Z2dFYyecnGJ4bUROh5FQu0thnB7SvRUJY4p5jCkeRHr 7HruSQop7Ut3qiGjZuBr0mpRxKKUtVokJt9MsEcU5dgd1D7lZZeJLDW+NGy9LRsHPvb/ c4FmfYK+ml02cR3MqBDv0P0d4YA3642KvZA8+4rTV5zZ/5IdwOs9kGOyQUOObot3tJuP yAfkhDb1OnYn9RNoyiSfJ1GpInB+kpGHNkuVoNFy332vXa1GrV8okzJHt3xDsVTbzimY 1p9fqytVLt7IDQJF1gw9+2OTO6k4jrh00uaULpOScKgEhPmiP9lsW1apu4veXPwj0pQE 6AzA== X-Gm-Message-State: AElRT7GS/NTNxvtQSCqmvgiZMj47cirx9mAzg4gK5XB+9ozxJXINJtRr uEjg2UJ0E1iA60OLWvCIpoypgA== X-Google-Smtp-Source: AIpwx4/V8SRb/j90YbL9d9I+8M028O8qx9A9Q6Nl9lsnDehuxlk672y3DZZS9xHPNrLQ5WpjQeJX+Q== X-Received: by 2002:a17:902:9305:: with SMTP id bc5-v6mr13755247plb.18.1522759499963; Tue, 03 Apr 2018 05:44:59 -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 o28sm5810983pfa.62.2018.04.03.05.44.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 03 Apr 2018 05:44:59 -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 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> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1522759385-17661-1-git-send-email-ykaneko0929@gmail.com> References: <1522759385-17661-1-git-send-email-ykaneko0929@gmail.com> Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@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 { + }; + }; }; };