From patchwork Fri Nov 1 13:42:25 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 11223145 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E20B2912 for ; Fri, 1 Nov 2019 13:44:07 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BDEF7217D9 for ; Fri, 1 Nov 2019 13:44:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="deYEbGgB"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=gmx.net header.i=@gmx.net header.b="XoByljlP" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org BDEF7217D9 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=gmx.net Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org 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=RWJc1WPiVMPIc/RrQC0bY+9Vef14J+MPihyBaKXIapg=; b=deY EbGgBk3XBqHHT1XR5tTY82gBjqW1iZhJeO1PjlUvlk3wtNmaO/acluu0yoaqMBfuxGhmmZKSQfWRh g3egzjoRmcDO/eTQ0Dna+vS0B98kqRdgDzrbcHYE1V3HU7kaSZq3QtMMPbjs+VaRNFqQONV2D80vn VbZBlt5xoiOSo7c8PQevGA/QJ+cqX2YPYKchYy4fmfHnz731utydqZB9qRaYdgYMrred25a/ThWxs EGn0q5PPsWjfiPCqVZOsoRHPYlIkIsiEzQD0yQS3JRg4hcTgUl5g7BQpcpJHOTR8boR20XxmMIlFQ npDFwaWc7zmbpf3cA7B3QZ7NtcrIqiw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1iQXDi-0005li-C8; Fri, 01 Nov 2019 13:44:06 +0000 Received: from mout.gmx.net ([212.227.17.20]) by bombadil.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1iQXD3-0004jJ-7t for linux-arm-kernel@lists.infradead.org; Fri, 01 Nov 2019 13:43:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1572615789; bh=kcBKcJVOa9O9gt/1gGKhUY/mTXUJsEdNU9cT780Y7Og=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=XoByljlPxUx2ORHxVRylkGzQHBRaOhdOBUSliRz9zmfeGNoM6nKTrj4yRwcWVeLAv 60abCnG42zVXdU3+WUCWyOMBVt2bLg51VXdoa1xt0/9vexbu7LvFXlCkS1NGACj5op njiP9I1SdecTozWYl7AOiTJOe1kBT835OnFxAUG4= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([37.4.249.112]) by mail.gmx.com (mrgmx104 [212.227.17.168]) with ESMTPSA (Nemesis) id 1MVNB1-1iZ5Ug1luZ-00SLQ7; Fri, 01 Nov 2019 14:43:09 +0100 From: Stefan Wahren To: Zhang Rui , Eduardo Valentin , Daniel Lezcano , Amit Kucheria , Rob Herring , Mark Rutland , Eric Anholt , Florian Fainelli , Catalin Marinas , Will Deacon , Markus Mayer Subject: [PATCH 0/4] ARM: Enable thermal support for Raspberry Pi 4 Date: Fri, 1 Nov 2019 14:42:25 +0100 Message-Id: <1572615749-9524-1-git-send-email-wahrenst@gmx.net> X-Mailer: git-send-email 2.7.4 X-Provags-ID: V03:K1:LYhrgAqYuJOSKZBHS4xtwA6qw+Fd7NI7pnQJ1JEonsrCmfvtrIH Lyq+cNclMYkZADaN6b92h1cQbUBuJfONajbE6qeK1AFP7U/h2xJQ8P+r6vNODLZwZhZ2ktO InieNmIR8xR/yHy3Q51s8ZZx+IG1AHDs4AvYognOK0TIYxglAVQ4arD9pW9QuppgrqwRRGj CERsa8Vesen2yT7oA5lPw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:7sBRXt/lcKo=:iyAG+/n+l2vq9c1Lv6rdmK oZOzFVFYUoeBQXkrBSSZro4Xi9DwaC/cZyG9NXwLaw+Oob+aNnPe8TB1kG0+hC/9WMGEjvrKi ht99cgtuWDjfH17nU5MXUsPhtv70Af1Rg5XLlgQX4ChkSpwxYeCem3b2umMdN1pfuvyFq4hUc vVM2MgLN5WKRqLUzNS5gGSdomiFeliBF915Gfb2c8GzWkY2NxDMtppRP0BpME2HpMGfyoO0+D iYMoALpyHcNPEsSsYAC36MD8AV3eeXxPcf+q66ApkMJuI5Metvdt7UqBAO4LNteg+sdKo+8id T2Uo14Uw8VjQC+X6dlMO3LSbYGtL1KIZp6D9PHS9YGC1dZv+UO08UxFlD3OAWz3KsLyDksxYy 7Kp6U+kiyp//FnTEsW+jPWTEFQXTi2+wxCWniMo6GkVVZkNe/nYZukVA1n6EQLPX1+W/zewYP kfp/TtI0dstoZJ0hxXA5+mQE8u1jD/CIX+fbuBiXLjqsn5567kbqt2CSB8bM+MxCVH4kc3NMf 0zvMbkq9rondCg4XtKutQcPa21/BcaKd4ig5gIPY5s7MiUX6VdGGr21BTDG1tmraXJSdaYuaq RFefkC53yFd7BmtIO53K8DKpNQyNqVT4D3peO/hBsEjXVjC5lODvrPXj94uGia0prycDtuP7+ S8A+TAMEBDfKQ9Bvvx9oqpA8lUHK1beVqz2NLdpABWNPFGDU9mEt7IMWanWwwMq3zD0JNSx4c gokYLzVj6HvyOe/gR3AQp6jz41mX8+VCklXgQAYJYOoWnPF+ZjXFgPFhjulYn+U178kydwB1g 3KEz+K3bRmcZbxfHHUPMipHkowE9/GOmdm9I4NKx4yhq4QY4G17UY4T0D+fKKdIGKarJ2aQeR MWKkE8F1Oqwh8ilH7bIyFDb01fpjp9WMJdzH4zMoGCzuOssfnwaO6c81yB0ZYiJn6PuwEfojx 6wdBOrQ50UBOJ+8Ala1O6nF8ELXwodyRpzCqH/CNgxafsLCjITtUPHLPgJmWPgp3iB/sxPs45 8hKBuiJQwX1olIO/rRnREf256C61AtjOiAk/2d/4YKoWLOtjxLCas77YTgyGxHsW5t16Y8WSS He6b0WX4JSi7/JRFpz3SnAXu9d9KP/j8s0+anO5FY4REYqIU2Lz0HoaNlb//MnZ2p25sXu0ts 5Hldo73ASMxmhg4EfplLu8R5s9dSlHyl9Fc8gZCKitzbGYHhmYOQj/VRIE6qdRecTBU1skvsB CHl/KE4xvW/OvQuS+iKyaQrmebJwb9QRuF/34Cw== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20191101_064325_576383_2351E261 X-CRM114-Status: GOOD ( 11.65 ) X-Spam-Score: -0.9 (/) X-Spam-Report: SpamAssassin version 3.4.2 on bombadil.infradead.org summary: Content analysis details: (-0.9 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at https://www.dnswl.org/, low trust [212.227.17.20 listed in list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (wahrenst[at]gmx.net) -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devicetree@vger.kernel.org, linux-pm@vger.kernel.org, bcm-kernel-feedback-list@broadcom.com, Stefan Wahren , Chen-Yu Tsai , 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 This series enables thermal support for the Raspberry Pi 4. Neither the bcm2835_thermal nor the brcmstb_thermal are suitable for the BCM2711. So add a new thermal driver to read out the SoC temperature from the AVS RO block of the BCM2711. Stefan Wahren (4): dt-bindings: Add BCM2711 thermal thermal: Add BCM2711 thermal driver ARM: dts: bcm2711: Enable thermal ARM: configs: Build BCM2711 thermal as module .../bindings/thermal/brcm,bcm2711-thermal.txt | 39 ++++++ arch/arm/boot/dts/bcm2711.dtsi | 9 ++ arch/arm/configs/multi_v7_defconfig | 1 + arch/arm64/configs/defconfig | 1 + drivers/thermal/broadcom/Kconfig | 8 ++ drivers/thermal/broadcom/Makefile | 1 + drivers/thermal/broadcom/bcm2711_thermal.c | 146 +++++++++++++++++++++ 7 files changed, 205 insertions(+) create mode 100644 Documentation/devicetree/bindings/thermal/brcm,bcm2711-thermal.txt create mode 100644 drivers/thermal/broadcom/bcm2711_thermal.c Reviewed-by: Florian Fainelli --- 2.7.4