[PATCH 2/2] regulator: qcom-rpmh: Add PM6450 LDO support
From: SignKirigami
Date: Tue Nov 24 2026 - 05:45:18 EST
Add PM6450 LDO resources using the existing PMIC5 NLDO and PLDO
voltage models. Preserve the power-on voltage for LDO24.
Signed-off-by: SignKirigami <prcups@xxxxxxxx>
---
drivers/regulator/qcom-rpmh-regulator.c | 38 +++++++++++++++++++++++++++++++++
1 file changed, 38 insertions(+)
diff --git a/drivers/regulator/qcom-rpmh-regulator.c b/drivers/regulator/qcom-rpmh-regulator.c
index da4764ffa6325..c397717dc0d6d 100644
--- a/drivers/regulator/qcom-rpmh-regulator.c
+++ b/drivers/regulator/qcom-rpmh-regulator.c
@@ -475,6 +475,15 @@ static const struct regulator_ops rpmh_regulator_vrm_bypass_ops = {
.get_bypass = rpmh_regulator_vrm_get_bypass,
};
+static const struct regulator_ops rpmh_regulator_vrm_no_voltage_ops = {
+ .enable = rpmh_regulator_enable,
+ .disable = rpmh_regulator_disable,
+ .is_enabled = rpmh_regulator_is_enabled,
+ .set_mode = rpmh_regulator_vrm_set_mode,
+ .get_mode = rpmh_regulator_vrm_get_mode,
+ .get_optimum_mode = rpmh_regulator_vrm_get_optimum_mode,
+};
+
static const struct regulator_ops rpmh_regulator_xob_ops = {
.enable = rpmh_regulator_enable,
.disable = rpmh_regulator_disable,
@@ -1588,6 +1597,31 @@ static const struct rpmh_vreg_init_data pm6150l_vreg_data[] = {
{}
};
+static const struct rpmh_vreg_hw_data pm6450_ldo_10ma_no_voltage = {
+ .regulator_type = VRM,
+ .ops = &rpmh_regulator_vrm_no_voltage_ops,
+ .hpm_min_load_uA = 10000,
+ .pmic_mode_map = pmic_mode_map_pmic5_ldo,
+ .of_map_mode = rpmh_regulator_pmic4_ldo_of_map_mode,
+};
+
+static const struct rpmh_vreg_init_data pm6450_vreg_data[] = {
+ RPMH_VREG("ldo5", LDO, 5, &pmic5_nldo, NULL),
+ RPMH_VREG("ldo7", LDO, 7, &pmic5_nldo, NULL),
+ RPMH_VREG("ldo13", LDO, 13, &pmic5_nldo, NULL),
+ RPMH_VREG("ldo16", LDO, 16, &pmic5_nldo, NULL),
+ RPMH_VREG("ldo19", LDO, 19, &pmic5_pldo, NULL),
+ RPMH_VREG("ldo23", LDO, 23, &pmic5_pldo, NULL),
+ /*
+ * UFS VCC is selected at power-on (2.4 V or 2.96 V) according to
+ * the storage configuration. Preserve that selection and only vote
+ * enable and mode.
+ */
+ RPMH_VREG("ldo24", LDO, 24, &pm6450_ldo_10ma_no_voltage, NULL),
+ RPMH_VREG("ldo25", LDO, 25, &pmic5_pldo, NULL),
+ {},
+};
+
static const struct rpmh_vreg_init_data pm6350_vreg_data[] = {
RPMH_VREG("smps1", SMPS, 1, &pmic5_ftsmps510, "vdd-s1"),
RPMH_VREG("smps2", SMPS, 2, &pmic5_hfsmps510, "vdd-s2"),
@@ -2056,6 +2090,10 @@ static const struct of_device_id __maybe_unused rpmh_regulator_match_table[] = {
.compatible = "qcom,pm6350-rpmh-regulators",
.data = pm6350_vreg_data,
},
+ {
+ .compatible = "qcom,pm6450-rpmh-regulators",
+ .data = pm6450_vreg_data,
+ },
{
.compatible = "qcom,pmc8180-rpmh-regulators",
.data = pm8150_vreg_data,
--
2.56.0