]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
pmdomain: sunxi: sun20i-ppu: add A523 support
authorChen-Yu Tsai <wens@csie.org>
Sat, 12 Jul 2025 07:40:18 +0000 (15:40 +0800)
committerUlf Hansson <ulf.hansson@linaro.org>
Tue, 15 Jul 2025 14:04:55 +0000 (16:04 +0200)
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.

Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Signed-off-by: Chen-Yu Tsai <wens@csie.org>
Link: https://lore.kernel.org/r/20250712074021.805953-3-wens@kernel.org
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/pmdomain/sunxi/sun20i-ppu.c

index 9f002748d224f7b61561defdcf5f9c517ed54ff4..b65876a68cc17290df406a591cae921177d68b8f 100644 (file)
@@ -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",
+       "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);