Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

pmdomain: sunxi: sun20i-ppu: add A523 support

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>

authored by

Chen-Yu Tsai and committed by
Ulf Hansson
982aaa68 353f4ce9

+17
+17
drivers/pmdomain/sunxi/sun20i-ppu.c
··· 193 193 .num_domains = ARRAY_SIZE(sun8i_v853_ppu_pd_names), 194 194 }; 195 195 196 + static const char *const sun55i_a523_ppu_pd_names[] = { 197 + "DSP", 198 + "NPU", 199 + "AUDIO", 200 + "SRAM", 201 + "RISCV", 202 + }; 203 + 204 + static const struct sun20i_ppu_desc sun55i_a523_ppu_desc = { 205 + .names = sun55i_a523_ppu_pd_names, 206 + .num_domains = ARRAY_SIZE(sun55i_a523_ppu_pd_names), 207 + }; 208 + 196 209 static const struct of_device_id sun20i_ppu_of_match[] = { 197 210 { 198 211 .compatible = "allwinner,sun20i-d1-ppu", ··· 214 201 { 215 202 .compatible = "allwinner,sun8i-v853-ppu", 216 203 .data = &sun8i_v853_ppu_desc, 204 + }, 205 + { 206 + .compatible = "allwinner,sun55i-a523-ppu", 207 + .data = &sun55i_a523_ppu_desc, 217 208 }, 218 209 { } 219 210 };