Skip to content

Commit 9a336ed

Browse files
bhupesh-sharmabroonie
authored andcommitted
regulator: qcom-rpmh: Add new regulator found on SA8155p adp board
SA8155p-adp board supports a new regulator - pmm8155au. The output power management circuits in this regulator include: - FTS510 smps, - HFS510 smps, and - LDO510 linear regulators Add support for the same. Cc: Mark Brown <[email protected]> Cc: Bjorn Andersson <[email protected]> Signed-off-by: Bhupesh Sharma <[email protected]> Reviewed-by: Bjorn Andersson <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent f26cdad commit 9a336ed

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

drivers/regulator/qcom-rpmh-regulator.c

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -883,6 +883,38 @@ static const struct rpmh_vreg_init_data pm8150l_vreg_data[] = {
883883
{}
884884
};
885885

886+
static const struct rpmh_vreg_init_data pmm8155au_vreg_data[] = {
887+
RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps510, "vdd-s1"),
888+
RPMH_VREG("smps2", "smp%s2", &pmic5_ftsmps510, "vdd-s2"),
889+
RPMH_VREG("smps3", "smp%s3", &pmic5_ftsmps510, "vdd-s3"),
890+
RPMH_VREG("smps4", "smp%s4", &pmic5_hfsmps510, "vdd-s4"),
891+
RPMH_VREG("smps5", "smp%s5", &pmic5_hfsmps510, "vdd-s5"),
892+
RPMH_VREG("smps6", "smp%s6", &pmic5_ftsmps510, "vdd-s6"),
893+
RPMH_VREG("smps7", "smp%s7", &pmic5_ftsmps510, "vdd-s7"),
894+
RPMH_VREG("smps8", "smp%s8", &pmic5_ftsmps510, "vdd-s8"),
895+
RPMH_VREG("smps9", "smp%s9", &pmic5_ftsmps510, "vdd-s9"),
896+
RPMH_VREG("smps10", "smp%s10", &pmic5_ftsmps510, "vdd-s10"),
897+
RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo, "vdd-l1-l8-l11"),
898+
RPMH_VREG("ldo2", "ldo%s2", &pmic5_pldo, "vdd-l2-l10"),
899+
RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo, "vdd-l3-l4-l5-l18"),
900+
RPMH_VREG("ldo4", "ldo%s4", &pmic5_nldo, "vdd-l3-l4-l5-l18"),
901+
RPMH_VREG("ldo5", "ldo%s5", &pmic5_nldo, "vdd-l3-l4-l5-l18"),
902+
RPMH_VREG("ldo6", "ldo%s6", &pmic5_nldo, "vdd-l6-l9"),
903+
RPMH_VREG("ldo7", "ldo%s7", &pmic5_pldo_lv, "vdd-l7-l12-l14-l15"),
904+
RPMH_VREG("ldo8", "ldo%s8", &pmic5_nldo, "vdd-l1-l8-l11"),
905+
RPMH_VREG("ldo9", "ldo%s9", &pmic5_nldo, "vdd-l6-l9"),
906+
RPMH_VREG("ldo10", "ldo%s10", &pmic5_pldo, "vdd-l2-l10"),
907+
RPMH_VREG("ldo11", "ldo%s11", &pmic5_nldo, "vdd-l1-l8-l11"),
908+
RPMH_VREG("ldo12", "ldo%s12", &pmic5_pldo_lv, "vdd-l7-l12-l14-l15"),
909+
RPMH_VREG("ldo13", "ldo%s13", &pmic5_pldo, "vdd-l13-l16-l17"),
910+
RPMH_VREG("ldo14", "ldo%s14", &pmic5_pldo_lv, "vdd-l7-l12-l14-l15"),
911+
RPMH_VREG("ldo15", "ldo%s15", &pmic5_pldo_lv, "vdd-l7-l12-l14-l15"),
912+
RPMH_VREG("ldo16", "ldo%s16", &pmic5_pldo, "vdd-l13-l16-l17"),
913+
RPMH_VREG("ldo17", "ldo%s17", &pmic5_pldo, "vdd-l13-l16-l17"),
914+
RPMH_VREG("ldo18", "ldo%s18", &pmic5_nldo, "vdd-l3-l4-l5-l18"),
915+
{}
916+
};
917+
886918
static const struct rpmh_vreg_init_data pm8350_vreg_data[] = {
887919
RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps510, "vdd-s1"),
888920
RPMH_VREG("smps2", "smp%s2", &pmic5_ftsmps510, "vdd-s2"),
@@ -1177,6 +1209,10 @@ static const struct of_device_id __maybe_unused rpmh_regulator_match_table[] = {
11771209
.compatible = "qcom,pmc8180c-rpmh-regulators",
11781210
.data = pm8150l_vreg_data,
11791211
},
1212+
{
1213+
.compatible = "qcom,pmm8155au-rpmh-regulators",
1214+
.data = pmm8155au_vreg_data,
1215+
},
11801216
{
11811217
.compatible = "qcom,pmx55-rpmh-regulators",
11821218
.data = pmx55_vreg_data,

0 commit comments

Comments
 (0)