Lines Matching +full:vdd +full:- +full:l2 +full:- +full:l18 +full:- +full:supply

1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2018-2021, The Linux Foundation. All rights reserved.
17 #include <soc/qcom/cmd-db.h>
20 #include <dt-bindings/regulator/qcom,rpmh-regulator.h>
23 * enum rpmh_regulator_type - supported RPMh accelerator types
67 * struct rpmh_vreg_hw_data - RPMh regulator hardware configurations
96 * struct rpmh_vreg - individual RPMh regulator data structure encapsulating a
98 * @dev: Device pointer for the top-level PMIC RPMh
109 * state (e.g. enabled --> disabled).
113 * bypass (pass-through) mode or not. This is
114 * only used by BOB rpmh-regulator resources.
133 * struct rpmh_vreg_init_data - initialization data for an RPMh regulator
138 * is filled at run-time with the PMIC ID provided
139 * by device tree property qcom,pmic-id. Example:
141 * @supply_name: Parent supply regulator name
152 * rpmh_regulator_send_request() - send the request to RPMh
165 if (wait_for_ack || vreg->always_wait_for_ack) in rpmh_regulator_send_request()
166 ret = rpmh_write(vreg->dev, RPMH_ACTIVE_ONLY_STATE, cmd, 1); in rpmh_regulator_send_request()
168 ret = rpmh_write_async(vreg->dev, RPMH_ACTIVE_ONLY_STATE, cmd, in rpmh_regulator_send_request()
179 .addr = vreg->addr + RPMH_REGULATOR_REG_VRM_VOLTAGE, in _rpmh_regulator_vrm_set_voltage_sel()
189 vreg->voltage_selector = selector; in _rpmh_regulator_vrm_set_voltage_sel()
199 if (vreg->enabled == -EINVAL) { in rpmh_regulator_vrm_set_voltage_sel()
204 vreg->voltage_selector = selector; in rpmh_regulator_vrm_set_voltage_sel()
209 selector > vreg->voltage_selector); in rpmh_regulator_vrm_set_voltage_sel()
216 return vreg->voltage_selector; in rpmh_regulator_vrm_get_voltage_sel()
223 return vreg->enabled; in rpmh_regulator_is_enabled()
231 .addr = vreg->addr + RPMH_REGULATOR_REG_ENABLE, in rpmh_regulator_set_enable_state()
236 if (vreg->enabled == -EINVAL && in rpmh_regulator_set_enable_state()
237 vreg->voltage_selector != -ENOTRECOVERABLE) { in rpmh_regulator_set_enable_state()
239 vreg->voltage_selector, true); in rpmh_regulator_set_enable_state()
246 vreg->enabled = enable; in rpmh_regulator_set_enable_state()
265 .addr = vreg->addr + RPMH_REGULATOR_REG_VRM_MODE, in rpmh_regulator_vrm_set_mode_bypass()
270 return -EINVAL; in rpmh_regulator_vrm_set_mode_bypass()
272 pmic_mode = vreg->hw_data->pmic_mode_map[mode]; in rpmh_regulator_vrm_set_mode_bypass()
290 if (mode == vreg->mode) in rpmh_regulator_vrm_set_mode()
293 ret = rpmh_regulator_vrm_set_mode_bypass(vreg, mode, vreg->bypassed); in rpmh_regulator_vrm_set_mode()
295 vreg->mode = mode; in rpmh_regulator_vrm_set_mode()
304 return vreg->mode; in rpmh_regulator_vrm_get_mode()
308 * rpmh_regulator_vrm_get_optimum_mode() - get the mode based on the load
309 * @rdev: Regulator device pointer for the rpmh-regulator
324 if (load_uA >= vreg->hw_data->hpm_min_load_uA) in rpmh_regulator_vrm_get_optimum_mode()
336 if (vreg->bypassed == enable) in rpmh_regulator_vrm_set_bypass()
339 ret = rpmh_regulator_vrm_set_mode_bypass(vreg, vreg->mode, enable); in rpmh_regulator_vrm_set_bypass()
341 vreg->bypassed = enable; in rpmh_regulator_vrm_set_bypass()
351 *enable = vreg->bypassed; in rpmh_regulator_vrm_get_bypass()
399 * rpmh_regulator_init_vreg() - initialize all attributes of an rpmh-regulator
400 * @vreg: Pointer to the individual rpmh-regulator resource
401 * @dev: Pointer to the top level rpmh-regulator PMIC device
402 * @node: Pointer to the individual rpmh-regulator resource
404 * @pmic_id: String used to identify the top level rpmh-regulator
406 * @pmic_rpmh_data: Pointer to a null-terminated array of rpmh-regulator
422 vreg->dev = dev; in rpmh_regulator_init_vreg()
424 for (rpmh_data = pmic_rpmh_data; rpmh_data->name; rpmh_data++) in rpmh_regulator_init_vreg()
425 if (of_node_name_eq(node, rpmh_data->name)) in rpmh_regulator_init_vreg()
428 if (!rpmh_data->name) { in rpmh_regulator_init_vreg()
430 return -EINVAL; in rpmh_regulator_init_vreg()
434 rpmh_data->resource_name, pmic_id); in rpmh_regulator_init_vreg()
436 vreg->addr = cmd_db_read_addr(rpmh_resource_name); in rpmh_regulator_init_vreg()
437 if (!vreg->addr) { in rpmh_regulator_init_vreg()
440 return -ENODEV; in rpmh_regulator_init_vreg()
443 vreg->rdesc.name = rpmh_data->name; in rpmh_regulator_init_vreg()
444 vreg->rdesc.supply_name = rpmh_data->supply_name; in rpmh_regulator_init_vreg()
445 vreg->hw_data = rpmh_data->hw_data; in rpmh_regulator_init_vreg()
447 vreg->enabled = -EINVAL; in rpmh_regulator_init_vreg()
448 vreg->voltage_selector = -ENOTRECOVERABLE; in rpmh_regulator_init_vreg()
449 vreg->mode = REGULATOR_MODE_INVALID; in rpmh_regulator_init_vreg()
451 if (rpmh_data->hw_data->n_voltages) { in rpmh_regulator_init_vreg()
452 vreg->rdesc.linear_ranges = &rpmh_data->hw_data->voltage_range; in rpmh_regulator_init_vreg()
453 vreg->rdesc.n_linear_ranges = 1; in rpmh_regulator_init_vreg()
454 vreg->rdesc.n_voltages = rpmh_data->hw_data->n_voltages; in rpmh_regulator_init_vreg()
457 vreg->always_wait_for_ack = of_property_read_bool(node, in rpmh_regulator_init_vreg()
458 "qcom,always-wait-for-ack"); in rpmh_regulator_init_vreg()
460 vreg->rdesc.owner = THIS_MODULE; in rpmh_regulator_init_vreg()
461 vreg->rdesc.type = REGULATOR_VOLTAGE; in rpmh_regulator_init_vreg()
462 vreg->rdesc.ops = vreg->hw_data->ops; in rpmh_regulator_init_vreg()
463 vreg->rdesc.of_map_mode = vreg->hw_data->of_map_mode; in rpmh_regulator_init_vreg()
465 init_data = of_get_regulator_init_data(dev, node, &vreg->rdesc); in rpmh_regulator_init_vreg()
467 return -ENOMEM; in rpmh_regulator_init_vreg()
469 if (rpmh_data->hw_data->regulator_type == XOB && in rpmh_regulator_init_vreg()
470 init_data->constraints.min_uV && in rpmh_regulator_init_vreg()
471 init_data->constraints.min_uV == init_data->constraints.max_uV) { in rpmh_regulator_init_vreg()
472 vreg->rdesc.fixed_uV = init_data->constraints.min_uV; in rpmh_regulator_init_vreg()
473 vreg->rdesc.n_voltages = 1; in rpmh_regulator_init_vreg()
481 rdev = devm_regulator_register(dev, &vreg->rdesc, &reg_config); in rpmh_regulator_init_vreg()
490 node, rpmh_resource_name, vreg->addr); in rpmh_regulator_init_vreg()
496 [REGULATOR_MODE_INVALID] = -EINVAL,
500 [REGULATOR_MODE_FAST] = -EINVAL,
504 [REGULATOR_MODE_INVALID] = -EINVAL,
508 [REGULATOR_MODE_FAST] = -EINVAL,
534 [REGULATOR_MODE_INVALID] = -EINVAL,
542 [REGULATOR_MODE_INVALID] = -EINVAL,
576 [REGULATOR_MODE_INVALID] = -EINVAL,
577 [REGULATOR_MODE_STANDBY] = -EINVAL,
584 [REGULATOR_MODE_INVALID] = -EINVAL,
585 [REGULATOR_MODE_STANDBY] = -EINVAL,
816 RPMH_VREG("smps1", "smp%s1", &pmic4_ftsmps426, "vdd-s1"),
817 RPMH_VREG("smps2", "smp%s2", &pmic4_ftsmps426, "vdd-s2"),
818 RPMH_VREG("smps3", "smp%s3", &pmic4_hfsmps3, "vdd-s3"),
819 RPMH_VREG("smps4", "smp%s4", &pmic4_hfsmps3, "vdd-s4"),
820 RPMH_VREG("smps5", "smp%s5", &pmic4_hfsmps3, "vdd-s5"),
821 RPMH_VREG("smps6", "smp%s6", &pmic4_ftsmps426, "vdd-s6"),
822 RPMH_VREG("smps7", "smp%s7", &pmic4_ftsmps426, "vdd-s7"),
823 RPMH_VREG("smps8", "smp%s8", &pmic4_ftsmps426, "vdd-s8"),
824 RPMH_VREG("smps9", "smp%s9", &pmic4_ftsmps426, "vdd-s9"),
825 RPMH_VREG("smps10", "smp%s10", &pmic4_ftsmps426, "vdd-s10"),
826 RPMH_VREG("smps11", "smp%s11", &pmic4_ftsmps426, "vdd-s11"),
827 RPMH_VREG("smps12", "smp%s12", &pmic4_ftsmps426, "vdd-s12"),
828 RPMH_VREG("smps13", "smp%s13", &pmic4_ftsmps426, "vdd-s13"),
829 RPMH_VREG("ldo1", "ldo%s1", &pmic4_nldo, "vdd-l1-l27"),
830 RPMH_VREG("ldo2", "ldo%s2", &pmic4_nldo, "vdd-l2-l8-l17"),
831 RPMH_VREG("ldo3", "ldo%s3", &pmic4_nldo, "vdd-l3-l11"),
832 RPMH_VREG("ldo4", "ldo%s4", &pmic4_nldo, "vdd-l4-l5"),
833 RPMH_VREG("ldo5", "ldo%s5", &pmic4_nldo, "vdd-l4-l5"),
834 RPMH_VREG("ldo6", "ldo%s6", &pmic4_pldo, "vdd-l6"),
835 RPMH_VREG("ldo7", "ldo%s7", &pmic4_pldo_lv, "vdd-l7-l12-l14-l15"),
836 RPMH_VREG("ldo8", "ldo%s8", &pmic4_nldo, "vdd-l2-l8-l17"),
837 RPMH_VREG("ldo9", "ldo%s9", &pmic4_pldo, "vdd-l9"),
838 RPMH_VREG("ldo10", "ldo%s10", &pmic4_pldo, "vdd-l10-l23-l25"),
839 RPMH_VREG("ldo11", "ldo%s11", &pmic4_nldo, "vdd-l3-l11"),
840 RPMH_VREG("ldo12", "ldo%s12", &pmic4_pldo_lv, "vdd-l7-l12-l14-l15"),
841 RPMH_VREG("ldo13", "ldo%s13", &pmic4_pldo, "vdd-l13-l19-l21"),
842 RPMH_VREG("ldo14", "ldo%s14", &pmic4_pldo_lv, "vdd-l7-l12-l14-l15"),
843 RPMH_VREG("ldo15", "ldo%s15", &pmic4_pldo_lv, "vdd-l7-l12-l14-l15"),
844 RPMH_VREG("ldo16", "ldo%s16", &pmic4_pldo, "vdd-l16-l28"),
845 RPMH_VREG("ldo17", "ldo%s17", &pmic4_nldo, "vdd-l2-l8-l17"),
846 RPMH_VREG("ldo18", "ldo%s18", &pmic4_pldo, "vdd-l18-l22"),
847 RPMH_VREG("ldo19", "ldo%s19", &pmic4_pldo, "vdd-l13-l19-l21"),
848 RPMH_VREG("ldo20", "ldo%s20", &pmic4_pldo, "vdd-l20-l24"),
849 RPMH_VREG("ldo21", "ldo%s21", &pmic4_pldo, "vdd-l13-l19-l21"),
850 RPMH_VREG("ldo22", "ldo%s22", &pmic4_pldo, "vdd-l18-l22"),
851 RPMH_VREG("ldo23", "ldo%s23", &pmic4_pldo, "vdd-l10-l23-l25"),
852 RPMH_VREG("ldo24", "ldo%s24", &pmic4_pldo, "vdd-l20-l24"),
853 RPMH_VREG("ldo25", "ldo%s25", &pmic4_pldo, "vdd-l10-l23-l25"),
854 RPMH_VREG("ldo26", "ldo%s26", &pmic4_nldo, "vdd-l26"),
855 RPMH_VREG("ldo27", "ldo%s27", &pmic4_nldo, "vdd-l1-l27"),
856 RPMH_VREG("ldo28", "ldo%s28", &pmic4_pldo, "vdd-l16-l28"),
857 RPMH_VREG("lvs1", "vs%s1", &pmic4_lvs, "vin-lvs-1-2"),
858 RPMH_VREG("lvs2", "vs%s2", &pmic4_lvs, "vin-lvs-1-2"),
863 RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps510, "vdd-s1"),
868 RPMH_VREG("bob", "bob%s1", &pmic4_bob, "vdd-bob"),
873 RPMH_VREG("smps1", "smp%s1", &pmic4_ftsmps426, "vdd-s1"),
874 RPMH_VREG("smps2", "smp%s2", &pmic4_ftsmps426, "vdd-s2"),
875 RPMH_VREG("smps3", "smp%s3", &pmic4_ftsmps426, "vdd-s3"),
876 RPMH_VREG("smps4", "smp%s4", &pmic4_ftsmps426, "vdd-s4"),
881 RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps510, "vdd-s1"),
882 RPMH_VREG("smps2", "smp%s2", &pmic5_ftsmps510, "vdd-s2"),
883 RPMH_VREG("smps3", "smp%s3", &pmic5_ftsmps510, "vdd-s3"),
884 RPMH_VREG("smps4", "smp%s4", &pmic5_hfsmps510, "vdd-s4"),
885 RPMH_VREG("smps5", "smp%s5", &pmic5_hfsmps510, "vdd-s5"),
886 RPMH_VREG("smps6", "smp%s6", &pmic5_ftsmps510, "vdd-s6"),
887 RPMH_VREG("smps7", "smp%s7", &pmic5_ftsmps510, "vdd-s7"),
888 RPMH_VREG("smps8", "smp%s8", &pmic5_ftsmps510, "vdd-s8"),
889 RPMH_VREG("smps9", "smp%s9", &pmic5_ftsmps510, "vdd-s9"),
890 RPMH_VREG("smps10", "smp%s10", &pmic5_ftsmps510, "vdd-s10"),
891 RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo, "vdd-l1-l8-l11"),
892 RPMH_VREG("ldo2", "ldo%s2", &pmic5_pldo, "vdd-l2-l10"),
893 RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo, "vdd-l3-l4-l5-l18"),
894 RPMH_VREG("ldo4", "ldo%s4", &pmic5_nldo, "vdd-l3-l4-l5-l18"),
895 RPMH_VREG("ldo5", "ldo%s5", &pmic5_nldo, "vdd-l3-l4-l5-l18"),
896 RPMH_VREG("ldo6", "ldo%s6", &pmic5_nldo, "vdd-l6-l9"),
897 RPMH_VREG("ldo7", "ldo%s7", &pmic5_pldo, "vdd-l7-l12-l14-l15"),
898 RPMH_VREG("ldo8", "ldo%s8", &pmic5_nldo, "vdd-l1-l8-l11"),
899 RPMH_VREG("ldo9", "ldo%s9", &pmic5_nldo, "vdd-l6-l9"),
900 RPMH_VREG("ldo10", "ldo%s10", &pmic5_pldo, "vdd-l2-l10"),
901 RPMH_VREG("ldo11", "ldo%s11", &pmic5_nldo, "vdd-l1-l8-l11"),
902 RPMH_VREG("ldo12", "ldo%s12", &pmic5_pldo_lv, "vdd-l7-l12-l14-l15"),
903 RPMH_VREG("ldo13", "ldo%s13", &pmic5_pldo, "vdd-l13-l16-l17"),
904 RPMH_VREG("ldo14", "ldo%s14", &pmic5_pldo_lv, "vdd-l7-l12-l14-l15"),
905 RPMH_VREG("ldo15", "ldo%s15", &pmic5_pldo_lv, "vdd-l7-l12-l14-l15"),
906 RPMH_VREG("ldo16", "ldo%s16", &pmic5_pldo, "vdd-l13-l16-l17"),
907 RPMH_VREG("ldo17", "ldo%s17", &pmic5_pldo, "vdd-l13-l16-l17"),
908 RPMH_VREG("ldo18", "ldo%s18", &pmic5_nldo, "vdd-l3-l4-l5-l18"),
913 RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps510, "vdd-s1"),
914 RPMH_VREG("smps2", "smp%s2", &pmic5_ftsmps510, "vdd-s2"),
915 RPMH_VREG("smps3", "smp%s3", &pmic5_ftsmps510, "vdd-s3"),
916 RPMH_VREG("smps4", "smp%s4", &pmic5_ftsmps510, "vdd-s4"),
917 RPMH_VREG("smps5", "smp%s5", &pmic5_ftsmps510, "vdd-s5"),
918 RPMH_VREG("smps6", "smp%s6", &pmic5_ftsmps510, "vdd-s6"),
919 RPMH_VREG("smps7", "smp%s7", &pmic5_ftsmps510, "vdd-s7"),
920 RPMH_VREG("smps8", "smp%s8", &pmic5_hfsmps510, "vdd-s8"),
921 RPMH_VREG("ldo1", "ldo%s1", &pmic5_pldo_lv, "vdd-l1-l8"),
922 RPMH_VREG("ldo2", "ldo%s2", &pmic5_nldo, "vdd-l2-l3"),
923 RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo, "vdd-l2-l3"),
924 RPMH_VREG("ldo4", "ldo%s4", &pmic5_pldo, "vdd-l4-l5-l6"),
925 RPMH_VREG("ldo5", "ldo%s5", &pmic5_pldo, "vdd-l4-l5-l6"),
926 RPMH_VREG("ldo6", "ldo%s6", &pmic5_pldo, "vdd-l4-l5-l6"),
927 RPMH_VREG("ldo7", "ldo%s7", &pmic5_pldo, "vdd-l7-l11"),
928 RPMH_VREG("ldo8", "ldo%s8", &pmic5_pldo_lv, "vdd-l1-l8"),
929 RPMH_VREG("ldo9", "ldo%s9", &pmic5_pldo, "vdd-l9-l10"),
930 RPMH_VREG("ldo10", "ldo%s10", &pmic5_pldo, "vdd-l9-l10"),
931 RPMH_VREG("ldo11", "ldo%s11", &pmic5_pldo, "vdd-l7-l11"),
932 RPMH_VREG("bob", "bob%s1", &pmic5_bob, "vdd-bob"),
937 RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps510, "vdd-s1"),
938 RPMH_VREG("smps2", "smp%s2", &pmic5_ftsmps510, "vdd-s2"),
939 RPMH_VREG("smps3", "smp%s3", &pmic5_ftsmps510, "vdd-s3"),
940 RPMH_VREG("smps4", "smp%s4", &pmic5_hfsmps510, "vdd-s4"),
941 RPMH_VREG("smps5", "smp%s5", &pmic5_hfsmps510, "vdd-s5"),
942 RPMH_VREG("smps6", "smp%s6", &pmic5_ftsmps510, "vdd-s6"),
943 RPMH_VREG("smps7", "smp%s7", &pmic5_ftsmps510, "vdd-s7"),
944 RPMH_VREG("smps8", "smp%s8", &pmic5_ftsmps510, "vdd-s8"),
945 RPMH_VREG("smps9", "smp%s9", &pmic5_ftsmps510, "vdd-s9"),
946 RPMH_VREG("smps10", "smp%s10", &pmic5_ftsmps510, "vdd-s10"),
947 RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo, "vdd-l1-l8-l11"),
948 RPMH_VREG("ldo2", "ldo%s2", &pmic5_pldo, "vdd-l2-l10"),
949 RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo, "vdd-l3-l4-l5-l18"),
950 RPMH_VREG("ldo4", "ldo%s4", &pmic5_nldo, "vdd-l3-l4-l5-l18"),
951 RPMH_VREG("ldo5", "ldo%s5", &pmic5_nldo, "vdd-l3-l4-l5-l18"),
952 RPMH_VREG("ldo6", "ldo%s6", &pmic5_nldo, "vdd-l6-l9"),
953 RPMH_VREG("ldo7", "ldo%s7", &pmic5_pldo_lv, "vdd-l7-l12-l14-l15"),
954 RPMH_VREG("ldo8", "ldo%s8", &pmic5_nldo, "vdd-l1-l8-l11"),
955 RPMH_VREG("ldo9", "ldo%s9", &pmic5_nldo, "vdd-l6-l9"),
956 RPMH_VREG("ldo10", "ldo%s10", &pmic5_pldo, "vdd-l2-l10"),
957 RPMH_VREG("ldo11", "ldo%s11", &pmic5_nldo, "vdd-l1-l8-l11"),
958 RPMH_VREG("ldo12", "ldo%s12", &pmic5_pldo_lv, "vdd-l7-l12-l14-l15"),
959 RPMH_VREG("ldo13", "ldo%s13", &pmic5_pldo, "vdd-l13-l16-l17"),
960 RPMH_VREG("ldo14", "ldo%s14", &pmic5_pldo_lv, "vdd-l7-l12-l14-l15"),
961 RPMH_VREG("ldo15", "ldo%s15", &pmic5_pldo_lv, "vdd-l7-l12-l14-l15"),
962 RPMH_VREG("ldo16", "ldo%s16", &pmic5_pldo, "vdd-l13-l16-l17"),
963 RPMH_VREG("ldo17", "ldo%s17", &pmic5_pldo, "vdd-l13-l16-l17"),
964 RPMH_VREG("ldo18", "ldo%s18", &pmic5_nldo, "vdd-l3-l4-l5-l18"),
969 RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps527, "vdd-s1"),
970 RPMH_VREG("smps2", "smp%s2", &pmic5_ftsmps527, "vdd-s2"),
971 RPMH_VREG("smps3", "smp%s3", &pmic5_ftsmps527, "vdd-s3"),
972 RPMH_VREG("smps4", "smp%s4", &pmic5_ftsmps527, "vdd-s4"),
973 RPMH_VREG("smps5", "smp%s5", &pmic5_ftsmps527, "vdd-s5"),
974 RPMH_VREG("smps6", "smp%s6", &pmic5_ftsmps527, "vdd-s6"),
975 RPMH_VREG("smps7", "smp%s7", &pmic5_ftsmps527, "vdd-s7"),
976 RPMH_VREG("smps8", "smp%s8", &pmic5_ftsmps527, "vdd-s8"),
977 RPMH_VREG("smps9", "smp%s9", &pmic5_ftsmps527, "vdd-s9"),
978 RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo515, "vdd-s9"),
979 RPMH_VREG("ldo2", "ldo%s2", &pmic5_nldo515, "vdd-l2-l3"),
980 RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo515, "vdd-l2-l3"),
981 RPMH_VREG("ldo4", "ldo%s4", &pmic5_nldo515, "vdd-s9"),
982 RPMH_VREG("ldo5", "ldo%s5", &pmic5_nldo515, "vdd-s9"),
983 RPMH_VREG("ldo6", "ldo%s6", &pmic5_nldo515, "vdd-l6-l7"),
984 RPMH_VREG("ldo7", "ldo%s7", &pmic5_nldo515, "vdd-l6-l7"),
985 RPMH_VREG("ldo8", "ldo%s8", &pmic5_pldo515_mv, "vdd-l8-l9"),
986 RPMH_VREG("ldo9", "ldo%s9", &pmic5_pldo, "vdd-l8-l9"),
991 RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps510, "vdd-s1"),
992 RPMH_VREG("smps2", "smp%s2", &pmic5_ftsmps510, "vdd-s2"),
993 RPMH_VREG("smps3", "smp%s3", &pmic5_ftsmps510, "vdd-s3"),
994 RPMH_VREG("smps4", "smp%s4", &pmic5_ftsmps510, "vdd-s4"),
995 RPMH_VREG("smps5", "smp%s5", &pmic5_ftsmps510, "vdd-s5"),
996 RPMH_VREG("smps6", "smp%s6", &pmic5_ftsmps510, "vdd-s6"),
997 RPMH_VREG("smps7", "smp%s7", &pmic5_ftsmps510, "vdd-s7"),
998 RPMH_VREG("smps8", "smp%s8", &pmic5_ftsmps510, "vdd-s8"),
999 RPMH_VREG("smps9", "smp%s9", &pmic5_ftsmps510, "vdd-s9"),
1000 RPMH_VREG("smps10", "smp%s10", &pmic5_hfsmps510, "vdd-s10"),
1001 RPMH_VREG("smps11", "smp%s11", &pmic5_hfsmps510, "vdd-s11"),
1002 RPMH_VREG("smps12", "smp%s12", &pmic5_hfsmps510, "vdd-s12"),
1003 RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo, "vdd-l1-l4"),
1004 RPMH_VREG("ldo2", "ldo%s2", &pmic5_pldo, "vdd-l2-l7"),
1005 RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo, "vdd-l3-l5"),
1006 RPMH_VREG("ldo4", "ldo%s4", &pmic5_nldo, "vdd-l1-l4"),
1007 RPMH_VREG("ldo5", "ldo%s5", &pmic5_nldo, "vdd-l3-l5"),
1008 RPMH_VREG("ldo6", "ldo%s6", &pmic5_nldo, "vdd-l6-l9-l10"),
1009 RPMH_VREG("ldo7", "ldo%s7", &pmic5_pldo, "vdd-l2-l7"),
1010 RPMH_VREG("ldo8", "ldo%s8", &pmic5_nldo, "vdd-l8"),
1011 RPMH_VREG("ldo9", "ldo%s9", &pmic5_nldo, "vdd-l6-l9-l10"),
1012 RPMH_VREG("ldo10", "ldo%s10", &pmic5_nldo, "vdd-l6-l9-l10"),
1017 RPMH_VREG("smps1", "smp%s1", &pmic5_hfsmps515, "vdd-s1"),
1018 RPMH_VREG("smps2", "smp%s2", &pmic5_ftsmps510, "vdd-s2"),
1019 RPMH_VREG("smps3", "smp%s3", &pmic5_ftsmps510, "vdd-s3"),
1020 RPMH_VREG("smps4", "smp%s4", &pmic5_ftsmps510, "vdd-s4"),
1021 RPMH_VREG("smps5", "smp%s5", &pmic5_ftsmps510, "vdd-s5"),
1022 RPMH_VREG("smps6", "smp%s6", &pmic5_ftsmps510, "vdd-s6"),
1023 RPMH_VREG("smps7", "smp%s7", &pmic5_ftsmps510, "vdd-s7"),
1024 RPMH_VREG("smps8", "smp%s8", &pmic5_ftsmps510, "vdd-s8"),
1025 RPMH_VREG("smps9", "smp%s9", &pmic5_ftsmps510, "vdd-s9"),
1026 RPMH_VREG("smps10", "smp%s10", &pmic5_ftsmps510, "vdd-s10"),
1027 RPMH_VREG("ldo1", "ldo%s1", &pmic5_pldo_lv, "vdd-l1-l12"),
1028 RPMH_VREG("ldo2", "ldo%s2", &pmic5_pldo_lv, "vdd-l2-l8"),
1029 RPMH_VREG("ldo3", "ldo%s3", &pmic5_pldo, "vdd-l3-l4-l5-l7-l13"),
1030 RPMH_VREG("ldo4", "ldo%s4", &pmic5_pldo, "vdd-l3-l4-l5-l7-l13"),
1031 RPMH_VREG("ldo5", "ldo%s5", &pmic5_pldo, "vdd-l3-l4-l5-l7-l13"),
1032 RPMH_VREG("ldo6", "ldo%s6", &pmic5_pldo, "vdd-l6-l9-l11"),
1033 RPMH_VREG("ldo7", "ldo%s7", &pmic5_pldo, "vdd-l3-l4-l5-l7-l13"),
1034 RPMH_VREG("ldo8", "ldo%s8", &pmic5_pldo_lv, "vdd-l2-l8"),
1035 RPMH_VREG("ldo9", "ldo%s9", &pmic5_pldo, "vdd-l6-l9-l11"),
1036 RPMH_VREG("ldo10", "ldo%s10", &pmic5_nldo, "vdd-l10"),
1037 RPMH_VREG("ldo11", "ldo%s11", &pmic5_pldo, "vdd-l6-l9-l11"),
1038 RPMH_VREG("ldo12", "ldo%s12", &pmic5_pldo_lv, "vdd-l1-l12"),
1039 RPMH_VREG("ldo13", "ldo%s13", &pmic5_pldo, "vdd-l3-l4-l5-l7-l13"),
1040 RPMH_VREG("bob", "bob%s1", &pmic5_bob, "vdd-bob"),
1045 RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps520, "vdd-s1"),
1046 RPMH_VREG("smps2", "smp%s2", &pmic5_ftsmps520, "vdd-s2"),
1047 RPMH_VREG("smps3", "smp%s3", &pmic5_ftsmps520, "vdd-s3"),
1048 RPMH_VREG("smps4", "smp%s4", &pmic5_ftsmps520, "vdd-s4"),
1049 RPMH_VREG("smps5", "smp%s5", &pmic5_ftsmps520, "vdd-s5"),
1050 RPMH_VREG("smps6", "smp%s6", &pmic5_ftsmps520, "vdd-s6"),
1051 RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo, "vdd-l1"),
1052 RPMH_VREG("ldo2", "ldo%s2", &pmic5_nldo, "vdd-l2"),
1053 RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo, "vdd-l3"),
1054 RPMH_VREG("ldo4", "ldo%s4", &pmic5_pldo_lv, "vdd-l4"),
1059 RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo515, "vdd-l1-l4-l10"),
1060 RPMH_VREG("ldo2", "ldo%s2", &pmic5_pldo, "vdd-l2-l13-l14"),
1061 RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo515, "vdd-l3"),
1062 RPMH_VREG("ldo4", "ldo%s4", &pmic5_nldo515, "vdd-l1-l4-l10"),
1063 RPMH_VREG("ldo5", "ldo%s5", &pmic5_pldo, "vdd-l5-l16"),
1064 RPMH_VREG("ldo6", "ldo%s6", &pmic5_pldo, "vdd-l6-l7"),
1065 RPMH_VREG("ldo7", "ldo%s7", &pmic5_pldo, "vdd-l6-l7"),
1066 RPMH_VREG("ldo8", "ldo%s8", &pmic5_pldo, "vdd-l8-l9"),
1067 RPMH_VREG("ldo9", "ldo%s9", &pmic5_pldo, "vdd-l8-l9"),
1068 RPMH_VREG("ldo10", "ldo%s10", &pmic5_nldo515, "vdd-l1-l4-l10"),
1069 RPMH_VREG("ldo11", "ldo%s11", &pmic5_nldo515, "vdd-l11"),
1070 RPMH_VREG("ldo12", "ldo%s12", &pmic5_nldo515, "vdd-l12"),
1071 RPMH_VREG("ldo13", "ldo%s13", &pmic5_pldo, "vdd-l2-l13-l14"),
1072 RPMH_VREG("ldo14", "ldo%s14", &pmic5_pldo, "vdd-l2-l13-l14"),
1073 RPMH_VREG("ldo15", "ldo%s15", &pmic5_nldo515, "vdd-l15"),
1074 RPMH_VREG("ldo16", "ldo%s16", &pmic5_pldo, "vdd-l5-l16"),
1075 RPMH_VREG("ldo17", "ldo%s17", &pmic5_pldo, "vdd-l17"),
1076 RPMH_VREG("bob1", "bob%s1", &pmic5_bob, "vdd-bob1"),
1077 RPMH_VREG("bob2", "bob%s2", &pmic5_bob, "vdd-bob2"),
1082 RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps525_lv, "vdd-s1"),
1083 RPMH_VREG("smps2", "smp%s2", &pmic5_ftsmps525_lv, "vdd-s2"),
1084 RPMH_VREG("smps3", "smp%s3", &pmic5_ftsmps525_lv, "vdd-s3"),
1085 RPMH_VREG("smps4", "smp%s4", &pmic5_ftsmps525_lv, "vdd-s4"),
1086 RPMH_VREG("smps5", "smp%s5", &pmic5_ftsmps525_lv, "vdd-s5"),
1087 RPMH_VREG("smps6", "smp%s6", &pmic5_ftsmps525_mv, "vdd-s6"),
1088 RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo515, "vdd-l1"),
1089 RPMH_VREG("ldo2", "ldo%s2", &pmic5_nldo515, "vdd-l2"),
1090 RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo515, "vdd-l3"),
1095 RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps525_lv, "vdd-s1"),
1096 RPMH_VREG("smps2", "smp%s2", &pmic5_ftsmps525_lv, "vdd-s2"),
1097 RPMH_VREG("smps3", "smp%s3", &pmic5_ftsmps525_lv, "vdd-s3"),
1098 RPMH_VREG("smps4", "smp%s4", &pmic5_ftsmps525_mv, "vdd-s4"),
1099 RPMH_VREG("smps5", "smp%s5", &pmic5_ftsmps525_lv, "vdd-s5"),
1100 RPMH_VREG("smps6", "smp%s6", &pmic5_ftsmps525_lv, "vdd-s6"),
1101 RPMH_VREG("smps7", "smp%s7", &pmic5_ftsmps525_lv, "vdd-s7"),
1102 RPMH_VREG("smps8", "smp%s8", &pmic5_ftsmps525_lv, "vdd-s8"),
1103 RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo515, "vdd-l1"),
1104 RPMH_VREG("ldo2", "ldo%s2", &pmic5_nldo515, "vdd-l2"),
1105 RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo515, "vdd-l3"),
1110 RPMH_VREG("smps1", "smp%s1", &pmic5_hfsmps510, "vdd-s1"),
1111 RPMH_VREG("smps2", "smp%s2", &pmic5_hfsmps515, "vdd-s2"),
1112 RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo, "vdd-l1"),
1113 RPMH_VREG("ldo2", "ldo%s2", &pmic5_nldo, "vdd-l2"),
1114 RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo, "vdd-l3"),
1115 RPMH_VREG("ldo4", "ldo%s4", &pmic5_nldo, "vdd-l4"),
1116 RPMH_VREG("ldo5", "ldo%s5", &pmic5_pldo, "vdd-l5-l6"),
1117 RPMH_VREG("ldo6", "ldo%s6", &pmic5_pldo, "vdd-l5-l6"),
1118 RPMH_VREG("ldo7", "ldo%s7", &pmic5_pldo_lv, "vdd-l7"),
1123 RPMH_VREG("smps1", "smp%s1", &pmic5_hfsmps510, "vdd-s1"),
1124 RPMH_VREG("smps2", "smp%s2", &pmic5_hfsmps515_1, "vdd-s2"),
1125 RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo, "vdd-l1"),
1126 RPMH_VREG("ldo2", "ldo%s2", &pmic5_nldo, "vdd-l2"),
1127 RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo, "vdd-l3"),
1128 RPMH_VREG("ldo4", "ldo%s4", &pmic5_nldo, "vdd-l4"),
1129 RPMH_VREG("ldo5", "ldo%s5", &pmic5_pldo, "vdd-l5-l6"),
1130 RPMH_VREG("ldo6", "ldo%s6", &pmic5_pldo, "vdd-l5-l6"),
1131 RPMH_VREG("ldo7", "ldo%s7", &pmic5_pldo_lv, "vdd-l7"),
1136 RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps510, "vdd-s1"),
1137 RPMH_VREG("smps2", "smp%s2", &pmic5_ftsmps510, "vdd-s2"),
1138 RPMH_VREG("smps3", "smp%s3", &pmic5_ftsmps510, "vdd-s3"),
1139 RPMH_VREG("smps4", "smp%s4", &pmic5_hfsmps510, "vdd-s4"),
1140 RPMH_VREG("smps5", "smp%s5", &pmic5_hfsmps510, "vdd-s5"),
1141 RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo, "vdd-l1"),
1142 RPMH_VREG("ldo2", "ldo%s2", &pmic5_nldo, "vdd-l2-l3"),
1143 RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo, "vdd-l2-l3"),
1144 RPMH_VREG("ldo4", "ldo%s4", &pmic5_nldo, "vdd-l4-l7-l8"),
1145 RPMH_VREG("ldo5", "ldo%s5", &pmic5_pldo, "vdd-l5-l16-l17-l18-l19"),
1146 RPMH_VREG("ldo6", "ldo%s6", &pmic5_nldo, "vdd-l6"),
1147 RPMH_VREG("ldo7", "ldo%s7", &pmic5_nldo, "vdd-l4-l7-l8"),
1148 RPMH_VREG("ldo8", "ldo%s8", &pmic5_nldo, "vdd-l4-l7-l8"),
1149 RPMH_VREG("ldo9", "ldo%s9", &pmic5_nldo, "vdd-l9"),
1150 RPMH_VREG("ldo10", "ldo%s10", &pmic5_pldo_lv, "vdd-l10-l14-l15"),
1151 RPMH_VREG("ldo11", "ldo%s11", &pmic5_pldo_lv, "vdd-l11-l12-l13"),
1152 RPMH_VREG("ldo12", "ldo%s12", &pmic5_pldo_lv, "vdd-l11-l12-l13"),
1153 RPMH_VREG("ldo13", "ldo%s13", &pmic5_pldo_lv, "vdd-l11-l12-l13"),
1154 RPMH_VREG("ldo14", "ldo%s14", &pmic5_pldo_lv, "vdd-l10-l14-l15"),
1155 RPMH_VREG("ldo15", "ldo%s15", &pmic5_pldo_lv, "vdd-l10-l14-l15"),
1156 RPMH_VREG("ldo16", "ldo%s16", &pmic5_pldo, "vdd-l5-l16-l17-l18-l19"),
1157 RPMH_VREG("ldo17", "ldo%s17", &pmic5_pldo, "vdd-l5-l16-l17-l18-l19"),
1158 RPMH_VREG("ldo18", "ldo%s18", &pmic5_pldo, "vdd-l5-l16-l17-l18-l19"),
1159 RPMH_VREG("ldo19", "ldo%s19", &pmic5_pldo, "vdd-l5-l16-l17-l18-l19"),
1164 RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps510, "vdd-s1"),
1165 RPMH_VREG("smps2", "smp%s2", &pmic5_ftsmps510, "vdd-s2"),
1166 RPMH_VREG("smps3", "smp%s3", &pmic5_ftsmps510, "vdd-s3"),
1167 RPMH_VREG("smps4", "smp%s4", &pmic5_ftsmps510, "vdd-s4"),
1168 RPMH_VREG("smps5", "smp%s5", &pmic5_ftsmps510, "vdd-s5"),
1169 RPMH_VREG("smps6", "smp%s6", &pmic5_ftsmps510, "vdd-s6"),
1170 RPMH_VREG("smps7", "smp%s7", &pmic5_ftsmps510, "vdd-s7"),
1171 RPMH_VREG("smps8", "smp%s8", &pmic5_hfsmps510, "vdd-s8"),
1172 RPMH_VREG("ldo1", "ldo%s1", &pmic5_pldo_lv, "vdd-l1-l8"),
1173 RPMH_VREG("ldo2", "ldo%s2", &pmic5_nldo, "vdd-l2-l3"),
1174 RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo, "vdd-l2-l3"),
1175 RPMH_VREG("ldo4", "ldo%s4", &pmic5_pldo, "vdd-l4-l5-l6"),
1176 RPMH_VREG("ldo5", "ldo%s5", &pmic5_pldo, "vdd-l4-l5-l6"),
1177 RPMH_VREG("ldo6", "ldo%s6", &pmic5_pldo, "vdd-l4-l5-l6"),
1178 RPMH_VREG("ldo7", "ldo%s7", &pmic5_pldo, "vdd-l7-l11"),
1179 RPMH_VREG("ldo8", "ldo%s8", &pmic5_pldo, "vdd-l1-l8"),
1180 RPMH_VREG("ldo9", "ldo%s9", &pmic5_pldo, "vdd-l9-l10"),
1181 RPMH_VREG("ldo10", "ldo%s10", &pmic5_pldo, "vdd-l9-l10"),
1182 RPMH_VREG("ldo11", "ldo%s11", &pmic5_pldo, "vdd-l7-l11"),
1183 RPMH_VREG("bob", "bob%s1", &pmic5_bob, "vdd-bob"),
1190 /* smps3 - smps5 not configured */
1216 RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps510, "vdd-s1"),
1217 RPMH_VREG("smps2", "smp%s2", &pmic5_hfsmps510, "vdd-s2"),
1218 RPMH_VREG("smps3", "smp%s3", &pmic5_hfsmps510, "vdd-s3"),
1219 RPMH_VREG("smps4", "smp%s4", &pmic5_hfsmps510, "vdd-s4"),
1220 RPMH_VREG("smps5", "smp%s5", &pmic5_hfsmps510, "vdd-s5"),
1221 RPMH_VREG("smps6", "smp%s6", &pmic5_ftsmps510, "vdd-s6"),
1222 RPMH_VREG("smps7", "smp%s7", &pmic5_hfsmps510, "vdd-s7"),
1223 RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo, "vdd-l1-l2"),
1224 RPMH_VREG("ldo2", "ldo%s2", &pmic5_nldo, "vdd-l1-l2"),
1225 RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo, "vdd-l3-l9"),
1226 RPMH_VREG("ldo4", "ldo%s4", &pmic5_nldo, "vdd-l4-l12"),
1227 RPMH_VREG("ldo5", "ldo%s5", &pmic5_pldo, "vdd-l5-l6"),
1228 RPMH_VREG("ldo6", "ldo%s6", &pmic5_pldo, "vdd-l5-l6"),
1229 RPMH_VREG("ldo7", "ldo%s7", &pmic5_nldo, "vdd-l7-l8"),
1230 RPMH_VREG("ldo8", "ldo%s8", &pmic5_nldo, "vdd-l7-l8"),
1231 RPMH_VREG("ldo9", "ldo%s9", &pmic5_nldo, "vdd-l3-l9"),
1232 RPMH_VREG("ldo10", "ldo%s10", &pmic5_pldo, "vdd-l10-l11-l13"),
1233 RPMH_VREG("ldo11", "ldo%s11", &pmic5_pldo, "vdd-l10-l11-l13"),
1234 RPMH_VREG("ldo12", "ldo%s12", &pmic5_nldo, "vdd-l4-l12"),
1235 RPMH_VREG("ldo13", "ldo%s13", &pmic5_pldo, "vdd-l10-l11-l13"),
1236 RPMH_VREG("ldo14", "ldo%s14", &pmic5_nldo, "vdd-l14"),
1237 RPMH_VREG("ldo15", "ldo%s15", &pmic5_nldo, "vdd-l15"),
1238 RPMH_VREG("ldo16", "ldo%s16", &pmic5_pldo, "vdd-l16"),
1243 RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps510, "vdd-s1"),
1244 RPMH_VREG("smps2", "smp%s2", &pmic5_hfsmps510, "vdd-s2"),
1245 RPMH_VREG("smps3", "smp%s3", &pmic5_hfsmps510, "vdd-s3"),
1246 RPMH_VREG("smps4", "smp%s4", &pmic5_hfsmps510, "vdd-s4"),
1247 RPMH_VREG("smps5", "smp%s5", &pmic5_hfsmps510, "vdd-s5"),
1248 RPMH_VREG("smps6", "smp%s6", &pmic5_ftsmps510, "vdd-s6"),
1249 RPMH_VREG("smps7", "smp%s7", &pmic5_hfsmps510, "vdd-s7"),
1250 RPMH_VREG("smps8", "smp%s8", &pmic5_hfsmps510, "vdd-s8"),
1251 RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo, "vdd-l1"),
1252 RPMH_VREG("ldo2", "ldo%s2", &pmic5_nldo, "vdd-l2-l18"),
1253 RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo, "vdd-l3"),
1254 RPMH_VREG("ldo4", "ldo%s4", &pmic5_nldo, "vdd-l4"),
1255 RPMH_VREG("ldo5", "ldo%s5", &pmic5_pldo, "vdd-l5-l6-l16"),
1256 RPMH_VREG("ldo6", "ldo%s6", &pmic5_pldo, "vdd-l5-l6-l16"),
1257 RPMH_VREG("ldo7", "ldo%s7", &pmic5_nldo, "vdd-l7"),
1258 RPMH_VREG("ldo8", "ldo%s8", &pmic5_nldo, "vdd-l8-l9"),
1259 RPMH_VREG("ldo9", "ldo%s9", &pmic5_nldo, "vdd-l8-l9"),
1260 RPMH_VREG("ldo10", "ldo%s10", &pmic5_pldo, "vdd-l10"),
1261 RPMH_VREG("ldo11", "ldo%s11", &pmic5_pldo, "vdd-l11-l13"),
1262 RPMH_VREG("ldo12", "ldo%s12", &pmic5_nldo, "vdd-l12"),
1263 RPMH_VREG("ldo13", "ldo%s13", &pmic5_pldo, "vdd-l11-l13"),
1264 RPMH_VREG("ldo14", "ldo%s14", &pmic5_nldo, "vdd-l14"),
1265 RPMH_VREG("ldo15", "ldo%s15", &pmic5_nldo, "vdd-l15"),
1266 RPMH_VREG("ldo16", "ldo%s16", &pmic5_pldo, "vdd-l5-l6-l16"),
1267 RPMH_VREG("ldo17", "ldo%s17", &pmic5_nldo, "vdd-l17"),
1269 RPMH_VREG("ldo19", "ldo%s19", &pmic5_nldo, "vdd-l19"),
1270 RPMH_VREG("ldo20", "ldo%s20", &pmic5_nldo, "vdd-l20"),
1271 RPMH_VREG("ldo21", "ldo%s21", &pmic5_nldo, "vdd-l21"),
1276 RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps525_lv, "vdd-s1"),
1277 RPMH_VREG("smps2", "smp%s2", &pmic5_ftsmps525_lv, "vdd-s2"),
1278 RPMH_VREG("smps3", "smp%s3", &pmic5_ftsmps525_lv, "vdd-s3"),
1279 RPMH_VREG("smps4", "smp%s4", &pmic5_ftsmps525_mv, "vdd-s4"),
1280 RPMH_VREG("smps5", "smp%s5", &pmic5_ftsmps525_lv, "vdd-s5"),
1281 RPMH_VREG("smps6", "smp%s6", &pmic5_ftsmps525_lv, "vdd-s6"),
1282 RPMH_VREG("smps7", "smp%s7", &pmic5_ftsmps525_lv, "vdd-s7"),
1283 RPMH_VREG("smps8", "smp%s8", &pmic5_ftsmps525_lv, "vdd-s8"),
1284 RPMH_VREG("smps9", "smp%s9", &pmic5_ftsmps525_lv, "vdd-s9"),
1285 RPMH_VREG("smps10", "smp%s10", &pmic5_ftsmps525_lv, "vdd-s10"),
1286 RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo515, "vdd-l1"),
1287 RPMH_VREG("ldo2", "ldo%s2", &pmic5_nldo515, "vdd-l2-18"),
1288 RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo515, "vdd-l3"),
1289 RPMH_VREG("ldo4", "ldo%s4", &pmic5_nldo515, "vdd-l4-l16"),
1290 RPMH_VREG("ldo5", "ldo%s5", &pmic5_pldo_lv, "vdd-l5-l6"),
1291 RPMH_VREG("ldo6", "ldo%s6", &pmic5_pldo_lv, "vdd-l5-l6"),
1292 RPMH_VREG("ldo7", "ldo%s7", &pmic5_nldo515, "vdd-l7"),
1293 RPMH_VREG("ldo8", "ldo%s8", &pmic5_nldo515, "vdd-l8-l9"),
1294 RPMH_VREG("ldo9", "ldo%s9", &pmic5_nldo515, "vdd-l8-l9"),
1295 RPMH_VREG("ldo10", "ldo%s10", &pmic5_pldo, "vdd-l10"),
1296 RPMH_VREG("ldo11", "ldo%s11", &pmic5_pldo, "vdd-l11-l13"),
1297 RPMH_VREG("ldo12", "ldo%s12", &pmic5_nldo515, "vdd-l12"),
1298 RPMH_VREG("ldo13", "ldo%s13", &pmic5_pldo, "vdd-l11-l13"),
1299 RPMH_VREG("ldo14", "ldo%s14", &pmic5_nldo515, "vdd-l14"),
1300 RPMH_VREG("ldo15", "ldo%s15", &pmic5_nldo515, "vdd-l15"),
1301 RPMH_VREG("ldo16", "ldo%s16", &pmic5_nldo515, "vdd-l4-l16"),
1302 RPMH_VREG("ldo17", "ldo%s17", &pmic5_nldo515, "vdd-l17"),
1304 RPMH_VREG("ldo19", "ldo%s19", &pmic5_nldo515, "vdd-l19"),
1305 RPMH_VREG("ldo20", "ldo%s20", &pmic5_nldo515, "vdd-l20-l21"),
1306 RPMH_VREG("ldo21", "ldo%s21", &pmic5_nldo515, "vdd-l20-l21"),
1310 RPMH_VREG("smps1", "smp%s1", &pmic5_hfsmps510, "vdd-s1"),
1311 RPMH_VREG("smps2", "smp%s2", &pmic5_ftsmps520, "vdd-s2"),
1312 RPMH_VREG("smps3", "smp%s3", &pmic5_ftsmps520, "vdd-s3"),
1313 RPMH_VREG("smps4", "smp%s4", &pmic5_ftsmps520, "vdd-s4"),
1314 RPMH_VREG("smps5", "smp%s5", &pmic5_ftsmps520, "vdd-s5"),
1315 RPMH_VREG("smps6", "smp%s6", &pmic5_ftsmps520, "vdd-s6"),
1316 RPMH_VREG("smps7", "smp%s7", &pmic5_ftsmps520, "vdd-s7"),
1317 RPMH_VREG("smps8", "smp%s8", &pmic5_hfsmps510, "vdd-s8"),
1318 RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo, "vdd-l1-l4-l12-l15"),
1319 RPMH_VREG("ldo2", "ldo%s2", &pmic5_pldo, "vdd-l2-l7"),
1320 RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo, "vdd-l3"),
1321 RPMH_VREG("ldo4", "ldo%s4", &pmic5_nldo, "vdd-l1-l4-l12-l15"),
1322 RPMH_VREG("ldo5", "ldo%s5", &pmic5_nldo, "vdd-l5"),
1323 RPMH_VREG("ldo6", "ldo%s6", &pmic5_nldo, "vdd-l6-l9-l10"),
1324 RPMH_VREG("ldo7", "ldo%s7", &pmic5_pldo, "vdd-l2-l7"),
1325 RPMH_VREG("ldo8", "ldo%s8", &pmic5_nldo, "vdd-l8"),
1326 RPMH_VREG("ldo9", "ldo%s9", &pmic5_nldo, "vdd-l6-l9-l10"),
1327 RPMH_VREG("ldo10", "ldo%s10", &pmic5_nldo, "vdd-l6-l9-l10"),
1328 RPMH_VREG("ldo11", "ldo%s11", &pmic5_pldo_lv, "vdd-l11-l17-l18-l19"),
1329 RPMH_VREG("ldo12", "ldo%s12", &pmic5_nldo, "vdd-l1-l4-l12-l15"),
1330 RPMH_VREG("ldo13", "ldo%s13", &pmic5_nldo, "vdd-l13"),
1331 RPMH_VREG("ldo14", "ldo%s14", &pmic5_nldo, "vdd-l14-l16"),
1332 RPMH_VREG("ldo15", "ldo%s15", &pmic5_nldo, "vdd-l1-l4-l12-l15"),
1333 RPMH_VREG("ldo16", "ldo%s16", &pmic5_nldo, "vdd-l14-l16"),
1334 RPMH_VREG("ldo17", "ldo%s17", &pmic5_pldo_lv, "vdd-l11-l17-l18-l19"),
1335 RPMH_VREG("ldo18", "ldo%s18", &pmic5_pldo_lv, "vdd-l11-l17-l18-l19"),
1336 RPMH_VREG("ldo19", "ldo%s19", &pmic5_pldo_lv, "vdd-l11-l17-l18-l19"),
1341 RPMH_VREG("smps1", "smp%s1", &pmic5_ftsmps520, "vdd-s1"),
1342 RPMH_VREG("smps2", "smp%s2", &pmic5_ftsmps520, "vdd-s2"),
1343 RPMH_VREG("smps3", "smp%s3", &pmic5_hfsmps515, "vdd-s3"),
1344 RPMH_VREG("ldo1", "ldo%s1", &pmic5_nldo, "vdd-l1-l2"),
1345 RPMH_VREG("ldo2", "ldo%s2", &pmic5_nldo, "vdd-l1-l2"),
1346 RPMH_VREG("ldo3", "ldo%s3", &pmic5_nldo, "vdd-l3"),
1347 RPMH_VREG("ldo4", "ldo%s4", &pmic5_pldo_lv, "vdd-l4"),
1348 RPMH_VREG("ldo5", "ldo%s5", &pmic5_nldo, "vdd-l5-l6"),
1349 RPMH_VREG("ldo6", "ldo%s6", &pmic5_nldo, "vdd-l5-l6"),
1350 RPMH_VREG("ldo7", "ldo%s7", &pmic5_pldo, "vdd-l7-bob"),
1355 RPMH_VREG("smps1", "smp%s1", &pmic4_ftsmps426, "vdd-s1"),
1356 RPMH_VREG("smps2", "smp%s2", &pmic4_ftsmps426, "vdd-s2"),
1357 RPMH_VREG("smps3", "smp%s3", &pmic4_ftsmps426, "vdd-s3"),
1358 RPMH_VREG("smps4", "smp%s4", &pmic4_hfsmps3, "vdd-s4"),
1359 RPMH_VREG("smps5", "smp%s5", &pmic4_hfsmps3, "vdd-s5"),
1360 RPMH_VREG("smps6", "smp%s6", &pmic4_hfsmps3, "vdd-s6"),
1361 RPMH_VREG("ldo1", "ldo%s1", &pmic4_nldo, "vdd-l1-l6-l7"),
1362 RPMH_VREG("ldo2", "ldo%s2", &pmic4_nldo, "vdd-l2-l3"),
1363 RPMH_VREG("ldo3", "ldo%s3", &pmic4_nldo, "vdd-l2-l3"),
1365 RPMH_VREG("ldo5", "ldo%s5", &pmic4_nldo, "vdd-l5"),
1366 RPMH_VREG("ldo6", "ldo%s6", &pmic4_nldo, "vdd-l1-l6-l7"),
1367 RPMH_VREG("ldo7", "ldo%s7", &pmic4_nldo, "vdd-l1-l6-l7"),
1368 RPMH_VREG("ldo8", "ldo%s8", &pmic4_pldo_lv, "vdd-l8-l9-l10-l11-l12-l13-l14"),
1369 RPMH_VREG("ldo9", "ldo%s9", &pmic4_pldo_lv, "vdd-l8-l9-l10-l11-l12-l13-l14"),
1370 RPMH_VREG("ldo10", "ldo%s10", &pmic4_pldo_lv, "vdd-l8-l9-l10-l11-l12-l13-l14"),
1371 RPMH_VREG("ldo11", "ldo%s11", &pmic4_pldo_lv, "vdd-l8-l9-l10-l11-l12-l13-l14"),
1372 RPMH_VREG("ldo12", "ldo%s12", &pmic4_pldo_lv, "vdd-l8-l9-l10-l11-l12-l13-l14"),
1373 RPMH_VREG("ldo13", "ldo%s13", &pmic4_pldo_lv, "vdd-l8-l9-l10-l11-l12-l13-l14"),
1374 RPMH_VREG("ldo14", "ldo%s14", &pmic4_pldo_lv, "vdd-l8-l9-l10-l11-l12-l13-l14"),
1375 RPMH_VREG("ldo15", "ldo%s15", &pmic4_pldo, "vdd-l15-l16-l17-l18-l19"),
1376 RPMH_VREG("ldo16", "ldo%s16", &pmic4_pldo, "vdd-l15-l16-l17-l18-l19"),
1377 RPMH_VREG("ldo17", "ldo%s17", &pmic4_pldo, "vdd-l15-l16-l17-l18-l19"),
1378 RPMH_VREG("ldo18", "ldo%s18", &pmic4_pldo, "vdd-l15-l16-l17-l18-l19"),
1379 RPMH_VREG("ldo19", "ldo%s19", &pmic4_pldo, "vdd-l15-l16-l17-l18-l19"),
1384 RPMH_VREG("smps1", "smp%s1", &pmic4_ftsmps426, "vdd-s1"),
1385 RPMH_VREG("smps2", "smp%s2", &pmic4_ftsmps426, "vdd-s2"),
1386 RPMH_VREG("smps3", "smp%s3", &pmic4_ftsmps426, "vdd-s3-s4"),
1387 RPMH_VREG("smps5", "smp%s5", &pmic4_ftsmps426, "vdd-s5"),
1388 RPMH_VREG("ldo1", "ldo%s1", &pmic4_nldo, "vdd-l1-l9-l10"),
1389 RPMH_VREG("ldo2", "ldo%s2", &pmic4_pldo, "vdd-l2"),
1390 RPMH_VREG("ldo3", "ldo%s3", &pmic4_pldo, "vdd-l3-l5-l7-l8"),
1391 RPMH_VREG("ldo4", "ldo%s4", &pmic4_pldo, "vdd-l4-l6"),
1392 RPMH_VREG("ldo5", "ldo%s5", &pmic4_pldo, "vdd-l3-l5-l7-l8"),
1393 RPMH_VREG("ldo6", "ldo%s6", &pmic4_pldo, "vdd-l4-l6"),
1394 RPMH_VREG("ldo7", "ldo%s7", &pmic4_pldo, "vdd-l3-l5-l7-l8"),
1395 RPMH_VREG("ldo8", "ldo%s8", &pmic4_pldo, "vdd-l3-l5-l7-l8"),
1396 RPMH_VREG("bob", "bob%s1", &pmic4_bob, "vdd-bob"),
1402 struct device *dev = &pdev->dev; in rpmh_regulator_probe()
1411 return -ENODEV; in rpmh_regulator_probe()
1413 ret = of_property_read_string(dev->of_node, "qcom,pmic-id", &pmic_id); in rpmh_regulator_probe()
1415 dev_err(dev, "qcom,pmic-id missing in DT node\n"); in rpmh_regulator_probe()
1419 for_each_available_child_of_node(dev->of_node, node) { in rpmh_regulator_probe()
1423 return -ENOMEM; in rpmh_regulator_probe()
1439 .compatible = "qcom,pm8005-rpmh-regulators",
1443 .compatible = "qcom,pm8009-rpmh-regulators",
1447 .compatible = "qcom,pm8009-1-rpmh-regulators",
1451 .compatible = "qcom,pm8150-rpmh-regulators",
1455 .compatible = "qcom,pm8150l-rpmh-regulators",
1459 .compatible = "qcom,pm8350-rpmh-regulators",
1463 .compatible = "qcom,pm8350c-rpmh-regulators",
1467 .compatible = "qcom,pm8450-rpmh-regulators",
1471 .compatible = "qcom,pm8550-rpmh-regulators",
1475 .compatible = "qcom,pm8550ve-rpmh-regulators",
1479 .compatible = "qcom,pm8550vs-rpmh-regulators",
1483 .compatible = "qcom,pm8998-rpmh-regulators",
1487 .compatible = "qcom,pmg1110-rpmh-regulators",
1491 .compatible = "qcom,pmi8998-rpmh-regulators",
1495 .compatible = "qcom,pm6150-rpmh-regulators",
1499 .compatible = "qcom,pm6150l-rpmh-regulators",
1503 .compatible = "qcom,pm6350-rpmh-regulators",
1507 .compatible = "qcom,pmc8180-rpmh-regulators",
1511 .compatible = "qcom,pmc8180c-rpmh-regulators",
1515 .compatible = "qcom,pmm8155au-rpmh-regulators",
1519 .compatible = "qcom,pmm8654au-rpmh-regulators",
1523 .compatible = "qcom,pmx55-rpmh-regulators",
1527 .compatible = "qcom,pmx65-rpmh-regulators",
1531 .compatible = "qcom,pmx75-rpmh-regulators",
1535 .compatible = "qcom,pm7325-rpmh-regulators",
1539 .compatible = "qcom,pmr735a-rpmh-regulators",
1543 .compatible = "qcom,pm660-rpmh-regulators",
1547 .compatible = "qcom,pm660l-rpmh-regulators",
1556 .name = "qcom-rpmh-regulator",