firmware: scmi: Add clock v3.2 CONFIG_SET support
authorVinh Nguyen <vinh.nguyen.xz@renesas.com>
Wed, 5 Nov 2025 03:42:26 +0000 (04:42 +0100)
committerPeng Fan <peng.fan@nxp.com>
Mon, 10 Nov 2025 12:57:42 +0000 (20:57 +0800)
commit0619cb32030b1d78379f3181d3e1103bb86124fb
tree1db6c99ef95717fe3919e3085868f2b7599e209f
parenta5a0134570c88cd49a6fc97256764cb7fbb93dff
firmware: scmi: Add clock v3.2 CONFIG_SET support

SCMI v3.2 introduces a new clock CONFIG_SET message format that can
optionally carry also OEM specific configuration values beside the usual
clock enable/disable requests. Add support to use such new format when
talking to a v3.2 compliant SCMI platform.

Support existing enable/disable operations across different clock protocol
versions: this patch still does not add protocol operations to support the
new OEM specific optional configuration capabilities.

No functional change for the SCMI drivers users of the related enable and
disable clock operations.

[Marek: Remodel after Linux e49e314a2cf7 ("firmware: arm_scmi: Add clock v3.2 CONFIG_SET support")
        Support both old < 2.1 and new >= 2.1 protocol versions.
Update commit message based on Linux one]

Signed-off-by: Vinh Nguyen <vinh.nguyen.xz@renesas.com>
Signed-off-by: Marek Vasut <marek.vasut+renesas@mailbox.org>
Reviewed-by: Alice Guo <alice.guo@nxp.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
arch/arm/mach-imx/imx9/scmi/clock_scmi.c
drivers/clk/clk_scmi.c
drivers/firmware/scmi/sandbox-scmi_agent.c
include/scmi_protocols.h