Switching.
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/regulator/qcom_spmi-regulator.c | 133 +++-
1 file changed, 130 insertions(+), 3 deletions(-)
diff --git a/drivers/regulator/qcom_spmi-regulator.c
b/drivers/regulator/qcom_spmi-regulator.c
until a pre-programmed delay has expired.
This change configures ACD during the probe and switches
the PMUXes to the ACD clock source.
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/clk/qcom/clk-cpu-8996.c | 75 +++--
1 file changed, 65 inse
table when it is parsed by the OPP framework.
This change adds documentation.
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
.../devicetree/bindings/opp/kryo-cpufreq.txt | 680 +
1 file changed, 680 insertions(+)
create mode 100644 Documentation/devicetree/bi
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
arch/arm64/boot/dts/qcom/apq8096-db820c.dts | 2 +-
arch/arm64/boot/dts/qcom/msm8996.dtsi | 310 +++-
2 files changed, 309 insertions(+), 3 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/apq8096-db82
1. Add syscon node for the SAW CPU registers
2. Add SAW regulators gang definition for s8-s11
3. Add voltages to the OPP tables
4. Add the s11 SAW regulator as CPU regulator
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
arch/arm64/boot/dts/qcom/msm8996.dts
From: Rajendra Nayak <rna...@codeaurora.org>
Allow clk_alpha_pll_configure to be called from loadable
kernel modules.
Signed-off-by: Rajendra Nayak <rna...@codeaurora.org>
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/clk/qcom/clk-alpha-pll.c | 1 +
1 file ch
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
arch/arm64/boot/dts/qcom/msm8996.dtsi | 269 --
1 file changed, 260 insertions(+), 9 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi
b/arch/arm64/boot/dts/qcom/msm8996.dtsi
index 37
on a single VCO range, between 600MHz
and 3GHz. However the CPUs do support OPPs with frequencies
between 300MHz and 600MHz. In order to support running the CPUs
at those frequencies we end up having to lock the PLL at twice
the rate and drive the CPU clk via the PLL/2 output and SMUX.
Signed-o
.
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/cpufreq/Kconfig.arm | 11 +++
drivers/cpufreq/Makefile | 1 +
drivers/cpufreq/cpufreq-dt-platdev.c | 3 +
drivers/cpufreq/qcom-cpufreq-kryo.c | 148 +++
4 files change
Switching.
Document it.
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
Reviewed-by: Rob Herring <r...@kernel.org>
---
.../bindings/regulator/qcom,spmi-regulator.txt | 45 ++
1 file changed, 45 insertions(+)
diff --git
a/Documentation/devicetree/bindings/re
t; SMUX(1) --> PMUX(0) --> CPU clk
Signed-off-by: Rajendra Nayak <rna...@codeaurora.org>
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
Conflicts:
drivers/clk/qcom/clk-cpu-8996.c
---
drivers/clk/qcom/clk-cpu-8996.c | 25 ++---
1 file changed, 22 in
k rate change notifiers to support this.
Signed-off-by: Rajendra Nayak <rna...@codeaurora.org>
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/clk/qcom/clk-cpu-8996.c | 33 +
1 file changed, 33 insertions(+)
diff --git a/drivers/clk/qco
ACD stands for Adaptive Clock Distribution and is used to
detect voltage droops. We do not add support for ACD as yet.
Signed-off-by: Rajendra Nayak <rna...@codeaurora.org>
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/clk/clk-fixed-factor.c | 2 +-
drivers/clk/qcom/Kconfig
-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/perf/Kconfig | 1 +
drivers/perf/qcom_l2_pmu.c | 90 ++--
drivers/soc/qcom/Kconfig | 3 ++
drivers/soc/qcom/Makefile| 1 +
drivers/soc/qcom/kryo-l2-accessors.
different SOC versions.
The driver reads eFuse information and chooses the required OPP subset
by passing the OPP supported-hw parameter.
A previous post of RFC can be found here:
https://patchwork.kernel.org/patch/10377887/
Ilia Lin (11):
soc: qcom: Separate kryo l2 accessors from PMU driver
clk
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
Acked-by: Viresh Kumar <viresh.ku...@linaro.org>
---
arch/arm64/boot/dts/qcom/msm8996.dtsi | 269 --
1 file changed, 260 insertions(+), 9 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi
until a pre-programmed delay has expired.
This change configures ACD during the probe and switches
the PMUXes to the ACD clock source.
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/clk/qcom/clk-cpu-8996.c | 75 +++--
1 file changed, 65 inse
on a single VCO range, between 600MHz
and 3GHz. However the CPUs do support OPPs with frequencies
between 300MHz and 600MHz. In order to support running the CPUs
at those frequencies we end up having to lock the PLL at twice
the rate and drive the CPU clk via the PLL/2 output and SMUX.
Signed-o
-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/perf/Kconfig | 1 +
drivers/perf/qcom_l2_pmu.c | 90 ++--
drivers/soc/qcom/Kconfig | 3 ++
drivers/soc/qcom/Makefile| 1 +
drivers/soc/qcom/kryo-l2-accessors.
.
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
Acked-by: Viresh Kumar <viresh.ku...@linaro.org>
---
drivers/cpufreq/Kconfig.arm | 10 +++
drivers/cpufreq/Makefile | 1 +
drivers/cpufreq/cpufreq-dt-platdev.c | 3 +
drivers/cpufreq/qcom-cpufreq-k
ACD stands for Adaptive Clock Distribution and is used to
detect voltage droops.
Signed-off-by: Rajendra Nayak <rna...@codeaurora.org>
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/clk/qcom/Kconfig | 9 +
drivers/clk/qcom/Makefile| 1 +
drivers/clk/qcom/cl
.
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
Acked-by: Viresh Kumar <viresh.ku...@linaro.org>
---
drivers/cpufreq/Kconfig.arm | 10 +++
drivers/cpufreq/Makefile | 1 +
drivers/cpufreq/cpufreq-dt-platdev.c | 3 +
drivers/cpufreq/qcom-cpufreq-k
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
Acked-by: Viresh Kumar <viresh.ku...@linaro.org>
---
arch/arm64/boot/dts/qcom/msm8996.dtsi | 269 --
1 file changed, 260 insertions(+), 9 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi
1. Add NVMEM node for the speedbin
2. Add definitions for all possible MSM8996 CPU OPPs.
The qcom-cpufreq-kryo driver will select the appropriate subset.
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
Acked-by: Viresh Kumar <viresh.ku...@linaro.org>
---
arch/arm64/boot/dts/
M8996 SG, speedbin 1
6: MSM8996 SG, speedbin 2
7-31: unused
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
Acked-by: Viresh Kumar <viresh.ku...@linaro.org>
---
.../devicetree/bindings/opp/kryo-cpufreq.txt | 680 +
1 file ch
Document the DT bindings for the SAW regulators.
The saw-leader is the only property that is configurable in DT.
The saw-slave property allows ganging (grouping) of
several regulators so that their outputs can be combined.
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
Reviewed-b
1. Add syscon node for the SAW CPU registers
2. Add SAW regulators gang definition for s8-s11
3. Add voltages to the OPP tables
4. Add the s11 SAW regulator as CPU regulator
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
Acked-by: Viresh Kumar <viresh.ku...@linaro.org>
---
arch/ar
SAW regulator support to the SPMI regulator driver. The SAW regulators
will be controlled through special CPU registers instead of direct
SPMI accesses.
Ilia Lin (13):
soc: qcom: Separate kryo l2 accessors from PMU driver
clk: Use devm_ in the register fixed factor clock
clk: qcom: Add CPU
-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/perf/Kconfig | 1 +
drivers/perf/qcom_l2_pmu.c | 90 ++--
drivers/soc/qcom/Kconfig | 3 ++
drivers/soc/qcom/Makefile| 1 +
drivers/soc/qcom/kryo-l2-accessors.
: Rajendra Nayak <rna...@codeaurora.org>
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/clk/qcom/clk-cpu-8996.c | 25 ++---
1 file changed, 22 insertions(+), 3 deletions(-)
diff --git a/drivers/clk/qcom/clk-cpu-8996.c b/drivers/clk/qcom/clk-cpu-899
Switching.
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/regulator/qcom_spmi-regulator.c | 133 +++-
1 file changed, 130 insertions(+), 3 deletions(-)
diff --git a/drivers/regulator/qcom_spmi-regulator.c
b/drivers/regulator/qcom_spmi-regulator.c
on a single VCO range, between 600MHz
and 3GHz. However the CPUs do support OPPs with frequencies
between 300MHz and 600MHz. In order to support running the CPUs
at those frequencies we end up having to lock the PLL at twice
the rate and drive the CPU clk via the PLL/2 output and SMUX.
Signed-o
Use devm_clk_hw_register instead of clk_hw_register
to simplify the usage of this API. This way drivers that call
the clk_hw_register_fixed_factor won't need to maintain
a data structure for further cleanup.
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/clk/clk-fixed-factor
k rate change notifiers to support this.
Signed-off-by: Rajendra Nayak <rna...@codeaurora.org>
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/clk/qcom/clk-cpu-8996.c | 33 +
1 file changed, 33 insertions(+)
diff --git a/drivers/clk/qco
until a pre-programmed delay has expired.
This change configures ACD during the probe and switches
the PMUXes to the ACD clock source.
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/clk/qcom/clk-cpu-8996.c | 75 +++--
1 file changed, 65 inse
From: Rajendra Nayak <rna...@codeaurora.org>
Allow clk_alpha_pll_configure to be called from loadable
kernel modules.
Signed-off-by: Rajendra Nayak <rna...@codeaurora.org>
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/clk/qcom/clk-alpha-pll.c | 1 +
1 file ch
.
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/cpufreq/Kconfig.arm | 11 +++
drivers/cpufreq/Makefile | 1 +
drivers/cpufreq/cpufreq-dt-platdev.c | 3 +
drivers/cpufreq/qcom-cpufreq-kryo.c | 150 +++
4 files change
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
arch/arm64/boot/dts/qcom/apq8096-db820c.dts | 2 +-
arch/arm64/boot/dts/qcom/msm8996.dtsi | 311 +++-
2 files changed, 310 insertions(+), 3 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/apq8096-db82
table when it is parsed by the OPP framework.
This change adds documentation.
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
Acked-by: Viresh Kumar <viresh.ku...@linaro.org>
---
.../devicetree/bindings/opp/kryo-cpufreq.txt | 680 +
1 file changed, 68
Switching.
Document it.
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
Reviewed-by: Rob Herring <r...@kernel.org>
---
.../bindings/regulator/qcom,spmi-regulator.txt | 45 ++
1 file changed, 45 insertions(+)
diff --git
a/Documentation/devicetree/bindings/re
1. Add syscon node for the SAW CPU registers
2. Add SAW regulators gang definition for s8-s11
3. Add voltages to the OPP tables
4. Add the s11 SAW regulator as CPU regulator
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
Acked-by: Viresh Kumar <viresh.ku...@linaro.org>
---
arch/ar
k rate change notifiers to support this.
Signed-off-by: Rajendra Nayak <rna...@codeaurora.org>
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/clk/qcom/clk-cpu-8996.c | 33 +
1 file changed, 33 insertions(+)
diff --git a/drivers/clk/qco
ACD stands for Adaptive Clock Distribution and is used to
detect voltage droops. We do not add support for ACD as yet.
Signed-off-by: Rajendra Nayak <rna...@codeaurora.org>
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/clk/clk-fixed-factor.c | 2 +-
drivers/clk/qcom/Kconfig
t; SMUX(1) --> PMUX(0) --> CPU clk
Signed-off-by: Rajendra Nayak <rna...@codeaurora.org>
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
Conflicts:
drivers/clk/qcom/clk-cpu-8996.c
---
drivers/clk/qcom/clk-cpu-8996.c | 25 ++---
1 file changed, 22 in
From: Rajendra Nayak <rna...@codeaurora.org>
Allow clk_alpha_pll_configure to be called from loadable
kernel modules.
Signed-off-by: Rajendra Nayak <rna...@codeaurora.org>
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/clk/qcom/clk-alpha-pll.c | 1 +
1 file ch
/10398455/
Ilia Lin (11):
soc: qcom: Separate kryo l2 accessors from PMU driver
clk: qcom: Add CPU clock driver for msm8996
clk: qcom: Add DT bindings for CPU clock driver for msm8996
clk: qcom: Add ACD path to CPU clock driver for msm8996
dt: qcom: Add opp and thermal to the msm8996
Switching.
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/regulator/qcom_spmi-regulator.c | 133 +++-
1 file changed, 130 insertions(+), 3 deletions(-)
diff --git a/drivers/regulator/qcom_spmi-regulator.c
b/drivers/regulator/qcom_spmi-regulator.c
until a pre-programmed delay has expired.
This change configures ACD during the probe and switches
the PMUXes to the ACD clock source.
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/clk/qcom/clk-cpu-8996.c | 75 +++--
1 file changed, 65 inse
: Rajendra Nayak <rna...@codeaurora.org>
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/clk/qcom/clk-cpu-8996.c | 25 ++---
1 file changed, 22 insertions(+), 3 deletions(-)
diff --git a/drivers/clk/qcom/clk-cpu-8996.c b/drivers/clk/qcom/clk-cpu-899
Switching.
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/regulator/qcom_spmi-regulator.c | 133 +++-
1 file changed, 130 insertions(+), 3 deletions(-)
diff --git a/drivers/regulator/qcom_spmi-regulator.c
b/drivers/regulator/qcom_spmi-regulator.c
1. Add NVMEM node for the speedbin
2. Add definitions for all possible MSM8996 CPU OPPs.
The qcom-cpufreq-kryo driver will select the appropriate subset.
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
Acked-by: Viresh Kumar <viresh.ku...@linaro.org>
---
arch/arm64/boot/dts/
1. Add syscon node for the SAW CPU registers
2. Add SAW regulators gang definition for s8-s11
3. Add voltages to the OPP tables
4. Add the s11 SAW regulator as CPU regulator
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
Acked-by: Viresh Kumar <viresh.ku...@linaro.org>
---
arch/ar
.
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
Acked-by: Viresh Kumar <viresh.ku...@linaro.org>
---
drivers/cpufreq/Kconfig.arm | 10 +++
drivers/cpufreq/Makefile | 1 +
drivers/cpufreq/cpufreq-dt-platdev.c | 3 +
drivers/cpufreq/qcom-cpufreq-k
.
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
Acked-by: Viresh Kumar <viresh.ku...@linaro.org>
---
drivers/cpufreq/Kconfig.arm | 10 +++
drivers/cpufreq/Makefile | 1 +
drivers/cpufreq/cpufreq-dt-platdev.c | 3 +
drivers/cpufreq/qcom-cpufreq-k
ACD stands for Adaptive Clock Distribution and is used to
detect voltage droops.
Signed-off-by: Rajendra Nayak <rna...@codeaurora.org>
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/clk/qcom/Kconfig | 9 +
drivers/clk/qcom/Makefile| 1 +
drivers/clk/qcom/cl
k rate change notifiers to support this.
Signed-off-by: Rajendra Nayak <rna...@codeaurora.org>
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/clk/qcom/clk-cpu-8996.c | 33 +
1 file changed, 33 insertions(+)
diff --git a/drivers/clk/qco
Use devm_clk_hw_register instead of clk_hw_register
to simplify the usage of this API. This way drivers that call
the clk_hw_register_fixed_factor won't need to maintain
a data structure for further cleanup.
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/clk/clk-fixed-factor
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
Acked-by: Viresh Kumar <viresh.ku...@linaro.org>
---
arch/arm64/boot/dts/qcom/msm8996.dtsi | 269 --
1 file changed, 260 insertions(+), 9 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi
M8996 SG, speedbin 1
6: MSM8996 SG, speedbin 2
7-31: unused
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
Acked-by: Viresh Kumar <viresh.ku...@linaro.org>
---
.../devicetree/bindings/opp/kryo-cpufreq.txt | 680 +
1 file ch
on a single VCO range, between 600MHz
and 3GHz. However the CPUs do support OPPs with frequencies
between 300MHz and 600MHz. In order to support running the CPUs
at those frequencies we end up having to lock the PLL at twice
the rate and drive the CPU clk via the PLL/2 output and SMUX.
Signed-o
Document the DT bindings for the SAW regulators.
The saw-leader is the only property that is configurable in DT.
The saw-slave property allows ganging (grouping) of
several regulators so that their outputs can be combined.
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
Reviewed-b
by passing the OPP supported-hw parameter.
Regulators (13/15-15/15):
Added SAW regulator support to the SPMI regulator driver. The SAW regulators
will be controlled through special CPU registers instead of direct
SPMI accesses.
Ilia Lin (13):
soc: qcom: Separate kryo l2 accessors from PMU
From: Rajendra Nayak <rna...@codeaurora.org>
Allow clk_alpha_pll_configure to be called from loadable
kernel modules.
Signed-off-by: Rajendra Nayak <rna...@codeaurora.org>
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/clk/qcom/clk-alpha-pll.c | 1 +
1 file ch
-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/perf/Kconfig | 1 +
drivers/perf/qcom_l2_pmu.c | 90 ++--
drivers/soc/qcom/Kconfig | 3 ++
drivers/soc/qcom/Makefile| 1 +
drivers/soc/qcom/kryo-l2-accessors.
.
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
Acked-by: Viresh Kumar <viresh.ku...@linaro.org>
---
drivers/cpufreq/Kconfig.arm | 10 +++
drivers/cpufreq/Makefile | 1 +
drivers/cpufreq/cpufreq-dt-platdev.c | 3 +
drivers/cpufreq/qcom-cpufreq-k
M8996 SG, speedbin 1
6: MSM8996 SG, speedbin 2
7-31: unused
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
Reviewed-by: Rob Herring <r...@kernel.org>
Acked-by: Viresh Kumar <viresh.ku...@linaro.org>
---
.../devicetree/bin
parameter.
The series depends on the series from Viresh:
https://patchwork.kernel.org/patch/10418139/
The previous spin was here:
https://patchwork.kernel.org/patch/10420751/
https://patchwork.kernel.org/patch/10414761/
Ilia Lin (2):
cpufreq: Add Kryo CPU scaling driver
dt-bindings: cpufreq: Document
.
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/cpufreq/Kconfig.arm | 10 +++
drivers/cpufreq/Makefile | 1 +
drivers/cpufreq/cpufreq-dt-platdev.c | 3 +
drivers/cpufreq/qcom-cpufreq-kryo.c | 163 +++
4 files change
.
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/cpufreq/Kconfig.arm | 10 +++
drivers/cpufreq/Makefile | 1 +
drivers/cpufreq/cpufreq-dt-platdev.c | 3 +
drivers/cpufreq/qcom-cpufreq-kryo.c | 163 +++
4 files change
-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/perf/Kconfig | 1 +
drivers/perf/qcom_l2_pmu.c | 90 ++--
drivers/soc/qcom/Kconfig | 3 ++
drivers/soc/qcom/Makefile| 1 +
drivers/soc/qcom/kryo-l2-accessors.
on a single VCO range, between 600MHz
and 3GHz. However the CPUs do support OPPs with frequencies
between 300MHz and 600MHz. In order to support running the CPUs
at those frequencies we end up having to lock the PLL at twice
the rate and drive the CPU clk via the PLL/2 output and SMUX.
Signed-o
ACD stands for Adaptive Clock Distribution and is used to
detect voltage droops.
Signed-off-by: Rajendra Nayak <rna...@codeaurora.org>
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/clk/qcom/Kconfig | 9 +
drivers/clk/qcom/Makefile| 1 +
drivers/clk/qcom/cl
From: Rajendra Nayak <rna...@codeaurora.org>
Allow clk_alpha_pll_configure to be called from loadable
kernel modules.
Signed-off-by: Rajendra Nayak <rna...@codeaurora.org>
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/clk/qcom/clk-alpha-pll.c | 1 +
1 file ch
: Rajendra Nayak <rna...@codeaurora.org>
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/clk/qcom/clk-cpu-8996.c | 25 ++---
1 file changed, 22 insertions(+), 3 deletions(-)
diff --git a/drivers/clk/qcom/clk-cpu-8996.c b/drivers/clk/qcom/clk-cpu-899
):
Extracts the kryo l2 accessors driver from the QCOM PMU driver
Clocks (2/15-9/15):
This series adds support for the CPU clocks on msm8996 devices.
The driver uses the existing PLL drivers and is required to control
the CPU frequency scaling on the MSM8996.
Ilia Lin (6):
soc: qcom: Separate kryo l2
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
Acked-by: Viresh Kumar <viresh.ku...@linaro.org>
---
arch/arm64/boot/dts/qcom/msm8996.dtsi | 269 --
1 file changed, 260 insertions(+), 9 deletions(-)
diff --git a/arch/arm64/boot/dts/qcom/msm8996.dtsi
[v11]
* Split the series into domains
The series adds OPP tables, thermal and CPU definitions in order to support
the CPU frequency scaling on msm8996 CPUs.
Ilia Lin (2):
dt: qcom: Add opp and thermal to the msm8996
dt: qcom: Add qcom-cpufreq-kryo driver configuration
arch/arm64/boot/dts
1. Add NVMEM node for the speedbin
2. Add definitions for all possible MSM8996 CPU OPPs.
The qcom-cpufreq-kryo driver will select the appropriate subset.
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
Acked-by: Viresh Kumar <viresh.ku...@linaro.org>
---
arch/arm64/boot/dts/
.
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/cpufreq/Kconfig.arm | 10 ++
drivers/cpufreq/Makefile | 1 +
drivers/cpufreq/cpufreq-dt-platdev.c | 3 +
drivers/cpufreq/qcom-cpufreq-kryo.c | 181 +++
4 files change
M8996 SG, speedbin 1
6: MSM8996 SG, speedbin 2
7-31: unused
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
Reviewed-by: Rob Herring <r...@kernel.org>
Acked-by: Viresh Kumar <viresh.ku...@linaro.org>
---
.../devicetree/bin
was here:
https://patchwork.kernel.org/patch/10420809/
Ilia Lin (2):
cpufreq: Add Kryo CPU scaling driver
dt-bindings: cpufreq: Document operating-points-v2-kryo-cpu
.../devicetree/bindings/opp/kryo-cpufreq.txt | 680 +
drivers/cpufreq/Kconfig.arm
until a pre-programmed delay has expired.
This change configures ACD during the probe and switches
the PMUXes to the ACD clock source.
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/clk/qcom/clk-cpu-8996.c | 75 +++--
1 file changed, 65 inse
k rate change notifiers to support this.
Signed-off-by: Rajendra Nayak <rna...@codeaurora.org>
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/clk/qcom/clk-cpu-8996.c | 33 +
1 file changed, 33 insertions(+)
diff --git a/drivers/clk/qco
Use devm_clk_hw_register instead of clk_hw_register
to simplify the usage of this API. This way drivers that call
the clk_hw_register_fixed_factor won't need to maintain
a data structure for further cleanup.
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/clk/clk-fixed-factor
k rate change notifiers to support this.
Signed-off-by: Rajendra Nayak <rna...@codeaurora.org>
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/clk/qcom/clk-cpu-8996.c | 33 +
1 file changed, 33 insertions(+)
diff --git a/drivers/clk/qco
on a single VCO range, between 600MHz
and 3GHz. However the CPUs do support OPPs with frequencies
between 300MHz and 600MHz. In order to support running the CPUs
at those frequencies we end up having to lock the PLL at twice
the rate and drive the CPU clk via the PLL/2 output and SMUX.
Signed-o
ACD stands for Adaptive Clock Distribution and is used to
detect voltage droops.
Signed-off-by: Rajendra Nayak <rna...@codeaurora.org>
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/clk/qcom/Kconfig | 10 +
drivers/clk/qcom/Makefile| 1 +
drivers/clk/qcom/cl
: Rajendra Nayak <rna...@codeaurora.org>
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/clk/qcom/clk-cpu-8996.c | 25 ++---
1 file changed, 22 insertions(+), 3 deletions(-)
diff --git a/drivers/clk/qcom/clk-cpu-8996.c b/drivers/clk/qcom/clk-cpu-899
Use devm_clk_hw_register instead of clk_hw_register
to simplify the usage of this API. This way drivers that call
the clk_hw_register_fixed_factor won't need to maintain
a data structure for further cleanup.
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/clk/clk-fixed-factor
on the MSM8996.
Ilia Lin (6):
soc: qcom: Separate kryo l2 accessors from PMU driver
clk: Use devm_ in the register fixed factor clock
clk: qcom: Add CPU clock driver for msm8996
dt-bindings: clk: qcom: Add bindings for CPU clock for msm8996
clk: qcom: cpu-8996: Add support to switch below
until a pre-programmed delay has expired.
This change configures ACD during the probe and switches
the PMUXes to the ACD clock source.
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/clk/qcom/clk-cpu-8996.c | 75 +++--
1 file changed, 65 inse
From: Rajendra Nayak <rna...@codeaurora.org>
Allow clk_alpha_pll_configure to be called from loadable
kernel modules.
Signed-off-by: Rajendra Nayak <rna...@codeaurora.org>
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/clk/qcom/clk-alpha-pll.c | 1 +
1 file ch
-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/perf/Kconfig | 1 +
drivers/perf/qcom_l2_pmu.c | 90 ++--
drivers/soc/qcom/Kconfig | 3 ++
drivers/soc/qcom/Makefile| 1 +
drivers/soc/qcom/kryo-l2-accessors.
M8996 SG, speedbin 1
6: MSM8996 SG, speedbin 2
7-31: unused
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
Reviewed-by: Rob Herring <r...@kernel.org>
Acked-by: Viresh Kumar <viresh.ku...@linaro.org>
---
.../devicetree/bin
.
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
drivers/cpufreq/Kconfig.arm | 10 ++
drivers/cpufreq/Makefile | 1 +
drivers/cpufreq/cpufreq-dt-platdev.c | 3 +
drivers/cpufreq/qcom-cpufreq-kryo.c | 194 +++
4 files change
Viresh:
https://patchwork.kernel.org/patch/10418139/
The previous spin was here:
https://patchwork.kernel.org/patch/10421143/
Ilia Lin (2):
cpufreq: Add Kryo CPU scaling driver
dt-bindings: cpufreq: Document operating-points-v2-kryo-cpu
.../devicetree/bindings/opp/kryo-cpufreq.txt | 680
M8996 SG, speedbin 1
6: MSM8996 SG, speedbin 2
7-31: unused
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
Reviewed-by: Rob Herring <r...@kernel.org>
Acked-by: Viresh Kumar <viresh.ku...@linaro.org>
---
.../devicetree/bin
.
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
---
MAINTAINERS | 7 ++
drivers/cpufreq/Kconfig.arm | 10 ++
drivers/cpufreq/Makefile | 1 +
drivers/cpufreq/cpufreq-dt-platdev.c | 3 +
drivers/cpufreq/qcom-cpufreq-kryo.c
versions.
The driver reads eFuse information and chooses the required OPP subset
by passing the OPP supported-hw parameter.
The series depends on the series from Viresh:
https://patchwork.kernel.org/patch/10418139/
The previous spin was here:
https://patchwork.kernel.org/patch/10424949/
Ilia Lin (2
M8996 SG, speedbin 1
6: MSM8996 SG, speedbin 2
7-31: unused
Signed-off-by: Ilia Lin <ilia...@codeaurora.org>
Reviewed-by: Rob Herring <r...@kernel.org>
Acked-by: Viresh Kumar <viresh.ku...@linaro.org>
---
.../devicetree/bin
1 - 100 of 330 matches
Mail list logo