public inbox for linux-pm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] cpufreq: ti-cpufreq: Enable AM62A7 CPUFreq
@ 2023-05-26 14:43 Vibhore Vardhan
  2023-05-26 14:43 ` [PATCH 1/2] cpufreq: ti-cpufreq: Add support for AM62A7 Vibhore Vardhan
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Vibhore Vardhan @ 2023-05-26 14:43 UTC (permalink / raw)
  To: rafael, viresh.kumar
  Cc: linux-pm, linux-kernel, vigneshr, d-gole, Vibhore Vardhan

Hi,

This series adds cpufreq support for TI AM62A7 SoC.

AM62A7 has the same A53 and efuse configuration as AM625. Thus, soc_data
from AM625 is reused. This series adds compatible string for AM62A7 to
ti-cpufreq and cpufreq-dt-platdev drivers respectively.

Tested on am62a-sk board using manual frequency changes and then reading
back frequency with k3conf, and this shows matching frequency to what
was set. 

Link to the complete series including the DT patches:
https://github.com/DhruvaG2000/v-linux/commits/am62a_cpufreq_2023

Based on patch series for AM625 by Dave Gerlach.

Regards,
Vibhore

Vibhore Vardhan (2):
  cpufreq: ti-cpufreq: Add support for AM62A7
  cpufreq: dt-platdev: Blacklist ti,am62a7 SoC

 drivers/cpufreq/cpufreq-dt-platdev.c | 1 +
 drivers/cpufreq/ti-cpufreq.c         | 1 +
 2 files changed, 2 insertions(+)

-- 
2.34.1


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/2] cpufreq: ti-cpufreq: Add support for AM62A7
  2023-05-26 14:43 [PATCH 0/2] cpufreq: ti-cpufreq: Enable AM62A7 CPUFreq Vibhore Vardhan
@ 2023-05-26 14:43 ` Vibhore Vardhan
  2023-05-26 14:43 ` [PATCH 2/2] cpufreq: dt-platdev: Blacklist ti,am62a7 SoC Vibhore Vardhan
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Vibhore Vardhan @ 2023-05-26 14:43 UTC (permalink / raw)
  To: rafael, viresh.kumar
  Cc: linux-pm, linux-kernel, vigneshr, d-gole, Vibhore Vardhan

Add support for TI K3 AM62A7 SoC to read speed and revision values from
hardware and pass to OPP layer. AM62A7 has the same A53 and efuse 
configuration as AM625. Thus, soc_data from AM625 is reused.

Based on AM625 CPUFreq patch series by Dave Gerlach.

Signed-off-by: Vibhore Vardhan <vibhore@ti.com>
---
 drivers/cpufreq/ti-cpufreq.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/cpufreq/ti-cpufreq.c b/drivers/cpufreq/ti-cpufreq.c
index be4209d97cb3..d5cd2fd25cad 100644
--- a/drivers/cpufreq/ti-cpufreq.c
+++ b/drivers/cpufreq/ti-cpufreq.c
@@ -337,6 +337,7 @@ static const struct of_device_id ti_cpufreq_of_match[] = {
 	{ .compatible = "ti,omap34xx", .data = &omap34xx_soc_data, },
 	{ .compatible = "ti,omap36xx", .data = &omap36xx_soc_data, },
 	{ .compatible = "ti,am625", .data = &am625_soc_data, },
+	{ .compatible = "ti,am62a7", .data = &am625_soc_data, },
 	/* legacy */
 	{ .compatible = "ti,omap3430", .data = &omap34xx_soc_data, },
 	{ .compatible = "ti,omap3630", .data = &omap36xx_soc_data, },
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/2] cpufreq: dt-platdev: Blacklist ti,am62a7 SoC
  2023-05-26 14:43 [PATCH 0/2] cpufreq: ti-cpufreq: Enable AM62A7 CPUFreq Vibhore Vardhan
  2023-05-26 14:43 ` [PATCH 1/2] cpufreq: ti-cpufreq: Add support for AM62A7 Vibhore Vardhan
