| /kernel/linux/linux-5.10/drivers/usb/common/ |
| D | usb-conn-gpio.c | 34 struct regulator *vbus; member 49 * "DEVICE" = VBUS and "HOST" = !ID, so we have: 52 * even if VBUS is on. 54 * Role | ID | VBUS 62 * - VBUS only - we want to distinguish between [1] and [2], so ID is always 1 63 * - ID only - we want to distinguish between [1] and [4], so VBUS = ID 69 int id, vbus, ret; in usb_conn_detect_cable() local 74 /* check ID and VBUS */ in usb_conn_detect_cable() 77 vbus = info->vbus_gpiod ? in usb_conn_detect_cable() 82 else if (vbus) in usb_conn_detect_cable() [all …]
|
| /kernel/linux/linux-6.6/drivers/usb/common/ |
| D | usb-conn-gpio.c | 38 struct regulator *vbus; member 53 * "DEVICE" = VBUS and "HOST" = !ID, so we have: 56 * even if VBUS is on. 58 * Role | ID | VBUS 66 * - VBUS only - we want to distinguish between [1] and [2], so ID is always 1 67 * - ID only - we want to distinguish between [1] and [4], so VBUS = ID 73 int id, vbus, ret; in usb_conn_detect_cable() local 78 /* check ID and VBUS */ in usb_conn_detect_cable() 81 vbus = info->vbus_gpiod ? in usb_conn_detect_cable() 86 else if (vbus) in usb_conn_detect_cable() [all …]
|
| /kernel/linux/linux-5.10/drivers/usb/phy/ |
| D | phy-gpio-vbus-usb.c | 3 * gpio-vbus.c - simple GPIO VBUS sensing driver for B peripheral devices 24 * A simple GPIO VBUS sensing driver for B peripheral only devices 26 * a regulator to limit the current drawn from VBUS. 39 int vbus; member 45 * This driver relies on "both edges" triggering. VBUS has 100 msec to 96 int status, vbus; in gpio_vbus_work() local 101 vbus = is_vbus_powered(gpio_vbus); in gpio_vbus_work() 102 if ((vbus ^ gpio_vbus->vbus) == 0) in gpio_vbus_work() 104 gpio_vbus->vbus = vbus; in gpio_vbus_work() 112 if (vbus) { in gpio_vbus_work() [all …]
|
| D | phy-omap-otg.c | 24 bool vbus; member 52 if (!otg_dev->id && otg_dev->vbus) in omap_otg_set_mode() 55 else if (otg_dev->vbus) in omap_otg_set_mode() 59 /* Set B-session end to indicate no VBUS. */ in omap_otg_set_mode() 80 otg_dev->vbus = event; in omap_otg_vbus_notifier() 125 otg_dev->vbus = extcon_get_state(extcon, EXTCON_USB); in omap_otg_probe() 131 "OMAP USB OTG controller rev %d.%d (%s, id=%d, vbus=%d)\n", in omap_otg_probe() 133 otg_dev->vbus); in omap_otg_probe()
|
| /kernel/linux/linux-6.6/drivers/usb/phy/ |
| D | phy-gpio-vbus-usb.c | 3 * gpio-vbus.c - simple GPIO VBUS sensing driver for B peripheral devices 24 * A simple GPIO VBUS sensing driver for B peripheral only devices 26 * a regulator to limit the current drawn from VBUS. 39 int vbus; member 45 * This driver relies on "both edges" triggering. VBUS has 100 msec to 96 int status, vbus; in gpio_vbus_work() local 101 vbus = is_vbus_powered(gpio_vbus); in gpio_vbus_work() 102 if ((vbus ^ gpio_vbus->vbus) == 0) in gpio_vbus_work() 104 gpio_vbus->vbus = vbus; in gpio_vbus_work() 112 if (vbus) { in gpio_vbus_work() [all …]
|
| D | phy-omap-otg.c | 24 bool vbus; member 52 if (!otg_dev->id && otg_dev->vbus) in omap_otg_set_mode() 55 else if (otg_dev->vbus) in omap_otg_set_mode() 59 /* Set B-session end to indicate no VBUS. */ in omap_otg_set_mode() 80 otg_dev->vbus = event; in omap_otg_vbus_notifier() 125 otg_dev->vbus = extcon_get_state(extcon, EXTCON_USB); in omap_otg_probe() 131 "OMAP USB OTG controller rev %d.%d (%s, id=%d, vbus=%d)\n", in omap_otg_probe() 133 otg_dev->vbus); in omap_otg_probe()
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/usb/ |
| D | usb-nop-xceiv.txt | 21 - vbus-detect-gpio: should specify the GPIO detecting a VBus insertion 23 - vbus-regulator : should specifiy the regulator supplying current drawn from 24 the VBus line (see Documentation/devicetree/bindings/regulator/regulator.txt). 35 vbus-detect-gpio = <&gpio2 13 GPIO_ACTIVE_HIGH>; 36 vbus-regulator = <&vbus_regulator>; 43 GPIO 13 detects VBus insertion, and accordingly notifies the vbus-regulator.
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/regulator/ |
| D | qcom,usb-vbus-regulator.yaml | 4 $id: http://devicetree.org/schemas/regulator/qcom,usb-vbus-regulator.yaml# 7 title: The Qualcomm PMIC VBUS output regulator driver 13 This regulator driver controls the VBUS output by the Qualcomm PMIC. This 23 - qcom,pm8150b-vbus-reg 27 description: VBUS output base address 42 pm8150b_vbus: usb-vbus-regulator@1100 { 43 compatible = "qcom,pm8150b-vbus-reg";
|
| /kernel/linux/linux-5.10/Documentation/devicetree/bindings/regulator/ |
| D | qcom,usb-vbus-regulator.yaml | 4 $id: http://devicetree.org/schemas/regulator/qcom,usb-vbus-regulator.yaml# 7 title: The Qualcomm PMIC VBUS output regulator driver 13 This regulator driver controls the VBUS output by the Qualcomm PMIC. This 20 - qcom,pm8150b-vbus-reg 24 description: VBUS output base address 37 compatible = "qcom,pm8150b-vbus-reg";
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/phy/ |
| D | nvidia,tegra194-xusb-padctl.yaml | 40 for the USB signal, the VBUS power supply, the USB 2.0 companion port for 72 description: USB I/Os, VBUS, ID, REXT, D+/D- power supply. Must 254 vbus-supply: 255 description: A phandle to the regulator supplying the VBUS 292 vbus-supply: 293 description: A phandle to the regulator supplying the VBUS 330 vbus-supply: 331 description: A phandle to the regulator supplying the VBUS 368 vbus-supply: 369 description: A phandle to the regulator supplying the VBUS [all …]
|
| D | nvidia,tegra210-xusb-padctl.yaml | 40 for the USB signal, the VBUS power supply, the USB 2.0 companion port for 382 vbus-supply: 383 description: A phandle to the regulator supplying the VBUS 420 vbus-supply: 421 description: A phandle to the regulator supplying the VBUS 458 vbus-supply: 459 description: A phandle to the regulator supplying the VBUS 496 vbus-supply: 497 description: A phandle to the regulator supplying the VBUS 507 vbus-supply: [all …]
|
| D | nvidia,tegra186-xusb-padctl.yaml | 40 for the USB signal, the VBUS power supply, the USB 2.0 companion port for 74 description: USB I/Os, VBUS, ID, REXT, D+/D- power supply. Must 263 vbus-supply: 264 description: A phandle to the regulator supplying the VBUS 301 vbus-supply: 302 description: A phandle to the regulator supplying the VBUS 339 vbus-supply: 340 description: A phandle to the regulator supplying the VBUS 367 vbus-supply: 368 description: A phandle to the regulator supplying the VBUS [all …]
|
| D | nvidia,tegra124-xusb-padctl.yaml | 40 for the USB signal, the VBUS power supply, the USB 2.0 companion port for 360 vbus-supply: 361 description: A phandle to the regulator supplying the VBUS 395 vbus-supply: 396 description: A phandle to the regulator supplying the VBUS 430 vbus-supply: 431 description: A phandle to the regulator supplying the VBUS 444 vbus-supply: 445 description: A phandle to the regulator supplying the VBUS 452 vbus-supply: [all …]
|
| /kernel/linux/linux-6.6/drivers/extcon/ |
| D | extcon-usb-gpio.c | 44 * "USB" = VBUS and "USB-HOST" = !ID, so we have: 47 * even if VBUS is on. 49 * State | ID | VBUS 57 * - VBUS only - we want to distinguish between [1] and [2], so ID is always 1. 58 * - ID only - we want to distinguish between [1] and [4], so VBUS = ID. 62 int id, vbus; in usb_extcon_detect_cable() local 67 /* check ID and VBUS and update cable state */ in usb_extcon_detect_cable() 70 vbus = info->vbus_gpiod ? in usb_extcon_detect_cable() 76 if (!vbus) in usb_extcon_detect_cable() 82 if (vbus) in usb_extcon_detect_cable() [all …]
|
| /kernel/linux/linux-6.6/Documentation/devicetree/bindings/usb/ |
| D | usb-nop-xceiv.yaml | 36 vbus-detect-gpio: 37 description: Should specify the GPIO detecting a VBus insertion 40 vbus-regulator: 42 the VBus line. 67 vbus-detect-gpio = <&gpio2 13 GPIO_ACTIVE_HIGH>; 68 vbus-regulator = <&vbus_regulator>;
|
| /kernel/linux/linux-6.6/drivers/phy/socionext/ |
| D | phy-uniphier-usb2.c | 42 struct regulator *vbus; member 52 if (priv->vbus) in uniphier_u2phy_power_on() 53 ret = regulator_enable(priv->vbus); in uniphier_u2phy_power_on() 62 if (priv->vbus) in uniphier_u2phy_power_off() 63 regulator_disable(priv->vbus); in uniphier_u2phy_power_off() 140 priv->vbus = devm_regulator_get_optional(dev, "vbus"); in uniphier_u2phy_probe() 141 if (IS_ERR(priv->vbus)) { in uniphier_u2phy_probe() 142 if (PTR_ERR(priv->vbus) == -EPROBE_DEFER) { in uniphier_u2phy_probe() 143 ret = PTR_ERR(priv->vbus); in uniphier_u2phy_probe() 146 priv->vbus = NULL; in uniphier_u2phy_probe()
|
| /kernel/linux/linux-5.10/drivers/phy/socionext/ |
| D | phy-uniphier-usb2.c | 42 struct regulator *vbus; member 52 if (priv->vbus) in uniphier_u2phy_power_on() 53 ret = regulator_enable(priv->vbus); in uniphier_u2phy_power_on() 62 if (priv->vbus) in uniphier_u2phy_power_off() 63 regulator_disable(priv->vbus); in uniphier_u2phy_power_off() 140 priv->vbus = devm_regulator_get_optional(dev, "vbus"); in uniphier_u2phy_probe() 141 if (IS_ERR(priv->vbus)) { in uniphier_u2phy_probe() 142 if (PTR_ERR(priv->vbus) == -EPROBE_DEFER) { in uniphier_u2phy_probe() 143 ret = PTR_ERR(priv->vbus); in uniphier_u2phy_probe() 146 priv->vbus = NULL; in uniphier_u2phy_probe()
|
| /kernel/linux/linux-5.10/drivers/extcon/ |
| D | extcon-usb-gpio.c | 45 * "USB" = VBUS and "USB-HOST" = !ID, so we have: 48 * even if VBUS is on. 50 * State | ID | VBUS 58 * - VBUS only - we want to distinguish between [1] and [2], so ID is always 1. 59 * - ID only - we want to distinguish between [1] and [4], so VBUS = ID. 63 int id, vbus; in usb_extcon_detect_cable() local 68 /* check ID and VBUS and update cable state */ in usb_extcon_detect_cable() 71 vbus = info->vbus_gpiod ? in usb_extcon_detect_cable() 77 if (!vbus) in usb_extcon_detect_cable() 83 if (vbus) in usb_extcon_detect_cable() [all …]
|
| /kernel/linux/linux-5.10/drivers/phy/allwinner/ |
| D | phy-sun4i-usb.c | 60 /* sunxi has the phy id/vbus pins not connected, so we use the force bits */ 96 * otherwise we get Vbus errors 133 struct regulator *vbus; member 394 /* Fallback: report vbus as high */ in sun4i_usb_phy0_get_vbus_det() 411 * generate vbus change interrupts when the board is driving in sun4i_usb_phy0_poll() 412 * vbus using the N_VBUSEN pin on the pmic, so we must poll in sun4i_usb_phy0_poll() 413 * when using the pmic for vbus-det _and_ we're driving vbus. in sun4i_usb_phy0_poll() 429 if (!phy->vbus || phy->regulator_on) in sun4i_usb_phy_power_on() 432 /* For phy0 only turn on Vbus if we don't have an ext. Vbus */ in sun4i_usb_phy_power_on() 435 dev_warn(&_phy->dev, "External vbus detected, not enabling our own vbus\n"); in sun4i_usb_phy_power_on() [all …]
|
| /kernel/linux/linux-6.6/include/linux/usb/ |
| D | tcpm.h | 61 * @get_vbus: Called to read current VBUS state 75 * @set_vbus: Called to enable or disable VBUS 93 * Optional; Called to notify that vbus is now being sourced. 97 * support hardware to autonomously dischrge vbus upon disconnecting 103 * vbus threshold voltage below which the vbus discharge circuit 104 * will be turned on. requested_vbus_voltage is set to 0 when vbus 109 * detect VSAFE0V voltage level at vbus. When detection of VSAFE0V 111 * whether vbus is at VSAFE0V when needed. 112 * Returns true when vbus is at VSAFE0V, false otherwise.
|
| /kernel/linux/linux-5.10/drivers/phy/samsung/ |
| D | phy-samsung-usb2.c | 29 if (drv->vbus) { in samsung_usb2_phy_power_on() 30 ret = regulator_enable(drv->vbus); in samsung_usb2_phy_power_on() 56 if (drv->vbus) in samsung_usb2_phy_power_on() 57 regulator_disable(drv->vbus); in samsung_usb2_phy_power_on() 79 if (drv->vbus) in samsung_usb2_phy_power_off() 80 ret = regulator_disable(drv->vbus); in samsung_usb2_phy_power_off() 212 drv->vbus = devm_regulator_get(dev, "vbus"); in samsung_usb2_phy_probe() 213 if (IS_ERR(drv->vbus)) { in samsung_usb2_phy_probe() 214 ret = PTR_ERR(drv->vbus); in samsung_usb2_phy_probe() 217 drv->vbus = NULL; in samsung_usb2_phy_probe()
|
| /kernel/linux/linux-6.6/drivers/phy/samsung/ |
| D | phy-samsung-usb2.c | 27 if (drv->vbus) { in samsung_usb2_phy_power_on() 28 ret = regulator_enable(drv->vbus); in samsung_usb2_phy_power_on() 54 if (drv->vbus) in samsung_usb2_phy_power_on() 55 regulator_disable(drv->vbus); in samsung_usb2_phy_power_on() 77 if (drv->vbus) in samsung_usb2_phy_power_off() 78 ret = regulator_disable(drv->vbus); in samsung_usb2_phy_power_off() 212 drv->vbus = devm_regulator_get(dev, "vbus"); in samsung_usb2_phy_probe() 213 if (IS_ERR(drv->vbus)) { in samsung_usb2_phy_probe() 214 ret = PTR_ERR(drv->vbus); in samsung_usb2_phy_probe() 217 drv->vbus = NULL; in samsung_usb2_phy_probe()
|
| /kernel/linux/linux-6.6/drivers/phy/allwinner/ |
| D | phy-sun4i-usb.c | 58 /* sunxi has the phy id/vbus pins not connected, so we use the force bits */ 95 * otherwise we get Vbus errors 122 struct regulator *vbus; member 434 /* Fallback: report vbus as high */ in sun4i_usb_phy0_get_vbus_det() 451 * generate vbus change interrupts when the board is driving in sun4i_usb_phy0_poll() 452 * vbus using the N_VBUSEN pin on the pmic, so we must poll in sun4i_usb_phy0_poll() 453 * when using the pmic for vbus-det _and_ we're driving vbus. in sun4i_usb_phy0_poll() 468 if (!phy->vbus || phy->regulator_on) in sun4i_usb_phy_power_on() 471 /* For phy0 only turn on Vbus if we don't have an ext. Vbus */ in sun4i_usb_phy_power_on() 474 dev_warn(&_phy->dev, "External vbus detected, not enabling our own vbus\n"); in sun4i_usb_phy_power_on() [all …]
|
| /kernel/linux/linux-5.10/drivers/regulator/ |
| D | qcom_usb_vbus-regulator.c | 3 // Qualcomm PMIC VBUS output regulator driver 72 dev_err(dev, "not able to register vbus reg %d\n", ret); in qcom_usb_vbus_regulator_probe() 76 /* Disable HW logic for VBUS enable */ in qcom_usb_vbus_regulator_probe() 83 { .compatible = "qcom,pm8150b-vbus-reg" }, 90 .name = "qcom-usb-vbus-regulator", 97 MODULE_DESCRIPTION("Qualcomm USB vbus regulator driver");
|
| /kernel/linux/linux-5.10/drivers/phy/motorola/ |
| D | phy-cpcap-usb.c | 132 struct iio_channel *vbus; member 144 error = iio_read_channel_processed(ddata->vbus, &value); in cpcap_usb_vbus_valid() 148 dev_err(ddata->dev, "error reading VBUS: %i\n", error); in cpcap_usb_vbus_valid() 228 bool vbus = false; in cpcap_usb_detect() local 237 vbus = cpcap_usb_vbus_valid(ddata); in cpcap_usb_detect() 239 /* We need to kick the VBUS as USB A-host */ in cpcap_usb_detect() 241 dev_dbg(ddata->dev, "still in USB A-host mode, kicking VBUS\n"); in cpcap_usb_detect() 255 if (vbus && s.id_ground && ddata->docked) { in cpcap_usb_detect() 263 /* No VBUS needed with docks */ in cpcap_usb_detect() 264 if (vbus && s.id_ground && !ddata->vbus_provider) { in cpcap_usb_detect() [all …]
|