Home
last modified time | relevance | path

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

123456789

/linux-5.19.10/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-5.19.10/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-5.19.10/sound/arm/
Dpxa2xx-ac97-lib.c33 static int reset_gpio; variable
36 extern void pxa27x_configure_ac97reset(int reset_gpio, bool to_gpio);
149 pxa27x_configure_ac97reset(reset_gpio, true); in pxa_ac97_warm_pxa27x()
152 pxa27x_configure_ac97reset(reset_gpio, false); in pxa_ac97_warm_pxa27x()
339 switch (pdata->reset_gpio) { in pxa2xx_ac97_hw_probe()
342 reset_gpio = pdata->reset_gpio; in pxa2xx_ac97_hw_probe()
345 reset_gpio = 113; in pxa2xx_ac97_hw_probe()
351 pdata->reset_gpio); in pxa2xx_ac97_hw_probe()
357 pdata->reset_gpio = of_get_named_gpio(dev->dev.of_node, in pxa2xx_ac97_hw_probe()
359 if (pdata->reset_gpio == -ENOENT) in pxa2xx_ac97_hw_probe()
[all …]
/linux-5.19.10/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-jdi-fhd-r63452.c23 struct gpio_desc *reset_gpio; member
50 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in jdi_fhd_r63452_reset()
52 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in jdi_fhd_r63452_reset()
54 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in jdi_fhd_r63452_reset()
184 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in jdi_fhd_r63452_prepare()
205 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in jdi_fhd_r63452_unprepare()
260 ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); in jdi_fhd_r63452_probe()
261 if (IS_ERR(ctx->reset_gpio)) in jdi_fhd_r63452_probe()
262 return dev_err_probe(dev, PTR_ERR(ctx->reset_gpio), in jdi_fhd_r63452_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-sharp-ls060t1sx01.c26 struct gpio_desc *reset_gpio; member
43 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in sharp_ls060_reset()
45 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in sharp_ls060_reset()
47 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in sharp_ls060_reset()
167 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in sharp_ls060_prepare()
195 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in sharp_ls060_unprepare()
268 ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); in sharp_ls060_probe()
269 if (IS_ERR(ctx->reset_gpio)) in sharp_ls060_probe()
270 return dev_err_probe(dev, PTR_ERR(ctx->reset_gpio), in sharp_ls060_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-innolux-ej030na.c37 struct gpio_desc *reset_gpio; member
98 gpiod_set_value_cansleep(priv->reset_gpio, 1); in ej030na_prepare()
100 gpiod_set_value_cansleep(priv->reset_gpio, 0); in ej030na_prepare()
121 gpiod_set_value_cansleep(priv->reset_gpio, 1); in ej030na_unprepare()
228 priv->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); in ej030na_probe()
229 if (IS_ERR(priv->reset_gpio)) in ej030na_probe()
230 return dev_err_probe(dev, PTR_ERR(priv->reset_gpio), in ej030na_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-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()
277 ctx->reset_gpio = devm_gpiod_get(dev, "reset", GPIOD_OUT_HIGH); in sofef00_panel_probe()
278 if (IS_ERR(ctx->reset_gpio)) in sofef00_panel_probe()
279 return dev_err_probe(dev, PTR_ERR(ctx->reset_gpio), in sofef00_panel_probe()
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-orisetech-otm8009a.c70 struct gpio_desc *reset_gpio; member
297 if (ctx->reset_gpio) { in otm8009a_unprepare()
298 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in otm8009a_unprepare()
323 if (ctx->reset_gpio) { in otm8009a_prepare()
324 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in otm8009a_prepare()
325 gpiod_set_value_cansleep(ctx->reset_gpio, 1); in otm8009a_prepare()
327 gpiod_set_value_cansleep(ctx->reset_gpio, 0); in otm8009a_prepare()
447 ctx->reset_gpio = devm_gpiod_get_optional(dev, "reset", GPIOD_OUT_LOW); in otm8009a_probe()
448 if (IS_ERR(ctx->reset_gpio)) { in otm8009a_probe()
450 return PTR_ERR(ctx->reset_gpio); in otm8009a_probe()
/linux-5.19.10/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
295 cs4349->reset_gpio = devm_gpiod_get_optional(&client->dev, in cs4349_i2c_probe()
297 if (IS_ERR(cs4349->reset_gpio)) in cs4349_i2c_probe()
298 return PTR_ERR(cs4349->reset_gpio); in cs4349_i2c_probe()
300 gpiod_set_value_cansleep(cs4349->reset_gpio, 1); in cs4349_i2c_probe()
314 gpiod_set_value_cansleep(cs4349->reset_gpio, 0); in cs4349_i2c_remove()
332 gpiod_set_value_cansleep(cs4349->reset_gpio, 0); in cs4349_runtime_suspend()
346 gpiod_set_value_cansleep(cs4349->reset_gpio, 1); in cs4349_runtime_resume()
/linux-5.19.10/arch/arm/mach-pxa/
Dreset.c16 static int reset_gpio = -1; variable
40 reset_gpio = gpio; in init_gpio_reset()
52 BUG_ON(reset_gpio == -1); in do_gpio_reset()
55 gpio_direction_output(reset_gpio, 0); in do_gpio_reset()
58 gpio_set_value(reset_gpio, 1); in do_gpio_reset()
61 gpio_set_value(reset_gpio, 0); in do_gpio_reset()
/linux-5.19.10/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-5.19.10/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-5.19.10/drivers/hid/i2c-hid/
Di2c-hid-of-goodix.c30 struct gpio_desc *reset_gpio; member
40 gpiod_set_value_cansleep(ihid_goodix->reset_gpio, 0); in goodix_i2c_hid_deassert_reset()
71 gpiod_set_value_cansleep(ihid_goodix->reset_gpio, 1); in ihid_goodix_vdd_notify()
104 ihid_goodix->reset_gpio = in i2c_hid_of_goodix_probe()
106 if (IS_ERR(ihid_goodix->reset_gpio)) in i2c_hid_of_goodix_probe()
107 return PTR_ERR(ihid_goodix->reset_gpio); in i2c_hid_of_goodix_probe()
141 if (ihid_goodix->reset_gpio && regulator_is_enabled(ihid_goodix->vdd)) { in i2c_hid_of_goodix_probe()
/linux-5.19.10/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()
152 data->reset_gpio = devm_gpiod_get_optional(priv->dev, "phy-reset", in arc_mdio_probe()
154 if (IS_ERR(data->reset_gpio)) { in arc_mdio_probe()
156 return dev_err_probe(priv->dev, PTR_ERR(data->reset_gpio), in arc_mdio_probe()

123456789