Home
last modified time | relevance | path

Searched refs:enable_gpio (Results 1 – 25 of 69) sorted by relevance

123

/linux-6.6.21/drivers/phy/ !
Dphy-can-transceiver.c25 struct gpio_desc *enable_gpio; member
44 if (can_transceiver_phy->enable_gpio) in can_transceiver_phy_power_on()
45 gpiod_set_value_cansleep(can_transceiver_phy->enable_gpio, 1); in can_transceiver_phy_power_on()
57 if (can_transceiver_phy->enable_gpio) in can_transceiver_phy_power_off()
58 gpiod_set_value_cansleep(can_transceiver_phy->enable_gpio, 0); in can_transceiver_phy_power_off()
105 struct gpio_desc *enable_gpio; in can_transceiver_phy_probe() local
148 enable_gpio = devm_gpiod_get_optional(dev, "enable", GPIOD_OUT_LOW); in can_transceiver_phy_probe()
149 if (IS_ERR(enable_gpio)) in can_transceiver_phy_probe()
150 return PTR_ERR(enable_gpio); in can_transceiver_phy_probe()
151 can_transceiver_phy->enable_gpio = enable_gpio; in can_transceiver_phy_probe()
/linux-6.6.21/drivers/usb/typec/mux/ !
Dgpio-sbu-mux.c15 struct gpio_desc *enable_gpio; member
51 gpiod_set_value(sbu_mux->enable_gpio, enabled); in gpio_sbu_switch_set()
85 gpiod_set_value(sbu_mux->enable_gpio, sbu_mux->enabled); in gpio_sbu_mux_set()
105 sbu_mux->enable_gpio = devm_gpiod_get(dev, "enable", GPIOD_OUT_LOW); in gpio_sbu_mux_probe()
106 if (IS_ERR(sbu_mux->enable_gpio)) in gpio_sbu_mux_probe()
107 return dev_err_probe(dev, PTR_ERR(sbu_mux->enable_gpio), in gpio_sbu_mux_probe()
144 gpiod_set_value(sbu_mux->enable_gpio, 0); in gpio_sbu_mux_remove()
/linux-6.6.21/drivers/gpu/drm/panel/ !
Dpanel-kingdisplay-kd097d04.c25 struct gpio_desc *enable_gpio; member
217 gpiod_set_value_cansleep(kingdisplay->enable_gpio, 0); in kingdisplay_panel_unprepare()
237 gpiod_set_value_cansleep(kingdisplay->enable_gpio, 0); in kingdisplay_panel_prepare()
246 gpiod_set_value_cansleep(kingdisplay->enable_gpio, 1); in kingdisplay_panel_prepare()
283 gpiod_set_value_cansleep(kingdisplay->enable_gpio, 0); in kingdisplay_panel_prepare()
363 kingdisplay->enable_gpio = devm_gpiod_get_optional(dev, "enable", in kingdisplay_panel_add()
365 if (IS_ERR(kingdisplay->enable_gpio)) { in kingdisplay_panel_add()
366 err = PTR_ERR(kingdisplay->enable_gpio); in kingdisplay_panel_add()
368 kingdisplay->enable_gpio = NULL; in kingdisplay_panel_add()
Dpanel-lvds.c39 struct gpio_desc *enable_gpio; member
54 if (lvds->enable_gpio) in panel_lvds_unprepare()
55 gpiod_set_value_cansleep(lvds->enable_gpio, 0); in panel_lvds_unprepare()
78 if (lvds->enable_gpio) in panel_lvds_prepare()
79 gpiod_set_value_cansleep(lvds->enable_gpio, 1); in panel_lvds_prepare()
192 lvds->enable_gpio = devm_gpiod_get_optional(lvds->dev, "enable", in panel_lvds_probe()
194 if (IS_ERR(lvds->enable_gpio)) { in panel_lvds_probe()
195 ret = PTR_ERR(lvds->enable_gpio); in panel_lvds_probe()
Dpanel-lg-lb035q02.c27 struct gpio_desc *enable_gpio; member
113 gpiod_set_value_cansleep(lcd->enable_gpio, 0); in lb035q02_disable()
122 gpiod_set_value_cansleep(lcd->enable_gpio, 1); in lb035q02_enable()
188 lcd->enable_gpio = devm_gpiod_get(&spi->dev, "enable", GPIOD_OUT_LOW); in lb035q02_probe()
189 if (IS_ERR(lcd->enable_gpio)) { in lb035q02_probe()
191 return PTR_ERR(lcd->enable_gpio); in lb035q02_probe()
Dpanel-khadas-ts050.c27 struct gpio_desc *enable_gpio; member
590 gpiod_set_value_cansleep(khadas_ts050->enable_gpio, 0); in khadas_ts050_panel_prepare()
596 gpiod_set_value_cansleep(khadas_ts050->enable_gpio, 1); in khadas_ts050_panel_prepare()
657 gpiod_set_value_cansleep(khadas_ts050->enable_gpio, 0); in khadas_ts050_panel_prepare()
681 gpiod_set_value_cansleep(khadas_ts050->enable_gpio, 0); in khadas_ts050_panel_unprepare()
786 khadas_ts050->enable_gpio = devm_gpiod_get(dev, "enable", in khadas_ts050_panel_add()
788 if (IS_ERR(khadas_ts050->enable_gpio)) in khadas_ts050_panel_add()
789 return dev_err_probe(dev, PTR_ERR(khadas_ts050->enable_gpio), in khadas_ts050_panel_add()
Dpanel-startek-kd070fhfid015.c42 struct gpio_desc *enable_gpio; /* Power IC supply enable */ member
154 gpiod_set_value(stk->enable_gpio, 1); in stk_panel_unprepare()
171 gpiod_set_value(stk->enable_gpio, 0); in stk_panel_prepare()
182 gpiod_set_value(stk->enable_gpio, 1); in stk_panel_prepare()
207 gpiod_set_value(stk->enable_gpio, 0); in stk_panel_prepare()
331 stk->enable_gpio = devm_gpiod_get(dev, "enable", GPIOD_OUT_LOW); in stk_panel_add()
332 if (IS_ERR(stk->enable_gpio)) { in stk_panel_add()
333 ret = PTR_ERR(stk->enable_gpio); in stk_panel_add()
Dpanel-boe-himax8279d.c47 struct gpio_desc *enable_gpio; member
62 gpiod_set_value(pinfo->enable_gpio, 0); in disable_gpios()
145 gpiod_set_value(pinfo->enable_gpio, 1); in boe_panel_prepare()
149 gpiod_set_value(pinfo->enable_gpio, 0); in boe_panel_prepare()
153 gpiod_set_value(pinfo->enable_gpio, 1); in boe_panel_prepare()
871 pinfo->enable_gpio = devm_gpiod_get(dev, "enable", GPIOD_OUT_HIGH); in panel_add()
872 if (IS_ERR(pinfo->enable_gpio)) { in panel_add()
873 ret = PTR_ERR(pinfo->enable_gpio); in panel_add()
Dpanel-innolux-p079zca.c53 struct gpio_desc *enable_gpio; member
97 gpiod_set_value_cansleep(innolux->enable_gpio, 0); in innolux_panel_unprepare()
120 gpiod_set_value_cansleep(innolux->enable_gpio, 0); in innolux_panel_prepare()
130 gpiod_set_value_cansleep(innolux->enable_gpio, 1); in innolux_panel_prepare()
186 gpiod_set_value_cansleep(innolux->enable_gpio, 0); in innolux_panel_prepare()
455 innolux->enable_gpio = devm_gpiod_get_optional(dev, "enable", in innolux_panel_add()
457 if (IS_ERR(innolux->enable_gpio)) { in innolux_panel_add()
458 err = PTR_ERR(innolux->enable_gpio); in innolux_panel_add()
460 innolux->enable_gpio = NULL; in innolux_panel_add()
Dpanel-seiko-43wvf1g.c52 struct gpio_desc *enable_gpio; member
144 gpiod_set_value_cansleep(p->enable_gpio, 0); in seiko_panel_unprepare()
181 gpiod_set_value_cansleep(p->enable_gpio, 1); in seiko_panel_prepare()
261 panel->enable_gpio = devm_gpiod_get_optional(dev, "enable", in seiko_panel_probe()
263 if (IS_ERR(panel->enable_gpio)) in seiko_panel_probe()
264 return dev_err_probe(dev, PTR_ERR(panel->enable_gpio), in seiko_panel_probe()
Dpanel-olimex-lcd-olinuxino.c71 struct gpio_desc *enable_gpio; member
100 gpiod_set_value_cansleep(lcd->enable_gpio, 0); in lcd_olinuxino_unprepare()
120 gpiod_set_value_cansleep(lcd->enable_gpio, 1); in lcd_olinuxino_prepare()
274 lcd->enable_gpio = devm_gpiod_get(dev, "enable", GPIOD_OUT_LOW); in lcd_olinuxino_probe()
275 if (IS_ERR(lcd->enable_gpio)) in lcd_olinuxino_probe()
276 return PTR_ERR(lcd->enable_gpio); in lcd_olinuxino_probe()
/linux-6.6.21/drivers/regulator/ !
Drt6245-regulator.c34 struct gpio_desc *enable_gpio; member
44 if (!priv->enable_gpio) in rt6245_enable()
47 gpiod_direction_output(priv->enable_gpio, 1); in rt6245_enable()
64 if (!priv->enable_gpio) in rt6245_disable()
70 gpiod_direction_output(priv->enable_gpio, 0); in rt6245_disable()
202 priv->enable_gpio = devm_gpiod_get_optional(&i2c->dev, "enable", GPIOD_OUT_HIGH); in rt6245_probe()
203 if (IS_ERR(priv->enable_gpio)) { in rt6245_probe()
205 return PTR_ERR(priv->enable_gpio); in rt6245_probe()
Drt6190-regulator.c71 struct gpio_desc *enable_gpio; member
378 struct gpio_desc *enable_gpio; in rt6190_probe() local
389 enable_gpio = devm_gpiod_get_optional(dev, "enable", GPIOD_OUT_HIGH); in rt6190_probe()
390 if (IS_ERR(enable_gpio)) in rt6190_probe()
391 return dev_err_probe(dev, PTR_ERR(enable_gpio), "Failed to get 'enable' gpio\n"); in rt6190_probe()
392 else if (enable_gpio) in rt6190_probe()
400 data->enable_gpio = enable_gpio; in rt6190_probe()
447 if (!data->enable_gpio) in rt6190_runtime_suspend()
453 gpiod_set_value(data->enable_gpio, 0); in rt6190_runtime_suspend()
463 if (!data->enable_gpio) in rt6190_runtime_resume()
[all …]
Drtq6752-regulator.c46 struct gpio_desc *enable_gpio; member
58 if (priv->enable_gpio) { in rtq6752_set_vdd_enable()
59 gpiod_set_value(priv->enable_gpio, 1); in rtq6752_set_vdd_enable()
95 if (priv->enable_gpio) in rtq6752_set_vdd_disable()
96 gpiod_set_value(priv->enable_gpio, 0); in rtq6752_set_vdd_disable()
232 priv->enable_gpio = devm_gpiod_get_optional(&i2c->dev, "enable", in rtq6752_probe()
234 if (IS_ERR(priv->enable_gpio)) { in rtq6752_probe()
236 return PTR_ERR(priv->enable_gpio); in rtq6752_probe()
Drt6160-regulator.c43 struct gpio_desc *enable_gpio; member
56 if (!priv->enable_gpio) in rt6160_enable()
59 gpiod_set_value_cansleep(priv->enable_gpio, 1); in rt6160_enable()
72 if (!priv->enable_gpio) in rt6160_disable()
80 gpiod_set_value_cansleep(priv->enable_gpio, 0); in rt6160_disable()
243 priv->enable_gpio = devm_gpiod_get_optional(&i2c->dev, "enable", GPIOD_OUT_HIGH); in rt6160_probe()
244 if (IS_ERR(priv->enable_gpio)) { in rt6160_probe()
246 return PTR_ERR(priv->enable_gpio); in rt6160_probe()
/linux-6.6.21/drivers/leds/flash/ !
Dleds-sgm3140.c22 struct gpio_desc *enable_gpio; member
54 gpiod_set_value_cansleep(priv->enable_gpio, 1); in sgm3140_strobe_set()
59 gpiod_set_value_cansleep(priv->enable_gpio, 0); in sgm3140_strobe_set()
117 gpiod_set_value_cansleep(priv->enable_gpio, 1); in sgm3140_brightness_set()
119 gpiod_set_value_cansleep(priv->enable_gpio, 0); in sgm3140_brightness_set()
137 gpiod_set_value(priv->enable_gpio, 0); in sgm3140_powerdown_timer()
202 priv->enable_gpio = devm_gpiod_get(&pdev->dev, "enable", GPIOD_OUT_LOW); in sgm3140_probe()
203 ret = PTR_ERR_OR_ZERO(priv->enable_gpio); in sgm3140_probe()
/linux-6.6.21/drivers/platform/chrome/ !
Dcros_hps_i2c.c26 struct gpio_desc *enable_gpio; member
31 gpiod_set_value_cansleep(hps->enable_gpio, state); in hps_set_power()
80 hps->enable_gpio = devm_gpiod_get(&client->dev, "enable", GPIOD_OUT_HIGH); in hps_i2c_probe()
81 if (IS_ERR(hps->enable_gpio)) { in hps_i2c_probe()
82 ret = PTR_ERR(hps->enable_gpio); in hps_i2c_probe()
/linux-6.6.21/drivers/mfd/ !
Drt4831.c47 struct gpio_desc *enable_gpio; in rt4831_probe() local
52 enable_gpio = devm_gpiod_get_optional(&client->dev, "enable", GPIOD_OUT_HIGH); in rt4831_probe()
53 if (IS_ERR(enable_gpio)) { in rt4831_probe()
55 return PTR_ERR(enable_gpio); in rt4831_probe()
/linux-6.6.21/drivers/leds/ !
Dleds-lm3697.c82 struct gpio_desc *enable_gpio; member
173 if (priv->enable_gpio) { in lm3697_init()
174 gpiod_direction_output(priv->enable_gpio, 1); in lm3697_init()
213 priv->enable_gpio = devm_gpiod_get_optional(dev, "enable", in lm3697_probe_dt()
215 if (IS_ERR(priv->enable_gpio)) in lm3697_probe_dt()
216 return dev_err_probe(dev, PTR_ERR(priv->enable_gpio), in lm3697_probe_dt()
350 if (led->enable_gpio) in lm3697_remove()
351 gpiod_direction_output(led->enable_gpio, 0); in lm3697_remove()
Dleds-lm3692x.c113 struct gpio_desc *enable_gpio; member
185 if (led->enable_gpio) in lm3692x_leds_enable()
186 gpiod_direction_output(led->enable_gpio, 1); in lm3692x_leds_enable()
283 if (led->enable_gpio) in lm3692x_leds_enable()
284 gpiod_direction_output(led->enable_gpio, 0); in lm3692x_leds_enable()
310 if (led->enable_gpio) in lm3692x_leds_disable()
311 gpiod_direction_output(led->enable_gpio, 0); in lm3692x_leds_disable()
384 led->enable_gpio = devm_gpiod_get_optional(&led->client->dev, in lm3692x_probe_dt()
386 if (IS_ERR(led->enable_gpio)) { in lm3692x_probe_dt()
387 ret = PTR_ERR(led->enable_gpio); in lm3692x_probe_dt()
/linux-6.6.21/drivers/media/i2c/ !
Dad5820.c49 struct gpio_desc *enable_gpio; member
118 gpiod_set_value_cansleep(coil->enable_gpio, 0); in ad5820_power_off()
134 gpiod_set_value_cansleep(coil->enable_gpio, 1); in ad5820_power_on()
146 gpiod_set_value_cansleep(coil->enable_gpio, 0); in ad5820_power_on()
307 coil->enable_gpio = devm_gpiod_get_optional(&client->dev, "enable", in ad5820_probe()
309 if (IS_ERR(coil->enable_gpio)) in ad5820_probe()
310 return dev_err_probe(&client->dev, PTR_ERR(coil->enable_gpio), in ad5820_probe()
/linux-6.6.21/drivers/video/fbdev/omap2/omapfb/displays/ !
Dencoder-opa362.c26 struct gpio_desc *enable_gpio; member
97 if (ddata->enable_gpio) in opa362_enable()
98 gpiod_set_value_cansleep(ddata->enable_gpio, 1); in opa362_enable()
115 if (ddata->enable_gpio) in opa362_disable()
116 gpiod_set_value_cansleep(ddata->enable_gpio, 0); in opa362_disable()
205 ddata->enable_gpio = gpio; in opa362_probe()
Dpanel-lgphilips-lb035q02.c49 struct gpio_desc *enable_gpio; member
163 if (ddata->enable_gpio) in lb035q02_enable()
164 gpiod_set_value_cansleep(ddata->enable_gpio, 1); in lb035q02_enable()
179 if (ddata->enable_gpio) in lb035q02_disable()
180 gpiod_set_value_cansleep(ddata->enable_gpio, 0); in lb035q02_disable()
242 ddata->enable_gpio = gpio; in lb035q02_probe_of()
/linux-6.6.21/drivers/input/misc/ !
Dpwm-vibra.c27 struct gpio_desc *enable_gpio; member
53 gpiod_set_value_cansleep(vibrator->enable_gpio, 1); in pwm_vibrator_start()
87 gpiod_set_value_cansleep(vibrator->enable_gpio, 0); in pwm_vibrator_stop()
147 vibrator->enable_gpio = devm_gpiod_get_optional(&pdev->dev, "enable", in pwm_vibrator_probe()
149 if (IS_ERR(vibrator->enable_gpio)) in pwm_vibrator_probe()
150 return dev_err_probe(&pdev->dev, PTR_ERR(vibrator->enable_gpio), in pwm_vibrator_probe()
/linux-6.6.21/drivers/video/backlight/ !
Dpwm_bl.c29 struct gpio_desc *enable_gpio; member
57 gpiod_set_value_cansleep(pb->enable_gpio, 1); in pwm_backlight_power_on()
67 gpiod_set_value_cansleep(pb->enable_gpio, 0); in pwm_backlight_power_off()
122 state.enabled = !pb->power_supply && !pb->enable_gpio; in pwm_backlight_update_status()
417 if (pb->enable_gpio && gpiod_get_value_cansleep(pb->enable_gpio) == 0) in pwm_backlight_initial_power_state()
430 gpiod_direction_output(pb->enable_gpio, active); in pwm_backlight_initial_power_state()
493 pb->enable_gpio = devm_gpiod_get_optional(&pdev->dev, "enable", in pwm_backlight_probe()
495 if (IS_ERR(pb->enable_gpio)) { in pwm_backlight_probe()
496 ret = PTR_ERR(pb->enable_gpio); in pwm_backlight_probe()

123