Message ID | 20230912-msm8909-cpufreq-v1-0-767ce66b544b@kernkonzept.com |
---|---|
Headers | show |
Series | cpufreq: Add basic cpufreq scaling for Qualcomm MSM8909 | expand |
On 12.09.2023 11:40, Stephan Gerhold wrote: > MSM8909 uses qcom-cpufreq-nvmem to attach power domains and to parse the > speedbin from NVMEM (for opp-supported-hw). > > Signed-off-by: Stephan Gerhold <stephan.gerhold@kernkonzept.com> > --- Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org> Konrad
On Tue, 12 Sep 2023 11:40:17 +0200, Stephan Gerhold wrote: > Document that MSM8909 is used with qcom-cpufreq-nvmem for voltage > scaling and to restrict the maximum frequency based on the speedbin > encoded in the nvmem cells. > > Signed-off-by: Stephan Gerhold <stephan.gerhold@kernkonzept.com> > --- > Documentation/devicetree/bindings/cpufreq/qcom-cpufreq-nvmem.yaml | 1 + > 1 file changed, 1 insertion(+) > Acked-by: Rob Herring <robh@kernel.org>
On 12-09-23, 13:29, Rob Herring wrote: > > On Tue, 12 Sep 2023 11:40:17 +0200, Stephan Gerhold wrote: > > Document that MSM8909 is used with qcom-cpufreq-nvmem for voltage > > scaling and to restrict the maximum frequency based on the speedbin > > encoded in the nvmem cells. > > > > Signed-off-by: Stephan Gerhold <stephan.gerhold@kernkonzept.com> > > --- > > Documentation/devicetree/bindings/cpufreq/qcom-cpufreq-nvmem.yaml | 1 + > > 1 file changed, 1 insertion(+) > > > > Acked-by: Rob Herring <robh@kernel.org> Applied. Thanks.
Add the necessary definitions to the qcom-cpufreq-nvmem driver to support basic cpufreq scaling on the Qualcomm MSM8909 SoC. In practice the necessary power domains vary depending on the actual PMIC the SoC was combined with. With PM8909 the VDD_APC power domain is shared with VDD_CX so the RPM firmware handles all voltage adjustments, while with PM8916 and PM660 Linux is responsible to do adaptive voltage scaling of a dedicated CPU regulator using CPR. Signed-off-by: Stephan Gerhold <stephan.gerhold@kernkonzept.com> --- Stephan Gerhold (4): cpufreq: qcom-nvmem: Enable virtual power domain devices cpufreq: dt: platdev: Add MSM8909 to blocklist dt-bindings: cpufreq: qcom-nvmem: Document MSM8909 cpufreq: qcom-nvmem: Add MSM8909 .../bindings/cpufreq/qcom-cpufreq-nvmem.yaml | 1 + drivers/cpufreq/cpufreq-dt-platdev.c | 1 + drivers/cpufreq/qcom-cpufreq-nvmem.c | 47 +++++++++++++++++++++- 3 files changed, 48 insertions(+), 1 deletion(-) --- base-commit: 0bb80ecc33a8fb5a682236443c1e740d5c917d1d change-id: 20230906-msm8909-cpufreq-dff238de9ff3 Best regards,