Home
last modified time | relevance | path

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

123

/Linux-v5.4/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-v5.4/arch/arm/mach-pxa/
Dtosa-bt.c19 gpio_set_value(data->gpio_reset, 0); in tosa_bt_on()
21 gpio_set_value(data->gpio_reset, 1); in tosa_bt_on()
23 gpio_set_value(data->gpio_reset, 0); in tosa_bt_on()
28 gpio_set_value(data->gpio_reset, 1); in tosa_bt_off()
31 gpio_set_value(data->gpio_reset, 0); in tosa_bt_off()
60 rc = gpio_request(data->gpio_reset, "Bluetooth reset"); in tosa_bt_probe()
63 rc = gpio_direction_output(data->gpio_reset, 0); in tosa_bt_probe()
96 gpio_free(data->gpio_reset); in tosa_bt_probe()
117 gpio_free(data->gpio_reset); in tosa_bt_remove()
Dtosa_bt.h14 int gpio_reset; member
/Linux-v5.4/drivers/phy/ti/
Dphy-tusb1210.c23 struct gpio_desc *gpio_reset; member
32 gpiod_set_value_cansleep(tusb->gpio_reset, 1); in tusb1210_power_on()
47 gpiod_set_value_cansleep(tusb->gpio_reset, 0); in tusb1210_power_off()
102 tusb->gpio_reset = devm_gpiod_get_optional(&ulpi->dev, "reset", in tusb1210_probe()
104 if (IS_ERR(tusb->gpio_reset)) in tusb1210_probe()
105 return PTR_ERR(tusb->gpio_reset); in tusb1210_probe()
107 gpiod_set_value_cansleep(tusb->gpio_reset, 1); in tusb1210_probe()
/Linux-v5.4/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-v5.4/drivers/mfd/
Dsi476x-i2c.c133 if (gpio_is_valid(core->gpio_reset)) in si476x_core_start()
134 gpio_set_value_cansleep(core->gpio_reset, 1); in si476x_core_start()
200 if (gpio_is_valid(core->gpio_reset)) in si476x_core_start()
201 gpio_set_value_cansleep(core->gpio_reset, 0); in si476x_core_start()
246 if (gpio_is_valid(core->gpio_reset)) in si476x_core_stop()
247 gpio_set_value_cansleep(core->gpio_reset, 0); in si476x_core_stop()
716 core->gpio_reset = -1; in si476x_core_probe()
717 if (gpio_is_valid(pdata->gpio_reset)) { in si476x_core_probe()
718 rval = gpio_request(pdata->gpio_reset, "si476x reset"); in si476x_core_probe()
724 core->gpio_reset = pdata->gpio_reset; in si476x_core_probe()
[all …]
/Linux-v5.4/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()
239 hub->gpio_reset = of_get_named_gpio(np, "reset-gpios", 0); in usb3503_probe()
240 if (hub->gpio_reset == -EPROBE_DEFER) in usb3503_probe()
273 if (gpio_is_valid(hub->gpio_reset)) { in usb3503_probe()
274 err = devm_gpio_request_one(dev, hub->gpio_reset, in usb3503_probe()
281 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.c120 struct gpio_desc *gpio_reset; member
239 struct gpio_chip *gc = gpiod_to_chip(hub->gpio_reset); in usb251x_check_gpio_chip()
243 if (!hub->gpio_reset) in usb251x_check_gpio_chip()
266 if (!hub->gpio_reset) in usb251xb_reset()
271 gpiod_set_value_cansleep(hub->gpio_reset, state); in usb251xb_reset()
414 hub->gpio_reset = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_HIGH); in usb251xb_get_ofdata()
415 if (PTR_ERR(hub->gpio_reset) == -EPROBE_DEFER) { in usb251xb_get_ofdata()
417 } else if (IS_ERR(hub->gpio_reset)) { in usb251xb_get_ofdata()
418 err = PTR_ERR(hub->gpio_reset); in usb251xb_get_ofdata()
/Linux-v5.4/sound/soc/codecs/
Dtlv320aic3x.c83 int gpio_reset; member
1376 if (gpio_is_valid(aic3x->gpio_reset)) in aic3x_regulator_event()
1377 gpio_set_value(aic3x->gpio_reset, 0); in aic3x_regulator_event()
1397 if (gpio_is_valid(aic3x->gpio_reset)) { in aic3x_set_power()
1399 gpio_set_value(aic3x->gpio_reset, 1); in aic3x_set_power()
1608 if (gpio_is_valid(aic3x->gpio_reset) && in aic3x_is_shared_reset()
1609 aic3x->gpio_reset == a->gpio_reset) in aic3x_is_shared_reset()
1797 aic3x->gpio_reset = pdata->gpio_reset; in aic3x_i2c_probe()
1808 aic3x->gpio_reset = ret; in aic3x_i2c_probe()
1813 aic3x->gpio_reset = ret; in aic3x_i2c_probe()
[all …]
Dwm0010.c97 int gpio_reset; member
177 gpio_set_value_cansleep(wm0010->gpio_reset, in wm0010_halt()
616 gpio_set_value_cansleep(wm0010->gpio_reset, !wm0010->gpio_reset_value); in wm0010_boot()
910 if (wm0010->pdata.gpio_reset) { in wm0010_spi_probe()
911 wm0010->gpio_reset = wm0010->pdata.gpio_reset; in wm0010_spi_probe()
923 ret = devm_gpio_request_one(wm0010->dev, wm0010->gpio_reset, in wm0010_spi_probe()
979 gpio_set_value_cansleep(wm0010->gpio_reset, in wm0010_spi_remove()
/Linux-v5.4/drivers/media/i2c/
Ds5k6a3.c62 int gpio_reset; member
216 gpio_set_value(sensor->gpio_reset, 1); in __s5k6a3_power_on()
218 gpio_set_value(sensor->gpio_reset, 0); in __s5k6a3_power_on()
220 gpio_set_value(sensor->gpio_reset, 1); in __s5k6a3_power_on()
238 gpio_set_value(sensor->gpio_reset, 0); in __s5k6a3_power_off()
290 sensor->gpio_reset = -EINVAL; in s5k6a3_probe()
307 sensor->gpio_reset = gpio; in s5k6a3_probe()
/Linux-v5.4/drivers/pcmcia/
Dpxa2xx_mainstone.c39 skt->gpio_reset = devm_gpiod_get(dev, skt->nr ? "breset" : "areset", in mst_pcmcia_hw_init()
41 if (IS_ERR(skt->gpio_reset)) in mst_pcmcia_hw_init()
42 return PTR_ERR(skt->gpio_reset); in mst_pcmcia_hw_init()
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-v5.4/drivers/input/touchscreen/
Dsx8654.c99 struct gpio_desc *gpio_reset; member
244 if (ts->gpio_reset) { in sx8654_reset()
245 gpiod_set_value_cansleep(ts->gpio_reset, 1); in sx8654_reset()
247 gpiod_set_value_cansleep(ts->gpio_reset, 0); in sx8654_reset()
324 sx8654->gpio_reset = devm_gpiod_get_optional(&client->dev, "reset", in sx8654_probe()
326 if (IS_ERR(sx8654->gpio_reset)) { in sx8654_probe()
327 error = PTR_ERR(sx8654->gpio_reset); in sx8654_probe()
Dpixcir_i2c_ts.c28 struct gpio_desc *gpio_reset; member
173 if (!IS_ERR_OR_NULL(tsdata->gpio_reset)) { in pixcir_reset()
174 gpiod_set_value_cansleep(tsdata->gpio_reset, 1); in pixcir_reset()
176 gpiod_set_value_cansleep(tsdata->gpio_reset, 0); in pixcir_reset()
517 tsdata->gpio_reset = devm_gpiod_get_optional(dev, "reset", in pixcir_i2c_ts_probe()
519 if (IS_ERR(tsdata->gpio_reset)) { in pixcir_i2c_ts_probe()
520 error = PTR_ERR(tsdata->gpio_reset); in pixcir_i2c_ts_probe()
/Linux-v5.4/drivers/media/radio/si470x/
Dradio-si470x-i2c.c385 radio->gpio_reset = devm_gpiod_get_optional(&client->dev, "reset", in si470x_i2c_probe()
387 if (IS_ERR(radio->gpio_reset)) { in si470x_i2c_probe()
388 retval = PTR_ERR(radio->gpio_reset); in si470x_i2c_probe()
393 if (radio->gpio_reset) in si470x_i2c_probe()
394 gpiod_set_value(radio->gpio_reset, 1); in si470x_i2c_probe()
482 if (radio->gpio_reset) in si470x_i2c_remove()
483 gpiod_set_value(radio->gpio_reset, 0); in si470x_i2c_remove()
/Linux-v5.4/drivers/gpu/drm/bridge/
Dtc358764.c157 struct gpio_desc *gpio_reset; member
274 gpiod_set_value(ctx->gpio_reset, 1); in tc358764_reset()
276 gpiod_set_value(ctx->gpio_reset, 0); in tc358764_reset()
403 ctx->gpio_reset = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW); in tc358764_parse_dt()
404 if (IS_ERR(ctx->gpio_reset)) { in tc358764_parse_dt()
406 return PTR_ERR(ctx->gpio_reset); in tc358764_parse_dt()
/Linux-v5.4/drivers/iio/dac/
Dad5758.c116 struct gpio_desc *gpio_reset; member
480 if (st->gpio_reset) { in ad5758_reset()
481 gpiod_set_value(st->gpio_reset, 0); in ad5758_reset()
483 gpiod_set_value(st->gpio_reset, 1); in ad5758_reset()
773 st->gpio_reset = devm_gpiod_get_optional(&st->spi->dev, "reset", in ad5758_init()
775 if (IS_ERR(st->gpio_reset)) in ad5758_init()
776 return PTR_ERR(st->gpio_reset); in ad5758_init()
/Linux-v5.4/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-v5.4/drivers/iio/adc/
Dad7606.c53 if (st->gpio_reset) { in ad7606_reset()
54 gpiod_set_value(st->gpio_reset, 1); in ad7606_reset()
56 gpiod_set_value(st->gpio_reset, 0); in ad7606_reset()
438 st->gpio_reset = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW); in ad7606_request_gpios()
439 if (IS_ERR(st->gpio_reset)) in ad7606_request_gpios()
440 return PTR_ERR(st->gpio_reset); in ad7606_request_gpios()
/Linux-v5.4/include/sound/
Dwm0010.h14 int gpio_reset; member
Duda1380.h13 int gpio_reset; member
/Linux-v5.4/include/media/i2c/
Dov9650.h22 int gpio_reset; member
Ds5k4ecgx.h29 struct s5k4ecgx_gpio gpio_reset; member

123