From patchwork Sun May 15 20:20:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 12850075 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 6C42CC433F5 for ; Sun, 15 May 2022 20:22:43 +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=UqckFKJcKqlXlKJQh5TmNyyki8Pk9F89sGxO9+4bOGw=; b=D/dU1LMLNxqOuT N2BOiMAZjgx2tEPRnumdeKLNn3y/0vGD5BUHYnoCqmLjD5mVXChrTlvDEh+RZRSi1OOYNsFiCZ2R0 /kXXPvg1+VRjKbqSf0DrU6088NjaqI7To2P5Zuvxayb29NNbFxf9yvecZ4tTVdonUR/u7uP7PU19u DIteNlqzMu5AkNY7OVlwg3EsMlFJzxU7I9fE6l5KITUB9Rva2ZF8Z/FY6Z2xr7Div+Q7GdPWSUPGL 24GbqpkGA3SxtdHg0RKunJqds3OXcnGYW+uOfcc7bFyBpdGBNLxZBunae9JOtRK+a0ZkRCtUfXPOk qErNtYborVBs/e1Iwy5Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nqKk7-004uBg-DV; Sun, 15 May 2022 20:21:31 +0000 Received: from mout.kundenserver.de ([212.227.126.131]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nqKk3-004u8C-9p; Sun, 15 May 2022 20:21:29 +0000 Received: from localhost.localdomain ([37.4.249.94]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1N3KgE-1ni7Vn2dko-010LgX; Sun, 15 May 2022 22:21:17 +0200 From: Stefan Wahren To: Florian Fainelli , Ray Jui , Scott Branden , Nicolas Saenz Julienne , Lee Jones Cc: Peter Robinson , Melissa Wen , Phil Elwell , bcm-kernel-feedback-list@broadcom.com, Maxime Ripard , devicetree@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, Stefan Wahren Subject: [PATCH 00/11] soc: bcm2835-power: Prepare BCM2711 V3D support Date: Sun, 15 May 2022 22:20:21 +0200 Message-Id: <20220515202032.3046-1-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Provags-ID: V03:K1:1z0DJu1ynMuKbi/g6TGVt1ylKM8nVVtHcpGR+LseE/ZtjsEC6ft 1OAuNW0gYjKlbBCSkOFHeBoUddbJMuLXHUrcEoeZY5owSt5uARnfYugNo/T+UNP8q1x8oD/ PrIRbqe/IvLxkXed/ZHqUzHFlEh4nbey6cvl7spfV7i8EM1zFcQkx+WLnSGC+rfg9azubZg 1Qeo0nexyKiisnomIh7LA== X-UI-Out-Filterresults: notjunk:1;V03:K0:r97v+5F5WgQ=:2dqMiVN2rQukv5m+PYIsoa gDwET7nerywDZ4PdLi+PGNf2EGokqC1JCx7eyE/K8uF8iydYkW1mdA3Nc9epr2kGWATmixLR8 OwXv/OJ2eGCo6l66f1LXx+9KRyDLF4E4r0eNjO21cENKMJuBOaHy7ve1Sv+7poNVJ/wzfWlav C+WVLlKZvjO7RZbtcql3/se89ruRPJ0N36yAncmvtxhQIqW6jWgZOhgZP2PsSwshg2d20IG7b WsZAoGVBrt2MXTQgeJ2nDzLR9Q0Me3JAjGCUDpycFe/xbqC35rkl3UyAUd01swOY6ahWLi8Iv VSq4KPh9cawn8S3n0nvpPvvBDKcEMe5GpPInLMhF/4Fvptw97ezuA3h+hFK0ie8lwdizsVeEm D+1S5lizNYOXXxW+I9MzZQ1ZUA20pa6LTY1oW9C3+sYh0o5/C5RHeaOb6CvxLw8fteDs4cxb9 VhkyzJoVlfi1bjMzwoE9aAGcmQw4JCoym+YdQlucZVpqgaRBz4F3SEdK8Uij5h/yLXwQyHEaf OvbvdY507Lb9f/JFuQc2Yvi034OLbZXZxnkDgmvbFG4Nj38nDuIGyc2DuvM6eGS0v7R8m7ydh XOhyudVNVuQnv4QFfeNp/b8vmEXBSZVHTXUkV9ZyDNQXnSVGjjnIxPh6H0E7X/5NyDye84G50 Jx5wtx/8gVuKLeZT4bU1RhCBH6u7I7vLmyWVr7YmtYeEWkGAMDxQEo2fSqo7OFToiCCgSz6Fy MP+HGs2f9Jgh8Xyy X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220515_132127_700240_DFEC9BD6 X-CRM114-Status: GOOD ( 11.37 ) 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 attemps 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. The changes has been tested just superficial on RPi 3B+ and 4B, so further tester are welcome. 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 | 89 +++++++++++++++++++ arch/arm/boot/dts/bcm2711.dtsi | 3 +- arch/arm/boot/dts/bcm2835-common.dtsi | 1 + drivers/mfd/bcm2835-pm.c | 77 ++++++++++++---- 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