Skip to contentSkip to conversation

cpufreq: ti-cpufreq: Enable AM62A7 CPUFreq

PATCH Applied Vibhore Vardhan 3 participants 5 messages May 26, 2023 – May 29, 2023 CPU frequency scaling framework

lore
Share & tools
lore
#0 lore raw

cover cpufreq: ti-cpufreq: Enable AM62A7 CPUFreq

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(+)
Signature · 1 line
2.34.1
#1 lore raw

PATCH 1/2 cpufreq: ti-cpufreq: Add support for AM62A7

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.

---
 drivers/cpufreq/ti-cpufreq.c | 1 +
 1 file changed, 1 insertion(+)
drivers/cpufreq/ti-cpufreq.c +1 -0
index be4209d97cb3..d5cd2fd25cad 100644
@@ -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, },
Signature · 1 line
2.34.1
#2 lore raw

PATCH 2/2 cpufreq: dt-platdev: Blacklist ti,am62a7 SoC

In reply to 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.

---
 drivers/cpufreq/cpufreq-dt-platdev.c | 1 +
 1 file changed, 1 insertion(+)
drivers/cpufreq/cpufreq-dt-platdev.c +1 -0
index 338cf6cc6596..9368911ce20b 100644
@@ -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", },
Signature · 1 line
2.34.1
Reviewed-by on the v1 series
#3 lore raw
In reply to Vibhore Vardhan

Hi!

Quoted 20 lines · 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

Quoted 7 lines

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,

Quoted 1 line
Signature · 3 lines
Best regards,
Dhruva Gole
Texas Instruments Incorporated
maintainer Applied
#4 lore raw
In reply to Vibhore Vardhan
Quoted 8 lines · 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.

Quoted 8 lines

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.

Signature · 1 line
viresh