From patchwork Wed Jun 1 12:53:33 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 12866883 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 12A9DC433EF for ; Wed, 1 Jun 2022 12:55:26 +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=4hDdcosAmKJapUcxipPy3MtmcaouBWPR6F1p1nKQoZM=; b=nodhb9dBGQun0h +41M/E0ZFPjop6YSgeRvpzCwYe9noon0ibsGs5/hBJyPMfJeousJpaPDBGTg9/mvoqhl36aD0tKin wSWvcbERuQa7VTzL8yaAmCAjMKqjqgwYBC2N8p9phpGIYY06M3B6vU8awEyHxOaxNKQ/jx1ToeyG0 hgX40npuekLXcntrIXA+9j1PmonO9+5VTG9Opm9XdyCMlT9igQ6Rex+oCBXmmgV6Txl8TyAO93dot dUn9jDPxsaKjBbuwxmzy2EtRRnLL7jxOQPRhJSdozbE5SpwhANzi3abDpZ/k8L6kiTmanXba7VmsN NAQa+CSVXnKr41JS3qug==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nwNrc-00G7aU-R3; Wed, 01 Jun 2022 12:54:16 +0000 Received: from mout.kundenserver.de ([212.227.17.13]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nwNrX-00G7XZ-Vv; Wed, 01 Jun 2022 12:54:14 +0000 Received: from localhost.localdomain ([37.4.249.170]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MD9Ox-1o4sAb2HWj-0096Qn; Wed, 01 Jun 2022 14:54:00 +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 V2 00/11] soc: bcm2835-power: Prepare BCM2711 V3D support Date: Wed, 1 Jun 2022 14:53:33 +0200 Message-Id: <20220601125344.60602-1-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Provags-ID: V03:K1:hqybCJVcsXi2dvi1AbBNUNejJJSaAtq0IFedpVTQ3a8kpBdCtSx JP3DLIK7o3hRZ/mAaM/VD85WhHu3dv1gmZtPJOPWtPHQU+c0jPSLVuwLGFHOtGbX4EChw1d wUCS7GqDV0gg8sMFxJJrex+1pDW9X4S0sK+LLl20QptyxYN6z9K/Ap42vNTsuctZNNZNJbd vZ0CRicuwxnb2YJ3SrY4A== X-UI-Out-Filterresults: notjunk:1;V03:K0:EYpVZdENoDo=:+csRQDWBsjK0tkHFJDGoY3 i5yLW1eDlrSS6nYB+UmiP+bTSAZoF8qMG3SqE6K923qtT2d96fxbsUeXl0g86WAeoo7iBhulV yPWJWRRA5H4QhjJKXZD7pYRk2gRbcRyL0irRLJCY4CAXngOOsgMhxEryIf609LjtKW2HsRTAk 4vLetpHoTeycJvKNxrPmw2MYBxEFRvGs5XqvdO3wJIx6AcMF3cyquAcCQj+702MorHEhBmTuH csloli+vVQaKr17ptL0ivtqqpBaLFZAZH2otYzkioyO1oOVeS1m3AYcHdZStgOFD/cikV1Tgg 1e0Rrxre+ur5OQwRpvuH11m8J5MXGoEr+IagtoxQM4Ce4o3DNkcw5t9mYhgSVeLBAyIpQlLS1 imGqtXXW1L7AHEsWCjy74FH60vx9DuWwxzWGXEEhrOsetN6F2eSfwb5rQLEH4GmuFEFZzP7pd FduculE0dj0BX3z1ATITMyoZH52vE6ppbtPxmQm6oH6Aqw1XqX1xczGhxeVPI94Ovmau56tSV WORy0TSEAhgD4o703mmUuSbPhQ30Ba0R8L9xRaB00qxj1SnHiehZuie0sEgSsNDmXk4DK/6S0 kipM3tV3Nc7it6Kabed+z+s0riDfKILMi7mkPAXqAHoaPbd0P7YYnco5KaXDw8th/INc56S4v mbN6g+0Cl/VMU6E0u6HcEXpaOt2bdxJcI9JN9lngAh/n3u3mjIU0IinhhJPsvKaD26hK0Xb+7 Ow+xNc781hExzK7Fr00fAzy5/1ML/VPysbW2Y/DUzjFVjE8C2jOBY0ZpmdM= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220601_055412_396354_D6F04C89 X-CRM114-Status: GOOD ( 12.97 ) 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. 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