Home
last modified time | relevance | path

Searched refs:gpio_reset (Results 1 – 25 of 52) sorted by relevance

123

/Linux-v4.19/arch/arm/mach-s3c24xx/
Dsetup-camif.c16 static void camif_get_gpios(int *gpio_start, int *gpio_reset) in camif_get_gpios() argument
20 *gpio_reset = S3C2410_GPJ(12); in camif_get_gpios()
24 *gpio_reset = S3C64XX_GPF(3); in camif_get_gpios()
30 int gpio_start, gpio_reset; in s3c_camif_gpio_get() local
33 camif_get_gpios(&gpio_start, &gpio_reset); in s3c_camif_gpio_get()
38 if (gpio == gpio_reset) in s3c_camif_gpio_get()
58 int i, gpio_start, gpio_reset; in s3c_camif_gpio_put() local
60 camif_get_gpios(&gpio_start, &gpio_reset); in s3c_camif_gpio_put()
64 if (gpio != gpio_reset) in s3c_camif_gpio_put()
/Linux-v4.19/arch/arm/mach-pxa/
Dtosa-bt.c23 gpio_set_value(data->gpio_reset, 0); in tosa_bt_on()
25 gpio_set_value(data->gpio_reset, 1); in tosa_bt_on()
27 gpio_set_value(data->gpio_reset, 0); in tosa_bt_on()
32 gpio_set_value(data->gpio_reset, 1); in tosa_bt_off()
35 gpio_set_value(data->gpio_reset, 0); in tosa_bt_off()
64 rc = gpio_request(data->gpio_reset, "Bluetooth reset"); in tosa_bt_probe()
67 rc = gpio_direction_output(data->gpio_reset, 0); in tosa_bt_probe()
100 gpio_free(data->gpio_reset); in tosa_bt_probe()
121 gpio_free(data->gpio_reset); in tosa_bt_remove()
Dtosa_bt.h18 int gpio_reset; member
/Linux-v4.19/drivers/phy/ti/
Dphy-tusb1210.c26 struct gpio_desc *gpio_reset; member
35 gpiod_set_value_cansleep(tusb->gpio_reset, 1); in tusb1210_power_on()
50 gpiod_set_value_cansleep(tusb->gpio_reset, 0); in tusb1210_power_off()
105 tusb->gpio_reset = devm_gpiod_get_optional(&ulpi->dev, "reset", in tusb1210_probe()
107 if (IS_ERR(tusb->gpio_reset)) in tusb1210_probe()
108 return PTR_ERR(tusb->gpio_reset); in tusb1210_probe()
110 gpiod_set_value_cansleep(tusb->gpio_reset, 1); in tusb1210_probe()
/Linux-v4.19/drivers/rtc/
Drtc-moxart.c61 int gpio_data, gpio_sclk, gpio_reset; member
108 gpio_set_value(moxart_rtc->gpio_reset, 1); in moxart_rtc_read_register()
115 gpio_set_value(moxart_rtc->gpio_reset, 0); in moxart_rtc_read_register()
131 gpio_set_value(moxart_rtc->gpio_reset, 1); in moxart_rtc_write_register()
136 gpio_set_value(moxart_rtc->gpio_reset, 0); in moxart_rtc_write_register()
269 moxart_rtc->gpio_reset = of_get_named_gpio(pdev->dev.of_node, in moxart_rtc_probe()
271 if (!gpio_is_valid(moxart_rtc->gpio_reset)) { in moxart_rtc_probe()
273 moxart_rtc->gpio_reset); in moxart_rtc_probe()
274 return moxart_rtc->gpio_reset; in moxart_rtc_probe()
293 ret = devm_gpio_request_one(&pdev->dev, moxart_rtc->gpio_reset, in moxart_rtc_probe()
/Linux-v4.19/drivers/usb/misc/
Dusb3503.c51 int gpio_reset; member
61 if (gpio_is_valid(hub->gpio_reset)) in usb3503_reset()
62 gpio_set_value_cansleep(hub->gpio_reset, state); in usb3503_reset()
172 hub->gpio_reset = pdata->gpio_reset; in usb3503_probe()
245 hub->gpio_reset = of_get_named_gpio(np, "reset-gpios", 0); in usb3503_probe()
246 if (hub->gpio_reset == -EPROBE_DEFER) in usb3503_probe()
279 if (gpio_is_valid(hub->gpio_reset)) { in usb3503_probe()
280 err = devm_gpio_request_one(dev, hub->gpio_reset, in usb3503_probe()
287 hub->gpio_reset, err); in usb3503_probe()
Dusb4604.c25 struct gpio_desc *gpio_reset; member
30 gpiod_set_value_cansleep(hub->gpio_reset, state); in usb4604_reset()
92 hub->gpio_reset = gpio; in usb4604_probe()
Dusb251xb.c119 struct gpio_desc *gpio_reset; member
227 if (!hub->gpio_reset) in usb251xb_reset()
230 gpiod_set_value_cansleep(hub->gpio_reset, state); in usb251xb_reset()
355 hub->gpio_reset = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_HIGH); in usb251xb_get_ofdata()
356 if (PTR_ERR(hub->gpio_reset) == -EPROBE_DEFER) { in usb251xb_get_ofdata()
358 } else if (IS_ERR(hub->gpio_reset)) { in usb251xb_get_ofdata()
359 err = PTR_ERR(hub->gpio_reset); in usb251xb_get_ofdata()
/Linux-v4.19/drivers/mfd/
Dsi476x-i2c.c142 if (gpio_is_valid(core->gpio_reset)) in si476x_core_start()
143 gpio_set_value_cansleep(core->gpio_reset, 1); in si476x_core_start()
209 if (gpio_is_valid(core->gpio_reset)) in si476x_core_start()
210 gpio_set_value_cansleep(core->gpio_reset, 0); in si476x_core_start()
255 if (gpio_is_valid(core->gpio_reset)) in si476x_core_stop()
256 gpio_set_value_cansleep(core->gpio_reset, 0); in si476x_core_stop()
725 core->gpio_reset = -1; in si476x_core_probe()
726 if (gpio_is_valid(pdata->gpio_reset)) { in si476x_core_probe()
727 rval = gpio_request(pdata->gpio_reset, "si476x reset"); in si476x_core_probe()
733 core->gpio_reset = pdata->gpio_reset; in si476x_core_probe()
[all …]
/Linux-v4.19/sound/soc/codecs/
Dtlv320aic3x.c86 int gpio_reset; member
1357 if (gpio_is_valid(aic3x->gpio_reset)) in aic3x_regulator_event()
1358 gpio_set_value(aic3x->gpio_reset, 0); in aic3x_regulator_event()
1378 if (gpio_is_valid(aic3x->gpio_reset)) { in aic3x_set_power()
1380 gpio_set_value(aic3x->gpio_reset, 1); in aic3x_set_power()
1589 if (gpio_is_valid(aic3x->gpio_reset) && in aic3x_is_shared_reset()
1590 aic3x->gpio_reset == a->gpio_reset) in aic3x_is_shared_reset()
1796 aic3x->gpio_reset = pdata->gpio_reset; in aic3x_i2c_probe()
1807 aic3x->gpio_reset = ret; in aic3x_i2c_probe()
1812 aic3x->gpio_reset = ret; in aic3x_i2c_probe()
[all …]
Dwm0010.c100 int gpio_reset; member
180 gpio_set_value_cansleep(wm0010->gpio_reset, in wm0010_halt()
619 gpio_set_value_cansleep(wm0010->gpio_reset, !wm0010->gpio_reset_value); in wm0010_boot()
913 if (wm0010->pdata.gpio_reset) { in wm0010_spi_probe()
914 wm0010->gpio_reset = wm0010->pdata.gpio_reset; in wm0010_spi_probe()
926 ret = devm_gpio_request_one(wm0010->dev, wm0010->gpio_reset, in wm0010_spi_probe()
982 gpio_set_value_cansleep(wm0010->gpio_reset, in wm0010_spi_remove()
Dtlv320aic31xx.c161 struct gpio_desc *gpio_reset; member
1131 if (aic31xx->gpio_reset) in aic31xx_regulator_event()
1132 gpiod_set_value(aic31xx->gpio_reset, 1); in aic31xx_regulator_event()
1145 if (aic31xx->gpio_reset) { in aic31xx_reset()
1146 gpiod_set_value(aic31xx->gpio_reset, 1); in aic31xx_reset()
1148 gpiod_set_value(aic31xx->gpio_reset, 0); in aic31xx_reset()
1441 aic31xx->gpio_reset = devm_gpiod_get_optional(aic31xx->dev, "reset", in aic31xx_i2c_probe()
1443 if (IS_ERR(aic31xx->gpio_reset)) { in aic31xx_i2c_probe()
1445 return PTR_ERR(aic31xx->gpio_reset); in aic31xx_i2c_probe()
Duda1380.c159 if (gpio_is_valid(pdata->gpio_reset)) { in uda1380_reset()
160 gpio_set_value(pdata->gpio_reset, 1); in uda1380_reset()
162 gpio_set_value(pdata->gpio_reset, 0); in uda1380_reset()
760 if (gpio_is_valid(pdata->gpio_reset)) { in uda1380_i2c_probe()
761 ret = devm_gpio_request_one(&i2c->dev, pdata->gpio_reset, in uda1380_i2c_probe()
/Linux-v4.19/drivers/media/i2c/
Ds5k6a3.c65 int gpio_reset; member
219 gpio_set_value(sensor->gpio_reset, 1); in __s5k6a3_power_on()
221 gpio_set_value(sensor->gpio_reset, 0); in __s5k6a3_power_on()
223 gpio_set_value(sensor->gpio_reset, 1); in __s5k6a3_power_on()
241 gpio_set_value(sensor->gpio_reset, 0); in __s5k6a3_power_off()
294 sensor->gpio_reset = -EINVAL; in s5k6a3_probe()
311 sensor->gpio_reset = gpio; in s5k6a3_probe()
/Linux-v4.19/drivers/pcmcia/
Dsa1100_generic.c58 skt->gpio_reset = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); in sa11x0_cf_hw_init()
59 if (IS_ERR(skt->gpio_reset)) in sa11x0_cf_hw_init()
60 return PTR_ERR(skt->gpio_reset); in sa11x0_cf_hw_init()
/Linux-v4.19/drivers/input/touchscreen/
Dpixcir_i2c_ts.c36 struct gpio_desc *gpio_reset; member
181 if (!IS_ERR_OR_NULL(tsdata->gpio_reset)) { in pixcir_reset()
182 gpiod_set_value_cansleep(tsdata->gpio_reset, 1); in pixcir_reset()
184 gpiod_set_value_cansleep(tsdata->gpio_reset, 0); in pixcir_reset()
525 tsdata->gpio_reset = devm_gpiod_get_optional(dev, "reset", in pixcir_i2c_ts_probe()
527 if (IS_ERR(tsdata->gpio_reset)) { in pixcir_i2c_ts_probe()
528 error = PTR_ERR(tsdata->gpio_reset); in pixcir_i2c_ts_probe()
/Linux-v4.19/drivers/staging/iio/adc/
Dad7606.c36 if (st->gpio_reset) { in ad7606_reset()
37 gpiod_set_value(st->gpio_reset, 1); in ad7606_reset()
39 gpiod_set_value(st->gpio_reset, 0); in ad7606_reset()
334 st->gpio_reset = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW); in ad7606_request_gpios()
335 if (IS_ERR(st->gpio_reset)) in ad7606_request_gpios()
336 return PTR_ERR(st->gpio_reset); in ad7606_request_gpios()
/Linux-v4.19/sound/soc/
Dsoc-ac97.c34 int gpio_reset; member
292 gpio_direction_output(snd_ac97_rst_cfg.gpio_reset, 0); in snd_soc_ac97_reset()
296 gpio_direction_output(snd_ac97_rst_cfg.gpio_reset, 1); in snd_soc_ac97_reset()
372 cfg->gpio_reset = gpio; in snd_soc_ac97_parse_pinctl()
/Linux-v4.19/include/media/i2c/
Dov9650.h25 int gpio_reset; member
Dm5mols.h28 int gpio_reset; member
Ds5k4ecgx.h33 struct s5k4ecgx_gpio gpio_reset; member
Ds5c73m3.h46 struct s5c73m3_gpio gpio_reset; member
/Linux-v4.19/include/sound/
Dwm0010.h18 int gpio_reset; member
Duda1380.h16 int gpio_reset; member
/Linux-v4.19/include/linux/platform_data/
Dusb3503.h22 int gpio_reset; member

123