From patchwork Tue Oct 9 19:37:47 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sergei Shtylyov X-Patchwork-Id: 10633221 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 B8F0C13BB for ; Tue, 9 Oct 2018 19:37:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A13FD28B09 for ; Tue, 9 Oct 2018 19:37:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 928B329522; Tue, 9 Oct 2018 19:37:52 +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.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,MAILING_LIST_MULTI,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 2E1EE28B09 for ; Tue, 9 Oct 2018 19:37:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726728AbeJJC4W (ORCPT ); Tue, 9 Oct 2018 22:56:22 -0400 Received: from mail-lj1-f194.google.com ([209.85.208.194]:34985 "EHLO mail-lj1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726607AbeJJC4W (ORCPT ); Tue, 9 Oct 2018 22:56:22 -0400 Received: by mail-lj1-f194.google.com with SMTP id o14-v6so2683193ljj.2 for ; Tue, 09 Oct 2018 12:37:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cogentembedded-com.20150623.gappssmtp.com; s=20150623; h=from:subject:to:cc:references:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=jCNS4qL3T9qHpjfvwTZBTmhe5Wz05SGHoGH/7lhgxbU=; b=hPQEGxnv9RSmIF+oQu/IpPCP5PQVTrKfSBtdh+g9aQrVSIqg58Qr16kg6bQ5YB9K4n sJ5zLBnxyR9BiiIFG7xpASNyQFkfvFN/jcNjuLLZMShgc0OjRlb1so+4Xhy+Or9s9pOq nULCT4uHHf9doEBw18q4aT//pcijH33XETlURkSSk3Hgh7oEFvykcGY6JTu1jAnSBwiO oVo8l/59dGU72Kfwv3tr74Cg+4qgYph1k8orcicr0G4mRxNvjaNPKTyANOydZ5JMVHae qnyzxAmuXoUjW8msIguipMCUxH5oDq6keSLneu4W2FwUn0U4tgHee7tj6AmrBOxVR2sP 7Zmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:subject:to:cc:references:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=jCNS4qL3T9qHpjfvwTZBTmhe5Wz05SGHoGH/7lhgxbU=; b=VyMpILrBV2Hb7O1H5HCfjkBYiZAlev8PYOeX74NVaygGg1l5bZWewlKvdpR7JC01Vw QAVaTCdXRfllH8w2ONims73A27lE0UJj+6iwSmJwXXhbV1uU2+EbJCoUDSRql+MHNVRX oOaLMUkAL6/tXDOLNwvKGsHmk1hohUzkSx5wkEavkkx3rN/vjF6x03IqLJTRaZj6WdRb toIZAgkd5ZblFPj4eS7tUCNsM4oEPJqvCd3oexEWNdbbCGhHusRS9J3UxbCN/o2fVJzf hoyD5XtXwDSeVTd78lKN+/2CRjjZ07xdFIzDOmpYcf1UOHiSXNtHN8fFVr9Sq1iNrvyq zmUg== X-Gm-Message-State: ABuFfoj8BFjMtxT8gph3eRdiLJx3LzlZJLtEkqP92v/Y+UasaJcOp7ar MF6SSdNSBEdJYzzX4HG7POKKMQ== X-Google-Smtp-Source: ACcGV63A97H8yH9FBjGXDdpiP+x4NzVwLKwrD6I62WDmxZXmXBQyevZNfsEH7hngN/KYXAHhaFBoGw== X-Received: by 2002:a2e:7a19:: with SMTP id v25-v6mr20015135ljc.147.1539113869840; Tue, 09 Oct 2018 12:37:49 -0700 (PDT) Received: from wasted.cogentembedded.com ([31.173.83.100]) by smtp.gmail.com with ESMTPSA id n12-v6sm5035674ljc.3.2018.10.09.12.37.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 09 Oct 2018 12:37:48 -0700 (PDT) From: Sergei Shtylyov Subject: [PATCH] arm64: dts: renesas: r8a77980: add thermal support To: Simon Horman , Rob Herring , linux-renesas-soc@vger.kernel.org, devicetree@vger.kernel.org Cc: Magnus Damm , Mark Rutland References: Organization: Cogent Embedded Message-ID: <90451643-6beb-e61f-912c-3adff4c943cb@cogentembedded.com> Date: Tue, 9 Oct 2018 22:37:47 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Language: en-MW 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 Describe THS/CIVM in the R8A77980 device trees. Signed-off-by: Sergei Shtylyov --- This patch is against the 'renesas-devel-20181008-v4.19-rc7' tag of Simon Horman's 'renesas.git' repo. The thermal driver/bindings patches have been just posted... arch/arm64/boot/dts/renesas/r8a77980.dtsi | 38 ++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) Index: renesas/arch/arm64/boot/dts/renesas/r8a77980.dtsi =================================================================== --- renesas.orig/arch/arm64/boot/dts/renesas/r8a77980.dtsi +++ renesas/arch/arm64/boot/dts/renesas/r8a77980.dtsi @@ -330,6 +330,19 @@ #power-domain-cells = <1>; }; + thermal: thermal@e6198000 { + compatible = "renesas,r8a77980-thermal"; + reg = <0 0xe6198000 0 0x100>, + <0 0xe61a0000 0 0x100>; + interrupts = , + , + ; + clocks = <&cpg CPG_MOD 522>; + power-domains = <&sysc R8A77980_PD_ALWAYS_ON>; + resets = <&cpg 522>; + #thermal-sensor-cells = <1>; + }; + intc_ex: interrupt-controller@e61c0000 { compatible = "renesas,intc-ex-r8a77980", "renesas,irqc"; #interrupt-cells = <2>; @@ -1404,6 +1417,31 @@ }; }; + thermal-zones { + cpu-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + thermal-sensors = <&thermal 0>; + + trips { + cpu-crit { + temperature = <120000>; + hysteresis = <2000>; + type = "critical"; + }; + }; + + cooling-maps { + }; + }; + + sensor2-thermal { + polling-delay-passive = <250>; + polling-delay = <1000>; + thermal-sensors = <&thermal 1>; + }; + }; + timer { compatible = "arm,armv8-timer"; interrupts-extended = <&gic GIC_PPI 13 (GIC_CPU_MASK_SIMPLE(4) |