From patchwork Sat Jun 25 11:36:08 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Wahren X-Patchwork-Id: 12895332 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 6D879C43334 for ; Sat, 25 Jun 2022 11:38:35 +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=x7DEcaCWkfW/BzKPKGfBuHoWpxWs3C3XcU3eytJAatE=; b=nfZU/2SG7vEapt i8nzskBKXL/AtQnmgCYgVcgLI3MPxUz7//OlDGPHsiNDq+8YkW4FIIrhBNhQ+LSFri0+4veetJTef fde2wiywlk2W7GAuCuJ383kaLbrab8wLf3CBWmy5RQBasaktBAo+exxvBSYVaq2oBOLFiQW0yKjti i2VEZRfioCIGpSYuUyLyJBIxxhYyCs3LB9vZJ0dZNANj9/H5sVoAtS5FfxdWZ3nmt8fZ4AmGIH6GU XcivaJumS2cVYsy3luvKIh+dVbwdc2uR+NgjTff5Gn3Uxcrp/EPIfJzZW+iBx7ZwN+BREf6a/Mu94 R1rm4EVA27QPV5+ew2ZA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o546M-005mfA-Uz; Sat, 25 Jun 2022 11:37:23 +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 1o5469-005mYa-H4 for linux-arm-kernel@lists.infradead.org; Sat, 25 Jun 2022 11:37:11 +0000 Received: from localhost.localdomain ([37.4.249.155]) by mrelayeu.kundenserver.de (mreue106 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MbBQU-1nXwGa3TTc-00bemk; Sat, 25 Jun 2022 13:37:00 +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 V4 00/11] soc: bcm2835-power: Prepare BCM2711 V3D support Date: Sat, 25 Jun 2022 13:36:08 +0200 Message-Id: <20220625113619.15944-1-stefan.wahren@i2se.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-Provags-ID: V03:K1:44spOXJIxwmdBxWwS17OT5K0ONHn+LJ+gmM4CIy3bLktx8S20XU cXCatCCoW4Uiu9ZU+tH71/GgESVS6RPhvJqtfnNYg0lbdhkVisODiDXZaHT5cvFLiCoEIK4 kW1LHrAuGNnKeAYOpCMkTd3QR0oXZg/Mtwyisd96oRckcd0gaLZ7uSuSbEdvlcCzjx0KzLl d1BxgE0C877xzEY0qC1eg== X-UI-Out-Filterresults: notjunk:1;V03:K0:eGrdUFM9nuY=:1hQad5Ij8LZ43sWy/A46K7 P9v6yGVLgZ62lptIaFTRJfgjcxzzzJ5h/OhTAulBGLn3VsHkOTv9n3Tb6MDihd1oLGEuHYmgx moO9g0i8y2vSekk7G473zgEBKxNxApViZR9DbGFFlX3eu5wEjVUcEWSNn7t6TpLkLZrplPzNW jrpJ578rUHGqvojrJGzTGAl60IyabnRvJ+2okg8yxx5n4BKr0Jh6ZUH7GnvX6Ccjbrkx5rge1 KujGasejbuqebla2SO/FJ+7Ot3WMLsCLrpg1HYfPccZlarbsB2Rh/KFpyMofa0b2ZGLp/RGeZ AjIAcvgVMN8qMJ7pg1+yW2+MXx9ELJK7F3Hr1Wo3lK3GAbLZylYF+NppbBx2jydbm1m7VMYJf AVSESc//b32OzlIpwekX1INo9xm3DXxV28/JI4JNr+tUDbOZgNYILhGodY3QCIxzIx8Cs5AyY Wbd2i81typdnfKVXm33pNx3tLNoEDXq4Dk7OMVi2Ik64jEL1l6E5Hcmp2IlrXgrrK8t3ZtyEj hfn1l8wRBpLIdkZh8z7HXvhz2aNAWdHTOZBAfXDjhmVbuRZjLOTV6f1Jkg4GHJGtwsGEFT1Lj bWeE0sUU9yiUthAnZtAeEgTcsqmVJgzxxhBoPHICCpB4fO1gvOjn6xkv6SOvGJmhiTJcz0Nil b3tXG7GGWX+IJaJ5iukMvyCG/8WmxErfn7QyqcVRA8DeztDMTNS7EjHBz0bUGxKos2QmWPQ62 ZuXGInlvsNppuI9K1ttJrsO2wlhvFBYSc/9FU+uPizUOiEZEjwaDMtaJiO0= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220625_043709_977149_240A36DC X-CRM114-Status: GOOD ( 13.53 ) 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 V4: - refactor bcm2835_pm_get_pdata to be easier to read - remove DT runtime checks and rely on DT schema as suggested by Lee - fix comment style as found by Lee 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 | 74 +++++++++++----- drivers/soc/bcm/bcm2835-power.c | 72 ++++++++++------ include/linux/mfd/bcm2835-pm.h | 1 + 7 files changed, 192 insertions(+), 91 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