@ 2023-05-26 14:43 ` Vibhore Vardhan
  2023-05-26 15:49 ` [PATCH 0/2] cpufreq: ti-cpufreq: Enable AM62A7 CPUFreq Dhruva Gole
  2023-05-29  5:04 ` Viresh Kumar
  3 siblings, 0 replies; 5+ messages in thread
From: Vibhore Vardhan @ 2023-05-26 14:43 UTC (permalink / raw)
  To: rafael, viresh.kumar
  Cc: linux-pm, linux-kernel, vigneshr, d-gole, Vibhore Vardhan

Add ti,am62a7 SoC to the blacklist as the ti-cpufreq driver will handle
creating the cpufreq-dt platform device after it completes so it is not
created twice.

Based on AM625 CPUFreq patch series by Dave Gerlach.

Signed-off-by: Vibhore Vardhan <vibhore@ti.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 338cf6cc6596..9368911ce20b 100644
--- a/drivers/cpufreq/cpufreq-dt-platdev.c
+++ b/drivers/cpufreq/cpufreq-dt-platdev.c
@@ -165,6 +165,7 @@ static const struct of_device_id blocklist[] __initconst = {
 	{ .compatible = "ti,dra7", },
 	{ .compatible = "ti,omap3", },
 	{ .compatible = "ti,am625", },
+	{ .compatible = "ti,am62a7", },
 
 	{ .compatible = "qcom,ipq8064", },
 	{ .compatible = "qcom,apq8064", },
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 0/2] cpufreq: ti-cpufreq: Enable AM62A7 CPUFreq
  2023-05-26 14:43 [PATCH 0/2] cpufreq: ti-cpufreq: Enable AM62A7 CPUFreq Vibhore Vardhan
  2023-05-26 14:43 ` [PATCH 1/2] cpufreq: ti-cpufreq: Add support for AM62A7 Vibhore Vardhan
  2023-05-26 14:43 ` [PATCH 2/2] cpufreq: dt-platdev: Blacklist ti,am62a7 SoC Vibhore Vardhan
@ 2023-05-26 15:49 ` Dhruva Gole
  2023-05-29  5:04 ` Viresh Kumar
  3 siblings, 0 replies; 5+ messages in thread
From: Dhruva Gole @ 2023-05-26 15:49 UTC (permalink / raw)
  To: Vibhore Vardhan, rafael, viresh.kumar; +Cc: linux-pm, linux-kernel, vigneshr

Hi!

On 26/05/23 20:13, Vibhore Vardhan wrote:
> Hi,
>
> This series adds cpufreq support for TI AM62A7 SoC.
>
> AM62A7 has the same A53 and efuse configuration as AM625. Thus, soc_data
> from AM625 is reused. This series adds compatible string for AM62A7 to
> ti-cpufreq and cpufreq-dt-platdev drivers respectively.
>
> Tested on am62a-sk board using manual frequency changes and then reading
> back frequency with k3conf, and this shows matching frequency to what
> was set. 
>
> Link to the complete series including the DT patches:
> https://github.com/DhruvaG2000/v-linux/commits/am62a_cpufreq_2023
>
> Based on patch series for AM625 by Dave Gerlach.
>
> Regards,
> Vibhore
>
> Vibhore Vardhan (2):
>   cpufreq: ti-cpufreq: Add support for AM62A7
>   cpufreq: dt-platdev: Blacklist ti,am62a7 SoC
>
>  drivers/cpufreq/cpufreq-dt-platdev.c | 1 +
>  drivers/cpufreq/ti-cpufreq.c         | 1 +
>  2 files changed, 2 insertions(+)
LGTM,

Reviewed-by: Dhruva Gole <d-gole@ti.com>
>

-- 
Best regards,
Dhruva Gole
Texas Instruments Incorporated


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [PATCH 0/2] cpufreq: ti-cpufreq: Enable AM62A7 CPUFreq
  2023-05-26 14:43 [PATCH 0/2] cpufreq: ti-cpufreq: Enable AM62A7 CPUFreq Vibhore Vardhan
                   ` (2 preceding siblings ...)
  2023-05-26 15:49 ` [PATCH 0/2] cpufreq: ti-cpufreq: Enable AM62A7 CPUFreq Dhruva Gole
@ 2023-05-29  5:04 ` Viresh Kumar
  3 siblings, 0 replies; 5+ messages in thread
From: Viresh Kumar @ 2023-05-29  5:04 UTC (permalink / raw)
  To: Vibhore Vardhan; +Cc: rafael, linux-pm, linux-kernel, vigneshr, d-gole

On 26-05-23, 09:43, Vibhore Vardhan wrote:
> Hi,
> 
> This series adds cpufreq support for TI AM62A7 SoC.
> 
> AM62A7 has the same A53 and efuse configuration as AM625. Thus, soc_data
> from AM625 is reused. This series adds compatible string for AM62A7 to
> ti-cpufreq and cpufreq-dt-platdev drivers respectively.
> 
> Tested on am62a-sk board using manual frequency changes and then reading
> back frequency with k3conf, and this shows matching frequency to what
> was set. 
> 
> Link to the complete series including the DT patches:
> https://github.com/DhruvaG2000/v-linux/commits/am62a_cpufreq_2023
> 
> Based on patch series for AM625 by Dave Gerlach.

Applied. Thanks.

-- 
viresh

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-05-29  5:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-05-26 14:43 [PATCH 0/2] cpufreq: ti-cpufreq: Enable AM62A7 CPUFreq Vibhore Vardhan
2023-05-26 14:43 ` [PATCH 1/2] cpufreq: ti-cpufreq: Add support for AM62A7 Vibhore Vardhan
2023-05-26 14:43 ` [PATCH 2/2] cpufreq: dt-platdev: Blacklist ti,am62a7 SoC Vibhore Vardhan
2023-05-26 15:49 ` [PATCH 0/2] cpufreq: ti-cpufreq: Enable AM62A7 CPUFreq Dhruva Gole
2023-05-29  5:04 ` Viresh Kumar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox