]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
clk: Add clock driver for the RISC-V RPMI clock service group
authorRahul Pathak <rpathak@ventanamicro.com>
Mon, 18 Aug 2025 04:09:06 +0000 (09:39 +0530)
committerPaul Walmsley <pjw@kernel.org>
Thu, 25 Sep 2025 19:16:48 +0000 (13:16 -0600)
commit5ba9f520f41a33c99fd5d1eb81b5650ed3517b88
tree2d07d1f5335ec6c95d68a113b7205b25d08fbe19
parentb385830290b417c7708e2db7c0e34a0b3e7297bf
clk: Add clock driver for the RISC-V RPMI clock service group

The RPMI specification defines a clock service group which can be
accessed via SBI MPXY extension or dedicated S-mode RPMI transport.

Add mailbox client based clock driver for the RISC-V RPMI clock
service group.

Reviewed-by: Stephen Boyd <sboyd@kernel.org>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Co-developed-by: Anup Patel <apatel@ventanamicro.com>
Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Signed-off-by: Rahul Pathak <rpathak@ventanamicro.com>
Link: https://lore.kernel.org/r/20250818040920.272664-11-apatel@ventanamicro.com
[pjw@kernel.org: converted rpmi_clkrate_u64 macro to a function; replaced bare constant with a macro]
Signed-off-by: Paul Walmsley <pjw@kernel.org>
drivers/clk/Kconfig
drivers/clk/Makefile
drivers/clk/clk-rpmi.c [new file with mode: 0644]
include/linux/mailbox/riscv-rpmi-message.h