Home
last modified time | relevance | path

Searched +full:dvs +full:- +full:lpsr +full:- +full:voltage (Results 1 – 6 of 6) sorted by relevance

/linux-6.12.1/Documentation/devicetree/bindings/regulator/
Drohm,bd71815-regulator.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
4 $id: http://devicetree.org/schemas/regulator/rohm,bd71815-regulator.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Matti Vaittinen <mazziesaccount@gmail.com>
14 see Documentation/devicetree/bindings/mfd/rohm,bd71815-pmic.yaml.
16 The regulator controller is represented as a sub-node of the PMIC node
33 regulator-name:
37 "^((ldo|buck)[1-5]|ldolpsr|ldodvref)$":
44 regulator-name:
[all …]
Drohm,bd71828-regulator.yaml1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
3 ---
4 $id: http://devicetree.org/schemas/regulator/rohm,bd71828-regulator.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Matti Vaittinen <mazziesaccount@gmail.com>
14 see Documentation/devicetree/bindings/mfd/rohm,bd71828-pmic.yaml.
16 The regulator controller is represented as a sub-node of the PMIC node
25 "^LDO[1-7]$":
32 regulator-name:
33 pattern: "^ldo[1-7]$"
[all …]
/linux-6.12.1/drivers/regulator/
Dbd71828-regulator.c1 // SPDX-License-Identifier: GPL-2.0-only
3 // bd71828-regulator.c ROHM BD71828GW-DS1 regulator driver
10 #include <linux/mfd/rohm-bd71828.h>
26 const struct rohm_dvs_config dvs; member
33 * DVS Buck voltages can be changed by register values or via GPIO.
102 return rohm_regulator_set_dvs_levels(&data->dvs, np, desc, cfg->regmap); in buck_set_hw_dvs_levels()
112 struct regmap *regmap = cfg->regmap; in ldo6_parse_dt()
113 static const char * const props[] = { "rohm,dvs-run-voltage", in ldo6_parse_dt()
114 "rohm,dvs-idle-voltage", in ldo6_parse_dt()
115 "rohm,dvs-suspend-voltage", in ldo6_parse_dt()
[all …]
Drohm-regulator.c1 // SPDX-License-Identifier: GPL-2.0
5 #include <linux/mfd/rohm-generic.h>
21 if (ret != -EINVAL) in set_dvs_level()
25 /* If voltage is set to 0 => disable */ in set_dvs_level()
30 /* Some setups don't allow setting own voltage but do allow enabling */ in set_dvs_level()
35 return -EINVAL; in set_dvs_level()
37 for (i = 0; i < desc->n_voltages; i++) { in set_dvs_level()
38 /* NOTE to next hacker - Does not support pickable ranges */ in set_dvs_level()
39 if (desc->linear_range_selectors_bitfield) in set_dvs_level()
40 return -EINVAL; in set_dvs_level()
[all …]
Dbd71815-regulator.c1 // SPDX-License-Identifier: GPL-2.0-only
4 // bd71815-regulator.c ROHM BD71815 regulator driver
21 #include <linux/mfd/rohm-generic.h>
22 #include <linux/mfd/rohm-bd71815.h>
27 const struct rohm_dvs_config *dvs; member
179 return rohm_regulator_set_dvs_levels(data->dvs, np, desc, cfg->regmap); in set_hw_dvs_levels()
183 * Bucks 1 and 2 have two voltage selection registers where selected
184 * voltage can be set. Which of the registers is used can be either controlled
185 * by a control bit in register - or by HW state. If HW state specific voltages
186 * are given - then we assume HW state based control should be used.
[all …]
/linux-6.12.1/include/linux/mfd/
Drohm-generic.h1 /* SPDX-License-Identifier: GPL-2.0-or-later */
37 * struct rohm_dvs_config - dynamic voltage scaling register descriptions
39 * @level_map: bitmap representing supported run-levels for this
50 * @lpsr_reg: register address for regulator config at 'lpsr' state
51 * @lpsr_mask: value mask for regulator voltages at 'lpsr' state
52 * @lpsr_on_mask: enable mask for regulator at 'lpsr' state
54 * Description of ROHM PMICs voltage configuration registers for different
78 int rohm_regulator_set_dvs_levels(const struct rohm_dvs_config *dvs,