Home
last modified time | relevance | path

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

12

/linux-6.6.21/drivers/iio/adc/
Dti-lmp92064.c222 struct gpio_desc *gpio_reset) in lmp92064_reset() argument
227 if (gpio_reset) { in lmp92064_reset()
235 gpiod_set_value_cansleep(gpio_reset, 1); in lmp92064_reset()
237 gpiod_set_value_cansleep(gpio_reset, 0); in lmp92064_reset()
288 struct gpio_desc *gpio_reset; in lmp92064_adc_probe() local
337 gpio_reset = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_HIGH); in lmp92064_adc_probe()
338 if (IS_ERR(gpio_reset)) in lmp92064_adc_probe()
339 return dev_err_probe(dev, PTR_ERR(gpio_reset), in lmp92064_adc_probe()
342 ret = lmp92064_reset(priv, gpio_reset); in lmp92064_adc_probe()
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()
/linux-6.6.21/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 …]
/linux-6.6.21/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()
/linux-6.6.21/drivers/rtc/
Drtc-moxart.c61 struct gpio_desc *gpio_reset; member
108 gpiod_set_value(moxart_rtc->gpio_reset, 1); in moxart_rtc_read_register()
115 gpiod_set_value(moxart_rtc->gpio_reset, 0); in moxart_rtc_read_register()
131 gpiod_set_value(moxart_rtc->gpio_reset, 1); in moxart_rtc_write_register()
136 gpiod_set_value(moxart_rtc->gpio_reset, 0); in moxart_rtc_write_register()
269 moxart_rtc->gpio_reset = devm_gpiod_get(&pdev->dev, "rtc-reset", in moxart_rtc_probe()
271 ret = PTR_ERR_OR_ZERO(moxart_rtc->gpio_reset); in moxart_rtc_probe()
/linux-6.6.21/drivers/media/i2c/
Ds5k6a3.c62 struct gpio_desc *gpio_reset; member
219 gpiod_set_value_cansleep(sensor->gpio_reset, 0); in __s5k6a3_power_on()
221 gpiod_set_value_cansleep(sensor->gpio_reset, 1); in __s5k6a3_power_on()
223 gpiod_set_value_cansleep(sensor->gpio_reset, 0); in __s5k6a3_power_on()
243 gpiod_set_value_cansleep(sensor->gpio_reset, 1); in __s5k6a3_power_off()
301 sensor->gpio_reset = devm_gpiod_get(dev, NULL, GPIOD_OUT_HIGH); in s5k6a3_probe()
302 ret = PTR_ERR_OR_ZERO(sensor->gpio_reset); in s5k6a3_probe()
/linux-6.6.21/drivers/phy/ti/
Dphy-tusb1210.c57 struct gpio_desc *gpio_reset; member
103 gpiod_set_value_cansleep(tusb->gpio_reset, 1); in tusb1210_power_on()
118 gpiod_set_value_cansleep(tusb->gpio_reset, 0); in tusb1210_power_off()
173 gpiod_set_value_cansleep(tusb->gpio_reset, 0); in tusb1210_reset()
175 gpiod_set_value_cansleep(tusb->gpio_reset, 1); in tusb1210_reset()
498 tusb->gpio_reset = devm_gpiod_get_optional(&ulpi->dev, "reset", in tusb1210_probe()
500 if (IS_ERR(tusb->gpio_reset)) in tusb1210_probe()
501 return PTR_ERR(tusb->gpio_reset); in tusb1210_probe()
503 gpiod_set_value_cansleep(tusb->gpio_reset, 1); in tusb1210_probe()
/linux-6.6.21/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()
/linux-6.6.21/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 return dev_err_probe(&client->dev, 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()
522 tsdata->gpio_reset = devm_gpiod_get_optional(dev, "reset", in pixcir_i2c_ts_probe()
524 if (IS_ERR(tsdata->gpio_reset)) in pixcir_i2c_ts_probe()
525 return dev_err_probe(dev, PTR_ERR(tsdata->gpio_reset), in pixcir_i2c_ts_probe()
/linux-6.6.21/drivers/gpu/drm/bridge/
Dparade-ps8640.c105 struct gpio_desc *gpio_reset; member
395 gpiod_set_value(ps_bridge->gpio_reset, 1); in ps8640_resume()
397 gpiod_set_value(ps_bridge->gpio_reset, 0); in ps8640_resume()
400 gpiod_set_value(ps_bridge->gpio_reset, 1); in ps8640_resume()
402 gpiod_set_value(ps_bridge->gpio_reset, 0); in ps8640_resume()
424 gpiod_set_value(ps_bridge->gpio_reset, 1); in ps8640_suspend()
660 ps_bridge->gpio_reset = devm_gpiod_get(&client->dev, "reset", in ps8640_probe()
662 if (IS_ERR(ps_bridge->gpio_reset)) in ps8640_probe()
663 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()
/linux-6.6.21/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()
414 hub->gpio_reset = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_HIGH); in usb251xb_get_ofdata()
415 if (IS_ERR(hub->gpio_reset)) in usb251xb_get_ofdata()
416 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()
/linux-6.6.21/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-6.6.21/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()
/linux-6.6.21/sound/soc/codecs/
Dtlv320aic3x.c82 struct gpio_desc *gpio_reset; member
1370 if (aic3x->gpio_reset) in aic3x_regulator_event()
1371 gpiod_set_value(aic3x->gpio_reset, 1); in aic3x_regulator_event()
1391 if (aic3x->gpio_reset) { in aic3x_set_power()
1393 gpiod_set_value(aic3x->gpio_reset, 0); in aic3x_set_power()
1791 aic3x->gpio_reset = devm_gpiod_get_optional(dev, "reset", in aic3x_probe()
1793 ret = PTR_ERR_OR_ZERO(aic3x->gpio_reset); in aic3x_probe()
1805 aic3x->gpio_reset = devm_gpiod_get(dev, "reset", in aic3x_probe()
1807 ret = PTR_ERR_OR_ZERO(aic3x->gpio_reset); in aic3x_probe()
1814 gpiod_set_consumer_name(aic3x->gpio_reset, "tlv320aic3x reset"); in aic3x_probe()
[all …]
Dwm0010.c97 int gpio_reset; member
177 gpio_set_value_cansleep(wm0010->gpio_reset, in wm0010_halt()
613 gpio_set_value_cansleep(wm0010->gpio_reset, !wm0010->gpio_reset_value); in wm0010_boot()
906 if (wm0010->pdata.gpio_reset) { in wm0010_spi_probe()
907 wm0010->gpio_reset = wm0010->pdata.gpio_reset; in wm0010_spi_probe()
919 ret = devm_gpio_request_one(wm0010->dev, wm0010->gpio_reset, in wm0010_spi_probe()
975 gpio_set_value_cansleep(wm0010->gpio_reset, in wm0010_spi_remove()
Duda1380.c156 if (gpio_is_valid(pdata->gpio_reset)) { in uda1380_reset()
157 gpio_set_value(pdata->gpio_reset, 1); in uda1380_reset()
159 gpio_set_value(pdata->gpio_reset, 0); in uda1380_reset()
755 if (gpio_is_valid(pdata->gpio_reset)) { in uda1380_i2c_probe()
756 ret = devm_gpio_request_one(&i2c->dev, pdata->gpio_reset, in uda1380_i2c_probe()
/linux-6.6.21/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()
/linux-6.6.21/include/sound/
Dwm0010.h14 int gpio_reset; member
Duda1380.h13 int gpio_reset; member

12