Home
last modified time | relevance | path

Searched refs:buck (Results 1 – 25 of 61) sorted by relevance

123

/OK3568_Linux_fs/kernel/drivers/regulator/
H A Dlp8788-buck.c100 static void lp8788_buck1_set_dvs(struct lp8788_buck *buck) in lp8788_buck1_set_dvs() argument
102 struct lp8788_buck1_dvs *dvs = (struct lp8788_buck1_dvs *)buck->dvs; in lp8788_buck1_set_dvs()
113 static void lp8788_buck2_set_dvs(struct lp8788_buck *buck) in lp8788_buck2_set_dvs() argument
115 struct lp8788_buck2_dvs *dvs = (struct lp8788_buck2_dvs *)buck->dvs; in lp8788_buck2_set_dvs()
149 static void lp8788_set_dvs(struct lp8788_buck *buck, enum lp8788_buck_id id) in lp8788_set_dvs() argument
153 lp8788_buck1_set_dvs(buck); in lp8788_set_dvs()
156 lp8788_buck2_set_dvs(buck); in lp8788_set_dvs()
164 lp8788_get_buck_dvs_ctrl_mode(struct lp8788_buck *buck, enum lp8788_buck_id id) in lp8788_get_buck_dvs_ctrl_mode() argument
179 lp8788_read_byte(buck->lp, LP8788_BUCK_DVS_SEL, &val); in lp8788_get_buck_dvs_ctrl_mode()
201 static u8 lp8788_select_buck_vout_addr(struct lp8788_buck *buck, in lp8788_select_buck_vout_addr() argument
[all …]
H A Dlp3971.c171 int buck = rdev_get_id(dev) - LP3971_DCDC1; in lp3971_dcdc_is_enabled() local
172 u16 mask = 1 << (buck * 2); in lp3971_dcdc_is_enabled()
182 int buck = rdev_get_id(dev) - LP3971_DCDC1; in lp3971_dcdc_enable() local
183 u16 mask = 1 << (buck * 2); in lp3971_dcdc_enable()
191 int buck = rdev_get_id(dev) - LP3971_DCDC1; in lp3971_dcdc_disable() local
192 u16 mask = 1 << (buck * 2); in lp3971_dcdc_disable()
200 int buck = rdev_get_id(dev) - LP3971_DCDC1; in lp3971_dcdc_get_voltage_sel() local
203 reg = lp3971_reg_read(lp3971, LP3971_BUCK_TARGET_VOL1_REG(buck)); in lp3971_dcdc_get_voltage_sel()
213 int buck = rdev_get_id(dev) - LP3971_DCDC1; in lp3971_dcdc_set_voltage_sel() local
216 ret = lp3971_set_bits(lp3971, LP3971_BUCK_TARGET_VOL1_REG(buck), in lp3971_dcdc_set_voltage_sel()
[all …]
H A Dlp3972.c317 int buck = rdev_get_id(dev) - LP3972_DCDC1; in lp3972_dcdc_is_enabled() local
318 u16 mask = 1 << (buck * 2); in lp3972_dcdc_is_enabled()
321 val = lp3972_reg_read(lp3972, LP3972_BUCK_VOL_ENABLE_REG(buck)); in lp3972_dcdc_is_enabled()
328 int buck = rdev_get_id(dev) - LP3972_DCDC1; in lp3972_dcdc_enable() local
329 u16 mask = 1 << (buck * 2); in lp3972_dcdc_enable()
332 val = lp3972_set_bits(lp3972, LP3972_BUCK_VOL_ENABLE_REG(buck), in lp3972_dcdc_enable()
340 int buck = rdev_get_id(dev) - LP3972_DCDC1; in lp3972_dcdc_disable() local
341 u16 mask = 1 << (buck * 2); in lp3972_dcdc_disable()
344 val = lp3972_set_bits(lp3972, LP3972_BUCK_VOL_ENABLE_REG(buck), in lp3972_dcdc_disable()
352 int buck = rdev_get_id(dev) - LP3972_DCDC1; in lp3972_dcdc_get_voltage_sel() local
[all …]
H A Dlp872x.c263 enum lp872x_regulator_id buck) in lp872x_select_buck_vout_addr() argument
270 switch (buck) { in lp872x_select_buck_vout_addr()
320 enum lp872x_regulator_id buck = rdev_get_id(rdev); in lp872x_buck_set_voltage_sel() local
327 addr = lp872x_select_buck_vout_addr(lp, buck); in lp872x_buck_set_voltage_sel()
337 enum lp872x_regulator_id buck = rdev_get_id(rdev); in lp872x_buck_get_voltage_sel() local
341 addr = lp872x_select_buck_vout_addr(lp, buck); in lp872x_buck_get_voltage_sel()
355 enum lp872x_regulator_id buck = rdev_get_id(rdev); in lp872x_buck_set_mode() local
358 switch (buck) { in lp872x_buck_set_mode()
391 enum lp872x_regulator_id buck = rdev_get_id(rdev); in lp872x_buck_get_mode() local
395 switch (buck) { in lp872x_buck_get_mode()
H A Dmax8998.c247 int buck = rdev_get_id(rdev); in max8998_set_voltage_buck_sel() local
255 switch (buck) { in max8998_set_voltage_buck_sel()
350 int buck = rdev_get_id(rdev); in max8998_set_voltage_buck_time_sel() local
354 if (buck < MAX8998_BUCK1 || buck > MAX8998_BUCK4) in max8998_set_voltage_buck_time_sel()
/OK3568_Linux_fs/u-boot/drivers/power/pmic/
H A Dpmic_max77686.c45 static int max77686_buck_volt2hex(int buck, ulong uV) in max77686_buck_volt2hex() argument
49 if (buck < 5 || buck > 9) { in max77686_buck_volt2hex()
50 debug("%s: buck %d is not supported\n", __func__, buck); in max77686_buck_volt2hex()
60 __func__, uV, buck); in max77686_buck_volt2hex()
90 int max77686_set_buck_voltage(struct pmic *p, int buck, ulong uV) in max77686_set_buck_voltage() argument
95 if (buck < 5 || buck > 9) { in max77686_set_buck_voltage()
97 __func__, buck); in max77686_set_buck_voltage()
101 adr = max77686_buck_addr[buck] + 1; in max77686_set_buck_voltage()
102 hex = max77686_buck_volt2hex(buck, uV); in max77686_set_buck_voltage()
178 int max77686_set_buck_mode(struct pmic *p, int buck, char opmode) in max77686_set_buck_mode() argument
[all …]
H A DKconfig50 This PMIC includes 4 DC/DC step-down buck regulators and 8 low-dropout
58 The AS3722 includes 7 DC/DC buck convertors, 11 low-noise LDOs, a
119 The Rockchip RK808 PMIC provides four buck DC-DC convertors, 8 LDOs,
128 The Rockchip RK8xx PMIC provides four buck DC-DC convertors, LDOs. It is
222 SoC. It provides 4 buck DC-DC convertors and 5 LDOs, and it is accessed
/OK3568_Linux_fs/u-boot/drivers/power/regulator/
H A Dmax77686.c72 static int max77686_buck_volt2hex(int buck, int uV) in max77686_buck_volt2hex() argument
77 switch (buck) { in max77686_buck_volt2hex()
101 pr_err("Value: %d uV is wrong for BUCK%d", uV, buck); in max77686_buck_volt2hex()
105 static int max77686_buck_hex2volt(int buck, int hex) in max77686_buck_hex2volt() argument
113 switch (buck) { in max77686_buck_hex2volt()
137 pr_err("Value: %#x is wrong for BUCK%d", hex, buck); in max77686_buck_hex2volt()
230 static int max77686_buck_hex2mode(int buck, int hex) in max77686_buck_hex2mode() argument
241 switch (buck) { in max77686_buck_hex2mode()
251 switch (buck) { in max77686_buck_hex2mode()
264 static int max77686_buck_modes(int buck, struct dm_regulator_mode **modesp) in max77686_buck_modes() argument
[all …]
H A Drk8xx.c278 static int _buck_set_value(struct udevice *pmic, int buck, int uvolt) in _buck_set_value() argument
280 const struct rk8xx_reg_info *info = get_buck_reg(pmic, buck, uvolt); in _buck_set_value()
294 __func__, uvolt, buck+1, info->vsel_reg, mask, val); in _buck_set_value()
304 static int _buck_set_enable(struct udevice *pmic, int buck, bool enable) in _buck_set_enable() argument
313 if (buck >= 4) { in _buck_set_enable()
314 buck -= 4; in _buck_set_enable()
320 value = ((1 << buck) | (1 << (buck + 4))); in _buck_set_enable()
322 value = ((0 << buck) | (1 << (buck + 4))); in _buck_set_enable()
328 mask = 1 << buck; in _buck_set_enable()
331 0, 3 << (buck * 2)); in _buck_set_enable()
[all …]
H A Drk806.c180 static int _buck_set_value(struct udevice *pmic, int buck, int uvolt) in _buck_set_value() argument
182 const struct rk8xx_reg_info *info = get_buck_reg(pmic, buck, uvolt); in _buck_set_value()
195 __func__, uvolt, buck + 1, info->vsel_reg, mask, val); in _buck_set_value()
200 static int _buck_set_enable(struct udevice *pmic, int buck, bool enable) in _buck_set_enable() argument
208 en_reg = RK806_POWER_EN(buck / 4); in _buck_set_enable()
210 value = ((1 << buck % 4) | (1 << (buck % 4 + 4))); in _buck_set_enable()
212 value = ((0 << buck % 4) | (1 << (buck % 4 + 4))); in _buck_set_enable()
224 static int _buck_set_suspend_value(struct udevice *pmic, int buck, int uvolt) in _buck_set_suspend_value() argument
226 const struct rk8xx_reg_info *info = get_buck_reg(pmic, buck, uvolt); in _buck_set_suspend_value()
239 __func__, uvolt, buck + 1, info->vsel_sleep_reg, mask, val); in _buck_set_suspend_value()
[all …]
H A Ds5m8767.c217 int buck = dev->driver_data; in buck_get_value() local
219 return reg_get_value(dev, &buck_param[buck]); in buck_get_value()
224 int buck = dev->driver_data; in buck_set_value() local
226 return reg_set_value(dev, &buck_param[buck], uv); in buck_set_value()
231 int buck = dev->driver_data; in buck_get_enable() local
233 return reg_get_enable(dev, &buck_param[buck]); in buck_get_enable()
238 int buck = dev->driver_data; in buck_set_enable() local
240 return reg_set_enable(dev, &buck_param[buck], enable); in buck_set_enable()
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mfd/
H A Daxp20x.txt87 DCDC2 : DC-DC buck : vin2-supply
88 DCDC3 : DC-DC buck : vin3-supply
99 DCDC1 : DC-DC buck : vin1-supply
100 DCDC2 : DC-DC buck : vin2-supply
101 DCDC3 : DC-DC buck : vin3-supply
102 DCDC4 : DC-DC buck : vin4-supply
103 DCDC5 : DC-DC buck : vin5-supply
125 DCDC1 : DC-DC buck : vin1-supply
126 DCDC2 : DC-DC buck : vin2-supply : poly-phase capable
127 DCDC3 : DC-DC buck : vin3-supply : poly-phase capable
[all …]
H A Dtps65086.txt18 after their hardware counterparts: buck[1-6],
25 - ti,regulator-step-size-25mv : This is applicable for buck[1-6], set this
28 - ti,regulator-decay : This is applicable for buck[1-6], set this if
H A Dmax8998.txt27 for buck 1 dvs. The format of the gpio specifier depends on the gpio
30 for buck 2 dvs. The format of the gpio specifier depends on the gpio
40 - max8998,pmic-buck-voltage-lock: If present, disallows changing of
41 preprogrammed buck dvfs voltages.
H A Dsamsung,sec-core.txt37 unwanted buck warm reset (setting buck voltages to default values).
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/regulator/
H A Dmt6380-regulator.txt5 to its regulator type, buck-<name> and ldo-<name>. The definition for each
11 buck-core1, buck-vcore, buck-vrf
20 mt6380_vcpu_reg: buck-vcore1 {
29 mt6380_vcore_reg: buck-vcore {
36 mt6380_vrf_reg: buck-vrf {
H A Dsamsung,s5m8767.txt7 The S5M8767 device provide buck and LDO regulators.
16 - s5m8767,pmic-buck-ds-gpios: GPIO specifiers for three host gpio's used
19 [1] If either of the 's5m8767,pmic-buck[2/3/4]-uses-gpio-dvs' optional
21 's5m8767,pmic-buck[2/3/4]-dvs-voltage' should be specified.
42 - s5m8767,pmic-buck-default-dvs-idx: Default voltage setting selected from
47 - s5m8767,pmic-buck-dvs-gpios: GPIO specifiers for three host gpio's used
84 s5m8767,pmic-buck-default-dvs-idx = <0>;
86 s5m8767,pmic-buck-dvs-gpios = <&gpx0 0 0>, /* DVS1 */
90 s5m8767,pmic-buck-ds-gpios = <&gpx2 3 0>, /* SET1 */
H A Dsamsung,s2mpa01.txt7 The S2MPA01 device provide buck and LDO regulators.
26 Optional properties of buck regulator nodes under "regulators" sub-node:
38 - buck{1,6},
39 - buck{2,4},
40 - buck{8,9,10}.
H A Dsamsung,s2mps11.txt7 The S2MPS11/13/14/15 and S2MPU02 devices provide buck and LDO regulators.
47 - buck{1,6},
48 - buck{3,4},
49 - buck{7,8,10}.
H A Dmax8997-regulator.txt25 [1] If none of the 'max8997,pmic-buck[1/2/5]-uses-gpio-dvs' optional
26 property is specified, the 'max8997,pmic-buck[1/2/5]-dvs-voltage'
30 If either of the 'max8997,pmic-buck[1/2/5]-uses-gpio-dvs' optional
32 'max8997,pmic-buck[1/2/5]-dvs-voltage' should be specified.
45 that of another buck, which is the side effect of the change (set_voltage).
H A Dlp872x.txt34 LP8720 has maximum 6 nodes. (child name: ldo1 ~ 5 and buck)
88 vcc: buck {
/OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/sound/
H A Dqcom,wcd9335.txt58 - vdd-buck-supply:
61 Definition: Should contain a reference to the 1.8V buck supply
63 - vdd-buck-sido-supply:
66 Definition: Should contain a reference to the 1.8V SIDO buck supply
117 vdd-buck-supply = <&pm8994_s4>;
119 vdd-buck-sido-supply = <&pm8994_s4>;
/OK3568_Linux_fs/kernel/arch/arm64/boot/dts/mediatek/
H A Dmt6380.dtsi14 mt6380_vcpu_reg: buck-vcore1 {
23 mt6380_vcore_reg: buck-vcore {
32 mt6380_vrf_reg: buck-vrf {
/OK3568_Linux_fs/kernel/arch/arm/boot/dts/
H A Dstm32mp15xx-dhcor-io1v8.dtsi10 vdd_io: regulator-buck-io {
12 regulator-name = "buck-io";
/OK3568_Linux_fs/u-boot/include/power/
H A Dmax77686_pmic.h161 int max77686_set_buck_voltage(struct pmic *p, int buck, ulong uV);
162 int max77686_set_buck_mode(struct pmic *p, int buck, char opmode);

123