From patchwork Fri Jan 3 17:23:55 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 213117 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.7 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH, MAILING_LIST_MULTI, SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5E2ECC33C8C for ; Fri, 3 Jan 2020 17:24:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 31D1D215A4 for ; Fri, 3 Jan 2020 17:24:51 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=gmx.net header.i=@gmx.net header.b="jntuTEtf" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728150AbgACRYu (ORCPT ); Fri, 3 Jan 2020 12:24:50 -0500 Received: from mout.gmx.net ([212.227.17.20]:54849 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728113AbgACRYt (ORCPT ); Fri, 3 Jan 2020 12:24:49 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1578072274; bh=BZwbvnjIkKy51z9cUu4HZ4g7pOB2mlq9DzuAGQ9CZwA=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date:In-Reply-To:References; b=jntuTEtf/ZSMb7V0+1xMNDsSiGiJc2+G7ijZL2vYwwKrVj9lfIlJOS77kUNGD40cL EqaRqeqdesM8MDLzaUHvrNunt6gcrXVZRQWk6TNPk/GUsfclMODtmHlALLe/3hZ3mw Da5KlbqR313+0Tvj5azlJvMD+1wfElRPBlHEphDo= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([37.4.249.154]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MMGNC-1j3Je02aW6-00JLjG; Fri, 03 Jan 2020 18:24:34 +0100 From: Stefan Wahren To: Zhang Rui , Daniel Lezcano , Amit Kucheria , Rob Herring , Mark Rutland , Nicolas Saenz Julienne , Florian Fainelli , Catalin Marinas , Will Deacon Cc: linux-pm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com, devicetree@vger.kernel.org, Stefan Wahren Subject: [PATCH V2 3/4] ARM: dts: bcm2711: Enable thermal Date: Fri, 3 Jan 2020 18:23:55 +0100 Message-Id: <1578072236-31820-4-git-send-email-wahrenst@gmx.net> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1578072236-31820-1-git-send-email-wahrenst@gmx.net> References: <1578072236-31820-1-git-send-email-wahrenst@gmx.net> X-Provags-ID: V03:K1:VHkLP3wAXoJeCqgSYpKkHHl9KWD7U8WneNkXn6EF+49joTjnbLx Lrzy+jtF50qY8o1EA7jxzcODuW9wZtwUmb/GemrekFYswZwtqdyMEhY3n/kwzKpAlbmpnIi nyylX+O+CPTru6+8MhDiJRuLo02HcYzljN/UZpjBU79q9/TpmR3aUcwQ4jqhl7d/6XJgbih tEEJ4RfOykTwEIAlS/nTw== X-UI-Out-Filterresults: notjunk:1; V03:K0:GicZFVX/nNo=:lf5QKtzxZBdS9dk6SXWhBz a/56cP58oiRIrUBxND8vjuB0ynBFWvQoH0+wQtiCwUryGm8fyFPb5L5ffcxwgt5GqMVuYor+c l4f6VOssXogvuOIZo4un0BZ8oZWSu4DuO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dfyb62S4CQJZL/fUwE5IRG6jDW6gex9fyfKvE+WNuSfX8pMT/JhKCQpbxIThWFCserzn1MI0 hPjW6oXlQx1toBsxgXRkwAW67F5akJzIpgcL4lQ== Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org This enables thermal for the BCM2711 (used on Raspberry Pi 4) by adding the AVS monitor and a subnode for the thermal part. Signed-off-by: Stefan Wahren --- arch/arm/boot/dts/bcm2711.dtsi | 12 ++++++++++++ 1 file changed, 12 insertions(+) -- 2.7.4 diff --git a/arch/arm/boot/dts/bcm2711.dtsi b/arch/arm/boot/dts/bcm2711.dtsi index 961bed8..96f341d 100644 --- a/arch/arm/boot/dts/bcm2711.dtsi +++ b/arch/arm/boot/dts/bcm2711.dtsi @@ -66,6 +66,17 @@ IRQ_TYPE_LEVEL_HIGH)>; }; + avs_monitor: avs-monitor@7d5d2000 { + compatible = "brcm,bcm2711-avs-monitor", + "syscon", "simple-mfd"; + reg = <0x7d5d2000 0xf00>; + + thermal: thermal { + compatible = "brcm,bcm2711-thermal"; + #thermal-sensor-cells = <0>; + }; + }; + dma: dma@7e007000 { compatible = "brcm,bcm2835-dma"; reg = <0x7e007000 0xb00>; @@ -363,6 +374,7 @@ &cpu_thermal { coefficients = <(-487) 410040>; + thermal-sensors = <&thermal>; }; &dsi0 {