* [PATCH] cpufreq: mediatek: correct voltages for MT7622 and MT7623 [not found] <9d7e62049e3442582bd64dbc9e4d2a64f1ad0c1a.camel@mediatek.com> @ 2023-06-05 14:18 ` Daniel Golle 2023-06-06 7:41 ` AngeloGioacchino Del Regno 0 siblings, 1 reply; 3+ messages in thread From: Daniel Golle @ 2023-06-05 14:18 UTC (permalink / raw) To: linux-pm, linux-mediatek, linux-arm-kernel, linux-kernel, Jia-Wei Chang, AngeloGioacchino Del Regno, Matthias Brugger, Viresh Kumar, Rafael J. Wysocki The MT6380 regulator typically used together with MT7622 does not support the current maximum processor and SRAM voltage in the cpufreq driver (1360000uV). For MT7622 limit processor and SRAM supply voltages to 1350000uV to avoid having the tracking algorithm request unsupported voltages from the regulator. On MT7623 there is no separate SRAM supply and the maximum voltage used is 1300000uV. Create dedicated platform data for MT7623 to cover that case as well. Fixes: 0883426fd07e3 ("cpufreq: mediatek: Raise proc and sram max voltage for MT7622/7623") Suggested-by: Jia-wei Chang <Jia-wei.Chang@mediatek.com> Signed-off-by: Daniel Golle <daniel@makrotopia.org> --- drivers/cpufreq/mediatek-cpufreq.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/drivers/cpufreq/mediatek-cpufreq.c b/drivers/cpufreq/mediatek-cpufreq.c index 9a39a7ccfae96..fef68cb2b38f7 100644 --- a/drivers/cpufreq/mediatek-cpufreq.c +++ b/drivers/cpufreq/mediatek-cpufreq.c @@ -696,9 +696,16 @@ static const struct mtk_cpufreq_platform_data mt2701_platform_data = { static const struct mtk_cpufreq_platform_data mt7622_platform_data = { .min_volt_shift = 100000, .max_volt_shift = 200000, - .proc_max_volt = 1360000, + .proc_max_volt = 1350000, .sram_min_volt = 0, - .sram_max_volt = 1360000, + .sram_max_volt = 1350000, + .ccifreq_supported = false, +}; + +static const struct mtk_cpufreq_platform_data mt7623_platform_data = { + .min_volt_shift = 100000, + .max_volt_shift = 200000, + .proc_max_volt = 1300000, .ccifreq_supported = false, }; @@ -734,7 +741,7 @@ static const struct of_device_id mtk_cpufreq_machines[] __initconst = { { .compatible = "mediatek,mt2701", .data = &mt2701_platform_data }, { .compatible = "mediatek,mt2712", .data = &mt2701_platform_data }, { .compatible = "mediatek,mt7622", .data = &mt7622_platform_data }, - { .compatible = "mediatek,mt7623", .data = &mt7622_platform_data }, + { .compatible = "mediatek,mt7623", .data = &mt7623_platform_data }, { .compatible = "mediatek,mt8167", .data = &mt8516_platform_data }, { .compatible = "mediatek,mt817x", .data = &mt2701_platform_data }, { .compatible = "mediatek,mt8173", .data = &mt2701_platform_data }, -- 2.41.0 ^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] cpufreq: mediatek: correct voltages for MT7622 and MT7623 2023-06-05 14:18 ` [PATCH] cpufreq: mediatek: correct voltages for MT7622 and MT7623 Daniel Golle @ 2023-06-06 7:41 ` AngeloGioacchino Del Regno 2023-06-19 4:23 ` Viresh Kumar 0 siblings, 1 reply; 3+ messages in thread From: AngeloGioacchino Del Regno @ 2023-06-06 7:41 UTC (permalink / raw) To: Daniel Golle, linux-pm, linux-mediatek, linux-arm-kernel, linux-kernel, Jia-Wei Chang, Matthias Brugger, Viresh Kumar, Rafael J. Wysocki Il 05/06/23 16:18, Daniel Golle ha scritto: > The MT6380 regulator typically used together with MT7622 does not > support the current maximum processor and SRAM voltage in the cpufreq > driver (1360000uV). > For MT7622 limit processor and SRAM supply voltages to 1350000uV to > avoid having the tracking algorithm request unsupported voltages from > the regulator. > > On MT7623 there is no separate SRAM supply and the maximum voltage used > is 1300000uV. Create dedicated platform data for MT7623 to cover that > case as well. > > Fixes: 0883426fd07e3 ("cpufreq: mediatek: Raise proc and sram max voltage for MT7622/7623") > Suggested-by: Jia-wei Chang <Jia-wei.Chang@mediatek.com> > Signed-off-by: Daniel Golle <daniel@makrotopia.org> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] cpufreq: mediatek: correct voltages for MT7622 and MT7623 2023-06-06 7:41 ` AngeloGioacchino Del Regno @ 2023-06-19 4:23 ` Viresh Kumar 0 siblings, 0 replies; 3+ messages in thread From: Viresh Kumar @ 2023-06-19 4:23 UTC (permalink / raw) To: AngeloGioacchino Del Regno Cc: Daniel Golle, linux-pm, linux-mediatek, linux-arm-kernel, linux-kernel, Jia-Wei Chang, Matthias Brugger, Rafael J. Wysocki On 06-06-23, 09:41, AngeloGioacchino Del Regno wrote: > Il 05/06/23 16:18, Daniel Golle ha scritto: > > The MT6380 regulator typically used together with MT7622 does not > > support the current maximum processor and SRAM voltage in the cpufreq > > driver (1360000uV). > > For MT7622 limit processor and SRAM supply voltages to 1350000uV to > > avoid having the tracking algorithm request unsupported voltages from > > the regulator. > > > > On MT7623 there is no separate SRAM supply and the maximum voltage used > > is 1300000uV. Create dedicated platform data for MT7623 to cover that > > case as well. > > > > Fixes: 0883426fd07e3 ("cpufreq: mediatek: Raise proc and sram max voltage for MT7622/7623") > > Suggested-by: Jia-wei Chang <Jia-wei.Chang@mediatek.com> > > Signed-off-by: Daniel Golle <daniel@makrotopia.org> > > Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Applied. Thanks. -- viresh ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-06-19 4:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <9d7e62049e3442582bd64dbc9e4d2a64f1ad0c1a.camel@mediatek.com>
2023-06-05 14:18 ` [PATCH] cpufreq: mediatek: correct voltages for MT7622 and MT7623 Daniel Golle
2023-06-06 7:41 ` AngeloGioacchino Del Regno
2023-06-19 4:23 ` Viresh Kumar
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox