[PATCH v2 0/3] Add SiFive power provider driver
Nick Hu
nick.hu at sifive.com
Tue Jun 10 20:10:19 PDT 2025
The v1 can be found in [1].
This patch introduces the SiFive power provider driver, which sets up a
generic power domain (genpd) provider to coordinate with the RISC-V SBI
cpuidle driver.
To enable this coordination, several functions from the cpuidle-riscv-sbi
driver are exposed for use by the external power provider. This allows
coordination between power domain management and CPU idle states on
SiFive platforms.
Changes in v2:
- Add the driver for SiFive TMC, CMC and SMC
- Drop the `sifive,feature-level` property
Links:
- [1] https://lore.kernel.org/linux-riscv/20250509021605.26764-1-nick.hu@sifive.com/
Nick Hu (3):
dt-bindings: power: Add SiFive Domain Management controllers
cpuidle: riscv-sbi: Work with the external pmdomain driver
cpuidle: Add SiFive power provider
.../devicetree/bindings/power/sifive,tmc.yaml | 70 ++++++++++++
drivers/cpuidle/Kconfig.riscv | 11 ++
drivers/cpuidle/Makefile | 1 +
drivers/cpuidle/cpuidle-riscv-sbi.c | 17 +--
drivers/cpuidle/cpuidle-riscv-sbi.h | 20 ++++
drivers/cpuidle/cpuidle-sifive-dmc-pd.c | 102 ++++++++++++++++++
6 files changed, 215 insertions(+), 6 deletions(-)
create mode 100644 Documentation/devicetree/bindings/power/sifive,tmc.yaml
create mode 100644 drivers/cpuidle/cpuidle-riscv-sbi.h
create mode 100644 drivers/cpuidle/cpuidle-sifive-dmc-pd.c
--
2.17.1
More information about the linux-riscv
mailing list