From: Tudor Ambarus <tudor.ambarus@linaro.org>
To: Alexey Klimov <alexey.klimov@linaro.org>,
Sam Protsenko <semen.protsenko@linaro.org>,
Krzysztof Kozlowski <krzk@kernel.org>,
Sylwester Nawrocki <s.nawrocki@samsung.com>,
Chanwoo Choi <cw00.choi@samsung.com>,
Alim Akhtar <alim.akhtar@samsung.com>,
Michael Turquette <mturquette@baylibre.com>,
Stephen Boyd <sboyd@kernel.org>,
Brian Masney <bmasney@redhat.com>
Cc: linux-samsung-soc@vger.kernel.org, linux-clk@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH 2/2] clk: samsung: acpm: add initial Exynos850 support
Date: Mon, 18 May 2026 14:03:40 +0300 [thread overview]
Message-ID: <1cfd32ac-4f28-4478-9f39-e75c3e12fd44@linaro.org> (raw)
In-Reply-To: <20260512-exynos850-acpm-clk-v1-2-837532ddbf38@linaro.org>
On 5/12/26 11:40 PM, Alexey Klimov wrote:
> The Exynos850 SoC utilizes the APM co-processor for clock management
> via ACPM, similar to the GS101 SoC.
>
> Add the Exynos850-specific clock variant array (including mif, int,
> cpucl0, cpucl1, g3d, aud, cam, disp, and cp) and wire it up to the
> driver data infrastructure. Add the "exynos850-acpm-clk" device ID
> to enable dynamic instantiation of these clocks during probe().
>
> Signed-off-by: Alexey Klimov <alexey.klimov@linaro.org>
> ---
> drivers/clk/samsung/clk-acpm.c | 19 +++++++++++++++++++
> 1 file changed, 19 insertions(+)
>
> diff --git a/drivers/clk/samsung/clk-acpm.c b/drivers/clk/samsung/clk-acpm.c
> index 604604b5b814..d9b2604db03a 100644
> --- a/drivers/clk/samsung/clk-acpm.c
> +++ b/drivers/clk/samsung/clk-acpm.c
> @@ -40,6 +40,18 @@ struct acpm_clk_driver_data {
> .name = cname, \
> }
>
> +static const struct acpm_clk_variant exynos850_acpm_clks[] = {
> + ACPM_CLK("mif"),
> + ACPM_CLK("int"),
> + ACPM_CLK("cpucl0"),
> + ACPM_CLK("cpucl1"),
> + ACPM_CLK("g3d"),
> + ACPM_CLK("aud"),
> + ACPM_CLK("cam"),
> + ACPM_CLK("disp"),
> + ACPM_CLK("cp"),
> +};
What clocks did you test from the array?
you need bindings for the clocks, otherwise you'll reference the clocks
in device tree with raw integers. See:
See include/dt-bindings/clock/google,gs101-acpm.h.
Since the bindings patch have to be defined in their own patch:
Reviewed-by: Tudor Ambarus <tudor.ambarus@linaro.org>
> +
> static const struct acpm_clk_variant gs101_acpm_clks[] = {
> ACPM_CLK("mif"),
> ACPM_CLK("int"),
> @@ -57,6 +69,12 @@ static const struct acpm_clk_variant gs101_acpm_clks[] = {
> ACPM_CLK("bo"),
> };
>
> +static const struct acpm_clk_driver_data acpm_clk_exynos850 = {
> + .clks = exynos850_acpm_clks,
> + .nr_clks = ARRAY_SIZE(exynos850_acpm_clks),
> + .mbox_chan_id = 0,
> +};
> +
> static const struct acpm_clk_driver_data acpm_clk_gs101 = {
> .clks = gs101_acpm_clks,
> .nr_clks = ARRAY_SIZE(gs101_acpm_clks),
> @@ -173,6 +191,7 @@ static int acpm_clk_probe(struct platform_device *pdev)
> }
>
> static const struct platform_device_id acpm_clk_id[] = {
> + { "exynos850-acpm-clk", (kernel_ulong_t)&acpm_clk_exynos850 },
> { "gs101-acpm-clk", (kernel_ulong_t)&acpm_clk_gs101 },
> {}
> };
>
prev parent reply other threads:[~2026-05-18 11:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-12 20:40 [PATCH 0/2] Initial support for Exynos850 SoC in ACPM clk driver Alexey Klimov
2026-05-12 20:40 ` [PATCH 1/2] clk: samsung: acpm: introduce driver data for SoC-specific clocks Alexey Klimov
2026-05-18 10:57 ` Tudor Ambarus
2026-05-12 20:40 ` [PATCH 2/2] clk: samsung: acpm: add initial Exynos850 support Alexey Klimov
2026-05-18 11:03 ` Tudor Ambarus [this message]
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=1cfd32ac-4f28-4478-9f39-e75c3e12fd44@linaro.org \
--to=tudor.ambarus@linaro.org \
--cc=alexey.klimov@linaro.org \
--cc=alim.akhtar@samsung.com \
--cc=bmasney@redhat.com \
--cc=cw00.choi@samsung.com \
--cc=krzk@kernel.org \
--cc=linux-clk@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-samsung-soc@vger.kernel.org \
--cc=mturquette@baylibre.com \
--cc=s.nawrocki@samsung.com \
--cc=sboyd@kernel.org \
--cc=semen.protsenko@linaro.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
all inboxes | Powered by JetHome®