regulator: qcom_smd: Add MP5496 S1 regulator
authorDevi Priya <quic_devipriy@quicinc.com>
Fri, 7 Apr 2023 15:57:24 +0000 (21:27 +0530)
committerMark Brown <broonie@kernel.org>
Tue, 11 Apr 2023 11:40:16 +0000 (12:40 +0100)
Adding support for MP5496 S1 regulator on IPQ9574 SoC.

Co-developed-by: Praveenkumar I <quic_ipkumar@quicinc.com>
Signed-off-by: Praveenkumar I <quic_ipkumar@quicinc.com>
Signed-off-by: Devi Priya <quic_devipriy@quicinc.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20230407155727.20615-3-quic_devipriy@quicinc.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/qcom_smd-regulator.c

index 6f722b2..18189f3 100644 (file)
@@ -749,7 +749,7 @@ static const struct regulator_desc pms405_pldo600 = {
        .ops = &rpm_smps_ldo_ops,
 };
 
-static const struct regulator_desc mp5496_smpa2 = {
+static const struct regulator_desc mp5496_smps = {
        .linear_ranges = (struct linear_range[]) {
                REGULATOR_LINEAR_RANGE(600000, 0, 127, 12500),
        },
@@ -794,7 +794,8 @@ struct rpm_regulator_data {
 };
 
 static const struct rpm_regulator_data rpm_mp5496_regulators[] = {
-       { "s2", QCOM_SMD_RPM_SMPA, 2, &mp5496_smpa2, "s2" },
+       { "s1", QCOM_SMD_RPM_SMPA, 1, &mp5496_smps, "s1" },
+       { "s2", QCOM_SMD_RPM_SMPA, 2, &mp5496_smps, "s2" },
        { "l2", QCOM_SMD_RPM_LDOA, 2, &mp5496_ldoa2, "l2" },
        {}
 };