From patchwork Mon Oct 15 14:12:26 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Yoshihiro Kaneko X-Patchwork-Id: 10641941 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 5998A925 for ; Mon, 15 Oct 2018 14:13:02 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 48CA029974 for ; Mon, 15 Oct 2018 14:13:02 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3CD6D29AE5; Mon, 15 Oct 2018 14:13: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=-2.9 required=2.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED,DKIM_VALID,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE 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 BFA9629AE1 for ; Mon, 15 Oct 2018 14:13:01 +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: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:In-Reply-To: References:List-Owner; bh=5F9veAMDS050JdF4WyWjRImpKLyRluY0nOMwwfhFonQ=; b=a8c xkRsC7Uera/HJeqk9VUn8RKBpB0W7wiSnUyB9/ycGMegE1mxdlFWJ4QMw1uUnwqMY2hi1qPcmKCTM PHEsVbQavw/IChH8WLrkiZz0F1HMCChDX5sblN/0qpqGSwiLAkhMh8/XZ1dUpAgrZ4cibJlDaTtMU 2n9Ibu2oKLXkf2g1sSNHtt/jZZSsdBVY7ml0YQRiCKh8GjMl3S6v9IjJ1eR92YfVWrJ1sT9JJ9JoK wfMIRDzCRrOwwp4HEw8Cth9ww6qdVTVsEyDrng9XOukgxn3HwGcngkGR0209wwmwaK+WGcLioEsA4 8XdAIkMcess3TnK/35jz7IsVkZlx8Qg==; 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 1gC3cA-00088v-3u; Mon, 15 Oct 2018 14:12:58 +0000 Received: from mail-pf1-x432.google.com ([2607:f8b0:4864:20::432]) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1gC3c3-0007w9-0x for linux-arm-kernel@lists.infradead.org; Mon, 15 Oct 2018 14:12:52 +0000 Received: by mail-pf1-x432.google.com with SMTP id c25-v6so9747227pfe.6 for ; Mon, 15 Oct 2018 07:12:40 -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; bh=xCx0NHols0BZ2ri50CSLHqof/TC8u+d5A4aTEQgOOgA=; b=t6ptIIUmjepLZrCVzkoqcChriYV4nCmynMCMH33YPXi+lucDY/7VSS/C9xO2ZC5vXy mSx4UgormubkJevgUEgPbkbe5NMSUF9fYXRjNZ7acMwS/EUj4RSx697JUJVEeN6MSijN 2MQynCNmDsRjLo+aQlc9V7fy6EhBmEFhSfvHKVBLEf1qkERy9NF7wvoS8Z2BOUZsepIq P9io0kQj93aKkUzlanNlxevETef0FOvRXHY7gS8Ei13ov5ZBzoGRHs+qnZyLqdzRUFJA +wPB7FNh3AFNIVJOsl9tL8gGaG1R46OLfG7/EJDSSxovLigUmLPLsUwtj3LRpCNJqf7a APYA== 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; bh=xCx0NHols0BZ2ri50CSLHqof/TC8u+d5A4aTEQgOOgA=; b=K4FC6LqY6DmUHAxHAEfTjyaSkn0JBtNLhc+b1Y4bP3hOrIUQ4MoVUSg05klZoNEtB9 v0mgnPX7zlFWgDhmHwF4tcQet222Fg3Y5+bmY0B6xvA9bXAH5NtxXuH8Jyh2ShfIHbMl HKvgvPs5lhaO0+wyXcZyY7mO2Lr8gVso5XFsrMz13UqMAWFra055vX37rZopkxQN23t2 ztHrlWpAwZ4JILiF0JlT8JU/gSYFxPhzMFoYBnyPSXiiDstCVZWpR5Emi5jLZZHWEgV4 WaNDFxWa4vNbBdAPXcGEytCnGvmtWzqRd5E5IsTF/rM/hZ5iHN06HrdlE1AXnnOFzZd6 bNZQ== X-Gm-Message-State: ABuFfohr8jr66dQG6n4TQnB8FQcyDyERZVHbzgvBl9//rtuPZ58d5yyz iPRBK+SCBmZRxWOafinuiaU= X-Google-Smtp-Source: ACcGV61tvcRUh0oDAZrC3JKNTd5690+Z0+MAVQsylTn0fMHsQyFAHCItClGO0a9ngsJDmrbf+d2W2g== X-Received: by 2002:a65:498b:: with SMTP id r11-v6mr16076754pgs.153.1539612759868; Mon, 15 Oct 2018 07:12:39 -0700 (PDT) Received: from localhost.localdomain (p7732116-ipngn36501marunouchi.tokyo.ocn.ne.jp. [114.158.79.116]) by smtp.gmail.com with ESMTPSA id 64-v6sm14094319pgb.74.2018.10.15.07.12.38 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 15 Oct 2018 07:12:39 -0700 (PDT) From: Yoshihiro Kaneko To: linux-renesas-soc@vger.kernel.org Subject: [PATCH/RFT] arm64: dts: renesas: r8a77990: add thermal device support Date: Mon, 15 Oct 2018 23:12:26 +0900 Message-Id: <1539612746-9711-1-git-send-email-ykaneko0929@gmail.com> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20181015_071251_067940_1B25EFFD X-CRM114-Status: GOOD ( 14.48 ) 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: Magnus Damm , Simon Horman , Geert Uytterhoeven , linux-arm-kernel@lists.infradead.org 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 This patch adds the thermal device node and the thermal-zone for the R8A77990 SoC. Signed-off-by: Yoshihiro Kaneko Reviewed-by: Simon Horman Tested-by: Simon Horman --- This patch is based on the devel branch of Simon Horman's renesas tree. 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 7278cd5..5381466 100644 --- a/arch/arm64/boot/dts/renesas/r8a77990.dtsi +++ b/arch/arm64/boot/dts/renesas/r8a77990.dtsi @@ -341,6 +341,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>; @@ -1063,6 +1075,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)>,