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

/linux-4.4.14/arch/arm/mach-s3c24xx/
H A Dsetup-camif.c20 static void camif_get_gpios(int *gpio_start, int *gpio_reset) camif_get_gpios() argument
24 *gpio_reset = S3C2410_GPJ(12); camif_get_gpios()
28 *gpio_reset = S3C64XX_GPF(3); camif_get_gpios()
34 int gpio_start, gpio_reset; s3c_camif_gpio_get() local
37 camif_get_gpios(&gpio_start, &gpio_reset); s3c_camif_gpio_get()
42 if (gpio == gpio_reset) s3c_camif_gpio_get()
62 int i, gpio_start, gpio_reset; s3c_camif_gpio_put() local
64 camif_get_gpios(&gpio_start, &gpio_reset); s3c_camif_gpio_put()
68 if (gpio != gpio_reset) s3c_camif_gpio_put()
H A Dmach-h1940.c584 .gpio_reset = S3C2410_GPA(12),
H A Dmach-rx1950.c704 .gpio_reset = S3C2410_GPD(0),
/linux-4.4.14/arch/arm/mach-pxa/
H A Dtosa-bt.c23 gpio_set_value(data->gpio_reset, 0); tosa_bt_on()
25 gpio_set_value(data->gpio_reset, 1); tosa_bt_on()
27 gpio_set_value(data->gpio_reset, 0); tosa_bt_on()
32 gpio_set_value(data->gpio_reset, 1); tosa_bt_off()
35 gpio_set_value(data->gpio_reset, 0); tosa_bt_off()
64 rc = gpio_request(data->gpio_reset, "Bluetooth reset"); tosa_bt_probe()
67 rc = gpio_direction_output(data->gpio_reset, 0); tosa_bt_probe()
100 gpio_free(data->gpio_reset); tosa_bt_probe()
121 gpio_free(data->gpio_reset); tosa_bt_remove()
H A Dtosa.c808 .gpio_reset = TOSA_GPIO_BT_RESET,
/linux-4.4.14/include/media/
H A Dov9650.h17 * @gpio_reset: number of a GPIO connected to OV965X RESET pin
19 * If any of @gpio_pwdn or @gpio_reset are unused then they should be
25 int gpio_reset; member in struct:ov9650_platform_data
H A Dm5mols.h21 * @gpio_reset: GPIO driving the reset pin of M-5MOLS
22 * @reset_polarity: active state for gpio_reset pin, 0 or 1
28 int gpio_reset; member in struct:m5mols_platform_data
H A Ds5k4ecgx.h28 * @gpio_reset: GPIO driving RESET pin
33 struct s5k4ecgx_gpio gpio_reset; member in struct:s5k4ecgx_platform_data
H A Ds5c73m3.h36 * @gpio_reset: GPIO driving RESET pin
46 struct s5c73m3_gpio gpio_reset; member in struct:s5c73m3_platform_data
H A Ds5k6aa.h33 * @gpio_reset: GPIO driving RESET pin
43 struct s5k6aa_gpio gpio_reset; member in struct:s5k6aa_platform_data
/linux-4.4.14/include/linux/platform_data/
H A Dusb3503.h21 int gpio_reset; member in struct:usb3503_platform_data
H A Dst-nci.h25 unsigned int gpio_reset; member in struct:st_nci_nfc_platform_data
/linux-4.4.14/arch/arm/mach-omap2/
H A Dgpmc-smsc911x.c67 if (gpio_is_valid(gpmc_cfg->gpio_reset)) { gpmc_smsc911x_init()
68 ret = gpio_request_one(gpmc_cfg->gpio_reset, gpmc_smsc911x_init()
72 gpmc_cfg->gpio_reset); gpmc_smsc911x_init()
76 gpio_set_value(gpmc_cfg->gpio_reset, 0); gpmc_smsc911x_init()
78 gpio_set_value(gpmc_cfg->gpio_reset, 1); gpmc_smsc911x_init()
88 gpio_free(gpmc_cfg->gpio_reset); gpmc_smsc911x_init()
H A Dgpmc-smsc911x.h20 int gpio_reset; member in struct:omap_smsc911x_platform_data
H A Dboard-ldp.c172 .gpio_reset = -EINVAL,
H A Dboard-rx51-peripherals.c992 .gpio_reset = 60,
996 .gpio_reset = 60,
H A Dboard-n8x0.c577 .gpio_reset = 118,
H A Dusb-host.c463 nop_pdata.gpio_reset = phy->reset_gpio; usbhs_init_phys()
/linux-4.4.14/include/sound/
H A Duda1380.h16 int gpio_reset; member in struct:uda1380_platform_data
H A Dtlv320aic3x.h61 int gpio_reset; /* < 0 if not used */ member in struct:aic3x_pdata
H A Dwm0010.h18 int gpio_reset; member in struct:wm0010_pdata
/linux-4.4.14/arch/arm/mach-pxa/include/mach/
H A Dtosa_bt.h18 int gpio_reset; member in struct:tosa_bt_data
/linux-4.4.14/drivers/phy/
H A Dphy-tusb1210.c26 struct gpio_desc *gpio_reset; member in struct:tusb1210
35 gpiod_set_value_cansleep(tusb->gpio_reset, 1); tusb1210_power_on()
50 gpiod_set_value_cansleep(tusb->gpio_reset, 0); tusb1210_power_off()
71 tusb->gpio_reset = devm_gpiod_get_optional(&ulpi->dev, "reset", tusb1210_probe()
73 if (IS_ERR(tusb->gpio_reset)) tusb1210_probe()
74 return PTR_ERR(tusb->gpio_reset); tusb1210_probe()
76 gpiod_set_value_cansleep(tusb->gpio_reset, 1); tusb1210_probe()
/linux-4.4.14/include/linux/usb/
H A Dusb_phy_generic.h14 int gpio_reset; member in struct:usb_phy_generic_platform_data
/linux-4.4.14/drivers/rtc/
H A Drtc-moxart.c61 int gpio_data, gpio_sclk, gpio_reset; member in struct:moxart_rtc
108 gpio_set_value(moxart_rtc->gpio_reset, 1); moxart_rtc_read_register()
115 gpio_set_value(moxart_rtc->gpio_reset, 0); moxart_rtc_read_register()
131 gpio_set_value(moxart_rtc->gpio_reset, 1); moxart_rtc_write_register()
136 gpio_set_value(moxart_rtc->gpio_reset, 0); moxart_rtc_write_register()
269 moxart_rtc->gpio_reset = of_get_named_gpio(pdev->dev.of_node, moxart_rtc_probe()
271 if (!gpio_is_valid(moxart_rtc->gpio_reset)) { moxart_rtc_probe()
273 moxart_rtc->gpio_reset); moxart_rtc_probe()
274 return moxart_rtc->gpio_reset; moxart_rtc_probe()
293 ret = devm_gpio_request_one(&pdev->dev, moxart_rtc->gpio_reset, moxart_rtc_probe()
/linux-4.4.14/drivers/media/i2c/
H A Ds5k6a3.c53 * @gpio_reset: GPIO connected to the sensor's reset pin
62 int gpio_reset; member in struct:s5k6a3
217 gpio_set_value(sensor->gpio_reset, 1); __s5k6a3_power_on()
219 gpio_set_value(sensor->gpio_reset, 0); __s5k6a3_power_on()
221 gpio_set_value(sensor->gpio_reset, 1); __s5k6a3_power_on()
239 gpio_set_value(sensor->gpio_reset, 0); __s5k6a3_power_off()
292 sensor->gpio_reset = -EINVAL; s5k6a3_probe()
309 sensor->gpio_reset = gpio; s5k6a3_probe()
H A Ds5k4ecgx.c893 gpio = &pdata->gpio_reset; s5k4ecgx_config_gpios()
H A Dov9650.c1410 ov965x->gpios[GPIO_RST] = pdata->gpio_reset; ov965x_configure_gpios()
H A Ds5k6aa.c1526 gpio = &pdata->gpio_reset; s5k6aa_configure_gpios()
/linux-4.4.14/drivers/usb/misc/
H A Dusb3503.c64 int gpio_reset; member in struct:usb3503
74 if (gpio_is_valid(hub->gpio_reset)) usb3503_reset()
75 gpio_set_value_cansleep(hub->gpio_reset, state); usb3503_reset()
185 hub->gpio_reset = pdata->gpio_reset; usb3503_probe()
258 hub->gpio_reset = of_get_named_gpio(np, "reset-gpios", 0); usb3503_probe()
259 if (hub->gpio_reset == -EPROBE_DEFER) usb3503_probe()
292 if (gpio_is_valid(hub->gpio_reset)) { usb3503_probe()
293 err = devm_gpio_request_one(dev, hub->gpio_reset, usb3503_probe()
298 hub->gpio_reset, err); usb3503_probe()
/linux-4.4.14/drivers/nfc/st-nci/
H A Di2c.c55 unsigned int gpio_reset; member in struct:st_nci_i2c_phy
65 gpio_set_value(phy->gpio_reset, 0); st_nci_i2c_enable()
67 gpio_set_value(phy->gpio_reset, 1); st_nci_i2c_enable()
240 phy->gpio_reset = gpio; st_nci_i2c_of_request_resources()
271 phy->gpio_reset = pdata->gpio_reset; st_nci_i2c_request_resources()
275 phy->gpio_reset, GPIOF_OUT_INIT_HIGH, "clf_reset"); st_nci_i2c_request_resources()
H A Dspi.c56 unsigned int gpio_reset; member in struct:st_nci_spi_phy
66 gpio_set_value(phy->gpio_reset, 0); st_nci_spi_enable()
68 gpio_set_value(phy->gpio_reset, 1); st_nci_spi_enable()
255 phy->gpio_reset = gpio; st_nci_spi_of_request_resources()
286 phy->gpio_reset = pdata->gpio_reset; st_nci_spi_request_resources()
290 phy->gpio_reset, GPIOF_OUT_INIT_HIGH, "clf_reset"); st_nci_spi_request_resources()
/linux-4.4.14/drivers/mfd/
H A Dsi476x-i2c.c142 if (gpio_is_valid(core->gpio_reset)) si476x_core_start()
143 gpio_set_value_cansleep(core->gpio_reset, 1); si476x_core_start()
209 if (gpio_is_valid(core->gpio_reset)) si476x_core_start()
210 gpio_set_value_cansleep(core->gpio_reset, 0); si476x_core_start()
255 if (gpio_is_valid(core->gpio_reset)) si476x_core_stop()
256 gpio_set_value_cansleep(core->gpio_reset, 0); si476x_core_stop()
727 core->gpio_reset = -1; si476x_core_probe()
728 if (gpio_is_valid(pdata->gpio_reset)) { si476x_core_probe()
729 rval = gpio_request(pdata->gpio_reset, "si476x reset"); si476x_core_probe()
735 core->gpio_reset = pdata->gpio_reset; si476x_core_probe()
736 gpio_direction_output(core->gpio_reset, 0); si476x_core_probe()
838 if (gpio_is_valid(core->gpio_reset)) si476x_core_probe()
839 gpio_free(core->gpio_reset); si476x_core_probe()
858 if (gpio_is_valid(core->gpio_reset)) si476x_core_remove()
859 gpio_free(core->gpio_reset); si476x_core_remove()
/linux-4.4.14/drivers/staging/iio/adc/
H A Dad7606.h21 * @gpio_reset: gpio connected to the RESET pin, if not used set to -1
34 unsigned gpio_reset; member in struct:ad7606_platform_data
H A Dad7606_core.c29 if (gpio_is_valid(st->pdata->gpio_reset)) { ad7606_reset()
30 gpio_set_value(st->pdata->gpio_reset, 1); ad7606_reset()
32 gpio_set_value(st->pdata->gpio_reset, 0); ad7606_reset()
352 if (gpio_is_valid(st->pdata->gpio_reset)) { ad7606_request_gpios()
353 ret = gpio_request_one(st->pdata->gpio_reset, ad7606_request_gpios()
391 if (gpio_is_valid(st->pdata->gpio_reset)) ad7606_request_gpios()
392 gpio_free(st->pdata->gpio_reset); ad7606_request_gpios()
412 if (gpio_is_valid(st->pdata->gpio_reset)) ad7606_free_gpios()
413 gpio_free(st->pdata->gpio_reset); ad7606_free_gpios()
/linux-4.4.14/sound/soc/
H A Dsoc-ac97.c38 int gpio_reset; member in struct:snd_ac97_reset_cfg
170 gpio_direction_output(snd_ac97_rst_cfg.gpio_reset, 0); snd_soc_ac97_reset()
174 gpio_direction_output(snd_ac97_rst_cfg.gpio_reset, 1); snd_soc_ac97_reset()
250 cfg->gpio_reset = gpio; snd_soc_ac97_parse_pinctl()
/linux-4.4.14/drivers/input/touchscreen/
H A Dpixcir_i2c_ts.c40 struct gpio_desc *gpio_reset; member in struct:pixcir_i2c_ts_data
196 if (!IS_ERR_OR_NULL(tsdata->gpio_reset)) { pixcir_reset()
197 gpiod_set_value_cansleep(tsdata->gpio_reset, 1); pixcir_reset()
199 gpiod_set_value_cansleep(tsdata->gpio_reset, 0); pixcir_reset()
529 tsdata->gpio_reset = devm_gpiod_get_optional(dev, "reset", pixcir_i2c_ts_probe()
531 if (IS_ERR(tsdata->gpio_reset)) { pixcir_i2c_ts_probe()
532 error = PTR_ERR(tsdata->gpio_reset); pixcir_i2c_ts_probe()
/linux-4.4.14/sound/soc/codecs/
H A Duda1380.c152 if (gpio_is_valid(pdata->gpio_reset)) { uda1380_reset()
153 gpio_set_value(pdata->gpio_reset, 1); uda1380_reset()
155 gpio_set_value(pdata->gpio_reset, 0); uda1380_reset()
704 if (gpio_is_valid(pdata->gpio_reset)) { uda1380_probe()
705 ret = gpio_request_one(pdata->gpio_reset, GPIOF_OUT_INIT_LOW, uda1380_probe()
738 if (gpio_is_valid(pdata->gpio_reset)) uda1380_probe()
739 gpio_free(pdata->gpio_reset); uda1380_probe()
749 gpio_free(pdata->gpio_reset); uda1380_remove()
H A Dwm0010.c101 int gpio_reset; member in struct:wm0010_priv
181 gpio_set_value_cansleep(wm0010->gpio_reset, wm0010_halt()
620 gpio_set_value_cansleep(wm0010->gpio_reset, !wm0010->gpio_reset_value); wm0010_boot()
916 if (wm0010->pdata.gpio_reset) { wm0010_spi_probe()
917 wm0010->gpio_reset = wm0010->pdata.gpio_reset; wm0010_spi_probe()
929 ret = devm_gpio_request_one(wm0010->dev, wm0010->gpio_reset, wm0010_spi_probe()
987 gpio_set_value_cansleep(wm0010->gpio_reset, wm0010_spi_remove()
H A Dtlv320aic3x.c86 int gpio_reset; member in struct:aic3x_priv
1342 if (gpio_is_valid(aic3x->gpio_reset)) aic3x_regulator_event()
1343 gpio_set_value(aic3x->gpio_reset, 0); aic3x_regulator_event()
1363 if (gpio_is_valid(aic3x->gpio_reset)) { aic3x_set_power()
1365 gpio_set_value(aic3x->gpio_reset, 1); aic3x_set_power()
1564 if (gpio_is_valid(aic3x->gpio_reset) && aic3x_is_shared_reset()
1565 aic3x->gpio_reset == a->gpio_reset) aic3x_is_shared_reset()
1734 aic3x->gpio_reset = pdata->gpio_reset; aic3x_i2c_probe()
1745 aic3x->gpio_reset = ret; aic3x_i2c_probe()
1747 aic3x->gpio_reset = -1; aic3x_i2c_probe()
1775 aic3x->gpio_reset = -1; aic3x_i2c_probe()
1780 if (gpio_is_valid(aic3x->gpio_reset) && aic3x_i2c_probe()
1782 ret = gpio_request(aic3x->gpio_reset, "tlv320aic3x reset"); aic3x_i2c_probe()
1785 gpio_direction_output(aic3x->gpio_reset, 0); aic3x_i2c_probe()
1817 if (gpio_is_valid(aic3x->gpio_reset) && aic3x_i2c_probe()
1819 gpio_free(aic3x->gpio_reset); aic3x_i2c_probe()
1829 if (gpio_is_valid(aic3x->gpio_reset) && aic3x_i2c_remove()
1831 gpio_set_value(aic3x->gpio_reset, 0); aic3x_i2c_remove()
1832 gpio_free(aic3x->gpio_reset); aic3x_i2c_remove()
H A Dtlv320aic31xx.c944 if (gpio_is_valid(aic31xx->pdata.gpio_reset)) aic31xx_regulator_event()
945 gpio_set_value(aic31xx->pdata.gpio_reset, 0); aic31xx_regulator_event()
997 if (gpio_is_valid(aic31xx->pdata.gpio_reset)) { aic31xx_power_on()
998 gpio_set_value(aic31xx->pdata.gpio_reset, 1); aic31xx_power_on()
1187 aic31xx->pdata.gpio_reset = ret; aic31xx_pdata_from_of()
1207 if (aic31xx->pdata.gpio_reset) { aic31xx_device_init()
1209 aic31xx->pdata.gpio_reset, aic31xx_device_init()
H A Dtlv320aic31xx.h37 unsigned int gpio_reset; member in struct:aic31xx_pdata
/linux-4.4.14/drivers/usb/phy/
H A Dphy-generic.c234 if (gpio_is_valid(pdata->gpio_reset)) { usb_phy_gen_create_phy()
235 err = devm_gpio_request_one(dev, pdata->gpio_reset, usb_phy_gen_create_phy()
240 gpio_to_desc(pdata->gpio_reset); usb_phy_gen_create_phy()
/linux-4.4.14/drivers/media/radio/si4713/
H A Dsi4713.h241 struct gpio_desc *gpio_reset; member in struct:si4713_device
H A Dsi4713.c386 if (sdev->gpio_reset) { si4713_powerup()
388 gpiod_set_value(sdev->gpio_reset, 1); si4713_powerup()
410 gpiod_set_value(sdev->gpio_reset, 0); si4713_powerup()
449 if (sdev->gpio_reset) si4713_powerdown()
450 gpiod_set_value(sdev->gpio_reset, 0); si4713_powerdown()
1462 sdev->gpio_reset = devm_gpiod_get_optional(&client->dev, "reset", si4713_probe()
1464 if (IS_ERR(sdev->gpio_reset)) { si4713_probe()
1465 rval = PTR_ERR(sdev->gpio_reset); si4713_probe()
/linux-4.4.14/include/linux/mfd/
H A Dsi476x-platform.h258 int gpio_reset; /* < 0 if not used */ member in struct:si476x_platform_data
H A Dsi476x-core.h115 * @gpio_reset: GPIO pin connectet to the RSTB pin of the chip.
151 int gpio_reset; member in struct:si476x_core
/linux-4.4.14/drivers/usb/dwc3/
H A Ddwc3-exynos.c58 pdata.gpio_reset = -1; dwc3_exynos_register_phys()
/linux-4.4.14/drivers/media/i2c/m5mols/
H A Dm5mols_core.c761 gpio_set_value(pdata->gpio_reset, !pdata->reset_polarity); m5mols_sensor_power()
774 gpio_set_value(pdata->gpio_reset, pdata->reset_polarity); m5mols_sensor_power()
938 if (!gpio_is_valid(pdata->gpio_reset)) { m5mols_probe()
957 ret = devm_gpio_request_one(&client->dev, pdata->gpio_reset, gpio_flags, m5mols_probe()
/linux-4.4.14/arch/arm/mach-s3c64xx/
H A Dmach-crag6410-module.c39 .gpio_reset = S3C64XX_GPN(6),
/linux-4.4.14/sound/soc/pxa/
H A Dmagician.c439 .gpio_reset = EGPIO_MAGICIAN_CODEC_RESET,
/linux-4.4.14/drivers/media/i2c/s5c73m3/
H A Ds5c73m3-core.c1616 state->gpio[RST] = pdata->gpio_reset; s5c73m3_get_platform_data()

Completed in 1978 milliseconds