From patchwork Fri Jun 27 15:29:14 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Chen-Yu Tsai X-Patchwork-Id: 168 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 2C04B2E92CC; Fri, 27 Jun 2025 15:29:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751038170; cv=none; b=cbULK5xDS4HuuQoyqF98C39sNe6u/ZcH1NMYmXsUnLNqcjWZH/5PgePQRUDDPzqe8LVOvIR2rd94qsq7KwfHihXxWxHLqJejPTBHfj9g63Y4FSaejD18y9DrBq8p8kiilaFYmQXIrkUwNJZqPMww97/q1kq9eaUOL0iOfqTuh0s= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751038170; c=relaxed/simple; bh=DLL0uv9BKZAXYGcaADgHmi1/DoHhNnMIhXQxNX93FQA=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=SLo+dsrtZAwu6xenJlNpxT8eKimtQpizmQIMmCiXs2pxS6kDYaPWVkqkcux3jTxikNyBgdY8x2yDQVBBzqXPYxZ1xnXEzDmId0WaBwuamLJ6yzTnOJohfxrjjRTwrKSoW39x5w1OMUSHndOh8cEyxmhL9xx/WaLDeKuOS0bk8Ww= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Bb027EaM; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Bb027EaM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AA54CC4CEF2; Fri, 27 Jun 2025 15:29:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1751038169; bh=DLL0uv9BKZAXYGcaADgHmi1/DoHhNnMIhXQxNX93FQA=; h=From:To:Cc:Subject:Date:From; b=Bb027EaMRl72rIynik9ymtl6EoP6L6kbRgcXJT+28jIGaEwIsNgJXJm4DUDAV8p4b tpsORQqbFZo+D0XmZLvvEnCjcHnMaqLTzgVEjRhETSixFoxgTjoxqwIm+2y7Dh0x8M X5KLiwXZ1JDLrZ4+3ZRWmJViy8LLkcgUWyef+em4VHJXDsAxOTFrHqVA3Qz5z/1lAp D8sd0rnlkmPjF7VNOVJAxCWypAnpvv21Va8epte42g5j8YrptOG3lYnTKEQsjNmfkx SLpU52zKPd4iciVvE0+LS8Dq6a3IFvY/LVkW0Vc/ciiIhXsWf5Amf3P4/O94rqtF0x cqe7WJRcLp1MA== Received: by wens.tw (Postfix, from userid 1000) id 172185FD85; Fri, 27 Jun 2025 23:29:27 +0800 (CST) From: Chen-Yu Tsai To: Chen-Yu Tsai , Jernej Skrabec , Samuel Holland , Ulf Hansson , Rob Herring , Krzysztof Kozlowski , Conor Dooley Cc: Andre Przywara , linux-sunxi@lists.linux.dev, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH 0/4] allwinner: a523: Add power controllers Date: Fri, 27 Jun 2025 23:29:14 +0800 Message-Id: <20250627152918.2606728-1-wens@kernel.org> X-Mailer: git-send-email 2.39.5 Precedence: bulk X-Mailing-List: linux-sunxi@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Status: O From: Chen-Yu Tsai Hi folks, This series adds the power controllers found in the Allwinner A523 family of SoCs. There are two power controllers. One is the same type as those found in the D1 SoC, just with a different number of valid power domains. The second is (I assume) a unit based on ARM's PCK-600 power controller. Some of the registers and values match up, but there are extra registers for delay controls in the PCK-600's reserved register range. Patch 1 adds new compatible string entries for both of these controllers. Patch 2 adds support for the A523 PPU to the existing D1 PPU driver. Patch 3 adds a new driver of the PCK-600 unit in the A523 SoC. Patch 4 adds device nodes for both of these controllers. Please have a look. The power controllers are critical for enabling more peripherals, such as display output, camera input, video codecs, the NPU, and a second DWMAC-compatible ethernet interface. Thanks ChenYu Chen-Yu Tsai (4): dt-bindings: power: Add A523 PPU and PCK600 power controllers pmdomain: sunxi: sun20i-ppu: add A523 support pmdomain: sunxi: add driver for Allwinner A523's PCK-600 power controller arm64: dts: allwinner: a523: Add power controller device nodes .../power/allwinner,sun20i-d1-ppu.yaml | 2 + .../arm64/boot/dts/allwinner/sun55i-a523.dtsi | 18 ++ drivers/pmdomain/sunxi/Kconfig | 8 + drivers/pmdomain/sunxi/Makefile | 1 + drivers/pmdomain/sunxi/sun20i-ppu.c | 17 ++ drivers/pmdomain/sunxi/sun55i-pck600.c | 225 ++++++++++++++++++ .../power/allwinner,sun55i-a523-pck600.h | 15 ++ .../power/allwinner,sun55i-a523-ppu.h | 12 + 8 files changed, 298 insertions(+) create mode 100644 drivers/pmdomain/sunxi/sun55i-pck600.c create mode 100644 include/dt-bindings/power/allwinner,sun55i-a523-pck600.h create mode 100644 include/dt-bindings/power/allwinner,sun55i-a523-ppu.h