* [PATCH 0/3] Enable CPUFreq for STi stih418 SoC.
@ 2020-08-31 6:10 Alain Volmat
2020-08-31 6:10 ` [PATCH 1/3] cpufreq: sti-cpufreq: add stih418 support Alain Volmat
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: Alain Volmat @ 2020-08-31 6:10 UTC (permalink / raw)
To: Patrice Chotard, linux-arm-kernel, linux-pm, linux-kernel; +Cc: avolmat
This serie enables cpufreq for the STi stih418 SoC.
Alain Volmat (3):
cpufreq: sti-cpufreq: add stih418 support
cpufreq: dt-platdev: Blacklist st,stih418 SoC
cpufreq: arm: Kconfig: add CPUFREQ_DT depend for STI CPUFREQ
drivers/cpufreq/Kconfig.arm | 2 +-
drivers/cpufreq/cpufreq-dt-platdev.c | 1 +
drivers/cpufreq/sti-cpufreq.c | 6 ++++--
3 files changed, 6 insertions(+), 3 deletions(-)
^ permalink raw reply [flat|nested] 5+ messages in thread
* [PATCH 1/3] cpufreq: sti-cpufreq: add stih418 support
2020-08-31 6:10 [PATCH 0/3] Enable CPUFreq for STi stih418 SoC Alain Volmat
@ 2020-08-31 6:10 ` Alain Volmat
2020-08-31 6:10 ` [PATCH 2/3] cpufreq: dt-platdev: Blacklist st,stih418 SoC Alain Volmat
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: Alain Volmat @ 2020-08-31 6:10 UTC (permalink / raw)
To: Patrice Chotard, linux-arm-kernel, linux-pm, linux-kernel; +Cc: avolmat
The STiH418 can be controlled the same way as STiH407 &
STiH410 regarding cpufreq.
Signed-off-by: Alain Volmat <avolmat@me.com>
---
drivers/cpufreq/sti-cpufreq.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/cpufreq/sti-cpufreq.c b/drivers/cpufreq/sti-cpufreq.c
index a5ad96d29adc..4ac6fb23792a 100644
--- a/drivers/cpufreq/sti-cpufreq.c
+++ b/drivers/cpufreq/sti-cpufreq.c
@@ -141,7 +141,8 @@ static const struct reg_field sti_stih407_dvfs_regfields[DVFS_MAX_REGFIELDS] = {
static const struct reg_field *sti_cpufreq_match(void)
{
if (of_machine_is_compatible("st,stih407") ||
- of_machine_is_compatible("st,stih410"))
+ of_machine_is_compatible("st,stih410") ||
+ of_machine_is_compatible("st,stih418"))
return sti_stih407_dvfs_regfields;
return NULL;
@@ -258,7 +259,8 @@ static int sti_cpufreq_init(void)
int ret;
if ((!of_machine_is_compatible("st,stih407")) &&
- (!of_machine_is_compatible("st,stih410")))
+ (!of_machine_is_compatible("st,stih410")) &&
+ (!of_machine_is_compatible("st,stih418")))
return -ENODEV;
ddata.cpu = get_cpu_device(0);
--
2.17.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 2/3] cpufreq: dt-platdev: Blacklist st,stih418 SoC
2020-08-31 6:10 [PATCH 0/3] Enable CPUFreq for STi stih418 SoC Alain Volmat
2020-08-31 6:10 ` [PATCH 1/3] cpufreq: sti-cpufreq: add stih418 support Alain Volmat
@ 2020-08-31 6:10 ` Alain Volmat
2020-08-31 6:10 ` [PATCH 3/3] cpufreq: arm: Kconfig: add CPUFREQ_DT depend for STI CPUFREQ Alain Volmat
2020-09-03 10:43 ` [PATCH 0/3] Enable CPUFreq for STi stih418 SoC Viresh Kumar
3 siblings, 0 replies; 5+ messages in thread
From: Alain Volmat @ 2020-08-31 6:10 UTC (permalink / raw)
To: Patrice Chotard, linux-arm-kernel, linux-pm, linux-kernel; +Cc: avolmat
Add st,stih418 SoC in the blacklist since the cpufreq driver
for this platform is already registering the driver.
Signed-off-by: Alain Volmat <avolmat@me.com>
---
drivers/cpufreq/cpufreq-dt-platdev.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/cpufreq/cpufreq-dt-platdev.c b/drivers/cpufreq/cpufreq-dt-platdev.c
index 7d01df7bfa6c..3776d960f405 100644
--- a/drivers/cpufreq/cpufreq-dt-platdev.c
+++ b/drivers/cpufreq/cpufreq-dt-platdev.c
@@ -137,6 +137,7 @@ static const struct of_device_id blacklist[] __initconst = {
{ .compatible = "st,stih407", },
{ .compatible = "st,stih410", },
+ { .compatible = "st,stih418", },
{ .compatible = "sigma,tango4", },
--
2.17.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [PATCH 3/3] cpufreq: arm: Kconfig: add CPUFREQ_DT depend for STI CPUFREQ
2020-08-31 6:10 [PATCH 0/3] Enable CPUFreq for STi stih418 SoC Alain Volmat
2020-08-31 6:10 ` [PATCH 1/3] cpufreq: sti-cpufreq: add stih418 support Alain Volmat
2020-08-31 6:10 ` [PATCH 2/3] cpufreq: dt-platdev: Blacklist st,stih418 SoC Alain Volmat
@ 2020-08-31 6:10 ` Alain Volmat
2020-09-03 10:43 ` [PATCH 0/3] Enable CPUFreq for STi stih418 SoC Viresh Kumar
3 siblings, 0 replies; 5+ messages in thread
From: Alain Volmat @ 2020-08-31 6:10 UTC (permalink / raw)
To: Patrice Chotard, linux-arm-kernel, linux-pm, linux-kernel; +Cc: avolmat
The sti cpufreq driver is relying on the CPUFREQ_DT driver
hence add the depends within the Kconfig.arm
Signed-off-by: Alain Volmat <avolmat@me.com>
---
drivers/cpufreq/Kconfig.arm | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/cpufreq/Kconfig.arm b/drivers/cpufreq/Kconfig.arm
index cb72fb507d57..bf5830eb664f 100644
--- a/drivers/cpufreq/Kconfig.arm
+++ b/drivers/cpufreq/Kconfig.arm
@@ -283,7 +283,7 @@ config ARM_SPEAR_CPUFREQ
config ARM_STI_CPUFREQ
tristate "STi CPUFreq support"
- depends on SOC_STIH407
+ depends on CPUFREQ_DT && SOC_STIH407
help
This driver uses the generic OPP framework to match the running
platform with a predefined set of suitable values. If not provided
--
2.17.1
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [PATCH 0/3] Enable CPUFreq for STi stih418 SoC.
2020-08-31 6:10 [PATCH 0/3] Enable CPUFreq for STi stih418 SoC Alain Volmat
` (2 preceding siblings ...)
2020-08-31 6:10 ` [PATCH 3/3] cpufreq: arm: Kconfig: add CPUFREQ_DT depend for STI CPUFREQ Alain Volmat
@ 2020-09-03 10:43 ` Viresh Kumar
3 siblings, 0 replies; 5+ messages in thread
From: Viresh Kumar @ 2020-09-03 10:43 UTC (permalink / raw)
To: Alain Volmat
Cc: Patrice Chotard, Linux ARM, Linux PM list, Linux Kernel Mailing List
On Mon, Aug 31, 2020 at 11:42 AM Alain Volmat <avolmat@me.com> wrote:
>
> This serie enables cpufreq for the STi stih418 SoC.
Please cc the maintainers directly for patches. I almost missed these,
just found during
random screening of the list.
Applied all.
--
viresh
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2020-09-03 10:43 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-08-31 6:10 [PATCH 0/3] Enable CPUFreq for STi stih418 SoC Alain Volmat
2020-08-31 6:10 ` [PATCH 1/3] cpufreq: sti-cpufreq: add stih418 support Alain Volmat
2020-08-31 6:10 ` [PATCH 2/3] cpufreq: dt-platdev: Blacklist st,stih418 SoC Alain Volmat
2020-08-31 6:10 ` [PATCH 3/3] cpufreq: arm: Kconfig: add CPUFREQ_DT depend for STI CPUFREQ Alain Volmat
2020-09-03 10:43 ` [PATCH 0/3] Enable CPUFreq for STi stih418 SoC Viresh Kumar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).