/openbmc/linux/drivers/usb/common/ |
H A D | usb-conn-gpio.c | 34 struct regulator *vbus; member 69 int id, vbus, ret; in usb_conn_detect_cable() local 77 vbus = info->vbus_gpiod ? in usb_conn_detect_cable() 82 else if (vbus) in usb_conn_detect_cable() 98 regulator_disable(info->vbus); in usb_conn_detect_cable() 105 ret = regulator_enable(info->vbus); in usb_conn_detect_cable() 112 if (info->vbus) in usb_conn_detect_cable() 211 if (PTR_ERR(info->vbus) == -ENODEV) in usb_conn_probe() 212 info->vbus = NULL; in usb_conn_probe() 214 if (IS_ERR(info->vbus)) in usb_conn_probe() [all …]
|
/openbmc/linux/drivers/phy/socionext/ |
H A 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()
|
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()
|
/openbmc/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()
|
/openbmc/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() 80 otg_dev->vbus = event; in omap_otg_vbus_notifier() 125 otg_dev->vbus = extcon_get_state(extcon, EXTCON_USB); in omap_otg_probe() 133 otg_dev->vbus); in omap_otg_probe()
|
H A D | phy-gpio-vbus-usb.c | 39 int vbus; member 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() 196 gpio_vbus->vbus = 0; /* start with disconnected */ in gpio_vbus_set_peripheral()
|
H A D | phy-generic.c | 105 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()
|
/openbmc/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>;
|
/openbmc/linux/Documentation/devicetree/bindings/regulator/ |
H A D | qcom,usb-vbus-regulator.yaml | 4 $id: http://devicetree.org/schemas/regulator/qcom,usb-vbus-regulator.yaml# 23 - qcom,pm8150b-vbus-reg 42 pm8150b_vbus: usb-vbus-regulator@1100 { 43 compatible = "qcom,pm8150b-vbus-reg";
|
/openbmc/u-boot/doc/device-tree-bindings/phy/ |
H A D | sun4i-usb-phy.txt | 40 - 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/usb/typec/tcpm/ |
H A D | tcpci_mt6370.c | 30 struct regulator *vbus; member 86 ret = regulator_is_enabled(priv->vbus); in mt6370_tcpc_set_vbus() 91 return regulator_disable(priv->vbus); in mt6370_tcpc_set_vbus() 94 return regulator_enable(priv->vbus); in mt6370_tcpc_set_vbus() 157 priv->vbus = devm_regulator_get_optional(dev, "vbus"); in mt6370_tcpc_probe() 158 if (!IS_ERR(priv->vbus)) in mt6370_tcpc_probe()
|
/openbmc/u-boot/arch/arm/dts/ |
H A D | rk3036-sdk.dts | 53 vbus-supply = <&vcc5v0_host>; 58 vbus-supply = <&vcc5v0_otg>; 64 otg_vbus_drv: host-vbus-drv { 70 host_vbus_drv: host-vbus-drv {
|
H A D | sunxi-common-regulators.dtsi | 2 * 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";
|
/openbmc/linux/arch/arm64/boot/dts/mediatek/ |
H A D | mt2712-evb.dts | 54 usb_p0_vbus: regulator-usb-p0-vbus { 63 usb_p1_vbus: regulator-usb-p1-vbus { 72 usb_p2_vbus: regulator-usb-p2-vbus { 81 usb_p3_vbus: regulator-usb-p3-vbus { 201 vbus-supply = <&usb_p0_vbus>; 214 vbus-supply = <&usb_p1_vbus>; 231 vbus-supply = <&usb_p2_vbus>;
|
/openbmc/linux/Documentation/devicetree/bindings/usb/ |
H A D | usb-nop-xceiv.yaml | 36 vbus-detect-gpio: 40 vbus-regulator: 67 vbus-detect-gpio = <&gpio2 13 GPIO_ACTIVE_HIGH>; 68 vbus-regulator = <&vbus_regulator>;
|
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 | fcs,fusb302.yaml | 22 vbus-supply: 34 - vbus-supply 53 vbus-supply = <&vbus_typec>;
|
/openbmc/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";
|
/openbmc/linux/drivers/phy/motorola/ |
H A D | phy-cpcap-usb.c | 124 struct iio_channel *vbus; member 220 bool vbus = false; in cpcap_usb_detect() local 229 vbus = cpcap_usb_vbus_valid(ddata); in cpcap_usb_detect() 247 if (vbus && s.id_ground && ddata->docked) { in cpcap_usb_detect() 256 if (vbus && s.id_ground && !ddata->vbus_provider) { in cpcap_usb_detect() 305 vbus = cpcap_usb_vbus_valid(ddata); in cpcap_usb_detect() 308 if (vbus) { in cpcap_usb_detect() 568 if (IS_ERR(ddata->vbus)) { in cpcap_usb_init_iio() 569 error = PTR_ERR(ddata->vbus); in cpcap_usb_init_iio() 573 if (!ddata->vbus->indio_dev) { in cpcap_usb_init_iio() [all …]
|
/openbmc/linux/drivers/phy/renesas/ |
H A D | phy-rcar-gen3-usb2.c | 113 struct regulator *vbus; member 189 dev_vdbg(ch->dev, "%s: %08x, %d\n", __func__, val, vbus); in rcar_gen3_enable_vbus_ctrl() 196 if (vbus) in rcar_gen3_enable_vbus_ctrl() 505 if (channel->vbus) { in rcar_gen3_phy_usb2_power_on() 506 ret = regulator_enable(channel->vbus); in rcar_gen3_phy_usb2_power_on() 537 if (channel->vbus) in rcar_gen3_phy_usb2_power_off() 538 ret = regulator_disable(channel->vbus); in rcar_gen3_phy_usb2_power_off() 722 if (IS_ERR(channel->vbus)) { in rcar_gen3_phy_usb2_probe() 723 if (PTR_ERR(channel->vbus) == -EPROBE_DEFER) { in rcar_gen3_phy_usb2_probe() 724 ret = PTR_ERR(channel->vbus); in rcar_gen3_phy_usb2_probe() [all …]
|
/openbmc/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() 499 ret = regulator_enable(priv->vbus); in dwc3_meson_g12a_otg_mode_set() 717 if (IS_ERR(priv->vbus)) { 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() 756 ret = regulator_enable(priv->vbus); in dwc3_meson_g12a_probe() 819 if (priv->vbus) in dwc3_meson_g12a_probe() 820 regulator_disable(priv->vbus); in dwc3_meson_g12a_probe() [all …]
|
/openbmc/linux/drivers/phy/rockchip/ |
H A D | phy-rockchip-usb.c | 77 struct regulator *vbus; member 100 if (phy->vbus) in rockchip_usb_phy480m_disable() 101 regulator_disable(phy->vbus); in rockchip_usb_phy480m_disable() 158 if (phy->vbus) { in rockchip_usb_phy_power_on() 161 ret = regulator_enable(phy->vbus); in rockchip_usb_phy_power_on() 291 rk_phy->vbus = devm_regulator_get_optional(&rk_phy->phy->dev, "vbus"); in rockchip_usb_phy_init() 292 if (IS_ERR(rk_phy->vbus)) { in rockchip_usb_phy_init() 293 if (PTR_ERR(rk_phy->vbus) == -EPROBE_DEFER) in rockchip_usb_phy_init() 294 return PTR_ERR(rk_phy->vbus); in rockchip_usb_phy_init() 295 rk_phy->vbus = NULL; in rockchip_usb_phy_init()
|
/openbmc/linux/Documentation/devicetree/bindings/phy/ |
H A D | brcm,ns2-drd-phy.txt | 13 - vbus-gpios: vbus gpio binding 29 vbus-gpios = <&gpio_g 31 0>;
|
/openbmc/linux/Documentation/devicetree/bindings/power/supply/ |
H A D | mt6360_charger.yaml | 25 usb-otg-vbus-regulator: 42 otg_vbus_regulator: usb-otg-vbus-regulator { 43 regulator-name = "usb-otg-vbus";
|