Hi,

On 5/27/25 15:27, Patrice Chotard wrote:
From: Patrick Delaunay <[email protected]>

Each clock identifier needs to be unique when CCF is activated,
and it is not respected today by SCMI clock driver.

This patch supports a unique clk id by using the uclass API
clk_get_id() / dev_clk_dm() and by activating by default
CONFIG_CLK_AUTO_ID with CCF which adds an offset to the SCMI
clock identifiers.

After this patch, the SCMI clock driver can coexist with other
clock provider without conflict, they can share internal identifier
[0..N] defined in their binding and the clock ID = 0
(reserved for dummy clock) is no more used.

Signed-off-by: Patrick Delaunay <[email protected]>
Signed-off-by: Patrice Chotard <[email protected]>
Cc: Lukasz Majewski <[email protected]>
Cc: Sean Anderson <[email protected]>
---

(no changes since v1)

  drivers/clk/Kconfig    | 1 +
  drivers/clk/clk_scmi.c | 8 ++++----
  2 files changed, 5 insertions(+), 4 deletions(-)


Reviewed-by: Patrick Delaunay <[email protected]>

Thanks
Patrick


Reply via email to