OPP: Support more speed grades and silicon revisions
Subsystems (3)
cover OPP: Support more speed grades and silicon revisions
As the AM62x, AM62ax, and AM62px SoC families mature, more speed grades are established and more silicon revisions are released. This patch series adds support for more speed grades on AM62Px SoCs in ti-cpufreq. Also allow all silicon revisions across AM62x, AM62Px, and AM62Ax SoCs to use the already established OPPs and instead determine approprate OPP application with speed grade efuse parsing.
Also fix 1GHz OPP which according to device datasheet [0], also supports speed grade "O".
[0] https://www.ti.com/lit/gpn/am62p
Judith Mendez (3):
cpufreq: ti: Support more speed grades on AM62Px SoC
cpufreq: ti: Allow all silicon revisions to support OPPs
arm64: dts: ti: k3-am62p: Fix supported hardware for 1GHz OPP
arch/arm64/boot/dts/ti/k3-am62p5.dtsi | 2 +- drivers/cpufreq/ti-cpufreq.c | 10 +++++++--- 2 files changed, 8 insertions(+), 4 deletions(-)
Signature · 1 line
2.49.0
PATCH 1/3 cpufreq: ti: Support more speed grades on AM62Px SoC
As the AM62Px SoC family matures more speed grades are being defined. Add support for speed grades U and T which both support all currently established OPPs.
--- drivers/cpufreq/ti-cpufreq.c | 4 ++++ 1 file changed, 4 insertions(+)
drivers/cpufreq/ti-cpufreq.c +4 -0
@@ -72,7 +72,9 @@ enum {#define AM62P5_EFUSE_O_MPU_OPP 15#define AM62P5_EFUSE_S_MPU_OPP 19 +#define AM62P5_EFUSE_T_MPU_OPP 20#define AM62P5_EFUSE_U_MPU_OPP 21 +#define AM62P5_EFUSE_V_MPU_OPP 22#define AM62P5_SUPPORT_O_MPU_OPP BIT(0)#define AM62P5_SUPPORT_U_MPU_OPP BIT(2)
@@ -153,7 +155,9 @@ static unsigned long am62p5_efuse_xlate(struct ti_cpufreq_data *opp_data,unsigned long calculated_efuse =AM62P5_SUPPORT_O_MPU_OPP ;switch (efuse) { +case AM62P5_EFUSE_V_MPU_OPP :case AM62P5_EFUSE_U_MPU_OPP : +case AM62P5_EFUSE_T_MPU_OPP :case AM62P5_EFUSE_S_MPU_OPP : calculated_efuse |=AM62P5_SUPPORT_U_MPU_OPP ; fallthrough;
Signature · 1 line
2.49.0
PATCH 2/3 cpufreq: ti: Allow all silicon revisions to support OPPs
In reply to Judith MendezMore silicon revisions are being defined for AM62x, AM62Px, and AM62ax SoCs. These silicon may also support currently establishes OPPs, so remove the revision limitation in ti-cpufreq and thus determine if an OPP applies with speed grade efuse parsing.
--- drivers/cpufreq/ti-cpufreq.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/cpufreq/ti-cpufreq.c +3 -3
@@ -311,9 +311,9 @@ static struct ti_cpufreq_soc_data am3517_soc_data = { };static const struct soc_device_attribute k3_cpufreq_soc[] = { - { .family ="AM62X" , .revision ="SR1.0" }, - { .family ="AM62AX" , .revision ="SR1.0" }, - { .family ="AM62PX" , .revision ="SR1.0" }, + { .family ="AM62X" , }, + { .family ="AM62AX" , }, + { .family ="AM62PX" , }, {/* sentinel */ } };
Signature · 1 line
2.49.0
Viresh Kumar
maintainerRe: [PATCH 2/3] cpufreq: ti: Allow all silicon revisions to support OPPs
Quoted 16 lines · Judith Mendez
More silicon revisions are being defined for AM62x, AM62Px, and AM62ax SoCs. These silicon may also support currently establishes OPPs, so remove the revision limitation in ti-cpufreq and thus determine if an OPP applies with speed grade efuse parsing.
Signed-off-by Judith Mendez <[email protected]>--- drivers/cpufreq/ti-cpufreq.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)drivers/cpufreq/ti-cpufreq.c +0
-0@@ -311,9 +311,9 @@ static struct ti_cpufreq_soc_data am3517_soc_data = { };
drivers/cpufreq/ti-cpufreq.c static struct ti_cpufreq_soc_data am3517_soc_data = { · line 318
Quoted 10 lines
drivers/cpufreq/ti-cpufreq.c +3
-3static const struct soc_device_attribute k3_cpufreq_soc[] = { - { .family ="AM62X" , .revision ="SR1.0" }, - { .family ="AM62AX" , .revision ="SR1.0" }, - { .family ="AM62PX" , .revision ="SR1.0" }, + { .family ="AM62X" , }, + { .family ="AM62AX" , }, + { .family ="AM62PX" , }, {/* sentinel */ } };
This got a minor conflict, fixed it as:
drivers/cpufreq/ti-cpufreq.c +4 -5
@@ -311,10 +311,10 @@ static struct ti_cpufreq_soc_data am3517_soc_data = { };static const struct soc_device_attribute k3_cpufreq_soc[] = { - { .family ="AM62X" , .revision ="SR1.0" }, - { .family ="AM62AX" , .revision ="SR1.0" }, - { .family ="AM62PX" , .revision ="SR1.0" }, - { .family ="AM62DX" , .revision ="SR1.0" }, + { .family ="AM62X" , }, + { .family ="AM62AX" , }, + { .family ="AM62PX" , }, + { .family ="AM62DX" , }, {/* sentinel */ } --
viresh
PATCH 3/3 arm64: dts: ti: k3-am62p: Fix supported hardware for 1GHz OPP
In reply to Judith MendezThe 1GHz OPP is supported on speed grade "O" as well according to the device datasheet [0], so fix the opp-supported-hw property to support this speed grade for 1GHz OPP.
[0] https://www.ti.com/lit/gpn/am62p
--- arch/arm64/boot/dts/ti/k3-am62p5.dtsi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
arch/arm64/boot/dts/ti/k3-am62p5.dtsi +1 -1
@@ -135,7 +135,7 @@ opp-800000000 { opp-1000000000 { opp-hz = /bits/ 64 <1000000000>; - opp-supported-hw = <0x01 0x0006>; + opp-supported-hw = <0x01 0x0007>; clock-latency-ns = <6000000>; };
Signature · 1 line
2.49.0
Quoted 10 lines · Judith Mendez
As the AM62x, AM62ax, and AM62px SoC families mature, more speed grades are established and more silicon revisions are released. This patch series adds support for more speed grades on AM62Px SoCs in ti-cpufreq. Also allow all silicon revisions across AM62x, AM62Px, and AM62Ax SoCs to use the already established OPPs and instead determine approprate OPP application with speed grade efuse parsing.
Also fix 1GHz OPP which according to device datasheet [0], also supports speed grade "O".
Quoted 6 lines
[0] https://www.ti.com/lit/gpn/am62p
Judith Mendez (3):
cpufreq: ti: Support more speed grades on AM62Px SoC
cpufreq: ti: Allow all silicon revisions to support OPPs
arm64: dts: ti: k3-am62p: Fix supported hardware for 1GHz OPP
Applied. Thanks.
Signature · 1 line
viresh