Skip to content

Commit 60519b8

Browse files
committed
regulator: qcom_smd: Fix PMR735a S3 regulator spec
Bugzilla: https://bugzilla.redhat.com/2157968 commit 9101603 Author: Konrad Dybcio <konrad.dybcio@linaro.org> Date: Thu Nov 10 13:12:25 2022 +0100 regulator: qcom_smd: Fix PMR735a S3 regulator spec PMR735a has a wider range than previously defined. Fix it. Fixes: 0cda8c4 ("regulator: qcom_smd: Add PMR735a regulators") Signed-off-by: Konrad Dybcio <konrad.dybcio@linaro.org> Link: https://lore.kernel.org/r/20221110121225.9216-1-konrad.dybcio@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Adrien Thierry <athierry@redhat.com>
1 parent 5f74741 commit 60519b8

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

drivers/regulator/qcom_smd-regulator.c

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -686,6 +686,15 @@ static const struct regulator_desc pmic5_ftsmps520 = {
686686
.ops = &rpm_smps_ldo_ops,
687687
};
688688

689+
static const struct regulator_desc pmic5_hfsmps515 = {
690+
.linear_ranges = (struct linear_range[]) {
691+
REGULATOR_LINEAR_RANGE(320000, 0, 235, 16000),
692+
},
693+
.n_linear_ranges = 1,
694+
.n_voltages = 236,
695+
.ops = &rpm_smps_ldo_ops,
696+
};
697+
689698
static const struct regulator_desc pms405_hfsmps3 = {
690699
.linear_ranges = (struct linear_range[]) {
691700
REGULATOR_LINEAR_RANGE(320000, 0, 215, 8000),
@@ -1277,7 +1286,7 @@ static const struct rpm_regulator_data rpm_pmi8998_regulators[] = {
12771286
static const struct rpm_regulator_data rpm_pmr735a_regulators[] = {
12781287
{ "s1", QCOM_SMD_RPM_SMPE, 1, &pmic5_ftsmps520, "vdd_s1"},
12791288
{ "s2", QCOM_SMD_RPM_SMPE, 2, &pmic5_ftsmps520, "vdd_s2"},
1280-
{ "s3", QCOM_SMD_RPM_SMPE, 3, &pms405_hfsmps3, "vdd_s3"},
1289+
{ "s3", QCOM_SMD_RPM_SMPE, 3, &pmic5_hfsmps515, "vdd_s3"},
12811290
{ "l1", QCOM_SMD_RPM_LDOE, 1, &pm660_nldo660, "vdd_l1_l2"},
12821291
{ "l2", QCOM_SMD_RPM_LDOE, 2, &pm660_nldo660, "vdd_l1_l2"},
12831292
{ "l3", QCOM_SMD_RPM_LDOE, 3, &pm660_nldo660, "vdd_l3"},

0 commit comments

Comments
 (0)