Skip to content

Commit 0adafd6

Browse files
z3ntubroonie
authored andcommitted
regulator: qcom-rpmh: Add PM6350 regulators
Add the configuration for pm6350 regulators. The supplies are not known so leave them out for now. Additionally leave out configuration of smps3 - smps5 and ldo17 as these are not configured in the downstream kernel and the type of them is not known. Signed-off-by: Luca Weiss <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 061514d commit 0adafd6

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

drivers/regulator/qcom-rpmh-regulator.c

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,6 +1047,34 @@ static const struct rpmh_vreg_init_data pm6150l_vreg_data[] = {
10471047
{}
10481048
};
10491049

1050+
static const struct rpmh_vreg_init_data pm6350_vreg_data[] = {
1051+
RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps510, NULL),
1052+
RPMH_VREG("smps2", "smp%s2", &pmic5_hfsmps510, NULL),
1053+
/* smps3 - smps5 not configured */
1054+
RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo, NULL),
1055+
RPMH_VREG("ldo2", "ldo%s2", &pmic5_pldo, NULL),
1056+
RPMH_VREG("ldo3", "ldo%s3", &pmic5_pldo, NULL),
1057+
RPMH_VREG("ldo4", "ldo%s4", &pmic5_nldo, NULL),
1058+
RPMH_VREG("ldo5", "ldo%s5", &pmic5_pldo, NULL),
1059+
RPMH_VREG("ldo6", "ldo%s6", &pmic5_pldo, NULL),
1060+
RPMH_VREG("ldo7", "ldo%s7", &pmic5_pldo, NULL),
1061+
RPMH_VREG("ldo8", "ldo%s8", &pmic5_pldo, NULL),
1062+
RPMH_VREG("ldo9", "ldo%s9", &pmic5_pldo, NULL),
1063+
RPMH_VREG("ldo10", "ldo%s10", &pmic5_pldo, NULL),
1064+
RPMH_VREG("ldo11", "ldo%s11", &pmic5_pldo, NULL),
1065+
RPMH_VREG("ldo12", "ldo%s12", &pmic5_pldo, NULL),
1066+
RPMH_VREG("ldo13", "ldo%s13", &pmic5_nldo, NULL),
1067+
RPMH_VREG("ldo14", "ldo%s14", &pmic5_pldo, NULL),
1068+
RPMH_VREG("ldo15", "ldo%s15", &pmic5_nldo, NULL),
1069+
RPMH_VREG("ldo16", "ldo%s16", &pmic5_nldo, NULL),
1070+
/* ldo17 not configured */
1071+
RPMH_VREG("ldo18", "ldo%s18", &pmic5_nldo, NULL),
1072+
RPMH_VREG("ldo19", "ldo%s19", &pmic5_nldo, NULL),
1073+
RPMH_VREG("ldo20", "ldo%s20", &pmic5_nldo, NULL),
1074+
RPMH_VREG("ldo21", "ldo%s21", &pmic5_nldo, NULL),
1075+
RPMH_VREG("ldo22", "ldo%s22", &pmic5_nldo, NULL),
1076+
};
1077+
10501078
static const struct rpmh_vreg_init_data pmx55_vreg_data[] = {
10511079
RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps510, "vdd-s1"),
10521080
RPMH_VREG("smps2", "smp%s2", &pmic5_hfsmps510, "vdd-s2"),
@@ -1201,6 +1229,10 @@ static const struct of_device_id __maybe_unused rpmh_regulator_match_table[] = {
12011229
.compatible = "qcom,pm6150l-rpmh-regulators",
12021230
.data = pm6150l_vreg_data,
12031231
},
1232+
{
1233+
.compatible = "qcom,pm6350-rpmh-regulators",
1234+
.data = pm6350_vreg_data,
1235+
},
12041236
{
12051237
.compatible = "qcom,pmc8180-rpmh-regulators",
12061238
.data = pm8150_vreg_data,

0 commit comments

Comments
 (0)