Home
last modified time | relevance | path

Searched refs:dvs_gpio (Results 1 – 4 of 4) sorted by relevance

/drivers/regulator/
Dmax8973-regulator.c108 int dvs_gpio; member
187 if (gpio_is_valid(max->dvs_gpio)) in max8973_dcdc_set_voltage_sel()
204 if (gpio_is_valid(max->dvs_gpio)) { in max8973_dcdc_set_voltage_sel()
205 gpio_set_value_cansleep(max->dvs_gpio, gpio_val & 0x1); in max8973_dcdc_set_voltage_sel()
484 pdata->dvs_gpio = of_get_named_gpio(np, "maxim,dvs-gpio", 0); in max8973_parse_dt()
558 if ((pdata->dvs_gpio == -EPROBE_DEFER) || in max8973_probe()
606 max->dvs_gpio = (pdata->dvs_gpio) ? pdata->dvs_gpio : -EINVAL; in max8973_probe()
617 if (gpio_is_valid(max->dvs_gpio)) { in max8973_probe()
623 ret = devm_gpio_request_one(&client->dev, max->dvs_gpio, in max8973_probe()
628 max->dvs_gpio, ret); in max8973_probe()
Drk808-regulator.c59 struct gpio_desc *dvs_gpio[2]; member
94 struct gpio_desc *gpio = pdata->dvs_gpio[id]; in rk808_buck1_2_get_voltage_sel_regmap()
167 struct gpio_desc *gpio = pdata->dvs_gpio[id]; in rk808_buck1_2_set_voltage_sel()
206 struct gpio_desc *gpio = pdata->dvs_gpio[id]; in rk808_buck1_2_set_voltage_time_sel()
543 for (i = 0; i < ARRAY_SIZE(pdata->dvs_gpio); i++) { in rk808_regulator_dt_parse_pdata()
544 pdata->dvs_gpio[i] = in rk808_regulator_dt_parse_pdata()
547 if (IS_ERR(pdata->dvs_gpio[i])) { in rk808_regulator_dt_parse_pdata()
548 ret = PTR_ERR(pdata->dvs_gpio[i]); in rk808_regulator_dt_parse_pdata()
553 if (!pdata->dvs_gpio[i]) { in rk808_regulator_dt_parse_pdata()
560 gpiod_is_active_low(pdata->dvs_gpio[i]) ? in rk808_regulator_dt_parse_pdata()
Dwm831x-dcdc.c58 int dvs_gpio; member
244 gpio_set_value(dcdc->dvs_gpio, state); in wm831x_buckv_set_dvs()
264 if (dcdc->dvs_gpio && dcdc->on_vsel == vsel) in wm831x_buckv_set_voltage_sel()
267 if (dcdc->dvs_gpio && dcdc->dvs_vsel == vsel) in wm831x_buckv_set_voltage_sel()
276 if (!dcdc->dvs_gpio) in wm831x_buckv_set_voltage_sel()
323 if (dcdc->dvs_gpio && dcdc->dvs_gpio_state) in wm831x_buckv_get_voltage_sel()
398 if (!pdata || !pdata->dvs_gpio) in wm831x_buckv_dvs_init()
406 ret = devm_gpio_request_one(&pdev->dev, pdata->dvs_gpio, in wm831x_buckv_dvs_init()
415 dcdc->dvs_gpio = pdata->dvs_gpio; in wm831x_buckv_dvs_init()
Dlp872x.c111 int dvs_gpio; member
740 lp->dvs_gpio = gpio; in lp872x_init_dvs()