From: Andre Przywara <andre.przywara@arm.com>
To: Chen-Yu Tsai <wens@kernel.org>
Cc: Chen-Yu Tsai <wens@csie.org>, Jernej Skrabec <jernej@kernel.org>,
Samuel Holland <samuel@sholland.org>,
Ulf Hansson <ulf.hansson@linaro.org>,
Rob Herring <robh@kernel.org>,
Krzysztof Kozlowski <krzk+dt@kernel.org>,
Conor Dooley <conor+dt@kernel.org>,
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: Re: [PATCH 2/4] pmdomain: sunxi: sun20i-ppu: add A523 support
Date: Mon, 7 Jul 2025 00:37:00 +0100 [thread overview]
Message-ID: <20250707003700.7c69ec68@minigeek.lan> (raw)
In-Reply-To: <20250627152918.2606728-3-wens@kernel.org>
On Fri, 27 Jun 2025 23:29:16 +0800
Chen-Yu Tsai <wens@kernel.org> wrote:
> From: Chen-Yu Tsai <wens@csie.org>
>
> A523 has a PPU like the one in the Allwinner D1 SoC.
>
> Add a compatible entry and a list of power domain names for it.
The user manual does not describe this PPU, but the BSP code confirms
the order of the domains, so:
> Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
One suggestion below, but only if you respin anyway:
> ---
> drivers/pmdomain/sunxi/sun20i-ppu.c | 17 +++++++++++++++++
> 1 file changed, 17 insertions(+)
>
> diff --git a/drivers/pmdomain/sunxi/sun20i-ppu.c b/drivers/pmdomain/sunxi/sun20i-ppu.c
> index 9f002748d224..b65876a68cc1 100644
> --- a/drivers/pmdomain/sunxi/sun20i-ppu.c
> +++ b/drivers/pmdomain/sunxi/sun20i-ppu.c
> @@ -193,6 +193,19 @@ static const struct sun20i_ppu_desc sun8i_v853_ppu_desc = {
> .num_domains = ARRAY_SIZE(sun8i_v853_ppu_pd_names),
> };
>
> +static const char *const sun55i_a523_ppu_pd_names[] = {
> + "DSP",
I wonder if we should enforce the relation between the DT binding
symbols and the names here, like:
[PD_DSP] = "DSP",
[PD_NPU] = "NPU",
...
Cheers,
Andre
> + "NPU",
> + "AUDIO",
> + "SRAM",
> + "RISCV",
> +};
> +
> +static const struct sun20i_ppu_desc sun55i_a523_ppu_desc = {
> + .names = sun55i_a523_ppu_pd_names,
> + .num_domains = ARRAY_SIZE(sun55i_a523_ppu_pd_names),
> +};
> +
> static const struct of_device_id sun20i_ppu_of_match[] = {
> {
> .compatible = "allwinner,sun20i-d1-ppu",
> @@ -202,6 +215,10 @@ static const struct of_device_id sun20i_ppu_of_match[] = {
> .compatible = "allwinner,sun8i-v853-ppu",
> .data = &sun8i_v853_ppu_desc,
> },
> + {
> + .compatible = "allwinner,sun55i-a523-ppu",
> + .data = &sun55i_a523_ppu_desc,
> + },
> { }
> };
> MODULE_DEVICE_TABLE(of, sun20i_ppu_of_match);
next prev parent reply other threads:[~2025-07-06 23:38 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-27 15:29 [PATCH 0/4] allwinner: a523: Add power controllers Chen-Yu Tsai
2025-06-27 15:29 ` [PATCH 1/4] dt-bindings: power: Add A523 PPU and PCK600 " Chen-Yu Tsai
2025-07-06 23:36 ` Andre Przywara
2025-07-08 8:47 ` Krzysztof Kozlowski
2025-07-08 8:55 ` Chen-Yu Tsai
2025-07-08 9:06 ` Krzysztof Kozlowski
2025-06-27 15:29 ` [PATCH 2/4] pmdomain: sunxi: sun20i-ppu: add A523 support Chen-Yu Tsai
2025-07-06 23:37 ` Andre Przywara [this message]
2025-06-27 15:29 ` [PATCH 3/4] pmdomain: sunxi: add driver for Allwinner A523's PCK-600 power controller Chen-Yu Tsai
2025-07-09 10:49 ` Ulf Hansson
2025-06-27 15:29 ` [PATCH 4/4] arm64: dts: allwinner: a523: Add power controller device nodes Chen-Yu Tsai
2025-07-06 23:37 ` Andre Przywara
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250707003700.7c69ec68@minigeek.lan \
--to=andre.przywara@arm.com \
--cc=conor+dt@kernel.org \
--cc=devicetree@vger.kernel.org \
--cc=jernej@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=linux-sunxi@lists.linux.dev \
--cc=robh@kernel.org \
--cc=samuel@sholland.org \
--cc=ulf.hansson@linaro.org \
--cc=wens@csie.org \
--cc=wens@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).