Home
last modified time | relevance | path

Searched refs:vbus_gpiod (Results 1 - 14 of 14) sorted by relevance

/kernel/linux/linux-5.10/drivers/extcon/
H A Dextcon-usb-gpio.c30 struct gpio_desc *vbus_gpiod; member
71 vbus = info->vbus_gpiod ? in usb_extcon_detect_cable()
72 gpiod_get_value_cansleep(info->vbus_gpiod) : id; in usb_extcon_detect_cable()
114 info->vbus_gpiod = devm_gpiod_get_optional(&pdev->dev, "vbus", in usb_extcon_probe()
117 if (!info->id_gpiod && !info->vbus_gpiod) { in usb_extcon_probe()
125 if (IS_ERR(info->vbus_gpiod)) in usb_extcon_probe()
126 return PTR_ERR(info->vbus_gpiod); in usb_extcon_probe()
143 if (!ret && info->vbus_gpiod) in usb_extcon_probe()
144 ret = gpiod_set_debounce(info->vbus_gpiod, in usb_extcon_probe()
170 if (info->vbus_gpiod) { in usb_extcon_probe()
[all...]
H A Dextcon-ptn5150.c51 struct gpio_desc *vbus_gpiod; member
86 gpiod_set_value_cansleep(info->vbus_gpiod, 0); in ptn5150_check_state()
93 gpiod_set_value_cansleep(info->vbus_gpiod, 0); in ptn5150_check_state()
95 gpiod_set_value_cansleep(info->vbus_gpiod, 1); in ptn5150_check_state()
135 gpiod_set_value_cansleep(info->vbus_gpiod, 0); in ptn5150_irq_work()
221 info->vbus_gpiod = devm_gpiod_get(&i2c->dev, "vbus", GPIOD_OUT_LOW); in ptn5150_i2c_probe()
222 if (IS_ERR(info->vbus_gpiod)) { in ptn5150_i2c_probe()
223 ret = PTR_ERR(info->vbus_gpiod); in ptn5150_i2c_probe()
226 info->vbus_gpiod = NULL; in ptn5150_i2c_probe()
H A Dextcon-palmas.c212 palmas_usb->vbus_gpiod = devm_gpiod_get_optional(&pdev->dev, "vbus", in palmas_usb_probe()
214 if (IS_ERR(palmas_usb->vbus_gpiod)) in palmas_usb_probe()
215 return dev_err_probe(&pdev->dev, PTR_ERR(palmas_usb->vbus_gpiod), in palmas_usb_probe()
223 if (palmas_usb->enable_vbus_detection && palmas_usb->vbus_gpiod) { in palmas_usb_probe()
332 palmas_usb->gpio_vbus_irq = gpiod_to_irq(palmas_usb->vbus_gpiod); in palmas_usb_probe()
/kernel/linux/linux-6.6/drivers/extcon/
H A Dextcon-usb-gpio.c29 struct gpio_desc *vbus_gpiod; member
70 vbus = info->vbus_gpiod ? in usb_extcon_detect_cable()
71 gpiod_get_value_cansleep(info->vbus_gpiod) : id; in usb_extcon_detect_cable()
113 info->vbus_gpiod = devm_gpiod_get_optional(&pdev->dev, "vbus", in usb_extcon_probe()
116 if (!info->id_gpiod && !info->vbus_gpiod) { in usb_extcon_probe()
124 if (IS_ERR(info->vbus_gpiod)) in usb_extcon_probe()
125 return PTR_ERR(info->vbus_gpiod); in usb_extcon_probe()
142 if (!ret && info->vbus_gpiod) in usb_extcon_probe()
143 ret = gpiod_set_debounce(info->vbus_gpiod, in usb_extcon_probe()
169 if (info->vbus_gpiod) { in usb_extcon_probe()
[all...]
H A Dextcon-ptn5150.c52 struct gpio_desc *vbus_gpiod; member
89 gpiod_set_value_cansleep(info->vbus_gpiod, 0); in ptn5150_check_state()
97 gpiod_set_value_cansleep(info->vbus_gpiod, 0); in ptn5150_check_state()
99 gpiod_set_value_cansleep(info->vbus_gpiod, 1); in ptn5150_check_state()
147 gpiod_set_value_cansleep(info->vbus_gpiod, 0); in ptn5150_irq_work()
241 info->vbus_gpiod = devm_gpiod_get(&i2c->dev, "vbus", GPIOD_OUT_LOW); in ptn5150_i2c_probe()
242 if (IS_ERR(info->vbus_gpiod)) { in ptn5150_i2c_probe()
243 ret = PTR_ERR(info->vbus_gpiod); in ptn5150_i2c_probe()
246 info->vbus_gpiod = NULL; in ptn5150_i2c_probe()
H A Dextcon-palmas.c212 palmas_usb->vbus_gpiod = devm_gpiod_get_optional(&pdev->dev, "vbus", in palmas_usb_probe()
214 if (IS_ERR(palmas_usb->vbus_gpiod)) in palmas_usb_probe()
215 return dev_err_probe(&pdev->dev, PTR_ERR(palmas_usb->vbus_gpiod), in palmas_usb_probe()
223 if (palmas_usb->enable_vbus_detection && palmas_usb->vbus_gpiod) { in palmas_usb_probe()
336 palmas_usb->gpio_vbus_irq = gpiod_to_irq(palmas_usb->vbus_gpiod); in palmas_usb_probe()
/kernel/linux/linux-6.6/drivers/usb/common/
H A Dusb-conn-gpio.c39 struct gpio_desc *vbus_gpiod; member
77 vbus = info->vbus_gpiod ? in usb_conn_detect_cable()
78 gpiod_get_value_cansleep(info->vbus_gpiod) : id; in usb_conn_detect_cable()
192 info->vbus_gpiod = devm_gpiod_get_optional(dev, "vbus", GPIOD_IN); in usb_conn_probe()
193 if (IS_ERR(info->vbus_gpiod)) in usb_conn_probe()
194 return PTR_ERR(info->vbus_gpiod); in usb_conn_probe()
196 if (!info->id_gpiod && !info->vbus_gpiod) { in usb_conn_probe()
203 if (!ret && info->vbus_gpiod) in usb_conn_probe()
204 ret = gpiod_set_debounce(info->vbus_gpiod, USB_GPIO_DEB_US); in usb_conn_probe()
243 if (info->vbus_gpiod) { in usb_conn_probe()
[all...]
/kernel/linux/linux-5.10/drivers/usb/common/
H A Dusb-conn-gpio.c39 struct gpio_desc *vbus_gpiod; member
77 vbus = info->vbus_gpiod ? in usb_conn_detect_cable()
78 gpiod_get_value_cansleep(info->vbus_gpiod) : id; in usb_conn_detect_cable()
193 info->vbus_gpiod = devm_gpiod_get_optional(dev, "vbus", GPIOD_IN); in usb_conn_probe()
194 if (IS_ERR(info->vbus_gpiod)) in usb_conn_probe()
195 return PTR_ERR(info->vbus_gpiod); in usb_conn_probe()
197 if (!info->id_gpiod && !info->vbus_gpiod) { in usb_conn_probe()
204 if (!ret && info->vbus_gpiod) in usb_conn_probe()
205 ret = gpiod_set_debounce(info->vbus_gpiod, USB_GPIO_DEB_US); in usb_conn_probe()
263 if (info->vbus_gpiod) { in usb_conn_probe()
[all...]
/kernel/linux/linux-5.10/drivers/usb/phy/
H A Dphy-gpio-vbus-usb.c31 struct gpio_desc *vbus_gpiod; member
89 return gpiod_get_value(gpio_vbus->vbus_gpiod); in is_vbus_powered()
261 gpio_vbus->vbus_gpiod = devm_gpiod_get(dev, "vbus", GPIOD_IN); in gpio_vbus_probe()
262 if (IS_ERR(gpio_vbus->vbus_gpiod)) { in gpio_vbus_probe()
263 err = PTR_ERR(gpio_vbus->vbus_gpiod); in gpio_vbus_probe()
267 gpiod_set_consumer_name(gpio_vbus->vbus_gpiod, "vbus_detect"); in gpio_vbus_probe()
274 irq = gpiod_to_irq(gpio_vbus->vbus_gpiod); in gpio_vbus_probe()
/kernel/linux/linux-6.6/drivers/usb/phy/
H A Dphy-gpio-vbus-usb.c31 struct gpio_desc *vbus_gpiod; member
89 return gpiod_get_value(gpio_vbus->vbus_gpiod); in is_vbus_powered()
261 gpio_vbus->vbus_gpiod = devm_gpiod_get(dev, "vbus", GPIOD_IN); in gpio_vbus_probe()
262 if (IS_ERR(gpio_vbus->vbus_gpiod)) { in gpio_vbus_probe()
263 err = PTR_ERR(gpio_vbus->vbus_gpiod); in gpio_vbus_probe()
267 gpiod_set_consumer_name(gpio_vbus->vbus_gpiod, "vbus_detect"); in gpio_vbus_probe()
274 irq = gpiod_to_irq(gpio_vbus->vbus_gpiod); in gpio_vbus_probe()
/kernel/linux/linux-5.10/drivers/phy/broadcom/
H A Dphy-bcm-ns2-usbdrd.c68 struct gpio_desc *vbus_gpiod; member
248 vbus = gpiod_get_value_cansleep(driver->vbus_gpiod); in extcon_work()
336 driver->vbus_gpiod = devm_gpiod_get(&pdev->dev, "vbus", GPIOD_IN); in ns2_drd_phy_probe()
337 if (IS_ERR(driver->vbus_gpiod)) { in ns2_drd_phy_probe()
339 return PTR_ERR(driver->vbus_gpiod); in ns2_drd_phy_probe()
366 driver->vbus_irq = gpiod_to_irq(driver->vbus_gpiod); in ns2_drd_phy_probe()
/kernel/linux/linux-6.6/drivers/phy/broadcom/
H A Dphy-bcm-ns2-usbdrd.c58 struct gpio_desc *vbus_gpiod; member
238 vbus = gpiod_get_value_cansleep(driver->vbus_gpiod); in extcon_work()
321 driver->vbus_gpiod = devm_gpiod_get(&pdev->dev, "vbus", GPIOD_IN); in ns2_drd_phy_probe()
322 if (IS_ERR(driver->vbus_gpiod)) { in ns2_drd_phy_probe()
324 return PTR_ERR(driver->vbus_gpiod); in ns2_drd_phy_probe()
351 driver->vbus_irq = gpiod_to_irq(driver->vbus_gpiod); in ns2_drd_phy_probe()
/kernel/linux/linux-5.10/include/linux/mfd/
H A Dpalmas.h581 struct gpio_desc *vbus_gpiod; member
/kernel/linux/linux-6.6/include/linux/mfd/
H A Dpalmas.h572 struct gpio_desc *vbus_gpiod; member

Completed in 29 milliseconds