/linux/drivers/usb/common/ |
H A D | usb-conn-gpio.c | 39 struct regulator *vbus; member 74 int id, vbus, ret; in usb_conn_detect_cable() local 82 vbus = info->vbus_gpiod ? in usb_conn_detect_cable() 87 else if (vbus) in usb_conn_detect_cable() 92 dev_dbg(info->dev, "role %s -> %s, gpios: id %d, vbus %d\n", in usb_conn_detect_cable() 93 usb_role_string(info->last_role), usb_role_string(role), id, vbus); in usb_conn_detect_cable() 102 if (info->last_role == USB_ROLE_HOST && info->vbus) in usb_conn_detect_cable() 103 regulator_disable(info->vbus); in usb_conn_detect_cable() 109 if (role == USB_ROLE_HOST && info->vbus) { in usb_conn_detect_cable() 110 ret = regulator_enable(info->vbus); in usb_conn_detect_cable() [all...] |
/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() [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() 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 D | phy-gpio-vbus-usb.c | 3 * gpio-vbus.c - simple GPIO VBUS sensing driver for B peripheral devices 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 in gpio_vbus_set_peripheral() [all...] |
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() 222 "vbus-detect", in usb_phy_gen_create_phy() 259 nop->vbus_draw = devm_regulator_get_exclusive(dev, "vbus"); in usb_phy_gen_create_phy() 264 "could not get vbus regulato in usb_phy_gen_create_phy() [all...] |
/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() [all...] |
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() [all...] |
/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/usb/typec/tcpm/ |
H A D | tcpci_mt6370.c | 29 struct regulator *vbus; member 85 ret = regulator_is_enabled(priv->vbus); in mt6370_tcpc_set_vbus() 90 return regulator_disable(priv->vbus); in mt6370_tcpc_set_vbus() 93 return regulator_enable(priv->vbus); in mt6370_tcpc_set_vbus() 156 priv->vbus = devm_regulator_get_optional(dev, "vbus"); in mt6370_tcpc_probe() 157 if (!IS_ERR(priv->vbus)) in mt6370_tcpc_probe()
|
/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 { 202 vbus-supply = <&usb_p0_vbus>; 215 vbus-supply = <&usb_p1_vbus>; 232 vbus-supply = <&usb_p2_vbus>;
|
/linux/arch/arm64/boot/dts/qcom/ |
H A D | pm4125.dtsi | 39 pm4125_vbus: usb-vbus-regulator@1100 { 40 compatible = "qcom,pm4125-vbus-reg", "qcom,pm8150b-vbus-reg"; 60 "vbus-change", 64 vdd-vbus-supply = <&pm4125_vbus>;
|
H A D | pmi632.dtsi | 47 pmi632_vbus: usb-vbus-regulator@1100 { 48 compatible = "qcom,pmi632-vbus-reg", "qcom,pm8150b-vbus-reg"; 68 "vbus-change", 72 vdd-vbus-supply = <&pmi632_vbus>;
|
H A D | pm7250b.dtsi | 47 pm7250b_vbus: usb-vbus-regulator@1100 { 48 compatible = "qcom,pm7250b-vbus-reg", "qcom,pm8150b-vbus-reg"; 77 "vbus-change", 89 vdd-vbus-supply = <&pm7250b_vbus>;
|
/linux/drivers/phy/motorola/ |
H A D | phy-cpcap-usb.c | 123 struct iio_channel *vbus; member 135 error = iio_read_channel_processed(ddata->vbus, &value); in cpcap_usb_vbus_valid() 219 bool vbus = false; in cpcap_usb_detect() local 228 vbus = cpcap_usb_vbus_valid(ddata); in cpcap_usb_detect() 246 if (vbus && s.id_ground && ddata->docked) { in cpcap_usb_detect() 255 if (vbus && s.id_ground && !ddata->vbus_provider) { in cpcap_usb_detect() 304 vbus = cpcap_usb_vbus_valid(ddata); in cpcap_usb_detect() 307 if (vbus) { in cpcap_usb_detect() 566 ddata->vbus = devm_iio_channel_get(ddata->dev, "vbus"); in cpcap_usb_init_iio() [all...] |
/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/drivers/phy/rockchip/ |
H A D | phy-rockchip-usb.c | 76 struct regulator *vbus; member 99 if (phy->vbus) in rockchip_usb_phy480m_disable() 100 regulator_disable(phy->vbus); in rockchip_usb_phy480m_disable() 157 if (phy->vbus) { in rockchip_usb_phy_power_on() 160 ret = regulator_enable(phy->vbus); in rockchip_usb_phy_power_on() 290 rk_phy->vbus = devm_regulator_get_optional(&rk_phy->phy->dev, "vbus"); in rockchip_usb_phy_init() 291 if (IS_ERR(rk_phy->vbus)) { in rockchip_usb_phy_init() 292 if (PTR_ERR(rk_phy->vbus) == -EPROBE_DEFER) in rockchip_usb_phy_init() 293 return PTR_ERR(rk_phy->vbus); in rockchip_usb_phy_init() [all...] |
/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 in dwc3_meson_g12a_probe() [all...] |
/linux/Documentation/devicetree/bindings/usb/ |
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 | atmel-usb.txt | 16 - atmel,vbus-gpio: If present, specifies a gpio that needs to be 70 - atmel,vbus-gpio: If present, specifies a gpio that needs to be 79 atmel,vbus-gpio = <&pioC 5 0>; 104 - atmel,vbus-gpio: If present, specifies a gpio that allows to detect whether 105 vbus is present (USB is connected). 124 atmel,vbus-gpio = <&pioB 19 0>;
|
/linux/drivers/phy/ |
H A D | phy-lgm-usb.c | 42 struct regulator *vbus; member 127 ret = regulator_enable(ta->vbus); in phy_set_vbus() 129 ret = regulator_disable(ta->vbus); in phy_set_vbus() 134 dev_dbg(ta->phy.dev, "set vbus: %d\n", on); in phy_set_vbus() 216 ta->vbus = devm_regulator_get(dev, "vbus"); in phy_probe() 217 if (IS_ERR(ta->vbus)) in phy_probe() 218 return PTR_ERR(ta->vbus); in phy_probe()
|
/linux/include/linux/platform_data/ |
H A D | mv_usb.h | 26 struct mv_usb_addon_irq *vbus; /* valid for OTG/UDC. VBUS change*/ member 38 int (*set_vbus)(unsigned int vbus);
|
/linux/arch/arm/boot/dts/rockchip/ |
H A D | rk3128-evb.dts | 88 vbus-supply = <&vcc5v0_otg>; 94 host_vbus_drv: host-vbus-drv { 100 otg_vbus_drv: otg-vbus-drv {
|
/linux/arch/arm64/boot/dts/freescale/ |
H A D | imx8mp-tx8p-ml81-moduline-display-106-av101hdt-a10.dtso | 33 reg_vbus: regulator-vbus { 39 regulator-name = "usb-c-vbus"; 80 vbus-supply = <®_vbus>;
|
/linux/arch/arm/boot/dts/nxp/mxs/ |
H A D | imx28-amarula-rmm.dts | 92 reg_usb0_vbus: regulator-usb0-vbus { 104 reg_usb1_vbus: regulator-usb1-vbus { 249 usb0_vbus_enable_pin: usb0-vbus-enable@0 { 257 usb1_vbus_enable_pin: usb1-vbus-enable@0 { 284 vbus-supply = <®_usb0_vbus>; 290 vbus-supply = <®_usb1_vbus>;
|
/linux/arch/arm/boot/dts/nvidia/ |
H A D | tegra30-apalis-eval.dts | 155 vbus-supply = <®_usbo1_vbus>; 165 vbus-supply = <®_usbh_vbus>; 175 vbus-supply = <®_usbh_vbus>; 225 reg_usbo1_vbus: regulator-usbo1-vbus { 236 reg_usbh_vbus: regulator-usbh-vbus {
|