Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/iio/adc/
H A 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()
H A 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()
/openbmc/qemu/tests/qtest/
H A Dnpcm7xx_gpio-test.c82 gpio_reset(0); in test_dout_to_din()
96 gpio_reset(0); in test_pullup_pulldown()
115 gpio_reset(0); in test_output_enable()
139 gpio_reset(0); in test_open_drain()
158 gpio_reset(0); in test_polarity()
195 gpio_reset(0); in test_input_mask()
207 gpio_reset(0); in test_temp_lock()
238 gpio_reset(0); in test_events_level()
260 gpio_reset(0); in test_events_rising_edge()
286 gpio_reset(0); in test_events_both_edges()
[all …]
/openbmc/linux/drivers/mfd/
H A Dsi476x-i2c.c133 if (gpio_is_valid(core->gpio_reset)) 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()
721 core->gpio_reset = -1; in si476x_core_probe()
722 if (gpio_is_valid(pdata->gpio_reset)) { in si476x_core_probe()
729 core->gpio_reset = pdata->gpio_reset; in si476x_core_probe()
832 if (gpio_is_valid(core->gpio_reset)) in si476x_core_probe()
833 gpio_free(core->gpio_reset); in si476x_core_probe()
852 if (gpio_is_valid(core->gpio_reset)) in si476x_core_remove()
[all …]
/openbmc/linux/drivers/net/wireless/silabs/wfx/
H A 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()
/openbmc/linux/drivers/rtc/
H A 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()
/openbmc/linux/drivers/media/i2c/
H A 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()
/openbmc/linux/drivers/phy/ti/
H A Dphy-tusb1210.c57 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()
499 tusb->gpio_reset = devm_gpiod_get_optional(&ulpi->dev, "reset", in tusb1210_probe()
501 if (IS_ERR(tusb->gpio_reset)) in tusb1210_probe()
502 return PTR_ERR(tusb->gpio_reset); in tusb1210_probe()
504 gpiod_set_value_cansleep(tusb->gpio_reset, 1); in tusb1210_probe()
/openbmc/linux/drivers/media/radio/si470x/
H A 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()
/openbmc/linux/drivers/input/touchscreen/
H A 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()
H A 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()
/openbmc/linux/drivers/gpu/drm/bridge/
H A 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()
H A 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()
/openbmc/linux/drivers/usb/misc/
H A 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()
H A 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()
/openbmc/linux/drivers/pcmcia/
H A 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()
/openbmc/linux/drivers/iio/dac/
H A 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()
H A 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()
H A 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()
/openbmc/linux/sound/soc/codecs/
H A 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()
1848 if (aic3x->gpio_reset && !aic3x->shared_reset) in aic3x_remove()
[all …]
H A 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()
H A 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()
/openbmc/linux/include/sound/
H A Dwm0010.h14 int gpio_reset; member
H A Duda1380.h13 int gpio_reset; member
/openbmc/linux/drivers/staging/media/atomisp/i2c/
H A 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()

12