Lines Matching +full:rpmh +full:- +full:based

1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2018-2021, The Linux Foundation. All rights reserved.
18 #include <soc/qcom/cmd-db.h>
19 #include <soc/qcom/rpmh.h>
21 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
24 * enum rpmh_regulator_type - supported RPMh accelerator types
25 * @VRM: RPMh VRM accelerator which supports voting on enable, voltage,
27 * @XOB: RPMh XOB accelerator which supports voting on the enable state
68 * struct rpmh_vreg_hw_data - RPMh regulator hardware configurations
69 * @regulator_type: RPMh accelerator type used to manage this
99 * struct rpmh_vreg - individual RPMh regulator data structure encapsulating a
101 * @dev: Device pointer for the top-level PMIC RPMh
103 * handle in RPMh write requests.
105 * an RPMh accelerator
107 * @hw_data: PMIC regulator configuration data for this RPMh
110 * wait for an ACK from RPMh before continuing even
112 * state (e.g. enabled --> disabled).
116 * bypass (pass-through) mode or not. This is
117 * only used by BOB rpmh-regulator resources.
120 * @mode: RPMh VRM regulator current framework mode
136 * struct rpmh_vreg_init_data - initialization data for an RPMh regulator
139 * @resource_name: RPMh regulator resource name format string.
141 * is filled at run-time with the PMIC ID provided
142 * by device tree property qcom,pmic-id. Example:
143 * "ldo%s1" for RPMh resource "ldoa1".
155 * rpmh_regulator_send_request() - send the request to RPMh
156 * @vreg: Pointer to the RPMh regulator
157 * @cmd: Pointer to the RPMh command to send
168 if (wait_for_ack || vreg->always_wait_for_ack) in rpmh_regulator_send_request()
169 ret = rpmh_write(vreg->dev, RPMH_ACTIVE_ONLY_STATE, cmd, 1); in rpmh_regulator_send_request()
171 ret = rpmh_write_async(vreg->dev, RPMH_ACTIVE_ONLY_STATE, cmd, in rpmh_regulator_send_request()
182 .addr = vreg->addr + RPMH_REGULATOR_REG_VRM_VOLTAGE, in _rpmh_regulator_vrm_set_voltage_sel()
192 vreg->voltage_selector = selector; in _rpmh_regulator_vrm_set_voltage_sel()
202 if (vreg->enabled == -EINVAL) { in rpmh_regulator_vrm_set_voltage_sel()
207 vreg->voltage_selector = selector; in rpmh_regulator_vrm_set_voltage_sel()
212 selector > vreg->voltage_selector); in rpmh_regulator_vrm_set_voltage_sel()
219 return vreg->voltage_selector; in rpmh_regulator_vrm_get_voltage_sel()
226 return vreg->enabled; in rpmh_regulator_is_enabled()
234 .addr = vreg->addr + RPMH_REGULATOR_REG_ENABLE, in rpmh_regulator_set_enable_state()
239 if (vreg->enabled == -EINVAL && in rpmh_regulator_set_enable_state()
240 vreg->voltage_selector != -ENOTRECOVERABLE) { in rpmh_regulator_set_enable_state()
242 vreg->voltage_selector, true); in rpmh_regulator_set_enable_state()
249 vreg->enabled = enable; in rpmh_regulator_set_enable_state()
268 .addr = vreg->addr + RPMH_REGULATOR_REG_VRM_MODE, in rpmh_regulator_vrm_set_mode_bypass()
273 return -EINVAL; in rpmh_regulator_vrm_set_mode_bypass()
275 pmic_mode = vreg->hw_data->pmic_mode_map[mode]; in rpmh_regulator_vrm_set_mode_bypass()
293 if (mode == vreg->mode) in rpmh_regulator_vrm_set_mode()
296 ret = rpmh_regulator_vrm_set_mode_bypass(vreg, mode, vreg->bypassed); in rpmh_regulator_vrm_set_mode()
298 vreg->mode = mode; in rpmh_regulator_vrm_set_mode()
307 return vreg->mode; in rpmh_regulator_vrm_get_mode()
311 * rpmh_regulator_vrm_get_optimum_mode() - get the mode based on the load
312 * @rdev: Regulator device pointer for the rpmh-regulator
317 * This function is used in the regulator_ops for VRM type RPMh regulator
327 if (load_uA >= vreg->hw_data->hpm_min_load_uA) in rpmh_regulator_vrm_get_optimum_mode()
339 if (vreg->bypassed == enable) in rpmh_regulator_vrm_set_bypass()
342 ret = rpmh_regulator_vrm_set_mode_bypass(vreg, vreg->mode, enable); in rpmh_regulator_vrm_set_bypass()
344 vreg->bypassed = enable; in rpmh_regulator_vrm_set_bypass()
354 *enable = vreg->bypassed; in rpmh_regulator_vrm_get_bypass()
402 * rpmh_regulator_init_vreg() - initialize all attributes of an rpmh-regulator
403 * @vreg: Pointer to the individual rpmh-regulator resource
404 * @dev: Pointer to the top level rpmh-regulator PMIC device
405 * @node: Pointer to the individual rpmh-regulator resource
407 * @pmic_id: String used to identify the top level rpmh-regulator
409 * @pmic_rpmh_data: Pointer to a null-terminated array of rpmh-regulator
425 vreg->dev = dev; in rpmh_regulator_init_vreg()
427 for (rpmh_data = pmic_rpmh_data; rpmh_data->name; rpmh_data++) in rpmh_regulator_init_vreg()
428 if (of_node_name_eq(node, rpmh_data->name)) in rpmh_regulator_init_vreg()
431 if (!rpmh_data->name) { in rpmh_regulator_init_vreg()
433 return -EINVAL; in rpmh_regulator_init_vreg()
437 rpmh_data->resource_name, pmic_id); in rpmh_regulator_init_vreg()
439 vreg->addr = cmd_db_read_addr(rpmh_resource_name); in rpmh_regulator_init_vreg()
440 if (!vreg->addr) { in rpmh_regulator_init_vreg()
441 dev_err(dev, "%pOFn: could not find RPMh address for resource %s\n", in rpmh_regulator_init_vreg()
443 return -ENODEV; in rpmh_regulator_init_vreg()
446 vreg->rdesc.name = rpmh_data->name; in rpmh_regulator_init_vreg()
447 vreg->rdesc.supply_name = rpmh_data->supply_name; in rpmh_regulator_init_vreg()
448 vreg->hw_data = rpmh_data->hw_data; in rpmh_regulator_init_vreg()
450 vreg->enabled = -EINVAL; in rpmh_regulator_init_vreg()
451 vreg->voltage_selector = -ENOTRECOVERABLE; in rpmh_regulator_init_vreg()
452 vreg->mode = REGULATOR_MODE_INVALID; in rpmh_regulator_init_vreg()
454 if (rpmh_data->hw_data->n_voltages) { in rpmh_regulator_init_vreg()
455 vreg->rdesc.linear_ranges = rpmh_data->hw_data->voltage_ranges; in rpmh_regulator_init_vreg()
456 vreg->rdesc.n_linear_ranges = rpmh_data->hw_data->n_linear_ranges; in rpmh_regulator_init_vreg()
457 vreg->rdesc.n_voltages = rpmh_data->hw_data->n_voltages; in rpmh_regulator_init_vreg()
460 vreg->always_wait_for_ack = of_property_read_bool(node, in rpmh_regulator_init_vreg()
461 "qcom,always-wait-for-ack"); in rpmh_regulator_init_vreg()
463 vreg->rdesc.owner = THIS_MODULE; in rpmh_regulator_init_vreg()
464 vreg->rdesc.type = REGULATOR_VOLTAGE; in rpmh_regulator_init_vreg()
465 vreg->rdesc.ops = vreg->hw_data->ops; in rpmh_regulator_init_vreg()
466 vreg->rdesc.of_map_mode = vreg->hw_data->of_map_mode; in rpmh_regulator_init_vreg()
468 init_data = of_get_regulator_init_data(dev, node, &vreg->rdesc); in rpmh_regulator_init_vreg()
470 return -ENOMEM; in rpmh_regulator_init_vreg()
472 if (rpmh_data->hw_data->regulator_type == XOB && in rpmh_regulator_init_vreg()
473 init_data->constraints.min_uV && in rpmh_regulator_init_vreg()
474 init_data->constraints.min_uV == init_data->constraints.max_uV) { in rpmh_regulator_init_vreg()
475 vreg->rdesc.fixed_uV = init_data->constraints.min_uV; in rpmh_regulator_init_vreg()
476 vreg->rdesc.n_voltages = 1; in rpmh_regulator_init_vreg()
484 rdev = devm_regulator_register(dev, &vreg->rdesc, &reg_config); in rpmh_regulator_init_vreg()
492 dev_dbg(dev, "%pOFn regulator registered for RPMh resource %s @ 0x%05X\n", in rpmh_regulator_init_vreg()
493 node, rpmh_resource_name, vreg->addr); in rpmh_regulator_init_vreg()
499 [REGULATOR_MODE_INVALID] = -EINVAL,
503 [REGULATOR_MODE_FAST] = -EINVAL,
507 [REGULATOR_MODE_INVALID] = -EINVAL,
511 [REGULATOR_MODE_FAST] = -EINVAL,
515 [REGULATOR_MODE_INVALID] = -EINVAL,
516 [REGULATOR_MODE_STANDBY] = -EINVAL,
517 [REGULATOR_MODE_IDLE] = -EINVAL,
519 [REGULATOR_MODE_FAST] = -EINVAL,
545 [REGULATOR_MODE_INVALID] = -EINVAL,
553 [REGULATOR_MODE_INVALID] = -EINVAL,
587 [REGULATOR_MODE_INVALID] = -EINVAL,
588 [REGULATOR_MODE_STANDBY] = -EINVAL,
595 [REGULATOR_MODE_INVALID] = -EINVAL,
596 [REGULATOR_MODE_STANDBY] = -EINVAL,
916 RPMH_VREG("smps1", "smp%s1", &pmic4_ftsmps426, "vdd-s1"),
917 RPMH_VREG("smps2", "smp%s2", &pmic4_ftsmps426, "vdd-s2"),
918 RPMH_VREG("smps3", "smp%s3", &pmic4_hfsmps3, "vdd-s3"),
919 RPMH_VREG("smps4", "smp%s4", &pmic4_hfsmps3, "vdd-s4"),
920 RPMH_VREG("smps5", "smp%s5", &pmic4_hfsmps3, "vdd-s5"),
921 RPMH_VREG("smps6", "smp%s6", &pmic4_ftsmps426, "vdd-s6"),
922 RPMH_VREG("smps7", "smp%s7", &pmic4_ftsmps426, "vdd-s7"),
923 RPMH_VREG("smps8", "smp%s8", &pmic4_ftsmps426, "vdd-s8"),
924 RPMH_VREG("smps9", "smp%s9", &pmic4_ftsmps426, "vdd-s9"),
925 RPMH_VREG("smps10", "smp%s10", &pmic4_ftsmps426, "vdd-s10"),
926 RPMH_VREG("smps11", "smp%s11", &pmic4_ftsmps426, "vdd-s11"),
927 RPMH_VREG("smps12", "smp%s12", &pmic4_ftsmps426, "vdd-s12"),
928 RPMH_VREG("smps13", "smp%s13", &pmic4_ftsmps426, "vdd-s13"),
929 RPMH_VREG("ldo1", "ldo%s1", &pmic4_nldo, "vdd-l1-l27"),
930 RPMH_VREG("ldo2", "ldo%s2", &pmic4_nldo, "vdd-l2-l8-l17"),
931 RPMH_VREG("ldo3", "ldo%s3", &pmic4_nldo, "vdd-l3-l11"),
932 RPMH_VREG("ldo4", "ldo%s4", &pmic4_nldo, "vdd-l4-l5"),
933 RPMH_VREG("ldo5", "ldo%s5", &pmic4_nldo, "vdd-l4-l5"),
934 RPMH_VREG("ldo6", "ldo%s6", &pmic4_pldo, "vdd-l6"),
935 RPMH_VREG("ldo7", "ldo%s7", &pmic4_pldo_lv, "vdd-l7-l12-l14-l15"),
936 RPMH_VREG("ldo8", "ldo%s8", &pmic4_nldo, "vdd-l2-l8-l17"),
937 RPMH_VREG("ldo9", "ldo%s9", &pmic4_pldo, "vdd-l9"),
938 RPMH_VREG("ldo10", "ldo%s10", &pmic4_pldo, "vdd-l10-l23-l25"),
939 RPMH_VREG("ldo11", "ldo%s11", &pmic4_nldo, "vdd-l3-l11"),
940 RPMH_VREG("ldo12", "ldo%s12", &pmic4_pldo_lv, "vdd-l7-l12-l14-l15"),
941 RPMH_VREG("ldo13", "ldo%s13", &pmic4_pldo, "vdd-l13-l19-l21"),
942 RPMH_VREG("ldo14", "ldo%s14", &pmic4_pldo_lv, "vdd-l7-l12-l14-l15"),
943 RPMH_VREG("ldo15", "ldo%s15", &pmic4_pldo_lv, "vdd-l7-l12-l14-l15"),
944 RPMH_VREG("ldo16", "ldo%s16", &pmic4_pldo, "vdd-l16-l28"),
945 RPMH_VREG("ldo17", "ldo%s17", &pmic4_nldo, "vdd-l2-l8-l17"),
946 RPMH_VREG("ldo18", "ldo%s18", &pmic4_pldo, "vdd-l18-l22"),
947 RPMH_VREG("ldo19", "ldo%s19", &pmic4_pldo, "vdd-l13-l19-l21"),
948 RPMH_VREG("ldo20", "ldo%s20", &pmic4_pldo, "vdd-l20-l24"),
949 RPMH_VREG("ldo21", "ldo%s21", &pmic4_pldo, "vdd-l13-l19-l21"),
950 RPMH_VREG("ldo22", "ldo%s22", &pmic4_pldo, "vdd-l18-l22"),
951 RPMH_VREG("ldo23", "ldo%s23", &pmic4_pldo, "vdd-l10-l23-l25"),
952 RPMH_VREG("ldo24", "ldo%s24", &pmic4_pldo, "vdd-l20-l24"),
953 RPMH_VREG("ldo25", "ldo%s25", &pmic4_pldo, "vdd-l10-l23-l25"),
954 RPMH_VREG("ldo26", "ldo%s26", &pmic4_nldo, "vdd-l26"),
955 RPMH_VREG("ldo27", "ldo%s27", &pmic4_nldo, "vdd-l1-l27"),
956 RPMH_VREG("ldo28", "ldo%s28", &pmic4_pldo, "vdd-l16-l28"),
957 RPMH_VREG("lvs1", "vs%s1", &pmic4_lvs, "vin-lvs-1-2"),
958 RPMH_VREG("lvs2", "vs%s2", &pmic4_lvs, "vin-lvs-1-2"),
963 RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps510, "vdd-s1"),
968 RPMH_VREG("bob", "bob%s1", &pmic4_bob, "vdd-bob"),
973 RPMH_VREG("smps1", "smp%s1", &pmic4_ftsmps426, "vdd-s1"),
974 RPMH_VREG("smps2", "smp%s2", &pmic4_ftsmps426, "vdd-s2"),
975 RPMH_VREG("smps3", "smp%s3", &pmic4_ftsmps426, "vdd-s3"),
976 RPMH_VREG("smps4", "smp%s4", &pmic4_ftsmps426, "vdd-s4"),
981 RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps510, "vdd-s1"),
982 RPMH_VREG("smps2", "smp%s2", &pmic5_ftsmps510, "vdd-s2"),
983 RPMH_VREG("smps3", "smp%s3", &pmic5_ftsmps510, "vdd-s3"),
984 RPMH_VREG("smps4", "smp%s4", &pmic5_hfsmps510, "vdd-s4"),
985 RPMH_VREG("smps5", "smp%s5", &pmic5_hfsmps510, "vdd-s5"),
986 RPMH_VREG("smps6", "smp%s6", &pmic5_ftsmps510, "vdd-s6"),
987 RPMH_VREG("smps7", "smp%s7", &pmic5_ftsmps510, "vdd-s7"),
988 RPMH_VREG("smps8", "smp%s8", &pmic5_ftsmps510, "vdd-s8"),
989 RPMH_VREG("smps9", "smp%s9", &pmic5_ftsmps510, "vdd-s9"),
990 RPMH_VREG("smps10", "smp%s10", &pmic5_ftsmps510, "vdd-s10"),
991 RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo, "vdd-l1-l8-l11"),
992 RPMH_VREG("ldo2", "ldo%s2", &pmic5_pldo, "vdd-l2-l10"),
993 RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo, "vdd-l3-l4-l5-l18"),
994 RPMH_VREG("ldo4", "ldo%s4", &pmic5_nldo, "vdd-l3-l4-l5-l18"),
995 RPMH_VREG("ldo5", "ldo%s5", &pmic5_nldo, "vdd-l3-l4-l5-l18"),
996 RPMH_VREG("ldo6", "ldo%s6", &pmic5_nldo, "vdd-l6-l9"),
997 RPMH_VREG("ldo7", "ldo%s7", &pmic5_pldo, "vdd-l7-l12-l14-l15"),
998 RPMH_VREG("ldo8", "ldo%s8", &pmic5_nldo, "vdd-l1-l8-l11"),
999 RPMH_VREG("ldo9", "ldo%s9", &pmic5_nldo, "vdd-l6-l9"),
1000 RPMH_VREG("ldo10", "ldo%s10", &pmic5_pldo, "vdd-l2-l10"),
1001 RPMH_VREG("ldo11", "ldo%s11", &pmic5_nldo, "vdd-l1-l8-l11"),
1002 RPMH_VREG("ldo12", "ldo%s12", &pmic5_pldo_lv, "vdd-l7-l12-l14-l15"),
1003 RPMH_VREG("ldo13", "ldo%s13", &pmic5_pldo, "vdd-l13-l16-l17"),
1004 RPMH_VREG("ldo14", "ldo%s14", &pmic5_pldo_lv, "vdd-l7-l12-l14-l15"),
1005 RPMH_VREG("ldo15", "ldo%s15", &pmic5_pldo_lv, "vdd-l7-l12-l14-l15"),
1006 RPMH_VREG("ldo16", "ldo%s16", &pmic5_pldo, "vdd-l13-l16-l17"),
1007 RPMH_VREG("ldo17", "ldo%s17", &pmic5_pldo, "vdd-l13-l16-l17"),
1008 RPMH_VREG("ldo18", "ldo%s18", &pmic5_nldo, "vdd-l3-l4-l5-l18"),
1013 RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps510, "vdd-s1"),
1014 RPMH_VREG("smps2", "smp%s2", &pmic5_ftsmps510, "vdd-s2"),
1015 RPMH_VREG("smps3", "smp%s3", &pmic5_ftsmps510, "vdd-s3"),
1016 RPMH_VREG("smps4", "smp%s4", &pmic5_ftsmps510, "vdd-s4"),
1017 RPMH_VREG("smps5", "smp%s5", &pmic5_ftsmps510, "vdd-s5"),
1018 RPMH_VREG("smps6", "smp%s6", &pmic5_ftsmps510, "vdd-s6"),
1019 RPMH_VREG("smps7", "smp%s7", &pmic5_ftsmps510, "vdd-s7"),
1020 RPMH_VREG("smps8", "smp%s8", &pmic5_hfsmps510, "vdd-s8"),
1021 RPMH_VREG("ldo1", "ldo%s1", &pmic5_pldo_lv, "vdd-l1-l8"),
1022 RPMH_VREG("ldo2", "ldo%s2", &pmic5_nldo, "vdd-l2-l3"),
1023 RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo, "vdd-l2-l3"),
1024 RPMH_VREG("ldo4", "ldo%s4", &pmic5_pldo, "vdd-l4-l5-l6"),
1025 RPMH_VREG("ldo5", "ldo%s5", &pmic5_pldo, "vdd-l4-l5-l6"),
1026 RPMH_VREG("ldo6", "ldo%s6", &pmic5_pldo, "vdd-l4-l5-l6"),
1027 RPMH_VREG("ldo7", "ldo%s7", &pmic5_pldo, "vdd-l7-l11"),
1028 RPMH_VREG("ldo8", "ldo%s8", &pmic5_pldo_lv, "vdd-l1-l8"),
1029 RPMH_VREG("ldo9", "ldo%s9", &pmic5_pldo, "vdd-l9-l10"),
1030 RPMH_VREG("ldo10", "ldo%s10", &pmic5_pldo, "vdd-l9-l10"),
1031 RPMH_VREG("ldo11", "ldo%s11", &pmic5_pldo, "vdd-l7-l11"),
1032 RPMH_VREG("bob", "bob%s1", &pmic5_bob, "vdd-bob"),
1037 RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps510, "vdd-s1"),
1038 RPMH_VREG("smps2", "smp%s2", &pmic5_ftsmps510, "vdd-s2"),
1039 RPMH_VREG("smps3", "smp%s3", &pmic5_ftsmps510, "vdd-s3"),
1040 RPMH_VREG("smps4", "smp%s4", &pmic5_hfsmps510, "vdd-s4"),
1041 RPMH_VREG("smps5", "smp%s5", &pmic5_hfsmps510, "vdd-s5"),
1042 RPMH_VREG("smps6", "smp%s6", &pmic5_ftsmps510, "vdd-s6"),
1043 RPMH_VREG("smps7", "smp%s7", &pmic5_ftsmps510, "vdd-s7"),
1044 RPMH_VREG("smps8", "smp%s8", &pmic5_ftsmps510, "vdd-s8"),
1045 RPMH_VREG("smps9", "smp%s9", &pmic5_ftsmps510, "vdd-s9"),
1046 RPMH_VREG("smps10", "smp%s10", &pmic5_ftsmps510, "vdd-s10"),
1047 RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo, "vdd-l1-l8-l11"),
1048 RPMH_VREG("ldo2", "ldo%s2", &pmic5_pldo, "vdd-l2-l10"),
1049 RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo, "vdd-l3-l4-l5-l18"),
1050 RPMH_VREG("ldo4", "ldo%s4", &pmic5_nldo, "vdd-l3-l4-l5-l18"),
1051 RPMH_VREG("ldo5", "ldo%s5", &pmic5_nldo, "vdd-l3-l4-l5-l18"),
1052 RPMH_VREG("ldo6", "ldo%s6", &pmic5_nldo, "vdd-l6-l9"),
1053 RPMH_VREG("ldo7", "ldo%s7", &pmic5_pldo_lv, "vdd-l7-l12-l14-l15"),
1054 RPMH_VREG("ldo8", "ldo%s8", &pmic5_nldo, "vdd-l1-l8-l11"),
1055 RPMH_VREG("ldo9", "ldo%s9", &pmic5_nldo, "vdd-l6-l9"),
1056 RPMH_VREG("ldo10", "ldo%s10", &pmic5_pldo, "vdd-l2-l10"),
1057 RPMH_VREG("ldo11", "ldo%s11", &pmic5_nldo, "vdd-l1-l8-l11"),
1058 RPMH_VREG("ldo12", "ldo%s12", &pmic5_pldo_lv, "vdd-l7-l12-l14-l15"),
1059 RPMH_VREG("ldo13", "ldo%s13", &pmic5_pldo, "vdd-l13-l16-l17"),
1060 RPMH_VREG("ldo14", "ldo%s14", &pmic5_pldo_lv, "vdd-l7-l12-l14-l15"),
1061 RPMH_VREG("ldo15", "ldo%s15", &pmic5_pldo_lv, "vdd-l7-l12-l14-l15"),
1062 RPMH_VREG("ldo16", "ldo%s16", &pmic5_pldo, "vdd-l13-l16-l17"),
1063 RPMH_VREG("ldo17", "ldo%s17", &pmic5_pldo, "vdd-l13-l16-l17"),
1064 RPMH_VREG("ldo18", "ldo%s18", &pmic5_nldo, "vdd-l3-l4-l5-l18"),
1069 RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps527, "vdd-s1"),
1070 RPMH_VREG("smps2", "smp%s2", &pmic5_ftsmps527, "vdd-s2"),
1071 RPMH_VREG("smps3", "smp%s3", &pmic5_ftsmps527, "vdd-s3"),
1072 RPMH_VREG("smps4", "smp%s4", &pmic5_ftsmps527, "vdd-s4"),
1073 RPMH_VREG("smps5", "smp%s5", &pmic5_ftsmps527, "vdd-s5"),
1074 RPMH_VREG("smps6", "smp%s6", &pmic5_ftsmps527, "vdd-s6"),
1075 RPMH_VREG("smps7", "smp%s7", &pmic5_ftsmps527, "vdd-s7"),
1076 RPMH_VREG("smps8", "smp%s8", &pmic5_ftsmps527, "vdd-s8"),
1077 RPMH_VREG("smps9", "smp%s9", &pmic5_ftsmps527, "vdd-s9"),
1078 RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo515, "vdd-s9"),
1079 RPMH_VREG("ldo2", "ldo%s2", &pmic5_nldo515, "vdd-l2-l3"),
1080 RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo515, "vdd-l2-l3"),
1081 RPMH_VREG("ldo4", "ldo%s4", &pmic5_nldo515, "vdd-s9"),
1082 RPMH_VREG("ldo5", "ldo%s5", &pmic5_nldo515, "vdd-s9"),
1083 RPMH_VREG("ldo6", "ldo%s6", &pmic5_nldo515, "vdd-l6-l7"),
1084 RPMH_VREG("ldo7", "ldo%s7", &pmic5_nldo515, "vdd-l6-l7"),
1085 RPMH_VREG("ldo8", "ldo%s8", &pmic5_pldo515_mv, "vdd-l8-l9"),
1086 RPMH_VREG("ldo9", "ldo%s9", &pmic5_pldo, "vdd-l8-l9"),
1091 RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps510, "vdd-s1"),
1092 RPMH_VREG("smps2", "smp%s2", &pmic5_ftsmps510, "vdd-s2"),
1093 RPMH_VREG("smps3", "smp%s3", &pmic5_ftsmps510, "vdd-s3"),
1094 RPMH_VREG("smps4", "smp%s4", &pmic5_ftsmps510, "vdd-s4"),
1095 RPMH_VREG("smps5", "smp%s5", &pmic5_ftsmps510, "vdd-s5"),
1096 RPMH_VREG("smps6", "smp%s6", &pmic5_ftsmps510, "vdd-s6"),
1097 RPMH_VREG("smps7", "smp%s7", &pmic5_ftsmps510, "vdd-s7"),
1098 RPMH_VREG("smps8", "smp%s8", &pmic5_ftsmps510, "vdd-s8"),
1099 RPMH_VREG("smps9", "smp%s9", &pmic5_ftsmps510, "vdd-s9"),
1100 RPMH_VREG("smps10", "smp%s10", &pmic5_hfsmps510, "vdd-s10"),
1101 RPMH_VREG("smps11", "smp%s11", &pmic5_hfsmps510, "vdd-s11"),
1102 RPMH_VREG("smps12", "smp%s12", &pmic5_hfsmps510, "vdd-s12"),
1103 RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo, "vdd-l1-l4"),
1104 RPMH_VREG("ldo2", "ldo%s2", &pmic5_pldo, "vdd-l2-l7"),
1105 RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo, "vdd-l3-l5"),
1106 RPMH_VREG("ldo4", "ldo%s4", &pmic5_nldo, "vdd-l1-l4"),
1107 RPMH_VREG("ldo5", "ldo%s5", &pmic5_nldo, "vdd-l3-l5"),
1108 RPMH_VREG("ldo6", "ldo%s6", &pmic5_nldo, "vdd-l6-l9-l10"),
1109 RPMH_VREG("ldo7", "ldo%s7", &pmic5_pldo, "vdd-l2-l7"),
1110 RPMH_VREG("ldo8", "ldo%s8", &pmic5_nldo, "vdd-l8"),
1111 RPMH_VREG("ldo9", "ldo%s9", &pmic5_nldo, "vdd-l6-l9-l10"),
1112 RPMH_VREG("ldo10", "ldo%s10", &pmic5_nldo, "vdd-l6-l9-l10"),
1117 RPMH_VREG("smps1", "smp%s1", &pmic5_hfsmps515, "vdd-s1"),
1118 RPMH_VREG("smps2", "smp%s2", &pmic5_ftsmps510, "vdd-s2"),
1119 RPMH_VREG("smps3", "smp%s3", &pmic5_ftsmps510, "vdd-s3"),
1120 RPMH_VREG("smps4", "smp%s4", &pmic5_ftsmps510, "vdd-s4"),
1121 RPMH_VREG("smps5", "smp%s5", &pmic5_ftsmps510, "vdd-s5"),
1122 RPMH_VREG("smps6", "smp%s6", &pmic5_ftsmps510, "vdd-s6"),
1123 RPMH_VREG("smps7", "smp%s7", &pmic5_ftsmps510, "vdd-s7"),
1124 RPMH_VREG("smps8", "smp%s8", &pmic5_ftsmps510, "vdd-s8"),
1125 RPMH_VREG("smps9", "smp%s9", &pmic5_ftsmps510, "vdd-s9"),
1126 RPMH_VREG("smps10", "smp%s10", &pmic5_ftsmps510, "vdd-s10"),
1127 RPMH_VREG("ldo1", "ldo%s1", &pmic5_pldo_lv, "vdd-l1-l12"),
1128 RPMH_VREG("ldo2", "ldo%s2", &pmic5_pldo_lv, "vdd-l2-l8"),
1129 RPMH_VREG("ldo3", "ldo%s3", &pmic5_pldo, "vdd-l3-l4-l5-l7-l13"),
1130 RPMH_VREG("ldo4", "ldo%s4", &pmic5_pldo, "vdd-l3-l4-l5-l7-l13"),
1131 RPMH_VREG("ldo5", "ldo%s5", &pmic5_pldo, "vdd-l3-l4-l5-l7-l13"),
1132 RPMH_VREG("ldo6", "ldo%s6", &pmic5_pldo, "vdd-l6-l9-l11"),
1133 RPMH_VREG("ldo7", "ldo%s7", &pmic5_pldo, "vdd-l3-l4-l5-l7-l13"),
1134 RPMH_VREG("ldo8", "ldo%s8", &pmic5_pldo_lv, "vdd-l2-l8"),
1135 RPMH_VREG("ldo9", "ldo%s9", &pmic5_pldo, "vdd-l6-l9-l11"),
1136 RPMH_VREG("ldo10", "ldo%s10", &pmic5_nldo, "vdd-l10"),
1137 RPMH_VREG("ldo11", "ldo%s11", &pmic5_pldo, "vdd-l6-l9-l11"),
1138 RPMH_VREG("ldo12", "ldo%s12", &pmic5_pldo_lv, "vdd-l1-l12"),
1139 RPMH_VREG("ldo13", "ldo%s13", &pmic5_pldo, "vdd-l3-l4-l5-l7-l13"),
1140 RPMH_VREG("bob", "bob%s1", &pmic5_bob, "vdd-bob"),
1145 RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps520, "vdd-s1"),
1146 RPMH_VREG("smps2", "smp%s2", &pmic5_ftsmps520, "vdd-s2"),
1147 RPMH_VREG("smps3", "smp%s3", &pmic5_ftsmps520, "vdd-s3"),
1148 RPMH_VREG("smps4", "smp%s4", &pmic5_ftsmps520, "vdd-s4"),
1149 RPMH_VREG("smps5", "smp%s5", &pmic5_ftsmps520, "vdd-s5"),
1150 RPMH_VREG("smps6", "smp%s6", &pmic5_ftsmps520, "vdd-s6"),
1151 RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo, "vdd-l1"),
1152 RPMH_VREG("ldo2", "ldo%s2", &pmic5_nldo, "vdd-l2"),
1153 RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo, "vdd-l3"),
1154 RPMH_VREG("ldo4", "ldo%s4", &pmic5_pldo_lv, "vdd-l4"),
1159 RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo515, "vdd-l1-l4-l10"),
1160 RPMH_VREG("ldo2", "ldo%s2", &pmic5_pldo, "vdd-l2-l13-l14"),
1161 RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo515, "vdd-l3"),
1162 RPMH_VREG("ldo4", "ldo%s4", &pmic5_nldo515, "vdd-l1-l4-l10"),
1163 RPMH_VREG("ldo5", "ldo%s5", &pmic5_pldo, "vdd-l5-l16"),
1164 RPMH_VREG("ldo6", "ldo%s6", &pmic5_pldo, "vdd-l6-l7"),
1165 RPMH_VREG("ldo7", "ldo%s7", &pmic5_pldo, "vdd-l6-l7"),
1166 RPMH_VREG("ldo8", "ldo%s8", &pmic5_pldo, "vdd-l8-l9"),
1167 RPMH_VREG("ldo9", "ldo%s9", &pmic5_pldo, "vdd-l8-l9"),
1168 RPMH_VREG("ldo10", "ldo%s10", &pmic5_nldo515, "vdd-l1-l4-l10"),
1169 RPMH_VREG("ldo11", "ldo%s11", &pmic5_nldo515, "vdd-l11"),
1170 RPMH_VREG("ldo12", "ldo%s12", &pmic5_nldo515, "vdd-l12"),
1171 RPMH_VREG("ldo13", "ldo%s13", &pmic5_pldo, "vdd-l2-l13-l14"),
1172 RPMH_VREG("ldo14", "ldo%s14", &pmic5_pldo, "vdd-l2-l13-l14"),
1173 RPMH_VREG("ldo15", "ldo%s15", &pmic5_nldo515, "vdd-l15"),
1174 RPMH_VREG("ldo16", "ldo%s16", &pmic5_pldo, "vdd-l5-l16"),
1175 RPMH_VREG("ldo17", "ldo%s17", &pmic5_pldo, "vdd-l17"),
1176 RPMH_VREG("bob1", "bob%s1", &pmic5_bob, "vdd-bob1"),
1177 RPMH_VREG("bob2", "bob%s2", &pmic5_bob, "vdd-bob2"),
1182 RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps525, "vdd-s1"),
1183 RPMH_VREG("smps2", "smp%s2", &pmic5_ftsmps525, "vdd-s2"),
1184 RPMH_VREG("smps3", "smp%s3", &pmic5_ftsmps525, "vdd-s3"),
1185 RPMH_VREG("smps4", "smp%s4", &pmic5_ftsmps525, "vdd-s4"),
1186 RPMH_VREG("smps5", "smp%s5", &pmic5_ftsmps525, "vdd-s5"),
1187 RPMH_VREG("smps6", "smp%s6", &pmic5_ftsmps525, "vdd-s6"),
1188 RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo515, "vdd-l1"),
1189 RPMH_VREG("ldo2", "ldo%s2", &pmic5_nldo515, "vdd-l2"),
1190 RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo515, "vdd-l3"),
1195 RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps525, "vdd-s1"),
1196 RPMH_VREG("smps2", "smp%s2", &pmic5_ftsmps525, "vdd-s2"),
1197 RPMH_VREG("smps3", "smp%s3", &pmic5_ftsmps525, "vdd-s3"),
1198 RPMH_VREG("smps4", "smp%s4", &pmic5_ftsmps525, "vdd-s4"),
1199 RPMH_VREG("smps5", "smp%s5", &pmic5_ftsmps525, "vdd-s5"),
1200 RPMH_VREG("smps6", "smp%s6", &pmic5_ftsmps525, "vdd-s6"),
1201 RPMH_VREG("smps7", "smp%s7", &pmic5_ftsmps525, "vdd-s7"),
1202 RPMH_VREG("smps8", "smp%s8", &pmic5_ftsmps525, "vdd-s8"),
1203 RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo515, "vdd-l1"),
1204 RPMH_VREG("ldo2", "ldo%s2", &pmic5_nldo515, "vdd-l2"),
1205 RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo515, "vdd-l3"),
1210 RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps525, "vdd-s1"),
1211 RPMH_VREG("smps2", "smp%s2", &pmic5_ftsmps525, "vdd-s2"),
1212 RPMH_VREG("smps3", "smp%s3", &pmic5_ftsmps525, "vdd-s3"),
1213 RPMH_VREG("smps4", "smp%s4", &pmic5_ftsmps525, "vdd-s4"),
1214 RPMH_VREG("smps5", "smp%s5", &pmic5_ftsmps525, "vdd-s5"),
1215 RPMH_VREG("smps6", "smp%s6", &pmic5_ftsmps525, "vdd-s6"),
1216 RPMH_VREG("smps7", "smp%s7", &pmic5_ftsmps525, "vdd-s7"),
1217 RPMH_VREG("smps8", "smp%s8", &pmic5_ftsmps525, "vdd-s8"),
1218 RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo515, "vdd-l1"),
1219 RPMH_VREG("ldo2", "ldo%s2", &pmic5_nldo515, "vdd-l2"),
1220 RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo515, "vdd-l3"),
1225 RPMH_VREG("smps1", "smp%s1", &pmic5_hfsmps510, "vdd-s1"),
1226 RPMH_VREG("smps2", "smp%s2", &pmic5_hfsmps515, "vdd-s2"),
1227 RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo, "vdd-l1"),
1228 RPMH_VREG("ldo2", "ldo%s2", &pmic5_nldo, "vdd-l2"),
1229 RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo, "vdd-l3"),
1230 RPMH_VREG("ldo4", "ldo%s4", &pmic5_nldo, "vdd-l4"),
1231 RPMH_VREG("ldo5", "ldo%s5", &pmic5_pldo, "vdd-l5-l6"),
1232 RPMH_VREG("ldo6", "ldo%s6", &pmic5_pldo, "vdd-l5-l6"),
1233 RPMH_VREG("ldo7", "ldo%s7", &pmic5_pldo_lv, "vdd-l7"),
1238 RPMH_VREG("smps1", "smp%s1", &pmic5_hfsmps510, "vdd-s1"),
1239 RPMH_VREG("smps2", "smp%s2", &pmic5_hfsmps515_1, "vdd-s2"),
1240 RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo, "vdd-l1"),
1241 RPMH_VREG("ldo2", "ldo%s2", &pmic5_nldo, "vdd-l2"),
1242 RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo, "vdd-l3"),
1243 RPMH_VREG("ldo4", "ldo%s4", &pmic5_nldo, "vdd-l4"),
1244 RPMH_VREG("ldo5", "ldo%s5", &pmic5_pldo, "vdd-l5-l6"),
1245 RPMH_VREG("ldo6", "ldo%s6", &pmic5_pldo, "vdd-l5-l6"),
1246 RPMH_VREG("ldo7", "ldo%s7", &pmic5_pldo_lv, "vdd-l7"),
1251 RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo502, "vdd-l1-l2"),
1252 RPMH_VREG("ldo2", "ldo%s2", &pmic5_nldo502, "vdd-l1-l2"),
1253 RPMH_VREG("ldo3", "ldo%s3", &pmic5_pldo502ln, "vdd-l3-l4"),
1254 RPMH_VREG("ldo4", "ldo%s4", &pmic5_pldo502ln, "vdd-l3-l4"),
1255 RPMH_VREG("ldo5", "ldo%s5", &pmic5_pldo502, "vdd-l5"),
1256 RPMH_VREG("ldo6", "ldo%s6", &pmic5_pldo502ln, "vdd-l6"),
1257 RPMH_VREG("ldo7", "ldo%s7", &pmic5_pldo502, "vdd-l7"),
1261 RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps510, "vdd-s1"),
1262 RPMH_VREG("smps2", "smp%s2", &pmic5_ftsmps510, "vdd-s2"),
1263 RPMH_VREG("smps3", "smp%s3", &pmic5_ftsmps510, "vdd-s3"),
1264 RPMH_VREG("smps4", "smp%s4", &pmic5_hfsmps510, "vdd-s4"),
1265 RPMH_VREG("smps5", "smp%s5", &pmic5_hfsmps510, "vdd-s5"),
1266 RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo, "vdd-l1"),
1267 RPMH_VREG("ldo2", "ldo%s2", &pmic5_nldo, "vdd-l2-l3"),
1268 RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo, "vdd-l2-l3"),
1269 RPMH_VREG("ldo4", "ldo%s4", &pmic5_nldo, "vdd-l4-l7-l8"),
1270 RPMH_VREG("ldo5", "ldo%s5", &pmic5_pldo, "vdd-l5-l16-l17-l18-l19"),
1271 RPMH_VREG("ldo6", "ldo%s6", &pmic5_nldo, "vdd-l6"),
1272 RPMH_VREG("ldo7", "ldo%s7", &pmic5_nldo, "vdd-l4-l7-l8"),
1273 RPMH_VREG("ldo8", "ldo%s8", &pmic5_nldo, "vdd-l4-l7-l8"),
1274 RPMH_VREG("ldo9", "ldo%s9", &pmic5_nldo, "vdd-l9"),
1275 RPMH_VREG("ldo10", "ldo%s10", &pmic5_pldo_lv, "vdd-l10-l14-l15"),
1276 RPMH_VREG("ldo11", "ldo%s11", &pmic5_pldo_lv, "vdd-l11-l12-l13"),
1277 RPMH_VREG("ldo12", "ldo%s12", &pmic5_pldo_lv, "vdd-l11-l12-l13"),
1278 RPMH_VREG("ldo13", "ldo%s13", &pmic5_pldo_lv, "vdd-l11-l12-l13"),
1279 RPMH_VREG("ldo14", "ldo%s14", &pmic5_pldo_lv, "vdd-l10-l14-l15"),
1280 RPMH_VREG("ldo15", "ldo%s15", &pmic5_pldo_lv, "vdd-l10-l14-l15"),
1281 RPMH_VREG("ldo16", "ldo%s16", &pmic5_pldo, "vdd-l5-l16-l17-l18-l19"),
1282 RPMH_VREG("ldo17", "ldo%s17", &pmic5_pldo, "vdd-l5-l16-l17-l18-l19"),
1283 RPMH_VREG("ldo18", "ldo%s18", &pmic5_pldo, "vdd-l5-l16-l17-l18-l19"),
1284 RPMH_VREG("ldo19", "ldo%s19", &pmic5_pldo, "vdd-l5-l16-l17-l18-l19"),
1289 RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps510, "vdd-s1"),
1290 RPMH_VREG("smps2", "smp%s2", &pmic5_ftsmps510, "vdd-s2"),
1291 RPMH_VREG("smps3", "smp%s3", &pmic5_ftsmps510, "vdd-s3"),
1292 RPMH_VREG("smps4", "smp%s4", &pmic5_ftsmps510, "vdd-s4"),
1293 RPMH_VREG("smps5", "smp%s5", &pmic5_ftsmps510, "vdd-s5"),
1294 RPMH_VREG("smps6", "smp%s6", &pmic5_ftsmps510, "vdd-s6"),
1295 RPMH_VREG("smps7", "smp%s7", &pmic5_ftsmps510, "vdd-s7"),
1296 RPMH_VREG("smps8", "smp%s8", &pmic5_hfsmps510, "vdd-s8"),
1297 RPMH_VREG("ldo1", "ldo%s1", &pmic5_pldo_lv, "vdd-l1-l8"),
1298 RPMH_VREG("ldo2", "ldo%s2", &pmic5_nldo, "vdd-l2-l3"),
1299 RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo, "vdd-l2-l3"),
1300 RPMH_VREG("ldo4", "ldo%s4", &pmic5_pldo, "vdd-l4-l5-l6"),
1301 RPMH_VREG("ldo5", "ldo%s5", &pmic5_pldo, "vdd-l4-l5-l6"),
1302 RPMH_VREG("ldo6", "ldo%s6", &pmic5_pldo, "vdd-l4-l5-l6"),
1303 RPMH_VREG("ldo7", "ldo%s7", &pmic5_pldo, "vdd-l7-l11"),
1304 RPMH_VREG("ldo8", "ldo%s8", &pmic5_pldo, "vdd-l1-l8"),
1305 RPMH_VREG("ldo9", "ldo%s9", &pmic5_pldo, "vdd-l9-l10"),
1306 RPMH_VREG("ldo10", "ldo%s10", &pmic5_pldo, "vdd-l9-l10"),
1307 RPMH_VREG("ldo11", "ldo%s11", &pmic5_pldo, "vdd-l7-l11"),
1308 RPMH_VREG("bob", "bob%s1", &pmic5_bob, "vdd-bob"),
1315 /* smps3 - smps5 not configured */
1341 RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps510, "vdd-s1"),
1342 RPMH_VREG("smps2", "smp%s2", &pmic5_hfsmps510, "vdd-s2"),
1343 RPMH_VREG("smps3", "smp%s3", &pmic5_hfsmps510, "vdd-s3"),
1344 RPMH_VREG("smps4", "smp%s4", &pmic5_hfsmps510, "vdd-s4"),
1345 RPMH_VREG("smps5", "smp%s5", &pmic5_hfsmps510, "vdd-s5"),
1346 RPMH_VREG("smps6", "smp%s6", &pmic5_ftsmps510, "vdd-s6"),
1347 RPMH_VREG("smps7", "smp%s7", &pmic5_hfsmps510, "vdd-s7"),
1348 RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo, "vdd-l1-l2"),
1349 RPMH_VREG("ldo2", "ldo%s2", &pmic5_nldo, "vdd-l1-l2"),
1350 RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo, "vdd-l3-l9"),
1351 RPMH_VREG("ldo4", "ldo%s4", &pmic5_nldo, "vdd-l4-l12"),
1352 RPMH_VREG("ldo5", "ldo%s5", &pmic5_pldo, "vdd-l5-l6"),
1353 RPMH_VREG("ldo6", "ldo%s6", &pmic5_pldo, "vdd-l5-l6"),
1354 RPMH_VREG("ldo7", "ldo%s7", &pmic5_nldo, "vdd-l7-l8"),
1355 RPMH_VREG("ldo8", "ldo%s8", &pmic5_nldo, "vdd-l7-l8"),
1356 RPMH_VREG("ldo9", "ldo%s9", &pmic5_nldo, "vdd-l3-l9"),
1357 RPMH_VREG("ldo10", "ldo%s10", &pmic5_pldo, "vdd-l10-l11-l13"),
1358 RPMH_VREG("ldo11", "ldo%s11", &pmic5_pldo, "vdd-l10-l11-l13"),
1359 RPMH_VREG("ldo12", "ldo%s12", &pmic5_nldo, "vdd-l4-l12"),
1360 RPMH_VREG("ldo13", "ldo%s13", &pmic5_pldo, "vdd-l10-l11-l13"),
1361 RPMH_VREG("ldo14", "ldo%s14", &pmic5_nldo, "vdd-l14"),
1362 RPMH_VREG("ldo15", "ldo%s15", &pmic5_nldo, "vdd-l15"),
1363 RPMH_VREG("ldo16", "ldo%s16", &pmic5_pldo, "vdd-l16"),
1368 RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps510, "vdd-s1"),
1369 RPMH_VREG("smps2", "smp%s2", &pmic5_hfsmps510, "vdd-s2"),
1370 RPMH_VREG("smps3", "smp%s3", &pmic5_hfsmps510, "vdd-s3"),
1371 RPMH_VREG("smps4", "smp%s4", &pmic5_hfsmps510, "vdd-s4"),
1372 RPMH_VREG("smps5", "smp%s5", &pmic5_hfsmps510, "vdd-s5"),
1373 RPMH_VREG("smps6", "smp%s6", &pmic5_ftsmps510, "vdd-s6"),
1374 RPMH_VREG("smps7", "smp%s7", &pmic5_hfsmps510, "vdd-s7"),
1375 RPMH_VREG("smps8", "smp%s8", &pmic5_hfsmps510, "vdd-s8"),
1376 RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo, "vdd-l1"),
1377 RPMH_VREG("ldo2", "ldo%s2", &pmic5_nldo, "vdd-l2-l18"),
1378 RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo, "vdd-l3"),
1379 RPMH_VREG("ldo4", "ldo%s4", &pmic5_nldo, "vdd-l4"),
1380 RPMH_VREG("ldo5", "ldo%s5", &pmic5_pldo, "vdd-l5-l6-l16"),
1381 RPMH_VREG("ldo6", "ldo%s6", &pmic5_pldo, "vdd-l5-l6-l16"),
1382 RPMH_VREG("ldo7", "ldo%s7", &pmic5_nldo, "vdd-l7"),
1383 RPMH_VREG("ldo8", "ldo%s8", &pmic5_nldo, "vdd-l8-l9"),
1384 RPMH_VREG("ldo9", "ldo%s9", &pmic5_nldo, "vdd-l8-l9"),
1385 RPMH_VREG("ldo10", "ldo%s10", &pmic5_pldo, "vdd-l10"),
1386 RPMH_VREG("ldo11", "ldo%s11", &pmic5_pldo, "vdd-l11-l13"),
1387 RPMH_VREG("ldo12", "ldo%s12", &pmic5_nldo, "vdd-l12"),
1388 RPMH_VREG("ldo13", "ldo%s13", &pmic5_pldo, "vdd-l11-l13"),
1389 RPMH_VREG("ldo14", "ldo%s14", &pmic5_nldo, "vdd-l14"),
1390 RPMH_VREG("ldo15", "ldo%s15", &pmic5_nldo, "vdd-l15"),
1391 RPMH_VREG("ldo16", "ldo%s16", &pmic5_pldo, "vdd-l5-l6-l16"),
1392 RPMH_VREG("ldo17", "ldo%s17", &pmic5_nldo, "vdd-l17"),
1394 RPMH_VREG("ldo19", "ldo%s19", &pmic5_nldo, "vdd-l19"),
1395 RPMH_VREG("ldo20", "ldo%s20", &pmic5_nldo, "vdd-l20"),
1396 RPMH_VREG("ldo21", "ldo%s21", &pmic5_nldo, "vdd-l21"),
1401 RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps525, "vdd-s1"),
1402 RPMH_VREG("smps2", "smp%s2", &pmic5_ftsmps525, "vdd-s2"),
1403 RPMH_VREG("smps3", "smp%s3", &pmic5_ftsmps525, "vdd-s3"),
1404 RPMH_VREG("smps4", "smp%s4", &pmic5_ftsmps525, "vdd-s4"),
1405 RPMH_VREG("smps5", "smp%s5", &pmic5_ftsmps525, "vdd-s5"),
1406 RPMH_VREG("smps6", "smp%s6", &pmic5_ftsmps525, "vdd-s6"),
1407 RPMH_VREG("smps7", "smp%s7", &pmic5_ftsmps525, "vdd-s7"),
1408 RPMH_VREG("smps8", "smp%s8", &pmic5_ftsmps525, "vdd-s8"),
1409 RPMH_VREG("smps9", "smp%s9", &pmic5_ftsmps525, "vdd-s9"),
1410 RPMH_VREG("smps10", "smp%s10", &pmic5_ftsmps525, "vdd-s10"),
1411 RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo515, "vdd-l1"),
1412 RPMH_VREG("ldo2", "ldo%s2", &pmic5_nldo515, "vdd-l2-18"),
1413 RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo515, "vdd-l3"),
1414 RPMH_VREG("ldo4", "ldo%s4", &pmic5_nldo515, "vdd-l4-l16"),
1415 RPMH_VREG("ldo5", "ldo%s5", &pmic5_pldo_lv, "vdd-l5-l6"),
1416 RPMH_VREG("ldo6", "ldo%s6", &pmic5_pldo_lv, "vdd-l5-l6"),
1417 RPMH_VREG("ldo7", "ldo%s7", &pmic5_nldo515, "vdd-l7"),
1418 RPMH_VREG("ldo8", "ldo%s8", &pmic5_nldo515, "vdd-l8-l9"),
1419 RPMH_VREG("ldo9", "ldo%s9", &pmic5_nldo515, "vdd-l8-l9"),
1420 RPMH_VREG("ldo10", "ldo%s10", &pmic5_pldo, "vdd-l10"),
1421 RPMH_VREG("ldo11", "ldo%s11", &pmic5_pldo, "vdd-l11-l13"),
1422 RPMH_VREG("ldo12", "ldo%s12", &pmic5_nldo515, "vdd-l12"),
1423 RPMH_VREG("ldo13", "ldo%s13", &pmic5_pldo, "vdd-l11-l13"),
1424 RPMH_VREG("ldo14", "ldo%s14", &pmic5_nldo515, "vdd-l14"),
1425 RPMH_VREG("ldo15", "ldo%s15", &pmic5_nldo515, "vdd-l15"),
1426 RPMH_VREG("ldo16", "ldo%s16", &pmic5_nldo515, "vdd-l4-l16"),
1427 RPMH_VREG("ldo17", "ldo%s17", &pmic5_nldo515, "vdd-l17"),
1429 RPMH_VREG("ldo19", "ldo%s19", &pmic5_nldo515, "vdd-l19"),
1430 RPMH_VREG("ldo20", "ldo%s20", &pmic5_nldo515, "vdd-l20-l21"),
1431 RPMH_VREG("ldo21", "ldo%s21", &pmic5_nldo515, "vdd-l20-l21"),
1435 RPMH_VREG("smps1", "smp%s1", &pmic5_hfsmps510, "vdd-s1"),
1436 RPMH_VREG("smps2", "smp%s2", &pmic5_ftsmps520, "vdd-s2"),
1437 RPMH_VREG("smps3", "smp%s3", &pmic5_ftsmps520, "vdd-s3"),
1438 RPMH_VREG("smps4", "smp%s4", &pmic5_ftsmps520, "vdd-s4"),
1439 RPMH_VREG("smps5", "smp%s5", &pmic5_ftsmps520, "vdd-s5"),
1440 RPMH_VREG("smps6", "smp%s6", &pmic5_ftsmps520, "vdd-s6"),
1441 RPMH_VREG("smps7", "smp%s7", &pmic5_ftsmps520, "vdd-s7"),
1442 RPMH_VREG("smps8", "smp%s8", &pmic5_hfsmps510, "vdd-s8"),
1443 RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo, "vdd-l1-l4-l12-l15"),
1444 RPMH_VREG("ldo2", "ldo%s2", &pmic5_pldo, "vdd-l2-l7"),
1445 RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo, "vdd-l3"),
1446 RPMH_VREG("ldo4", "ldo%s4", &pmic5_nldo, "vdd-l1-l4-l12-l15"),
1447 RPMH_VREG("ldo5", "ldo%s5", &pmic5_nldo, "vdd-l5"),
1448 RPMH_VREG("ldo6", "ldo%s6", &pmic5_nldo, "vdd-l6-l9-l10"),
1449 RPMH_VREG("ldo7", "ldo%s7", &pmic5_pldo, "vdd-l2-l7"),
1450 RPMH_VREG("ldo8", "ldo%s8", &pmic5_nldo, "vdd-l8"),
1451 RPMH_VREG("ldo9", "ldo%s9", &pmic5_nldo, "vdd-l6-l9-l10"),
1452 RPMH_VREG("ldo10", "ldo%s10", &pmic5_nldo, "vdd-l6-l9-l10"),
1453 RPMH_VREG("ldo11", "ldo%s11", &pmic5_pldo_lv, "vdd-l11-l17-l18-l19"),
1454 RPMH_VREG("ldo12", "ldo%s12", &pmic5_nldo, "vdd-l1-l4-l12-l15"),
1455 RPMH_VREG("ldo13", "ldo%s13", &pmic5_nldo, "vdd-l13"),
1456 RPMH_VREG("ldo14", "ldo%s14", &pmic5_nldo, "vdd-l14-l16"),
1457 RPMH_VREG("ldo15", "ldo%s15", &pmic5_nldo, "vdd-l1-l4-l12-l15"),
1458 RPMH_VREG("ldo16", "ldo%s16", &pmic5_nldo, "vdd-l14-l16"),
1459 RPMH_VREG("ldo17", "ldo%s17", &pmic5_pldo_lv, "vdd-l11-l17-l18-l19"),
1460 RPMH_VREG("ldo18", "ldo%s18", &pmic5_pldo_lv, "vdd-l11-l17-l18-l19"),
1461 RPMH_VREG("ldo19", "ldo%s19", &pmic5_pldo_lv, "vdd-l11-l17-l18-l19"),
1466 RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps520, "vdd-s1"),
1467 RPMH_VREG("smps2", "smp%s2", &pmic5_ftsmps520, "vdd-s2"),
1468 RPMH_VREG("smps3", "smp%s3", &pmic5_hfsmps515, "vdd-s3"),
1469 RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo, "vdd-l1-l2"),
1470 RPMH_VREG("ldo2", "ldo%s2", &pmic5_nldo, "vdd-l1-l2"),
1471 RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo, "vdd-l3"),
1472 RPMH_VREG("ldo4", "ldo%s4", &pmic5_pldo_lv, "vdd-l4"),
1473 RPMH_VREG("ldo5", "ldo%s5", &pmic5_nldo, "vdd-l5-l6"),
1474 RPMH_VREG("ldo6", "ldo%s6", &pmic5_nldo, "vdd-l5-l6"),
1475 RPMH_VREG("ldo7", "ldo%s7", &pmic5_pldo, "vdd-l7-bob"),
1480 RPMH_VREG("smps1", "smp%s1", &pmic4_ftsmps426, "vdd-s1"),
1481 RPMH_VREG("smps2", "smp%s2", &pmic4_ftsmps426, "vdd-s2"),
1482 RPMH_VREG("smps3", "smp%s3", &pmic4_ftsmps426, "vdd-s3"),
1483 RPMH_VREG("smps4", "smp%s4", &pmic4_hfsmps3, "vdd-s4"),
1484 RPMH_VREG("smps5", "smp%s5", &pmic4_hfsmps3, "vdd-s5"),
1485 RPMH_VREG("smps6", "smp%s6", &pmic4_hfsmps3, "vdd-s6"),
1486 RPMH_VREG("ldo1", "ldo%s1", &pmic4_nldo, "vdd-l1-l6-l7"),
1487 RPMH_VREG("ldo2", "ldo%s2", &pmic4_nldo, "vdd-l2-l3"),
1488 RPMH_VREG("ldo3", "ldo%s3", &pmic4_nldo, "vdd-l2-l3"),
1490 RPMH_VREG("ldo5", "ldo%s5", &pmic4_nldo, "vdd-l5"),
1491 RPMH_VREG("ldo6", "ldo%s6", &pmic4_nldo, "vdd-l1-l6-l7"),
1492 RPMH_VREG("ldo7", "ldo%s7", &pmic4_nldo, "vdd-l1-l6-l7"),
1493 RPMH_VREG("ldo8", "ldo%s8", &pmic4_pldo_lv, "vdd-l8-l9-l10-l11-l12-l13-l14"),
1494 RPMH_VREG("ldo9", "ldo%s9", &pmic4_pldo_lv, "vdd-l8-l9-l10-l11-l12-l13-l14"),
1495 RPMH_VREG("ldo10", "ldo%s10", &pmic4_pldo_lv, "vdd-l8-l9-l10-l11-l12-l13-l14"),
1496 RPMH_VREG("ldo11", "ldo%s11", &pmic4_pldo_lv, "vdd-l8-l9-l10-l11-l12-l13-l14"),
1497 RPMH_VREG("ldo12", "ldo%s12", &pmic4_pldo_lv, "vdd-l8-l9-l10-l11-l12-l13-l14"),
1498 RPMH_VREG("ldo13", "ldo%s13", &pmic4_pldo_lv, "vdd-l8-l9-l10-l11-l12-l13-l14"),
1499 RPMH_VREG("ldo14", "ldo%s14", &pmic4_pldo_lv, "vdd-l8-l9-l10-l11-l12-l13-l14"),
1500 RPMH_VREG("ldo15", "ldo%s15", &pmic4_pldo, "vdd-l15-l16-l17-l18-l19"),
1501 RPMH_VREG("ldo16", "ldo%s16", &pmic4_pldo, "vdd-l15-l16-l17-l18-l19"),
1502 RPMH_VREG("ldo17", "ldo%s17", &pmic4_pldo, "vdd-l15-l16-l17-l18-l19"),
1503 RPMH_VREG("ldo18", "ldo%s18", &pmic4_pldo, "vdd-l15-l16-l17-l18-l19"),
1504 RPMH_VREG("ldo19", "ldo%s19", &pmic4_pldo, "vdd-l15-l16-l17-l18-l19"),
1509 RPMH_VREG("smps1", "smp%s1", &pmic4_ftsmps426, "vdd-s1"),
1510 RPMH_VREG("smps2", "smp%s2", &pmic4_ftsmps426, "vdd-s2"),
1511 RPMH_VREG("smps3", "smp%s3", &pmic4_ftsmps426, "vdd-s3-s4"),
1512 RPMH_VREG("smps5", "smp%s5", &pmic4_ftsmps426, "vdd-s5"),
1513 RPMH_VREG("ldo1", "ldo%s1", &pmic4_nldo, "vdd-l1-l9-l10"),
1514 RPMH_VREG("ldo2", "ldo%s2", &pmic4_pldo, "vdd-l2"),
1515 RPMH_VREG("ldo3", "ldo%s3", &pmic4_pldo, "vdd-l3-l5-l7-l8"),
1516 RPMH_VREG("ldo4", "ldo%s4", &pmic4_pldo, "vdd-l4-l6"),
1517 RPMH_VREG("ldo5", "ldo%s5", &pmic4_pldo, "vdd-l3-l5-l7-l8"),
1518 RPMH_VREG("ldo6", "ldo%s6", &pmic4_pldo, "vdd-l4-l6"),
1519 RPMH_VREG("ldo7", "ldo%s7", &pmic4_pldo, "vdd-l3-l5-l7-l8"),
1520 RPMH_VREG("ldo8", "ldo%s8", &pmic4_pldo, "vdd-l3-l5-l7-l8"),
1521 RPMH_VREG("bob", "bob%s1", &pmic4_bob, "vdd-bob"),
1527 struct device *dev = &pdev->dev; in rpmh_regulator_probe()
1535 return -ENODEV; in rpmh_regulator_probe()
1537 ret = of_property_read_string(dev->of_node, "qcom,pmic-id", &pmic_id); in rpmh_regulator_probe()
1539 dev_err(dev, "qcom,pmic-id missing in DT node\n"); in rpmh_regulator_probe()
1543 for_each_available_child_of_node_scoped(dev->of_node, node) { in rpmh_regulator_probe()
1546 return -ENOMEM; in rpmh_regulator_probe()
1559 .compatible = "qcom,pm8005-rpmh-regulators",
1563 .compatible = "qcom,pm8009-rpmh-regulators",
1567 .compatible = "qcom,pm8009-1-rpmh-regulators",
1571 .compatible = "qcom,pm8010-rpmh-regulators",
1575 .compatible = "qcom,pm8150-rpmh-regulators",
1579 .compatible = "qcom,pm8150l-rpmh-regulators",
1583 .compatible = "qcom,pm8350-rpmh-regulators",
1587 .compatible = "qcom,pm8350c-rpmh-regulators",
1591 .compatible = "qcom,pm8450-rpmh-regulators",
1595 .compatible = "qcom,pm8550-rpmh-regulators",
1599 .compatible = "qcom,pm8550ve-rpmh-regulators",
1603 .compatible = "qcom,pm8550vs-rpmh-regulators",
1607 .compatible = "qcom,pm8998-rpmh-regulators",
1611 .compatible = "qcom,pmg1110-rpmh-regulators",
1615 .compatible = "qcom,pmi8998-rpmh-regulators",
1619 .compatible = "qcom,pm6150-rpmh-regulators",
1623 .compatible = "qcom,pm6150l-rpmh-regulators",
1627 .compatible = "qcom,pm6350-rpmh-regulators",
1631 .compatible = "qcom,pmc8180-rpmh-regulators",
1635 .compatible = "qcom,pmc8180c-rpmh-regulators",
1639 .compatible = "qcom,pmc8380-rpmh-regulators",
1643 .compatible = "qcom,pmm8155au-rpmh-regulators",
1647 .compatible = "qcom,pmm8654au-rpmh-regulators",
1651 .compatible = "qcom,pmx55-rpmh-regulators",
1655 .compatible = "qcom,pmx65-rpmh-regulators",
1659 .compatible = "qcom,pmx75-rpmh-regulators",
1663 .compatible = "qcom,pm7325-rpmh-regulators",
1667 .compatible = "qcom,pmr735a-rpmh-regulators",
1671 .compatible = "qcom,pm660-rpmh-regulators",
1675 .compatible = "qcom,pm660l-rpmh-regulators",
1684 .name = "qcom-rpmh-regulator",
1692 MODULE_DESCRIPTION("Qualcomm RPMh regulator driver");