| /linux/drivers/usb/common/ |
| H A D | usb-conn-gpio.c | 39 struct regulator *vbus; member 54 * "DEVICE" = VBUS and "HOST" = !ID, so we have: 57 * even if VBUS is on. 59 * Role | ID | VBUS 67 * - VBUS only - we want to distinguish between [1] and [2], so ID is always 1 68 * - ID only - we want to distinguish between [1] and [4], so VBUS = ID 74 int id, vbus, ret; in usb_conn_detect_cable() local 79 /* check ID and VBUS */ in usb_conn_detect_cable() 82 vbus = info->vbus_gpiod ? in usb_conn_detect_cable() 87 else if (vbus) in usb_conn_detect_cable() [all …]
|
| /linux/drivers/extcon/ |
| H A D | extcon-usb-gpio.c | 43 * "USB" = VBUS and "USB-HOST" = !ID, so we have: 46 * even if VBUS is on. 48 * State | ID | VBUS 56 * - VBUS only - we want to distinguish between [1] and [2], so ID is always 1. 57 * - ID only - we want to distinguish between [1] and [4], so VBUS = ID. 61 int id, vbus; in usb_extcon_detect_cable() local 66 /* check ID and VBUS and update cable state */ in usb_extcon_detect_cable() 69 vbus = info->vbus_gpiod ? in usb_extcon_detect_cable() 75 if (!vbus) in usb_extcon_detect_cable() 81 if (vbus) in usb_extcon_detect_cable() [all …]
|
| H A D | extcon-intel-int3496.c | 54 { "vbus-gpios", &vbus_gpios, 1 }, 77 dev_err(data->dev, "Error updating Vbus boost regulator: %d\n", ret); in int3496_set_vbus_boost() 90 * Peripheral: set USB mux to peripheral and disable VBUS in int3496_do_usb_id() 91 * Host: set USB mux to host and enable VBUS in int3496_do_usb_id() 151 data->gpio_vbus_en = devm_gpiod_get(dev, "vbus", GPIOD_ASIS); in int3496_probe() 153 dev_dbg(dev, "can't request VBUS EN GPIO\n"); in int3496_probe() 154 data->vbus_boost = devm_regulator_get_optional(dev, "vbus"); in int3496_probe()
|
| /linux/drivers/phy/renesas/ |
| H A D | phy-rcar-gen3-usb2.c | 139 struct regulator *vbus; member 229 static void rcar_gen3_enable_vbus_ctrl(struct rcar_gen3_chan *ch, int vbus) in rcar_gen3_enable_vbus_ctrl() argument 232 regulator_hardware_enable(ch->vbus, vbus); in rcar_gen3_enable_vbus_ctrl() 237 if (ch->vbus) in rcar_gen3_enable_vbus_ctrl() 238 regulator_hardware_enable(ch->vbus, vbus); in rcar_gen3_enable_vbus_ctrl() 241 USB2_VBCTRL_VBOUT, vbus); in rcar_gen3_enable_vbus_ctrl() 246 USB2_ADPCTRL_DRVVBUS, vbus); in rcar_gen3_enable_vbus_ctrl() 602 if (channel->vbus && !channel->otg_internal_reg) { in rcar_gen3_phy_usb2_power_on() 603 ret = regulator_enable(channel->vbus); in rcar_gen3_phy_usb2_power_on() 643 if (channel->vbus && !channel->otg_internal_reg) in rcar_gen3_phy_usb2_power_off() [all …]
|
| /linux/Documentation/devicetree/bindings/phy/ |
| H A 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 …]
|
| H A 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 …]
|
| H A 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 …]
|
| H A D | brcm,ns2-drd-phy.yaml | 39 vbus-gpios: 41 description: VBUS GPIO line 49 - vbus-gpios 61 vbus-gpios = <&gpio_g 31 0>;
|
| /linux/Documentation/devicetree/bindings/usb/ |
| H A D | usb-nop-xceiv.yaml | 36 vbus-detect-gpio: 37 description: Should specify the GPIO detecting a VBus insertion 40 vbus-supply: 41 description: regulator supplying VBUS. It will be enabled and disabled 68 vbus-detect-gpio = <&gpio2 13 GPIO_ACTIVE_HIGH>; 69 vbus-supply = <&vbus_regulator>;
|
| H A D | fcs,fusb302.yaml | 22 vbus-supply: 23 description: VBUS power supply 34 - vbus-supply 53 vbus-supply = <&vbus_typec>;
|
| H A D | ohci-da8xx.txt | 12 - vbus-supply: phandle of regulator that controls vbus power / over-current 22 vbus-supply = <®_usb_ohci>;
|
| H A D | ti,hd3ss3220.yaml | 31 will keep ID pin high if VBUS is not at VSafe0V. Once VBUS is at VSafe0V, 33 requirement that VBUS must be at VSafe0V before re-enabling VBUS.
|
| /linux/drivers/usb/typec/ |
| H A D | hd3ss3220.c | 64 struct regulator *vbus; member 216 ret = regulator_enable(hd3ss3220->vbus); in hd3ss3220_regulator_control() 218 ret = regulator_disable(hd3ss3220->vbus); in hd3ss3220_regulator_control() 222 "vbus regulator %s failed: %d\n", on ? "enable" : "disable", ret); in hd3ss3220_regulator_control() 246 if (hd3ss3220->vbus && !hd3ss3220->id_gpiod) in hd3ss3220_set_role() 371 struct regulator *vbus; in hd3ss3220_probe() local 407 vbus = devm_of_regulator_get_optional(hd3ss3220->dev, in hd3ss3220_probe() 409 "vbus"); in hd3ss3220_probe() 410 if (IS_ERR(vbus) && vbus != ERR_PTR(-ENODEV)) { in hd3ss3220_probe() 411 ret = PTR_ERR(vbus); in hd3ss3220_probe() [all …]
|
| /linux/drivers/usb/phy/ |
| H A 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()
|
| /linux/drivers/phy/samsung/ |
| H A 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()
|
| /linux/arch/arm/boot/dts/allwinner/ |
| H A D | sunxi-common-regulators.dtsi | 2 * sunxi boards common regulator (ahci target power supply, usb-vbus) code 59 reg_usb0_vbus: usb0-vbus { 61 regulator-name = "usb0-vbus"; 69 reg_usb1_vbus: usb1-vbus { 71 regulator-name = "usb1-vbus"; 80 reg_usb2_vbus: usb2-vbus { 82 regulator-name = "usb2-vbus";
|
| /linux/arch/arm/boot/dts/nxp/imx/ |
| H A D | imx6qdl-prti6q.dtsi | 21 reg_usb_h1_vbus: regulator-h1-vbus { 23 regulator-name = "h1-vbus"; 28 reg_usb_otg_vbus: regulator-otg-vbus { 30 regulator-name = "otg-vbus"; 69 vbus-supply = <®_usb_h1_vbus>; 77 vbus-supply = <®_usb_otg_vbus>;
|
| /linux/drivers/phy/socionext/ |
| H A D | phy-uniphier-usb3ss.c | 59 struct regulator *vbus; member 124 if (priv->vbus) { in uniphier_u3ssphy_power_on() 125 ret = regulator_enable(priv->vbus); in uniphier_u3ssphy_power_on() 146 if (priv->vbus) in uniphier_u3ssphy_power_off() 147 regulator_disable(priv->vbus); in uniphier_u3ssphy_power_off() 267 priv->vbus = devm_regulator_get_optional(dev, "vbus"); in uniphier_u3ssphy_probe() 268 if (IS_ERR(priv->vbus)) { in uniphier_u3ssphy_probe() 269 if (PTR_ERR(priv->vbus) == -EPROBE_DEFER) in uniphier_u3ssphy_probe() 270 return PTR_ERR(priv->vbus); in uniphier_u3ssphy_probe() 271 priv->vbus = NULL; in uniphier_u3ssphy_probe()
|
| H A D | phy-uniphier-usb3hs.c | 73 struct regulator *vbus; member 220 if (priv->vbus) { in uniphier_u3hsphy_power_on() 221 ret = regulator_enable(priv->vbus); in uniphier_u3hsphy_power_on() 242 if (priv->vbus) in uniphier_u3hsphy_power_off() 243 regulator_disable(priv->vbus); in uniphier_u3hsphy_power_off() 376 priv->vbus = devm_regulator_get_optional(dev, "vbus"); in uniphier_u3hsphy_probe() 377 if (IS_ERR(priv->vbus)) { in uniphier_u3hsphy_probe() 378 if (PTR_ERR(priv->vbus) == -EPROBE_DEFER) in uniphier_u3hsphy_probe() 379 return PTR_ERR(priv->vbus); in uniphier_u3hsphy_probe() 380 priv->vbus = NULL; in uniphier_u3hsphy_probe()
|
| /linux/drivers/usb/typec/tcpm/ |
| H A D | tcpci_mt6370.c | 28 struct regulator *vbus; member 84 ret = regulator_is_enabled(priv->vbus); in mt6370_tcpc_set_vbus() 89 return regulator_disable(priv->vbus); in mt6370_tcpc_set_vbus() 92 return regulator_enable(priv->vbus); in mt6370_tcpc_set_vbus() 155 priv->vbus = devm_regulator_get_optional(dev, "vbus"); in mt6370_tcpc_probe() 156 if (!IS_ERR(priv->vbus)) in mt6370_tcpc_probe()
|
| /linux/Documentation/devicetree/bindings/reset/ |
| H A D | renesas,rzg2l-usbphy-ctrl.yaml | 47 regulator-vbus: 49 description: USB VBUS regulator 74 - regulator-vbus 103 regulator-vbus { 104 regulator-name = "vbus";
|
| /linux/drivers/usb/dwc3/ |
| H A D | dwc3-meson-g12a.c | 260 struct regulator *vbus; member 495 if (priv->vbus) { in dwc3_meson_g12a_otg_mode_set() 497 ret = regulator_disable(priv->vbus); in dwc3_meson_g12a_otg_mode_set() 499 ret = regulator_enable(priv->vbus); in dwc3_meson_g12a_otg_mode_set() 716 priv->vbus = devm_regulator_get_optional(dev, "vbus"); in dwc3_meson_g12a_probe() 717 if (IS_ERR(priv->vbus)) { in dwc3_meson_g12a_probe() 718 if (PTR_ERR(priv->vbus) == -EPROBE_DEFER) in dwc3_meson_g12a_probe() 719 return PTR_ERR(priv->vbus); in dwc3_meson_g12a_probe() 720 priv->vbus = NULL; in dwc3_meson_g12a_probe() 755 if (priv->vbus) { in dwc3_meson_g12a_probe() [all …]
|
| /linux/Documentation/firmware-guide/acpi/ |
| H A D | extcon-intel-int3496.rst | 10 USB-otg port, as well as how it optionally can enable Vbus output on the 19 Index 1 The output gpio for enabling Vbus output from the device to the otg 20 port, write 1 to enable the Vbus output (this gpio descriptor may 31 vbus index 1
|
| /linux/Documentation/devicetree/bindings/power/supply/ |
| H A D | cpcap-charger.yaml | 35 - description: VBUS valid interrupt 54 - description: VBUS voltage 62 - const: vbus 103 "vbus", "chg_isense",
|
| H A D | mediatek,mt6370-charger.yaml | 46 Use ADC channel to read VBUS, IBUS, IBAT, etc., info. 50 VBUS voltage with lower accuracy (+-75mV) but higher measure 53 VBUS voltage with higher accuracy (+-30mV) but lower measure 78 usb-otg-vbus-regulator:
|