Re: [PATCH v3 2/2] firmware: samsung: acpm: add Exynos850 support

From: Peter Griffin

Date: Fri Oct 02 2026 - 10:44:30 EST


On Tue, 29 Sept 2026 at 03:11, Alexey Klimov <alexey.klimov@xxxxxxxxxx> wrote:
>
> The Exynos850 SoC contains an APM co-processor. Communication
> with this hardware block is established using the ACPM protocol,
> which handles IPC messages for clocks, power, thermal management,
> and PMIC control.
>
> Add the "samsung,exynos850-acpm-ipc" compatible string along with
> its associated match data. This includes the specific initialisation
> data base offset (which differs from the GS101 offset) and the
> "exynos850-acpm-clk" device name required to properly instantiate
> the clock provider.
>
> Reviewed-by: Tudor Ambarus <tudor.ambarus@xxxxxxxxxx>
> Signed-off-by: Alexey Klimov <alexey.klimov@xxxxxxxxxx>
> ---

Reviewed-by: Peter Griffin <peter.griffin@xxxxxxxxxx>

> drivers/firmware/samsung/exynos-acpm.c | 10 ++++++++++
> 1 file changed, 10 insertions(+)
>
> diff --git a/drivers/firmware/samsung/exynos-acpm.c b/drivers/firmware/samsung/exynos-acpm.c
> index 942a2e9f02f5..5a16665e941b 100644
> --- a/drivers/firmware/samsung/exynos-acpm.c
> +++ b/drivers/firmware/samsung/exynos-acpm.c
> @@ -39,6 +39,7 @@
> #define ACPM_POLL_TIMEOUT_US (100 * USEC_PER_MSEC)
> #define ACPM_TX_TIMEOUT_US 500000
>
> +#define ACPM_EXYNOS850_INITDATA_BASE 0x7000
> #define ACPM_GS101_INITDATA_BASE 0xa000
>
> /**
> @@ -876,6 +877,11 @@ struct acpm_handle *devm_acpm_get_by_phandle(struct device *dev)
> }
> EXPORT_SYMBOL_GPL(devm_acpm_get_by_phandle);
>
> +static const struct acpm_match_data acpm_exynos850 = {
> + .initdata_base = ACPM_EXYNOS850_INITDATA_BASE,
> + .acpm_clk_dev_name = "exynos850-acpm-clk",
> +};
> +
> static const struct acpm_match_data acpm_gs101 = {
> .initdata_base = ACPM_GS101_INITDATA_BASE,
> .acpm_clk_dev_name = "gs101-acpm-clk",
> @@ -886,6 +892,10 @@ static const struct of_device_id acpm_match[] = {
> .compatible = "google,gs101-acpm-ipc",
> .data = &acpm_gs101,
> },
> + {
> + .compatible = "samsung,exynos850-acpm-ipc",
> + .data = &acpm_exynos850,
> + },
> {},
> };
> MODULE_DEVICE_TABLE(of, acpm_match);
>
> --
> 2.51.0
>