Home
last modified time | relevance | path

Searched refs:reset_gpio (Results 1 – 25 of 189) sorted by relevance

12345678

/Linux-v5.15/sound/arm/
Dpxa2xx-ac97-lib.c32 static int reset_gpio; variable
34 extern void pxa27x_configure_ac97reset(int reset_gpio, bool to_gpio);
143 pxa27x_configure_ac97reset(reset_gpio, true); in pxa_ac97_warm_pxa27x()
146 pxa27x_configure_ac97reset(reset_gpio, false); in pxa_ac97_warm_pxa27x()
324 switch (pdata->reset_gpio) { in pxa2xx_ac97_hw_probe()
327 reset_gpio = pdata->reset_gpio; in pxa2xx_ac97_hw_probe()
330 reset_gpio = 113; in pxa2xx_ac97_hw_probe()
336 pdata->reset_gpio); in pxa2xx_ac97_hw_probe()
342 pdata->reset_gpio = of_get_named_gpio(dev->dev.of_node, in pxa2xx_ac97_hw_probe()
344 if (pdata->reset_gpio == -ENOENT) in pxa2xx_ac97_hw_probe()
[all …]
/Linux-v5.15/drivers/power/reset/
Dgpio-poweroff.c23 static struct gpio_desc *reset_gpio; variable
30 BUG_ON(!reset_gpio); in gpio_poweroff_do_poweroff()
33 gpiod_direction_output(reset_gpio, 1); in gpio_poweroff_do_poweroff()
37 gpiod_set_value_cansleep(reset_gpio, 0); in gpio_poweroff_do_poweroff()
41 gpiod_set_value_cansleep(reset_gpio, 1); in gpio_poweroff_do_poweroff()
73 reset_gpio = devm_gpiod_get(&pdev->dev, NULL, flags); in gpio_poweroff_probe()
74 if (IS_ERR(reset_gpio)) in gpio_poweroff_probe()
75 return PTR_ERR(reset_gpio); in gpio_poweroff_probe()
Dgpio-restart.c19 struct gpio_desc *reset_gpio; member
33 gpiod_direction_output(gpio_restart->reset_gpio, 1); in gpio_restart_notify()
37 gpiod_set_value(gpio_restart->reset_gpio, 0); in gpio_restart_notify()
41 gpiod_set_value(gpio_restart->reset_gpio, 1); in gpio_restart_notify()
65 gpio_restart->reset_gpio = devm_gpiod_get(&pdev->dev, NULL, in gpio_restart_probe()
67 ret = PTR_ERR_OR_ZERO(gpio_restart->reset_gpio); in gpio_restart_probe()
/Linux-v5.15/drivers/mmc/core/
Dpwrseq_emmc.c27 struct gpio_desc *reset_gpio; member
36 gpiod_set_value_cansleep(pwrseq->reset_gpio, 1); in mmc_pwrseq_emmc_reset()
38 gpiod_set_value_cansleep(pwrseq->reset_gpio, 0); in mmc_pwrseq_emmc_reset()
47 gpiod_set_value(pwrseq->reset_gpio, 1); in mmc_pwrseq_emmc_reset_nb()
49 gpiod_set_value(pwrseq->reset_gpio, 0); in mmc_pwrseq_emmc_reset_nb()
68 pwrseq->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW); in mmc_pwrseq_emmc_probe()
69 if (IS_ERR(pwrseq->reset_gpio)) in mmc_pwrseq_emmc_probe()
70 return PTR_ERR(pwrseq->reset_gpio); in mmc_pwrseq_emmc_probe()
72 if (!gpiod_cansleep(pwrseq->reset_gpio)) { in mmc_pwrseq_emmc_probe()
Dpwrseq_sd8787.c29 struct gpio_desc *reset_gpio; member
40 gpiod_set_value_cansleep(pwrseq->reset_gpio, 1); in mmc_pwrseq_sd8787_pre_power_on()
51 gpiod_set_value_cansleep(pwrseq->reset_gpio, 0); in mmc_pwrseq_sd8787_power_off()
86 pwrseq->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW); in mmc_pwrseq_sd8787_probe()
87 if (IS_ERR(pwrseq->reset_gpio)) in mmc_pwrseq_sd8787_probe()
88 return PTR_ERR(pwrseq->reset_gpio); in mmc_pwrseq_sd8787_probe()
/Linux-v5.15/drivers/gpu/drm/panel/
Dpanel-sharp-ls043t1le01.c28 struct gpio_desc *reset_gpio; member
128 if (sharp_nt->reset_gpio) in sharp_nt_panel_unprepare()
129 gpiod_set_value(sharp_nt->reset_gpio, 0); in sharp_nt_panel_unprepare()
150 if (sharp_nt->reset_gpio) { in sharp_nt_panel_prepare()
151 gpiod_set_value(sharp_nt->reset_gpio, 1); in sharp_nt_panel_prepare()
153 gpiod_set_value(sharp_nt->reset_gpio, 0); in sharp_nt_panel_prepare()
155 gpiod_set_value(sharp_nt->reset_gpio, 1); in sharp_nt_panel_prepare()
177 if (sharp_nt->reset_gpio) in sharp_nt_panel_prepare()
178 gpiod_set_value(sharp_nt->reset_gpio, 0); in sharp_nt_panel_prepare()
248 sharp_nt->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW); in sharp_nt_panel_add()
[all …]
Dpanel-samsung-s6e88a0-ams452ef01.c20 struct gpio_desc *reset_gpio; member
41 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in s6e88a0_ams452ef01_reset()
43 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in s6e88a0_ams452ef01_reset()
45 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in s6e88a0_ams452ef01_reset()
140 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in s6e88a0_ams452ef01_prepare()
163 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in s6e88a0_ams452ef01_unprepare()
228 ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW); in s6e88a0_ams452ef01_probe()
229 if (IS_ERR(ctx->reset_gpio)) { in s6e88a0_ams452ef01_probe()
230 ret = PTR_ERR(ctx->reset_gpio); in s6e88a0_ams452ef01_probe()
Dpanel-visionox-rm69299.c21 struct gpio_desc *reset_gpio; member
45 gpiod_set_value(ctx->reset_gpio, 1); in visionox_rm69299_power_on()
47 gpiod_set_value(ctx->reset_gpio, 0); in visionox_rm69299_power_on()
49 gpiod_set_value(ctx->reset_gpio, 1); in visionox_rm69299_power_on()
57 gpiod_set_value(ctx->reset_gpio, 0); in visionox_rm69299_power_off()
215 ctx->reset_gpio = devm_gpiod_get(ctx->panel.dev, in visionox_rm69299_probe()
217 if (IS_ERR(ctx->reset_gpio)) { in visionox_rm69299_probe()
218 dev_err(dev, "cannot get reset gpio %ld\n", PTR_ERR(ctx->reset_gpio)); in visionox_rm69299_probe()
219 return PTR_ERR(ctx->reset_gpio); in visionox_rm69299_probe()
Dpanel-innolux-ej030na.c37 struct gpio_desc *reset_gpio; member
100 gpiod_set_value_cansleep(priv->reset_gpio, 1); in ej030na_prepare()
102 gpiod_set_value_cansleep(priv->reset_gpio, 0); in ej030na_prepare()
125 gpiod_set_value_cansleep(priv->reset_gpio, 1); in ej030na_unprepare()
206 priv->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); in ej030na_probe()
207 if (IS_ERR(priv->reset_gpio)) { in ej030na_probe()
209 return PTR_ERR(priv->reset_gpio); in ej030na_probe()
Dpanel-samsung-s6d16d0.c21 struct gpio_desc *reset_gpio; member
62 gpiod_set_value_cansleep(s6->reset_gpio, 1); in s6d16d0_unprepare()
81 gpiod_set_value_cansleep(s6->reset_gpio, 1); in s6d16d0_prepare()
84 gpiod_set_value_cansleep(s6->reset_gpio, 0); in s6d16d0_prepare()
194 s6->reset_gpio = devm_gpiod_get_optional(dev, "reset", in s6d16d0_probe()
196 if (IS_ERR(s6->reset_gpio)) { in s6d16d0_probe()
197 ret = PTR_ERR(s6->reset_gpio); in s6d16d0_probe()
Dpanel-khadas-ts050.c26 struct gpio_desc *reset_gpio; member
600 gpiod_set_value_cansleep(khadas_ts050->reset_gpio, 1); in khadas_ts050_panel_prepare()
604 gpiod_set_value_cansleep(khadas_ts050->reset_gpio, 0); in khadas_ts050_panel_prepare()
658 gpiod_set_value_cansleep(khadas_ts050->reset_gpio, 1); in khadas_ts050_panel_prepare()
682 gpiod_set_value_cansleep(khadas_ts050->reset_gpio, 1); in khadas_ts050_panel_unprepare()
780 khadas_ts050->reset_gpio = devm_gpiod_get(dev, "reset", in khadas_ts050_panel_add()
782 if (IS_ERR(khadas_ts050->reset_gpio)) in khadas_ts050_panel_add()
783 return dev_err_probe(dev, PTR_ERR(khadas_ts050->reset_gpio), in khadas_ts050_panel_add()
Dpanel-nec-nl8048hl11.c27 struct gpio_desc *reset_gpio; member
94 gpiod_set_value_cansleep(lcd->reset_gpio, 0); in nl8048_disable()
103 gpiod_set_value_cansleep(lcd->reset_gpio, 1); in nl8048_enable()
188 lcd->reset_gpio = devm_gpiod_get(&spi->dev, "reset", GPIOD_OUT_LOW); in nl8048_probe()
189 if (IS_ERR(lcd->reset_gpio)) { in nl8048_probe()
191 return PTR_ERR(lcd->reset_gpio); in nl8048_probe()
Dpanel-asus-z00t-tm5p5-n35596.c18 struct gpio_desc *reset_gpio; member
45 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in tm5p5_nt35596_reset()
47 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in tm5p5_nt35596_reset()
49 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in tm5p5_nt35596_reset()
145 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in tm5p5_nt35596_prepare()
168 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in tm5p5_nt35596_unprepare()
292 ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_LOW); in tm5p5_nt35596_probe()
293 if (IS_ERR(ctx->reset_gpio)) { in tm5p5_nt35596_probe()
294 ret = PTR_ERR(ctx->reset_gpio); in tm5p5_nt35596_probe()
Dpanel-samsung-sofef00.c26 struct gpio_desc *reset_gpio; member
47 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in sofef00_panel_reset()
49 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in sofef00_panel_reset()
51 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in sofef00_panel_reset()
140 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in sofef00_panel_prepare()
279 ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); in sofef00_panel_probe()
280 if (IS_ERR(ctx->reset_gpio)) { in sofef00_panel_probe()
281 ret = PTR_ERR(ctx->reset_gpio); in sofef00_panel_probe()
Dpanel-orisetech-otm8009a.c67 struct gpio_desc *reset_gpio; member
279 if (ctx->reset_gpio) { in otm8009a_unprepare()
280 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in otm8009a_unprepare()
305 if (ctx->reset_gpio) { in otm8009a_prepare()
306 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in otm8009a_prepare()
307 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in otm8009a_prepare()
309 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in otm8009a_prepare()
420 ctx->reset_gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW); in otm8009a_probe()
421 if (IS_ERR(ctx->reset_gpio)) { in otm8009a_probe()
423 return PTR_ERR(ctx->reset_gpio); in otm8009a_probe()
Dpanel-tdo-tl070wsh30.c26 struct gpio_desc *reset_gpio; member
51 gpiod_set_value_cansleep(tdo_tl070wsh30->reset_gpio, 1); in tdo_tl070wsh30_panel_prepare()
55 gpiod_set_value_cansleep(tdo_tl070wsh30->reset_gpio, 0); in tdo_tl070wsh30_panel_prepare()
169 tdo_tl070wsh30->reset_gpio = devm_gpiod_get(dev, "reset", in tdo_tl070wsh30_panel_add()
171 if (IS_ERR(tdo_tl070wsh30->reset_gpio)) { in tdo_tl070wsh30_panel_add()
172 err = PTR_ERR(tdo_tl070wsh30->reset_gpio); in tdo_tl070wsh30_panel_add()
/Linux-v5.15/sound/soc/codecs/
Dak5386.c24 int reset_gpio; member
115 if (gpio_is_valid(priv->reset_gpio)) in ak5386_hw_params()
116 gpio_set_value(priv->reset_gpio, 1); in ak5386_hw_params()
127 if (gpio_is_valid(priv->reset_gpio)) in ak5386_hw_free()
128 gpio_set_value(priv->reset_gpio, 0); in ak5386_hw_free()
172 priv->reset_gpio = -EINVAL; in ak5386_probe()
184 priv->reset_gpio = of_get_named_gpio(dev->of_node, in ak5386_probe()
187 if (gpio_is_valid(priv->reset_gpio)) in ak5386_probe()
188 if (devm_gpio_request_one(dev, priv->reset_gpio, in ak5386_probe()
191 priv->reset_gpio = -EINVAL; in ak5386_probe()
Dbd28623.c26 struct gpio_desc *reset_gpio; member
57 gpiod_set_value_cansleep(bd->reset_gpio, 0); in bd28623_power_on()
65 gpiod_set_value_cansleep(bd->reset_gpio, 1); in bd28623_power_off()
202 bd->reset_gpio = devm_gpiod_get_optional(dev, "reset", in bd28623_probe()
204 if (IS_ERR(bd->reset_gpio)) { in bd28623_probe()
206 PTR_ERR(bd->reset_gpio)); in bd28623_probe()
207 return PTR_ERR(bd->reset_gpio); in bd28623_probe()
Dcs4349.c46 struct gpio_desc *reset_gpio; member
299 cs4349->reset_gpio = devm_gpiod_get_optional(&client->dev, in cs4349_i2c_probe()
301 if (IS_ERR(cs4349->reset_gpio)) in cs4349_i2c_probe()
302 return PTR_ERR(cs4349->reset_gpio); in cs4349_i2c_probe()
304 gpiod_set_value_cansleep(cs4349->reset_gpio, 1); in cs4349_i2c_probe()
318 gpiod_set_value_cansleep(cs4349->reset_gpio, 0); in cs4349_i2c_remove()
336 gpiod_set_value_cansleep(cs4349->reset_gpio, 0); in cs4349_runtime_suspend()
350 gpiod_set_value_cansleep(cs4349->reset_gpio, 1); in cs4349_runtime_resume()
/Linux-v5.15/arch/arm/mach-pxa/
Dreset.c19 static int reset_gpio = -1; variable
43 reset_gpio = gpio; in init_gpio_reset()
55 BUG_ON(reset_gpio == -1); in do_gpio_reset()
58 gpio_direction_output(reset_gpio, 0); in do_gpio_reset()
61 gpio_set_value(reset_gpio, 1); in do_gpio_reset()
64 gpio_set_value(reset_gpio, 0); in do_gpio_reset()
/Linux-v5.15/drivers/mfd/
Dlp87565.c68 lp87565->reset_gpio = devm_gpiod_get_optional(lp87565->dev, "reset", in lp87565_probe()
70 if (IS_ERR(lp87565->reset_gpio)) { in lp87565_probe()
71 ret = PTR_ERR(lp87565->reset_gpio); in lp87565_probe()
76 if (lp87565->reset_gpio) { in lp87565_probe()
77 gpiod_set_value_cansleep(lp87565->reset_gpio, 1); in lp87565_probe()
81 gpiod_set_value_cansleep(lp87565->reset_gpio, 0); in lp87565_probe()
109 gpiod_set_value_cansleep(lp87565->reset_gpio, 1); in lp87565_shutdown()
/Linux-v5.15/arch/mips/pci/
Dpci-lantiq.c65 static int reset_gpio; variable
126 reset_gpio = of_get_named_gpio(node, "gpio-reset", 0); in ltq_pci_startup()
127 if (gpio_is_valid(reset_gpio)) { in ltq_pci_startup()
129 reset_gpio, "pci-reset"); in ltq_pci_startup()
132 "failed to request gpio %d\n", reset_gpio); in ltq_pci_startup()
135 gpio_direction_output(reset_gpio, 1); in ltq_pci_startup()
198 if (gpio_is_valid(reset_gpio)) { in ltq_pci_startup()
199 __gpio_set_value(reset_gpio, 0); in ltq_pci_startup()
202 __gpio_set_value(reset_gpio, 1); in ltq_pci_startup()
/Linux-v5.15/drivers/hid/i2c-hid/
Di2c-hid-of-goodix.c31 struct gpio_desc *reset_gpio; member
41 gpiod_set_value_cansleep(ihid_goodix->reset_gpio, 0); in goodix_i2c_hid_deassert_reset()
74 gpiod_set_value_cansleep(ihid_goodix->reset_gpio, 1); in ihid_goodix_vdd_notify()
111 ihid_goodix->reset_gpio = in i2c_hid_of_goodix_probe()
113 if (IS_ERR(ihid_goodix->reset_gpio)) in i2c_hid_of_goodix_probe()
114 return PTR_ERR(ihid_goodix->reset_gpio); in i2c_hid_of_goodix_probe()
149 if (ihid_goodix->reset_gpio && regulator_is_enabled(ihid_goodix->vdd)) in i2c_hid_of_goodix_probe()
/Linux-v5.15/drivers/net/ethernet/arc/
Demac_mdio.c113 if (data->reset_gpio) { in arc_mdio_reset()
114 gpiod_set_value_cansleep(data->reset_gpio, 1); in arc_mdio_reset()
116 gpiod_set_value_cansleep(data->reset_gpio, 0); in arc_mdio_reset()
151 data->reset_gpio = devm_gpiod_get_optional(priv->dev, "phy-reset", in arc_mdio_probe()
153 if (IS_ERR(data->reset_gpio)) { in arc_mdio_probe()
154 error = PTR_ERR(data->reset_gpio); in arc_mdio_probe()
/Linux-v5.15/drivers/input/touchscreen/
Dili210x.c44 struct gpio_desc *reset_gpio; member
374 struct gpio_desc *reset_gpio = data; in ili210x_power_down() local
376 gpiod_set_value_cansleep(reset_gpio, 1); in ili210x_power_down()
393 struct gpio_desc *reset_gpio; in ili210x_i2c_probe() local
413 reset_gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_HIGH); in ili210x_i2c_probe()
414 if (IS_ERR(reset_gpio)) in ili210x_i2c_probe()
415 return PTR_ERR(reset_gpio); in ili210x_i2c_probe()
417 if (reset_gpio) { in ili210x_i2c_probe()
419 reset_gpio); in ili210x_i2c_probe()
424 gpiod_set_value_cansleep(reset_gpio, 0); in ili210x_i2c_probe()
[all …]

12345678