| /Linux-v5.4/drivers/usb/common/ |
| D | usb-conn-gpio.c | 33 struct regulator *vbus; member 64 int id, vbus, ret; in usb_conn_detect_cable() local 72 vbus = info->vbus_gpiod ? in usb_conn_detect_cable() 77 else if (vbus) in usb_conn_detect_cable() 83 info->last_role, role, id, vbus); in usb_conn_detect_cable() 91 regulator_disable(info->vbus); in usb_conn_detect_cable() 98 ret = regulator_enable(info->vbus); in usb_conn_detect_cable() 106 regulator_is_enabled(info->vbus) ? "enabled" : "disabled"); in usb_conn_detect_cable() 157 info->vbus = devm_regulator_get(dev, "vbus"); in usb_conn_probe() 158 if (IS_ERR(info->vbus)) { in usb_conn_probe() [all …]
|
| /Linux-v5.4/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()
|
| D | phy-uniphier-usb3ss.c | 57 struct regulator *vbus; member 122 if (priv->vbus) { in uniphier_u3ssphy_power_on() 123 ret = regulator_enable(priv->vbus); in uniphier_u3ssphy_power_on() 144 if (priv->vbus) in uniphier_u3ssphy_power_off() 145 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()
|
| D | phy-uniphier-usb3hs.c | 71 struct regulator *vbus; member 217 if (priv->vbus) { in uniphier_u3hsphy_power_on() 218 ret = regulator_enable(priv->vbus); in uniphier_u3hsphy_power_on() 239 if (priv->vbus) in uniphier_u3hsphy_power_off() 240 regulator_disable(priv->vbus); in uniphier_u3hsphy_power_off() 350 priv->vbus = devm_regulator_get_optional(dev, "vbus"); in uniphier_u3hsphy_probe() 351 if (IS_ERR(priv->vbus)) { in uniphier_u3hsphy_probe() 352 if (PTR_ERR(priv->vbus) == -EPROBE_DEFER) in uniphier_u3hsphy_probe() 353 return PTR_ERR(priv->vbus); in uniphier_u3hsphy_probe() 354 priv->vbus = NULL; in uniphier_u3hsphy_probe()
|
| /Linux-v5.4/drivers/usb/phy/ |
| D | phy-gpio-vbus-usb.c | 38 int vbus; member 88 int vbus; in is_vbus_powered() local 90 vbus = gpio_get_value(pdata->gpio_vbus); in is_vbus_powered() 92 vbus = !vbus; in is_vbus_powered() 94 return vbus; in is_vbus_powered() 102 int gpio, status, vbus; in gpio_vbus_work() local 107 vbus = is_vbus_powered(pdata); in gpio_vbus_work() 108 if ((vbus ^ gpio_vbus->vbus) == 0) in gpio_vbus_work() 110 gpio_vbus->vbus = vbus; in gpio_vbus_work() 119 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() 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()
|
| D | phy-generic.c | 106 int vbus, status; in nop_gpio_vbus_thread() local 108 vbus = gpiod_get_value(nop->gpiod_vbus); in nop_gpio_vbus_thread() 109 if ((vbus ^ nop->vbus) == 0) in nop_gpio_vbus_thread() 111 nop->vbus = vbus; in nop_gpio_vbus_thread() 113 if (vbus) { in nop_gpio_vbus_thread()
|
| /Linux-v5.4/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()
|
| /Linux-v5.4/drivers/phy/freescale/ |
| D | phy-fsl-imx8mq-usb.c | 28 struct regulator *vbus; member 62 ret = regulator_enable(imx_phy->vbus); in imx8mq_phy_power_on() 74 regulator_disable(imx_phy->vbus); in imx8mq_phy_power_off() 112 imx_phy->vbus = devm_regulator_get(dev, "vbus"); in imx8mq_usb_phy_probe() 113 if (IS_ERR(imx_phy->vbus)) in imx8mq_usb_phy_probe() 114 return PTR_ERR(imx_phy->vbus); in imx8mq_usb_phy_probe()
|
| /Linux-v5.4/drivers/usb/dwc3/ |
| D | dwc3-meson-g12a.c | 120 struct regulator *vbus; member 306 if (priv->vbus) { in dwc3_meson_g12a_otg_mode_set() 308 ret = regulator_disable(priv->vbus); in dwc3_meson_g12a_otg_mode_set() 310 ret = regulator_enable(priv->vbus); in dwc3_meson_g12a_otg_mode_set() 405 priv->vbus = devm_regulator_get_optional(dev, "vbus"); in dwc3_meson_g12a_probe() 406 if (IS_ERR(priv->vbus)) { in dwc3_meson_g12a_probe() 407 if (PTR_ERR(priv->vbus) == -EPROBE_DEFER) in dwc3_meson_g12a_probe() 408 return PTR_ERR(priv->vbus); in dwc3_meson_g12a_probe() 409 priv->vbus = NULL; in dwc3_meson_g12a_probe() 442 if (priv->vbus) { in dwc3_meson_g12a_probe() [all …]
|
| /Linux-v5.4/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 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.
|
| D | ohci-da8xx.txt | 12 - vbus-supply: phandle of regulator that controls vbus power / over-current 22 vbus-supply = <®_usb_ohci>;
|
| D | usb-conn-gpio.txt | 9 - id-gpios, vbus-gpios : input gpios, either one of them must be present, 14 - vbus-supply : can be present if needed when supports dual role mode. 28 vbus-supply = <&usb_p0_vbus>;
|
| D | atmel-usb.txt | 16 - atmel,vbus-gpio: If present, specifies a gpio that needs to be 66 - atmel,vbus-gpio: If present, specifies a gpio that needs to be 75 atmel,vbus-gpio = <&pioC 5 0>; 94 - atmel,vbus-gpio: If present, specifies a gpio that allows to detect whether 95 vbus is present (USB is connected). 114 atmel,vbus-gpio = <&pioB 19 0>;
|
| /Linux-v5.4/Documentation/devicetree/bindings/phy/ |
| D | sun4i-usb-phy.txt | 43 - usb0_vbus_det-gpios : gpio phandle for detecting the presence of usb0 vbus 44 - usb0_vbus_power-supply: power-supply phandle for usb0 vbus presence detect 45 - usb0_vbus-supply : regulator phandle for controller usb0 vbus 46 - usb1_vbus-supply : regulator phandle for controller usb1 vbus 47 - usb2_vbus-supply : regulator phandle for controller usb2 vbus 48 - usb3_vbus-supply : regulator phandle for controller usb3 vbus
|
| D | brcm,ns2-drd-phy.txt | 13 - vbus-gpios: vbus gpio binding 29 vbus-gpios = <&gpio_g 31 0>;
|
| /Linux-v5.4/arch/arm/boot/dts/ |
| 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";
|
| D | tegra30-apalis-eval.dts | 148 vbus-supply = <®_usbo1_vbus>; 158 vbus-supply = <®_usbh_vbus>; 168 vbus-supply = <®_usbh_vbus>; 218 reg_usbo1_vbus: regulator-usbo1-vbus { 229 reg_usbh_vbus: regulator-usbh-vbus {
|
| D | imx6qdl-aristainetos.dtsi | 28 reg_usbh1_vbus: regulator-usbh1-vbus { 39 reg_usbotg_vbus: regulator-usbotg-vbus { 148 vbus-supply = <®_usbh1_vbus>; 154 vbus-supply = <®_usbotg_vbus>; 183 pinctrl_aristainetos_usbh1_vbus: aristainetos-usbh1-vbus { 187 pinctrl_aristainetos_usbotg_vbus: aristainetos-usbotg-vbus {
|
| /Linux-v5.4/drivers/phy/renesas/ |
| D | phy-rcar-gen3-usb2.c | 109 struct regulator *vbus; member 170 static void rcar_gen3_enable_vbus_ctrl(struct rcar_gen3_chan *ch, int vbus) in rcar_gen3_enable_vbus_ctrl() argument 175 dev_vdbg(ch->dev, "%s: %08x, %d\n", __func__, val, vbus); in rcar_gen3_enable_vbus_ctrl() 176 if (vbus) in rcar_gen3_enable_vbus_ctrl() 450 if (channel->vbus) { in rcar_gen3_phy_usb2_power_on() 451 ret = regulator_enable(channel->vbus); in rcar_gen3_phy_usb2_power_on() 482 if (channel->vbus) in rcar_gen3_phy_usb2_power_off() 483 ret = regulator_disable(channel->vbus); in rcar_gen3_phy_usb2_power_off() 668 channel->vbus = devm_regulator_get_optional(dev, "vbus"); in rcar_gen3_phy_usb2_probe() 669 if (IS_ERR(channel->vbus)) { in rcar_gen3_phy_usb2_probe() [all …]
|
| /Linux-v5.4/drivers/phy/rockchip/ |
| 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()
|
| /Linux-v5.4/drivers/phy/motorola/ |
| D | phy-cpcap-usb.c | 133 struct iio_channel *vbus; member 143 error = iio_read_channel_processed(ddata->vbus, &value); in cpcap_usb_vbus_valid() 214 bool vbus = false; in cpcap_usb_detect() local 249 vbus = cpcap_usb_vbus_valid(ddata); in cpcap_usb_detect() 251 if (vbus) { in cpcap_usb_detect() 521 ddata->vbus = devm_iio_channel_get(ddata->dev, "vbus"); in cpcap_usb_init_iio() 522 if (IS_ERR(ddata->vbus)) { in cpcap_usb_init_iio() 523 error = PTR_ERR(ddata->vbus); in cpcap_usb_init_iio() 527 if (!ddata->vbus->indio_dev) { in cpcap_usb_init_iio() 532 error = iio_get_channel_type(ddata->vbus, &type); in cpcap_usb_init_iio()
|
| /Linux-v5.4/Documentation/devicetree/bindings/extcon/ |
| D | extcon-ptn5150.txt | 12 - vbus-gpio: should contain a phandle and GPIO specifier for the GPIO pin which 15 - pinctrl-0 : phandle referencing pin configuration of interrupt and vbus 23 vbus-gpio = <&msmgpio 148 GPIO_ACTIVE_HIGH>;
|
| /Linux-v5.4/include/linux/platform_data/ |
| D | mv_usb.h | 34 struct mv_usb_addon_irq *vbus; /* valid for OTG/UDC. VBUS change*/ member 46 int (*set_vbus)(unsigned int vbus);
|
| /Linux-v5.4/arch/arm64/boot/dts/marvell/ |
| D | armada-8040-db.dts | 34 cp0_reg_usb3_0_vbus: cp0-usb3-0-vbus { 36 regulator-name = "cp0-usb3h0-vbus"; 43 cp0_reg_usb3_1_vbus: cp0-usb3-1-vbus { 45 regulator-name = "cp0-usb3h1-vbus"; 57 cp1_reg_usb3_0_vbus: cp1-usb3-0-vbus { 59 regulator-name = "cp1-usb3h0-vbus";
|