/Linux-v4.19/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-v4.19/drivers/phy/samsung/ |
D | phy-samsung-usb2.c | 32 if (drv->vbus) { in samsung_usb2_phy_power_on() 33 ret = regulator_enable(drv->vbus); in samsung_usb2_phy_power_on() 59 if (drv->vbus) in samsung_usb2_phy_power_on() 60 regulator_disable(drv->vbus); in samsung_usb2_phy_power_on() 82 if (drv->vbus) in samsung_usb2_phy_power_off() 83 ret = regulator_disable(drv->vbus); in samsung_usb2_phy_power_off() 216 drv->vbus = devm_regulator_get(dev, "vbus"); in samsung_usb2_phy_probe() 217 if (IS_ERR(drv->vbus)) { in samsung_usb2_phy_probe() 218 ret = PTR_ERR(drv->vbus); in samsung_usb2_phy_probe() 221 drv->vbus = NULL; in samsung_usb2_phy_probe()
|
D | phy-exynos5-usbdrd.c | 212 struct regulator *vbus; member 505 if (phy_drd->vbus) { in exynos5_usbdrd_phy_power_on() 506 ret = regulator_enable(phy_drd->vbus); in exynos5_usbdrd_phy_power_on() 544 if (phy_drd->vbus) in exynos5_usbdrd_phy_power_off() 545 regulator_disable(phy_drd->vbus); in exynos5_usbdrd_phy_power_off() 906 phy_drd->vbus = devm_regulator_get(dev, "vbus"); in exynos5_usbdrd_phy_probe() 907 if (IS_ERR(phy_drd->vbus)) { in exynos5_usbdrd_phy_probe() 908 ret = PTR_ERR(phy_drd->vbus); in exynos5_usbdrd_phy_probe() 913 phy_drd->vbus = NULL; in exynos5_usbdrd_phy_probe()
|
/Linux-v4.19/drivers/phy/renesas/ |
D | phy-rcar-gen3-usb2.c | 90 struct regulator *vbus; member 137 static void rcar_gen3_enable_vbus_ctrl(struct rcar_gen3_chan *ch, int vbus) in rcar_gen3_enable_vbus_ctrl() argument 142 dev_vdbg(&ch->phy->dev, "%s: %08x, %d\n", __func__, val, vbus); in rcar_gen3_enable_vbus_ctrl() 143 if (vbus) in rcar_gen3_enable_vbus_ctrl() 339 if (channel->vbus) { in rcar_gen3_phy_usb2_power_on() 340 ret = regulator_enable(channel->vbus); in rcar_gen3_phy_usb2_power_on() 359 if (channel->vbus) in rcar_gen3_phy_usb2_power_off() 360 ret = regulator_disable(channel->vbus); in rcar_gen3_phy_usb2_power_off() 476 channel->vbus = devm_regulator_get_optional(dev, "vbus"); in rcar_gen3_phy_usb2_probe() 477 if (IS_ERR(channel->vbus)) { in rcar_gen3_phy_usb2_probe() [all …]
|
/Linux-v4.19/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 | 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>;
|
D | maxim,max3421.txt | 7 - maxim,vbus-en-pin: <GPOUTx ACTIVE_LEVEL> 19 maxim,vbus-en-pin = <3 1>;
|
/Linux-v4.19/Documentation/devicetree/bindings/phy/ |
D | sun4i-usb-phy.txt | 41 - usb0_vbus_det-gpios : gpio phandle for detecting the presence of usb0 vbus 42 - usb0_vbus_power-supply: power-supply phandle for usb0 vbus presence detect 43 - usb0_vbus-supply : regulator phandle for controller usb0 vbus 44 - usb1_vbus-supply : regulator phandle for controller usb1 vbus 45 - usb2_vbus-supply : regulator phandle for controller usb2 vbus 46 - 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-v4.19/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 | tegra124-apalis-v1.2-eval.dts | 168 vbus-supply = <®_usbo1_vbus>; 178 vbus-supply = <®_usbh_vbus>; 188 vbus-supply = <®_usbh_vbus>; 220 reg_usbo1_vbus: regulator-usbo1-vbus { 231 reg_usbh_vbus: regulator-usbh-vbus {
|
D | imx6qdl-aristainetos.dtsi | 32 reg_usbh1_vbus: regulator-usbh1-vbus { 43 reg_usbotg_vbus: regulator-usbotg-vbus { 152 vbus-supply = <®_usbh1_vbus>; 158 vbus-supply = <®_usbotg_vbus>; 187 pinctrl_aristainetos_usbh1_vbus: aristainetos-usbh1-vbus { 191 pinctrl_aristainetos_usbotg_vbus: aristainetos-usbotg-vbus {
|
/Linux-v4.19/drivers/phy/rockchip/ |
D | phy-rockchip-usb.c | 69 struct regulator *vbus; member 92 if (phy->vbus) in rockchip_usb_phy480m_disable() 93 regulator_disable(phy->vbus); in rockchip_usb_phy480m_disable() 150 if (phy->vbus) { in rockchip_usb_phy_power_on() 153 ret = regulator_enable(phy->vbus); in rockchip_usb_phy_power_on() 283 rk_phy->vbus = devm_regulator_get_optional(&rk_phy->phy->dev, "vbus"); in rockchip_usb_phy_init() 284 if (IS_ERR(rk_phy->vbus)) { in rockchip_usb_phy_init() 285 if (PTR_ERR(rk_phy->vbus) == -EPROBE_DEFER) in rockchip_usb_phy_init() 286 return PTR_ERR(rk_phy->vbus); in rockchip_usb_phy_init() 287 rk_phy->vbus = NULL; in rockchip_usb_phy_init()
|
/Linux-v4.19/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 247 vbus = cpcap_usb_vbus_valid(ddata); in cpcap_usb_detect() 249 if (vbus) { in cpcap_usb_detect() 519 ddata->vbus = devm_iio_channel_get(ddata->dev, "vbus"); in cpcap_usb_init_iio() 520 if (IS_ERR(ddata->vbus)) { in cpcap_usb_init_iio() 521 error = PTR_ERR(ddata->vbus); in cpcap_usb_init_iio() 525 if (!ddata->vbus->indio_dev) { in cpcap_usb_init_iio() 530 error = iio_get_channel_type(ddata->vbus, &type); in cpcap_usb_init_iio()
|
/Linux-v4.19/include/linux/platform_data/ |
D | mv_usb.h | 38 struct mv_usb_addon_irq *vbus; /* valid for OTG/UDC. VBUS change*/ member 50 int (*set_vbus)(unsigned int vbus);
|
/Linux-v4.19/arch/arm64/boot/dts/marvell/ |
D | armada-8040-db.dts | 32 cp0_reg_usb3_0_vbus: cp0-usb3-0-vbus { 34 regulator-name = "cp0-usb3h0-vbus"; 41 cp0_reg_usb3_1_vbus: cp0-usb3-1-vbus { 43 regulator-name = "cp0-usb3h1-vbus"; 60 cp1_reg_usb3_0_vbus: cp1-usb3-0-vbus { 62 regulator-name = "cp1-usb3h0-vbus";
|
/Linux-v4.19/drivers/usb/mtu3/ |
D | mtu3_dr.c | 117 struct regulator *vbus = otg_sx->vbus; in ssusb_set_vbus() local 121 if (!vbus) in ssusb_set_vbus() 127 ret = regulator_enable(vbus); in ssusb_set_vbus() 133 regulator_disable(vbus); in ssusb_set_vbus() 336 regulator_is_enabled(otg_sx->vbus) ? "on" : "off"); in ssusb_vbus_show()
|
D | mtu3_plat.c | 223 struct regulator *vbus; in get_ssusb_rscs() local 294 vbus = devm_regulator_get(&pdev->dev, "vbus"); in get_ssusb_rscs() 295 if (IS_ERR(vbus)) { in get_ssusb_rscs() 297 return PTR_ERR(vbus); in get_ssusb_rscs() 299 otg_sx->vbus = vbus; in get_ssusb_rscs()
|
/Linux-v4.19/drivers/usb/host/ |
D | ohci-pxa27x.c | 125 struct regulator *vbus[3]; member 176 struct regulator *vbus = pxa_ohci->vbus[port]; in pxa27x_ohci_set_vbus_power() local 179 if (IS_ERR_OR_NULL(vbus)) in pxa27x_ohci_set_vbus_power() 183 ret = regulator_enable(vbus); in pxa27x_ohci_set_vbus_power() 185 ret = regulator_disable(vbus); in pxa27x_ohci_set_vbus_power() 475 pxa_ohci->vbus[i] = devm_regulator_get(&pdev->dev, name); in ohci_hcd_pxa27x_probe()
|
/Linux-v4.19/drivers/extcon/ |
D | extcon-usb-gpio.c | 71 int id, vbus; in usb_extcon_detect_cable() local 79 vbus = info->vbus_gpiod ? in usb_extcon_detect_cable() 85 if (!vbus) in usb_extcon_detect_cable() 91 if (vbus) in usb_extcon_detect_cable()
|
/Linux-v4.19/arch/arm/mach-pxa/ |
D | palm27x.h | 42 extern void __init palm27x_udc_init(int vbus, int pullup, 45 static inline void palm27x_udc_init(int vbus, int pullup, int vbus_inverted) {} in palm27x_udc_init() argument
|
/Linux-v4.19/Documentation/devicetree/bindings/extcon/ |
D | extcon-usb-gpio.txt | 9 Either one of id-gpio or vbus-gpio must be present. Both can be present as well. 11 - vbus-gpio: gpio for USB VBUS pin.
|