Home
last modified time | relevance | path

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

12

/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()
721 core->gpio_reset = -1; in si476x_core_probe()
722 if (gpio_is_valid(pdata->gpio_reset)) { in si476x_core_probe()
723 rval = gpio_request(pdata->gpio_reset, "si476x reset"); in si476x_core_probe()
729 core->gpio_reset = pdata->gpio_reset; in si476x_core_probe()
[all …]
/drivers/rtc/
Drtc-moxart.c58 int gpio_data, gpio_sclk, gpio_reset; member
105 gpio_set_value(moxart_rtc->gpio_reset, 1); in moxart_rtc_read_register()
112 gpio_set_value(moxart_rtc->gpio_reset, 0); in moxart_rtc_read_register()
128 gpio_set_value(moxart_rtc->gpio_reset, 1); in moxart_rtc_write_register()
133 gpio_set_value(moxart_rtc->gpio_reset, 0); in moxart_rtc_write_register()
266 moxart_rtc->gpio_reset = of_get_named_gpio(pdev->dev.of_node, in moxart_rtc_probe()
268 if (!gpio_is_valid(moxart_rtc->gpio_reset)) { in moxart_rtc_probe()
270 moxart_rtc->gpio_reset); in moxart_rtc_probe()
271 return moxart_rtc->gpio_reset; in moxart_rtc_probe()
290 ret = devm_gpio_request_one(&pdev->dev, moxart_rtc->gpio_reset, in moxart_rtc_probe()
/drivers/net/wireless/silabs/wfx/
Dbus_spi.c53 struct gpio_desc *gpio_reset; member
225 bus->gpio_reset = devm_gpiod_get_optional(&func->dev, "reset", GPIOD_OUT_LOW); in wfx_spi_probe()
226 if (IS_ERR(bus->gpio_reset)) in wfx_spi_probe()
227 return PTR_ERR(bus->gpio_reset); in wfx_spi_probe()
228 if (!bus->gpio_reset) { in wfx_spi_probe()
231 gpiod_set_consumer_name(bus->gpio_reset, "wfx reset"); in wfx_spi_probe()
232 gpiod_set_value_cansleep(bus->gpio_reset, 1); in wfx_spi_probe()
234 gpiod_set_value_cansleep(bus->gpio_reset, 0); in wfx_spi_probe()
/drivers/media/i2c/
Ds5k6a3.c62 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()
243 gpio_set_value(sensor->gpio_reset, 0); in __s5k6a3_power_off()
295 sensor->gpio_reset = -EINVAL; in s5k6a3_probe()
312 sensor->gpio_reset = gpio; in s5k6a3_probe()
Dov9640.c338 gpiod_set_value(priv->gpio_reset, 0); in ov9640_s_power()
340 gpiod_set_value(priv->gpio_reset, 1); in ov9640_s_power()
702 priv->gpio_reset = devm_gpiod_get(&client->dev, "Camera reset", in ov9640_probe()
704 if (IS_ERR(priv->gpio_reset)) { in ov9640_probe()
705 ret = PTR_ERR(priv->gpio_reset); in ov9640_probe()
/drivers/phy/ti/
Dphy-tusb1210.c56 struct gpio_desc *gpio_reset; member
102 gpiod_set_value_cansleep(tusb->gpio_reset, 1); in tusb1210_power_on()
117 gpiod_set_value_cansleep(tusb->gpio_reset, 0); in tusb1210_power_off()
172 gpiod_set_value_cansleep(tusb->gpio_reset, 0); in tusb1210_reset()
174 gpiod_set_value_cansleep(tusb->gpio_reset, 1); in tusb1210_reset()
497 tusb->gpio_reset = devm_gpiod_get_optional(&ulpi->dev, "reset", in tusb1210_probe()
499 if (IS_ERR(tusb->gpio_reset)) in tusb1210_probe()
500 return PTR_ERR(tusb->gpio_reset); in tusb1210_probe()
502 gpiod_set_value_cansleep(tusb->gpio_reset, 1); in tusb1210_probe()
/drivers/media/radio/si470x/
Dradio-si470x-i2c.c384 radio->gpio_reset = devm_gpiod_get_optional(&client->dev, "reset", in si470x_i2c_probe()
386 if (IS_ERR(radio->gpio_reset)) { in si470x_i2c_probe()
387 retval = PTR_ERR(radio->gpio_reset); in si470x_i2c_probe()
392 if (radio->gpio_reset) in si470x_i2c_probe()
393 gpiod_set_value(radio->gpio_reset, 1); in si470x_i2c_probe()
470 if (radio->gpio_reset) in si470x_i2c_remove()
471 gpiod_set_value(radio->gpio_reset, 0); in si470x_i2c_remove()
/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.c79 struct gpio_desc *gpio_reset; member
223 if (!IS_ERR_OR_NULL(tsdata->gpio_reset)) { in pixcir_reset()
224 gpiod_set_value_cansleep(tsdata->gpio_reset, 1); in pixcir_reset()
226 gpiod_set_value_cansleep(tsdata->gpio_reset, 0); in pixcir_reset()
526 tsdata->gpio_reset = devm_gpiod_get_optional(dev, "reset", in pixcir_i2c_ts_probe()
528 if (IS_ERR(tsdata->gpio_reset)) { in pixcir_i2c_ts_probe()
529 error = PTR_ERR(tsdata->gpio_reset); in pixcir_i2c_ts_probe()
/drivers/gpu/drm/bridge/
Dparade-ps8640.c104 struct gpio_desc *gpio_reset; member
403 gpiod_set_value(ps_bridge->gpio_reset, 1); in ps8640_resume()
405 gpiod_set_value(ps_bridge->gpio_reset, 0); in ps8640_resume()
408 gpiod_set_value(ps_bridge->gpio_reset, 1); in ps8640_resume()
410 gpiod_set_value(ps_bridge->gpio_reset, 0); in ps8640_resume()
432 gpiod_set_value(ps_bridge->gpio_reset, 1); in ps8640_suspend()
698 ps_bridge->gpio_reset = devm_gpiod_get(&client->dev, "reset", in ps8640_probe()
700 if (IS_ERR(ps_bridge->gpio_reset)) in ps8640_probe()
701 return PTR_ERR(ps_bridge->gpio_reset); in ps8640_probe()
Dtc358764.c154 struct gpio_desc *gpio_reset; member
264 gpiod_set_value(ctx->gpio_reset, 1); in tc358764_reset()
266 gpiod_set_value(ctx->gpio_reset, 0); in tc358764_reset()
315 ctx->gpio_reset = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW); in tc358764_parse_dt()
316 if (IS_ERR(ctx->gpio_reset)) { in tc358764_parse_dt()
318 return PTR_ERR(ctx->gpio_reset); in tc358764_parse_dt()
Dsii9234.c172 struct gpio_desc *gpio_reset; member
576 gpiod_set_value(ctx->gpio_reset, 1); in sii9234_hw_off()
583 gpiod_set_value(ctx->gpio_reset, 1); in sii9234_hw_reset()
585 gpiod_set_value(ctx->gpio_reset, 0); in sii9234_hw_reset()
827 ctx->gpio_reset = devm_gpiod_get(ctx->dev, "reset", GPIOD_OUT_LOW); in sii9234_init_resources()
828 if (IS_ERR(ctx->gpio_reset)) { in sii9234_init_resources()
830 return PTR_ERR(ctx->gpio_reset); in sii9234_init_resources()
/drivers/usb/misc/
Dusb251xb.c117 struct gpio_desc *gpio_reset; member
244 struct gpio_chip *gc = gpiod_to_chip(hub->gpio_reset); in usb251x_check_gpio_chip()
248 if (!hub->gpio_reset) in usb251x_check_gpio_chip()
271 if (!hub->gpio_reset) in usb251xb_reset()
276 gpiod_set_value_cansleep(hub->gpio_reset, 1); in usb251xb_reset()
278 gpiod_set_value_cansleep(hub->gpio_reset, 0); in usb251xb_reset()
418 hub->gpio_reset = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_HIGH); in usb251xb_get_ofdata()
419 if (IS_ERR(hub->gpio_reset)) in usb251xb_get_ofdata()
420 return dev_err_probe(dev, PTR_ERR(hub->gpio_reset), in usb251xb_get_ofdata()
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()
/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()
/drivers/iio/dac/
Dad5766.c116 struct gpio_desc *gpio_reset; member
210 if (st->gpio_reset) { in ad5766_reset()
211 gpiod_set_value_cansleep(st->gpio_reset, 1); in ad5766_reset()
213 gpiod_set_value_cansleep(st->gpio_reset, 0); in ad5766_reset()
627 st->gpio_reset = devm_gpiod_get_optional(&st->spi->dev, "reset", in ad5766_probe()
629 if (IS_ERR(st->gpio_reset)) in ad5766_probe()
630 return PTR_ERR(st->gpio_reset); in ad5766_probe()
Dad5770r.c137 struct gpio_desc *gpio_reset; member
236 if (!st->gpio_reset) in ad5770r_reset()
239 gpiod_set_value_cansleep(st->gpio_reset, 0); in ad5770r_reset()
241 gpiod_set_value_cansleep(st->gpio_reset, 1); in ad5770r_reset()
557 st->gpio_reset = devm_gpiod_get_optional(&st->spi->dev, "reset", in ad5770r_init()
559 if (IS_ERR(st->gpio_reset)) in ad5770r_init()
560 return PTR_ERR(st->gpio_reset); in ad5770r_init()
Dad5758.c115 struct gpio_desc *gpio_reset; member
479 if (st->gpio_reset) { in ad5758_reset()
480 gpiod_set_value(st->gpio_reset, 0); in ad5758_reset()
482 gpiod_set_value(st->gpio_reset, 1); in ad5758_reset()
772 st->gpio_reset = devm_gpiod_get_optional(&st->spi->dev, "reset", in ad5758_init()
774 if (IS_ERR(st->gpio_reset)) in ad5758_init()
775 return PTR_ERR(st->gpio_reset); in ad5758_init()
Dad7293.c143 struct gpio_desc *gpio_reset; member
764 if (st->gpio_reset) { in ad7293_reset()
765 gpiod_set_value(st->gpio_reset, 0); in ad7293_reset()
767 gpiod_set_value(st->gpio_reset, 1); in ad7293_reset()
781 st->gpio_reset = devm_gpiod_get_optional(&st->spi->dev, "reset", in ad7293_properties_parse()
783 if (IS_ERR(st->gpio_reset)) in ad7293_properties_parse()
784 return dev_err_probe(&spi->dev, PTR_ERR(st->gpio_reset), in ad7293_properties_parse()
Dad3552r.c267 struct gpio_desc *gpio_reset; member
661 dac->gpio_reset = devm_gpiod_get_optional(&dac->spi->dev, "reset", in ad3552r_reset()
663 if (IS_ERR(dac->gpio_reset)) in ad3552r_reset()
664 return dev_err_probe(&dac->spi->dev, PTR_ERR(dac->gpio_reset), in ad3552r_reset()
667 if (dac->gpio_reset) { in ad3552r_reset()
670 gpiod_set_value_cansleep(dac->gpio_reset, 1); in ad3552r_reset()
/drivers/iio/adc/
Dad7606.c54 if (st->gpio_reset) { in ad7606_reset()
55 gpiod_set_value(st->gpio_reset, 1); in ad7606_reset()
57 gpiod_set_value(st->gpio_reset, 0); in ad7606_reset()
439 st->gpio_reset = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW); in ad7606_request_gpios()
440 if (IS_ERR(st->gpio_reset)) in ad7606_request_gpios()
441 return PTR_ERR(st->gpio_reset); in ad7606_request_gpios()
/drivers/staging/media/atomisp/i2c/
Datomisp-lm3554.c629 gpiod_set_value(pdata->gpio_reset, power); in __lm3554_s_power()
768 if (!pdata->gpio_reset) in lm3554_gpio_init()
771 ret = gpiod_direction_output(pdata->gpio_reset, 0); in lm3554_gpio_init()
797 ret = gpiod_direction_output(pdata->gpio_reset, 0); in lm3554_gpio_uninit()
807 platform_data.gpio_reset = gpiod_get_index(&client->dev, in lm3554_platform_data_func()
809 if (IS_ERR(platform_data.gpio_reset)) in lm3554_platform_data_func()
810 return ERR_CAST(platform_data.gpio_reset); in lm3554_platform_data_func()
/drivers/media/radio/si4713/
Dsi4713.c373 if (sdev->gpio_reset) { in si4713_powerup()
375 gpiod_set_value(sdev->gpio_reset, 1); in si4713_powerup()
397 gpiod_set_value(sdev->gpio_reset, 0); in si4713_powerup()
436 if (sdev->gpio_reset) in si4713_powerdown()
437 gpiod_set_value(sdev->gpio_reset, 0); in si4713_powerdown()
1447 sdev->gpio_reset = devm_gpiod_get_optional(&client->dev, "reset", in si4713_probe()
1449 if (IS_ERR(sdev->gpio_reset)) { in si4713_probe()
1450 rval = PTR_ERR(sdev->gpio_reset); in si4713_probe()
/drivers/staging/media/atomisp/include/media/
Dlm3554.h125 struct gpio_desc *gpio_reset; member

12