/linux-6.12.1/drivers/devfreq/ |
D | mtk-cci-devfreq.c | 43 int pre_voltage, pre_vsram, new_vsram, vsram, voltage, ret; in mtk_ccifreq_set_voltage() local 60 dev_err(dev, "invalid vsram value: %d\n", pre_vsram); in mtk_ccifreq_set_voltage() 69 vsram = clamp(pre_voltage + soc_data->max_volt_shift, in mtk_ccifreq_set_voltage() 71 ret = regulator_set_voltage(drv->sram_reg, vsram, in mtk_ccifreq_set_voltage() 76 if (vsram == soc_data->sram_max_volt || in mtk_ccifreq_set_voltage() 80 voltage = vsram - soc_data->min_volt_shift; in mtk_ccifreq_set_voltage() 98 vsram = new_vsram; in mtk_ccifreq_set_voltage() 100 vsram = max(new_vsram, in mtk_ccifreq_set_voltage() 103 ret = regulator_set_voltage(drv->sram_reg, vsram, in mtk_ccifreq_set_voltage() 113 pre_vsram = vsram; in mtk_ccifreq_set_voltage() [all …]
|
/linux-6.12.1/Documentation/devicetree/bindings/regulator/ |
D | mediatek,mt6358-regulator.yaml | 58 Supply for LDOs vsram-core (MT6366 only), vsram-gpu, vsram-others, vsram-proc11, vsram-proc12 119 "^(ldo_)?vsram[_-](core|gpu|others|proc1[12])$": 241 vsram-proc11 {
|
D | mediatek,mt6357-regulator.yaml | 198 mt6357_vsram_others_reg: ldo-vsram-others { 199 regulator-name = "vsram-others"; 206 mt6357_vsram_proc_reg: ldo-vsram-proc { 207 regulator-name = "vsram-proc";
|
D | mediatek,mt6331-regulator.yaml | 242 mt6331_vsram_reg: ldo-vsram { 243 regulator-name = "vsram";
|
D | mediatek,mt6332-regulator.yaml | 99 mt6332_vsram_reg: ldo-vsram {
|
/linux-6.12.1/drivers/cpufreq/ |
D | mediatek-cpufreq.c | 31 * Mediatek SoCs has two voltage inputs, Vproc and Vsram. In some cases the two 33 * 100mV < Vsram - Vproc < 200mV 84 int pre_vproc, pre_vsram, new_vsram, vsram, vproc, ret; in mtk_cpufreq_voltage_tracking() local 96 dev_err(info->cpu_dev, "invalid Vsram value: %d\n", pre_vsram); in mtk_cpufreq_voltage_tracking() 105 vsram = clamp(pre_vproc + soc_data->max_volt_shift, in mtk_cpufreq_voltage_tracking() 107 ret = regulator_set_voltage(sram_reg, vsram, in mtk_cpufreq_voltage_tracking() 113 if (vsram == soc_data->sram_max_volt || in mtk_cpufreq_voltage_tracking() 117 vproc = vsram - soc_data->min_volt_shift; in mtk_cpufreq_voltage_tracking() 135 vsram = new_vsram; in mtk_cpufreq_voltage_tracking() 137 vsram = max(new_vsram, in mtk_cpufreq_voltage_tracking() [all …]
|
D | pxa3xx-cpufreq.c | 72 #define OP(cpufreq, _xl, _xn, _hss, _dmc, _smc, _sfl, _dfi, vcore, vsram) \ argument 83 .vcc_sram = vsram, \
|
/linux-6.12.1/drivers/soc/mediatek/ |
D | mtk-regulator-coupler.c | 28 * modify the vsram voltage only when changing voltage of vgpu. 77 * If we're asked to set a voltage less than VSRAM min_uV, set in mediatek_regulator_balance_voltage() 78 * the minimum allowed voltage on VSRAM, as in this case it is in mediatek_regulator_balance_voltage()
|
/linux-6.12.1/arch/arm64/boot/dts/mediatek/ |
D | mt6357.dtsi | 159 mt6357_vsram_others_reg: ldo-vsram-others { 160 regulator-name = "vsram-others"; 168 mt6357_vsram_proc_reg: ldo-vsram-proc { 169 regulator-name = "vsram-proc";
|
D | mt6331.dtsi | 226 mt6331_vsram_reg: ldo-vsram { 227 regulator-name = "vsram";
|
D | mt8186-corsola.dtsi | 1541 mt6366_vsram_gpu_reg: vsram-gpu { 1551 mt6366_vsram_others_reg: vsram-others { 1560 mt6366_vsram_proc11_reg: vsram-proc11 { 1569 mt6366_vsram_proc12_reg: vsram-proc12 {
|
/linux-6.12.1/Documentation/devicetree/bindings/cpufreq/ |
D | cpufreq-mediatek.txt | 18 - sram-supply: Regulator for Vsram of CPU cluster. When present, the cpufreq driver 20 Vsram to fit SoC specific needs. When absent, the voltage scaling
|
/linux-6.12.1/drivers/regulator/ |
D | mt6358-regulator.c | 632 MT6366_LDO1("vsram-proc11", VSRAM_PROC11, "vs2-ldo3", 500000, 1293750, 6250, 634 MT6366_LDO1("vsram-others", VSRAM_OTHERS, "vs2-ldo3", 500000, 1293750, 6250, 636 MT6366_LDO1("vsram-gpu", VSRAM_GPU, "vs2-ldo3", 500000, 1293750, 6250, 638 MT6366_LDO1("vsram-proc12", VSRAM_PROC12, "vs2-ldo3", 500000, 1293750, 6250, 640 MT6366_LDO1("vsram-core", VSRAM_CORE, "vs2-ldo3", 500000, 1293750, 6250,
|
D | mt6357-regulator.c | 387 MT6357_LDO1("ldo-vsram-proc", VSRAM_PROC, 518750, 1312500, 6250, 390 MT6357_LDO1("ldo-vsram-others", VSRAM_OTHERS, 518750, 1312500, 6250,
|
D | mt6332-regulator.c | 323 MT6332_LDO_LINEAR("ldo-vsram", VSRAM_DVFS2, 700000, 1493750, 6250, buck_volt_range,
|
D | mt6331-regulator.c | 364 MT6331_REG_FIXED("ldo-vsram", VSRAM_DVFS1, MT6331_SYSLDO_CON4, 10, 15, 1012500,
|
/linux-6.12.1/Documentation/devicetree/bindings/interconnect/ |
D | mediatek,cci.yaml | 50 "voltage tracking" to step by step scale up/down Vproc and Vsram to fit
|