pmdomain: arm: Add the SCMI performance domain
authorUlf Hansson <ulf.hansson@linaro.org>
Tue, 19 Sep 2023 12:16:05 +0000 (14:16 +0200)
committerSudeep Holla <sudeep.holla@arm.com>
Thu, 21 Sep 2023 15:35:14 +0000 (16:35 +0100)
commit2af23ceb8624a419eaf40295c11fcb86ec9ee303
tree1635e3cccbd6ba74284223934b351a16e3bbb8b0
parent3dd91515ef43dd43e32e2a84e4bd881b64fb33ae
pmdomain: arm: Add the SCMI performance domain

To enable support for performance scaling (DVFS) for generic devices with
the SCMI performance protocol, let's add an SCMI performance domain. This
is being modelled as a genpd provider, with support for performance scaling
through genpd's ->set_performance_state() callback.

Note that, this adds the initial support that allows consumer drivers for
attached devices, to vote for a new performance state via calling the
dev_pm_genpd_set_performance_state(). However, this should be avoided as
it's in most cases preferred to use the OPP library to vote for a new OPP
instead. The support using the OPP library isn't part of this change, but
needs to be implemented from subsequent changes.

Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
Link: https://lore.kernel.org/r/20230919121605.7304-1-ulf.hansson@linaro.org
Signed-off-by: Sudeep Holla <sudeep.holla@arm.com>
MAINTAINERS
drivers/firmware/arm_scmi/Kconfig
drivers/pmdomain/Makefile
drivers/pmdomain/arm/Makefile [new file with mode: 0644]
drivers/pmdomain/arm/scmi_perf_domain.c [new file with mode: 0644]