Searched refs:vbus_gpiod (Results 1 – 9 of 9) sorted by relevance
/linux-6.1.9/drivers/extcon/ |
D | extcon-usb-gpio.c | 29 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 …]
|
D | extcon-ptn5150.c | 52 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()
|
D | extcon-palmas.c | 213 palmas_usb->vbus_gpiod = devm_gpiod_get_optional(&pdev->dev, "vbus", in palmas_usb_probe() 215 if (IS_ERR(palmas_usb->vbus_gpiod)) in palmas_usb_probe() 216 return dev_err_probe(&pdev->dev, PTR_ERR(palmas_usb->vbus_gpiod), in palmas_usb_probe() 224 if (palmas_usb->enable_vbus_detection && palmas_usb->vbus_gpiod) { in palmas_usb_probe() 337 palmas_usb->gpio_vbus_irq = gpiod_to_irq(palmas_usb->vbus_gpiod); in palmas_usb_probe()
|
/linux-6.1.9/drivers/usb/common/ |
D | usb-conn-gpio.c | 39 struct gpio_desc *vbus_gpiod; member 76 vbus = info->vbus_gpiod ? in usb_conn_detect_cable() 77 gpiod_get_value_cansleep(info->vbus_gpiod) : id; in usb_conn_detect_cable() 189 info->vbus_gpiod = devm_gpiod_get_optional(dev, "vbus", GPIOD_IN); in usb_conn_probe() 190 if (IS_ERR(info->vbus_gpiod)) in usb_conn_probe() 191 return PTR_ERR(info->vbus_gpiod); in usb_conn_probe() 193 if (!info->id_gpiod && !info->vbus_gpiod) { in usb_conn_probe() 200 if (!ret && info->vbus_gpiod) in usb_conn_probe() 201 ret = gpiod_set_debounce(info->vbus_gpiod, USB_GPIO_DEB_US); in usb_conn_probe() 240 if (info->vbus_gpiod) { in usb_conn_probe() [all …]
|
/linux-6.1.9/drivers/usb/phy/ |
D | phy-gpio-vbus-usb.c | 31 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()
|
/linux-6.1.9/drivers/phy/broadcom/ |
D | phy-bcm-ns2-usbdrd.c | 58 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()
|
/linux-6.1.9/drivers/usb/gadget/udc/ |
D | s3c2410_udc.c | 1469 value = gpiod_get_value(dev->vbus_gpiod); in s3c2410_udc_vbus_irq() 1802 udc->vbus_gpiod = gpiod_get_optional(dev, "vbus", GPIOD_IN); in s3c2410_udc_probe() 1803 if (IS_ERR(udc->vbus_gpiod)) { in s3c2410_udc_probe() 1804 retval = PTR_ERR(udc->vbus_gpiod); in s3c2410_udc_probe() 1807 if (udc->vbus_gpiod) { in s3c2410_udc_probe() 1808 gpiod_set_consumer_name(udc->vbus_gpiod, "udc vbus"); in s3c2410_udc_probe() 1810 irq = gpiod_to_irq(udc->vbus_gpiod); in s3c2410_udc_probe() 1854 if (udc->vbus_gpiod) in s3c2410_udc_probe() 1855 free_irq(gpiod_to_irq(udc->vbus_gpiod), udc); in s3c2410_udc_probe() 1886 if (udc->vbus_gpiod) in s3c2410_udc_remove() [all …]
|
D | s3c2410_udc.h | 86 struct gpio_desc *vbus_gpiod; member
|
/linux-6.1.9/include/linux/mfd/ |
D | palmas.h | 581 struct gpio_desc *vbus_gpiod; member
|