From patchwork Tue Jun 7 20:42:15 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 12872367 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id B1B5BC433EF for ; Tue, 7 Jun 2022 20:44:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :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=kaibFrCu/XrL7yl2gyI1vaApkbcVT8pLe+1v1Yapnl0=; b=ZFr18D/J5rxkg4 UqaP0iCn4Odvj0EkuZyfzGSoh0Xk+Zkjg1B27heNhFEmIIrKc4ZP1whbIL/e4/iU1Za3Q2uaKfpcC cJ0Mw1h6fNV1WnJHWNFsLedozyBZ61pZpzGTxAThlif8La/U+g1WWpRQtTqZrOV0kvVVVSSh1O52N nVZZlbS1fulj1g6mL9C80+NpbUoATeORrFP62c1n6kOS8irphqHohwy0mtgRs/FgGOki8fr9o8V7t LxOP6JrbxOIkQVvZU4+Jd362pBw3uGYmyuGpL45rEmD+/ywv/wby3AL9TjM8tehiR7AMJUpcluPAU oYpQoisxXpzvxpA6964g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nyg3S-009a7L-QC; Tue, 07 Jun 2022 20:43:58 +0000 Received: from mout.kundenserver.de ([212.227.17.24]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nyg2Y-009Zai-0A for linux-arm-kernel@lists.infradead.org; Tue, 07 Jun 2022 20:43:04 +0000 Received: from localhost.localdomain ([37.4.249.155]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MGyl3-1o2Cgi3Bfn-00E22J; Tue, 07 Jun 2022 22:42:51 +0200 From: Stefan Wahren To: Florian Fainelli , Ray Jui , Scott Branden , Lee Jones Cc: Peter Robinson , Melissa Wen , Phil Elwell , bcm-kernel-feedback-list@broadcom.com, Maxime Ripard , devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Stefan Wahren Subject: [PATCH V3 00/11] soc: bcm2835-power: Prepare BCM2711 V3D support Date: Tue, 7 Jun 2022 22:42:15 +0200 Message-Id: <20220607204226.8703-1-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Provags-ID: V03:K1:95IZT/hv9VsgclPJn6CoB4XLPs5t9/b/k8nKkbIprddSSRDDCm+ ffidJaQH/5DXaJsTrv+47t5BYB8lH1tGuY2bDlVw2s54ar472C3Yt42ZIc/6OIy2ZOZVmlu 2hfYjtuCphGoGsiMJllA1khuc67Bt9F2ptTtUUOedxTVghmcadwydy0JbNxUvNJBs7OcSUZ Y3POskhRcWoUfMfMxXR2w== X-UI-Out-Filterresults: notjunk:1;V03:K0:qslAVAJZLjc=:y/MDIRl5MLSnOZU2OB5O8z Ms388ropO6IugFg2c58Yez5x1ChUlDce5KjacRD7pOHUxJzkXsS2UrxSqk8qw8t8ab3CrPwVW zVV2gQuWb4JdXkfVFJ3H8hW6O21pOBD7DcnORPQnBS9a/ILNWzPDQZx57PVIOeveVUshqbckM UYTEFHUZVAqcCbk09TklwtL+ifwiQMqqpvq0kiul96SFVSltNNGbdOH1Eixi6g7W+1CXYZNfb cX7+bfaglYS6ZRCOYdT7tL2Cw/3mzv+YC/bzJtMAH+V/TFyqLhcLJRjYfI2DAcf8PlEHnY3os 4G0ZZhy1nHDC5Fxbv0OlDM5IESGlQXPpsAmPTYoUC5IIY78pvwoP1lpNr9MZWFSucB4WSzGBY hmkXRytCqe8f7GSwFzLggWRGYW0J/p1CvbZA3jFsJ/WXs0zdlAOGoVyZhFvgHbJXIKSd9/tU/ 3LH0i9WocTucJ/yzhVepbkDHe39jHsKKhQWX36Wclqzubdoqg9kspnsgUfSaFZpLx+yTc2N7F 5E02ICAfsJxWBsqifjHeeHdQSuzhhSZOzxrpAHEUrk+TTmt3i9sroGTmhHS87QrNdP+ZRWOjL zhWmyEEzWFfwDJUAX+GVkuir+cf1coPwfr7553/zefUxMkF57IRkXMPwJ6Xv2UIf5+w0I5l95 B8ZBrBphYNwcLpw99bjk2G0jxPo+8OWDE0WQxeMCTfo5IDc6zxnyKGTWBqgB4XC6M1Qz4DMUJ 1BdV8Q5Su21pOFVXbCV2bbSN2SN6iRp6Du+8iVXiowx0+BpH9K7gDYv0DMc= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220607_134302_399928_8CAA838F X-CRM114-Status: GOOD ( 13.69 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series is a split out of version 4 - Raspberry PI 4 V3D enablement send by Peter Robinson [1]. It attempts to enable BCM2711 V3D support for the power management driver. It's a rework of the less controversial changes (excluding V3D GPU driver changes) so this can be reviewed and applied faster. Changes in V3: - add more Reviewed-by by Peter - fix minItems in Patch #3 found by Rob Changes in V2: - add Peter's Reviewed-by - simplify schema for rpivid_asb as suggested by Rob - fix reference and clarify fallback & error handling in patch #7 - drop unnecessary newline in patch #9 - improve log messages as noticed by Peter Changes since the mention series: - fix DT schema errors - make rpivid_asb register optional in DT schema - avoid code duplication in BCM2835 ASB enable/disable - rework ASB V3D handling so we don't need the V3D flag - avoid log errors for optional register - use a define for expected ASB_AXI_BRDG_ID result - fix copy & paste issues in bcm2835-pm changes [1] - https://patchwork.kernel.org/project/linux-arm-kernel/cover/20220213225646.67761-1-pbrobinson@gmail.com/ Nicolas Saenz Julienne (6): dt-bindings: soc: bcm: bcm2835-pm: Convert bindings to DT schema dt-bindings: soc: bcm: bcm2835-pm: Introduce reg-names ARM: dts: bcm2835/bcm2711: Introduce reg-names in watchdog node ARM: dts: bcm2711: Use proper compatible in PM/Watchdog node mfd: bcm2835-pm: Use 'reg-names' to get resources soc: bcm: bcm2835-power: Bypass power_on/off() calls Stefan Wahren (5): dt-bindings: soc: bcm: bcm2835-pm: Add support for bcm2711 mfd: bcm2835-pm: Add support for BCM2711 soc: bcm: bcm2835-power: Refactor ASB control soc: bcm: bcm2835-power: Resolve ASB register macros soc: bcm: bcm2835-power: Add support for BCM2711's RPiVid ASB .../bindings/soc/bcm/brcm,bcm2835-pm.txt | 46 ---------- .../bindings/soc/bcm/brcm,bcm2835-pm.yaml | 86 +++++++++++++++++++ arch/arm/boot/dts/bcm2711.dtsi | 3 +- arch/arm/boot/dts/bcm2835-common.dtsi | 1 + drivers/mfd/bcm2835-pm.c | 80 +++++++++++++---- drivers/soc/bcm/bcm2835-power.c | 72 ++++++++++------ include/linux/mfd/bcm2835-pm.h | 1 + 7 files changed, 199 insertions(+), 90 deletions(-) delete mode 100644 Documentation/devicetree/bindings/soc/bcm/brcm,bcm2835-pm.txt create mode 100644 Documentation/devicetree/bindings/soc/bcm/brcm,bcm2835-pm.yaml