Skip to content

Commit 2875843

Browse files
lweiss-fairphonebroonie
authored andcommitted
regulator: qcom-rpmh: add support for pmr735b regulators
Add RPMH regulators exposed by Qualcomm Technologies, Inc. PMR735B PMIC. It has 12 LDOs with 2 different types, L4 & L10 are LDO512 LV PMOS and the rest are LDO512 NMOS. Reviewed-by: Konrad Dybcio <[email protected]> Signed-off-by: Luca Weiss <[email protected]> Link: https://patch.msgid.link/20250711-pm7550-pmr735b-rpmh-regs-v2-3-bca8cc15c199@fairphone.com Signed-off-by: Mark Brown <[email protected]>
1 parent 20a01de commit 2875843

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

drivers/regulator/qcom-rpmh-regulator.c

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1476,6 +1476,22 @@ static const struct rpmh_vreg_init_data pmr735a_vreg_data[] = {
14761476
{}
14771477
};
14781478

1479+
static const struct rpmh_vreg_init_data pmr735b_vreg_data[] = {
1480+
RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo, "vdd-l1-l2"),
1481+
RPMH_VREG("ldo2", "ldo%s2", &pmic5_nldo, "vdd-l1-l2"),
1482+
RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo, "vdd-l3"),
1483+
RPMH_VREG("ldo4", "ldo%s4", &pmic5_pldo_lv, "vdd-l4"),
1484+
RPMH_VREG("ldo5", "ldo%s5", &pmic5_nldo, "vdd-l5"),
1485+
RPMH_VREG("ldo6", "ldo%s6", &pmic5_nldo, "vdd-l6"),
1486+
RPMH_VREG("ldo7", "ldo%s7", &pmic5_nldo, "vdd-l7-l8"),
1487+
RPMH_VREG("ldo8", "ldo%s8", &pmic5_nldo, "vdd-l7-l8"),
1488+
RPMH_VREG("ldo9", "ldo%s9", &pmic5_nldo, "vdd-l9"),
1489+
RPMH_VREG("ldo10", "ldo%s10", &pmic5_pldo_lv, "vdd-l10"),
1490+
RPMH_VREG("ldo11", "ldo%s11", &pmic5_nldo, "vdd-l11"),
1491+
RPMH_VREG("ldo12", "ldo%s12", &pmic5_nldo, "vdd-l12"),
1492+
{}
1493+
};
1494+
14791495
static const struct rpmh_vreg_init_data pm660_vreg_data[] = {
14801496
RPMH_VREG("smps1", "smp%s1", &pmic4_ftsmps426, "vdd-s1"),
14811497
RPMH_VREG("smps2", "smp%s2", &pmic4_ftsmps426, "vdd-s2"),
@@ -1667,6 +1683,10 @@ static const struct of_device_id __maybe_unused rpmh_regulator_match_table[] = {
16671683
.compatible = "qcom,pmr735a-rpmh-regulators",
16681684
.data = pmr735a_vreg_data,
16691685
},
1686+
{
1687+
.compatible = "qcom,pmr735b-rpmh-regulators",
1688+
.data = pmr735b_vreg_data,
1689+
},
16701690
{
16711691
.compatible = "qcom,pm660-rpmh-regulators",
16721692
.data = pm660_vreg_data,

0 commit comments

Comments
 (0)