From nobody Wed Oct 8 14:20:59 2025 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 EFF621CAA6C; 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=amkcX3SjytAgVVqkCuiQsX7c0ulFQYaweWDk6QLilDodB80vTbn7qJQ7FbBJ3ELpRmCfSEuAY0eMbR8HmaYi8N6RGIKS78XJ9ECvzoEgkSOk4dvFh9N/6Eweoj6NI6cKk1NuOh5mTpvE5YKLjECluHETpKXCxKfAm550kAwuPR4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751038170; c=relaxed/simple; bh=HqUKn0G06bLQgn9/7br5JqwZjyala+dj86Idxb210+E=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=aovpS8pixSeb2xdCCw3U9+JMhTr1ft2368uUJ7Eb0XPKUQF2wasau1cBhRVNEhtbWGoUrZIPr4fUNsHo+/QqJy+MKuhvpLgulP0POp6vp6Feu1tVUR5q5X1FMnnA6bhMe4iPRUvVlu0LBeNPv9MqNKKNF69dmEY6hZa6Sr0u1c8= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Q4JdDqPN; 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="Q4JdDqPN" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A848BC4CEF1; 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=HqUKn0G06bLQgn9/7br5JqwZjyala+dj86Idxb210+E=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Q4JdDqPNgf+N/qPpe13/rDdggJ7X82WQoNvBLavdF/iOvGPAzdTEXe0IhAKQMCmVA Ln3U/mI1h5dDSxMLGDaoMxOR6qv0X8JSUXPmXWY/0bVYSj8hL96ZBFf/ySh9hu8mSu XwOC6BPRQj2ZTVFU8TQ4lqTyc0QyOsUUZ7AL7Lv8pwqlLHseQX69T53OrFSSSitvlx HTHN+6ud0sjimLb+vYovqDfvn1dqHYC52gCGsyDkfTHfTaqUe1uRnuBjjXaoogoF9J yfstODLz/pwRxXt4iOBMpRYRmQIGadAYgZ/jS/G4I5DBJc8/g24KrZBqZq/xcWLMfI Ja1KkTT7T5l4A== Received: by wens.tw (Postfix, from userid 1000) id 32F395FF77; 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 2/4] pmdomain: sunxi: sun20i-ppu: add A523 support Date: Fri, 27 Jun 2025 23:29:16 +0800 Message-Id: <20250627152918.2606728-3-wens@kernel.org> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20250627152918.2606728-1-wens@kernel.org> References: <20250627152918.2606728-1-wens@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" From: Chen-Yu Tsai 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. Signed-off-by: Chen-Yu Tsai Reviewed-by: Andre Przywara --- 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/s= un20i-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_des= c =3D { .num_domains =3D ARRAY_SIZE(sun8i_v853_ppu_pd_names), }; =20 +static const char *const sun55i_a523_ppu_pd_names[] =3D { + "DSP", + "NPU", + "AUDIO", + "SRAM", + "RISCV", +}; + +static const struct sun20i_ppu_desc sun55i_a523_ppu_desc =3D { + .names =3D sun55i_a523_ppu_pd_names, + .num_domains =3D ARRAY_SIZE(sun55i_a523_ppu_pd_names), +}; + static const struct of_device_id sun20i_ppu_of_match[] =3D { { .compatible =3D "allwinner,sun20i-d1-ppu", @@ -202,6 +215,10 @@ static const struct of_device_id sun20i_ppu_of_match[]= =3D { .compatible =3D "allwinner,sun8i-v853-ppu", .data =3D &sun8i_v853_ppu_desc, }, + { + .compatible =3D "allwinner,sun55i-a523-ppu", + .data =3D &sun55i_a523_ppu_desc, + }, { } }; MODULE_DEVICE_TABLE(of, sun20i_ppu_of_match); --=20 2.39.5