Home
last modified time | relevance | path

Searched refs:id_gpiod (Results 1 – 6 of 6) sorted by relevance

/linux-5.19.10/drivers/extcon/
Dextcon-usb-gpio.c28 struct gpio_desc *id_gpiod; member
68 id = info->id_gpiod ? in usb_extcon_detect_cable()
69 gpiod_get_value_cansleep(info->id_gpiod) : 1; in usb_extcon_detect_cable()
112 info->id_gpiod = devm_gpiod_get_optional(&pdev->dev, "id", GPIOD_IN); in usb_extcon_probe()
116 if (!info->id_gpiod && !info->vbus_gpiod) { in usb_extcon_probe()
121 if (IS_ERR(info->id_gpiod)) in usb_extcon_probe()
122 return PTR_ERR(info->id_gpiod); in usb_extcon_probe()
139 if (info->id_gpiod) in usb_extcon_probe()
140 ret = gpiod_set_debounce(info->id_gpiod, in usb_extcon_probe()
151 if (info->id_gpiod) { in usb_extcon_probe()
[all …]
Dextcon-max3355.c18 struct gpio_desc *id_gpiod; member
31 int id = gpiod_get_value_cansleep(data->id_gpiod); in max3355_id_irq()
70 data->id_gpiod = gpiod; in max3355_probe()
91 irq = gpiod_to_irq(data->id_gpiod); in max3355_probe()
Dextcon-palmas.c124 if (!palmas_usb->id_gpiod) in palmas_gpio_id_detect()
127 id = gpiod_get_value_cansleep(palmas_usb->id_gpiod); in palmas_gpio_id_detect()
207 palmas_usb->id_gpiod = devm_gpiod_get_optional(&pdev->dev, "id", in palmas_usb_probe()
209 if (IS_ERR(palmas_usb->id_gpiod)) in palmas_usb_probe()
210 return dev_err_probe(&pdev->dev, PTR_ERR(palmas_usb->id_gpiod), in palmas_usb_probe()
219 if (palmas_usb->enable_id_detection && palmas_usb->id_gpiod) { in palmas_usb_probe()
235 status = gpiod_set_debounce(palmas_usb->id_gpiod, in palmas_usb_probe()
286 palmas_usb->gpio_id_irq = gpiod_to_irq(palmas_usb->id_gpiod); in palmas_usb_probe()
/linux-5.19.10/drivers/usb/common/
Dusb-conn-gpio.c38 struct gpio_desc *id_gpiod; member
74 id = info->id_gpiod ? in usb_conn_detect_cable()
75 gpiod_get_value_cansleep(info->id_gpiod) : 1; in usb_conn_detect_cable()
185 info->id_gpiod = devm_gpiod_get_optional(dev, "id", GPIOD_IN); in usb_conn_probe()
186 if (IS_ERR(info->id_gpiod)) in usb_conn_probe()
187 return PTR_ERR(info->id_gpiod); in usb_conn_probe()
193 if (!info->id_gpiod && !info->vbus_gpiod) { in usb_conn_probe()
198 if (info->id_gpiod) in usb_conn_probe()
199 ret = gpiod_set_debounce(info->id_gpiod, USB_GPIO_DEB_US); in usb_conn_probe()
225 if (info->id_gpiod) { in usb_conn_probe()
[all …]
/linux-5.19.10/drivers/phy/broadcom/
Dphy-bcm-ns2-usbdrd.c69 struct gpio_desc *id_gpiod; member
247 id = gpiod_get_value_cansleep(driver->id_gpiod); in extcon_work()
326 driver->id_gpiod = devm_gpiod_get(&pdev->dev, "id", GPIOD_IN); in ns2_drd_phy_probe()
327 if (IS_ERR(driver->id_gpiod)) { in ns2_drd_phy_probe()
329 return PTR_ERR(driver->id_gpiod); in ns2_drd_phy_probe()
349 ret = gpiod_set_debounce(driver->id_gpiod, GPIO_DELAY * 1000); in ns2_drd_phy_probe()
355 driver->id_irq = gpiod_to_irq(driver->id_gpiod); in ns2_drd_phy_probe()
/linux-5.19.10/include/linux/mfd/
Dpalmas.h580 struct gpio_desc *id_gpiod; member