Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

regulator: qcom_smd: Add MP5496 S1 regulator

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>

authored by

Devi Priya and committed by
Mark Brown
60bbee7d e953450c

+3 -2
+3 -2
drivers/regulator/qcom_smd-regulator.c
··· 749 749 .ops = &rpm_smps_ldo_ops, 750 750 }; 751 751 752 - static const struct regulator_desc mp5496_smpa2 = { 752 + static const struct regulator_desc mp5496_smps = { 753 753 .linear_ranges = (struct linear_range[]) { 754 754 REGULATOR_LINEAR_RANGE(600000, 0, 127, 12500), 755 755 }, ··· 794 794 }; 795 795 796 796 static const struct rpm_regulator_data rpm_mp5496_regulators[] = { 797 - { "s2", QCOM_SMD_RPM_SMPA, 2, &mp5496_smpa2, "s2" }, 797 + { "s1", QCOM_SMD_RPM_SMPA, 1, &mp5496_smps, "s1" }, 798 + { "s2", QCOM_SMD_RPM_SMPA, 2, &mp5496_smps, "s2" }, 798 799 { "l2", QCOM_SMD_RPM_LDOA, 2, &mp5496_ldoa2, "l2" }, 799 800 {} 800 801 };