Home
last modified time | relevance | path

Searched full:vbus (Results 1 – 25 of 1127) sorted by relevance

12345678910>>...46

/openbmc/linux/drivers/usb/common/
H A Dusb-conn-gpio.c34 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 …]
/openbmc/linux/drivers/usb/phy/
H A Dphy-gpio-vbus-usb.c3 * 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 …]
H A Dphy-omap-otg.c24 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()
H A Dphy-generic.c105 int vbus, status; in nop_gpio_vbus_thread() local
107 vbus = gpiod_get_value(nop->gpiod_vbus); in nop_gpio_vbus_thread()
108 if ((vbus ^ nop->vbus) == 0) in nop_gpio_vbus_thread()
110 nop->vbus = vbus; in nop_gpio_vbus_thread()
112 if (vbus) { in nop_gpio_vbus_thread()
227 "vbus-detect", in usb_phy_gen_create_phy()
234 "Error requesting RESET or VBUS GPIO\n"); in usb_phy_gen_create_phy()
264 nop->vbus_draw = devm_regulator_get_exclusive(dev, "vbus"); in usb_phy_gen_create_phy()
269 "could not get vbus regulator\n"); in usb_phy_gen_create_phy()
/openbmc/linux/Documentation/devicetree/bindings/regulator/
H A Dqcom,usb-vbus-regulator.yaml4 $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";
/openbmc/linux/Documentation/devicetree/bindings/phy/
H A Dnvidia,tegra194-xusb-padctl.yaml40 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 …]
H A Dnvidia,tegra210-xusb-padctl.yaml40 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 Dnvidia,tegra186-xusb-padctl.yaml40 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 Dnvidia,tegra124-xusb-padctl.yaml40 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 …]
/openbmc/linux/Documentation/devicetree/bindings/usb/
H A Dusb-nop-xceiv.yaml36 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>;
H A Dqcom,pmic-typec.yaml31 - description: Type-C CC attach notification, VBUS error, tCCDebounce done
35 - description: Type-C VBUS state change
54 - const: vbus-change
67 vdd-vbus-supply:
68 description: VBUS power supply.
83 - vdd-vbus-supply
123 "vbus-change",
136 vdd-vbus-supply = <&pm8150b_vbus>;
/openbmc/linux/drivers/extcon/
H A Dextcon-usb-gpio.c44 * "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 …]
/openbmc/linux/drivers/phy/socionext/
H A Dphy-uniphier-usb2.c42 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()
H A Dphy-uniphier-usb3ss.c59 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()
/openbmc/linux/include/linux/usb/
H A Dtcpm.h61 * @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.
/openbmc/linux/drivers/phy/samsung/
H A Dphy-samsung-usb2.c27 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()
/openbmc/u-boot/doc/device-tree-bindings/phy/
H A Dsun4i-usb-phy.txt40 - usb0_vbus_det-gpios : gpio phandle for detecting the presence of usb0 vbus
41 - usb0_vbus_power-supply: power-supply phandle for usb0 vbus presence detect
42 - usb0_vbus-supply : regulator phandle for controller usb0 vbus
43 - usb1_vbus-supply : regulator phandle for controller usb1 vbus
44 - usb2_vbus-supply : regulator phandle for controller usb2 vbus
45 - usb3_vbus-supply : regulator phandle for controller usb3 vbus
/openbmc/linux/drivers/phy/allwinner/
H A Dphy-sun4i-usb.c58 /* 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 …]
/openbmc/linux/arch/arm/boot/dts/allwinner/
H A Dsunxi-common-regulators.dtsi2 * 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";
/openbmc/linux/drivers/phy/motorola/
H A Dphy-cpcap-usb.c124 struct iio_channel *vbus; member
136 error = iio_read_channel_processed(ddata->vbus, &value); in cpcap_usb_vbus_valid()
140 dev_err(ddata->dev, "error reading VBUS: %i\n", error); in cpcap_usb_vbus_valid()
220 bool vbus = false; in cpcap_usb_detect() local
229 vbus = cpcap_usb_vbus_valid(ddata); in cpcap_usb_detect()
231 /* We need to kick the VBUS as USB A-host */ in cpcap_usb_detect()
233 dev_dbg(ddata->dev, "still in USB A-host mode, kicking VBUS\n"); in cpcap_usb_detect()
247 if (vbus && s.id_ground && ddata->docked) { in cpcap_usb_detect()
255 /* No VBUS needed with docks */ in cpcap_usb_detect()
256 if (vbus && s.id_ground && !ddata->vbus_provider) { in cpcap_usb_detect()
[all …]
/openbmc/linux/drivers/regulator/
H A Dqcom_usb_vbus-regulator.c3 // Qualcomm PMIC VBUS output regulator driver
83 dev_err(dev, "not able to register vbus reg %d\n", ret); in qcom_usb_vbus_regulator_probe()
87 /* Disable HW logic for VBUS enable */ in qcom_usb_vbus_regulator_probe()
94 { .compatible = "qcom,pm8150b-vbus-reg" },
101 .name = "qcom-usb-vbus-regulator",
109 MODULE_DESCRIPTION("Qualcomm USB vbus regulator driver");
/openbmc/u-boot/include/usb/
H A Dfusbh200.h40 #define BMCSR_VBUS (1 << 8) /* VBUS Valid */
41 #define BMCSR_VBUS_OFF (1 << 4) /* VBUS Off */
42 #define BMCSR_VBUS_ON (0 << 4) /* VBUS On */
48 #define BMCSR_VFT_LONG (1 << 1) /* VBUS noise filter = 472 us*/
49 #define BMCSR_VFT (0 << 1) /* VBUS noise filter = 135 us*/
57 #define BMISR_VBUSERR (1 << 0) /* VBUS error */
/openbmc/linux/arch/arm/boot/dts/nxp/imx/
H A Dimx6qdl-prti6q.dtsi21 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 = <&reg_usb_h1_vbus>;
77 vbus-supply = <&reg_usb_otg_vbus>;
/openbmc/u-boot/board/Marvell/mvebu_armada-8k/
H A Dboard.c24 /* VBus enable */
40 * Set USB VBUS signals (via I2C IO expander/GPIO) as output and set
61 * Read configuration (direction) and set VBUS pin as output in board_xhci_config()
118 /* Read VBUS output value */ in board_xhci_enable()
125 /* Enable VBUS power: Set output value of VBUS pin as enabled */ in board_xhci_enable()
157 /* Pre-configure the USB ports (overcurrent, VBus) */ in board_late_init()
/openbmc/u-boot/arch/arm/dts/
H A Dsunxi-common-regulators.dtsi2 * sunxi boards common regulator (ahci target power supply, usb-vbus) code
92 reg_usb0_vbus: usb0-vbus {
96 regulator-name = "usb0-vbus";
104 reg_usb1_vbus: usb1-vbus {
108 regulator-name = "usb1-vbus";
117 reg_usb2_vbus: usb2-vbus {
121 regulator-name = "usb2-vbus";

12345678910>>...46