| /OK3568_Linux_fs/kernel/drivers/usb/common/ |
| H A D | usb-conn-gpio.c | 34 struct regulator *vbus; member 68 int id, vbus, ret; in usb_conn_detect_cable() local 76 vbus = info->vbus_gpiod ? in usb_conn_detect_cable() 81 else if (vbus) in usb_conn_detect_cable() 87 info->last_role, role, id, vbus); in usb_conn_detect_cable() 94 if (info->last_role == USB_ROLE_HOST && info->vbus) in usb_conn_detect_cable() 95 regulator_disable(info->vbus); in usb_conn_detect_cable() 101 if (role == USB_ROLE_HOST && info->vbus) { in usb_conn_detect_cable() 102 ret = regulator_enable(info->vbus); in usb_conn_detect_cable() 109 if (info->vbus) in usb_conn_detect_cable() [all …]
|
| /OK3568_Linux_fs/kernel/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()
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/mfd/ |
| H A D | fusb302.txt | 8 - vbus-5v-gpios: enable/disable 5v vbus output 9 - vbus-other-gpios: enable/disable other high-voltage vbus output 24 vbus-5v-gpios = <&gpio1 4 GPIO_ACTIVE_LOW>; 25 vbus-other-gpios = <&gpio1 5 GPIO_ACTIVE_LOW>;
|
| /OK3568_Linux_fs/kernel/drivers/phy/samsung/ |
| H A 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()
|
| /OK3568_Linux_fs/u-boot/drivers/phy/ |
| H A D | phy-rockchip-naneng-usb2.c | 272 struct udevice *vbus = NULL; in rockchip_usb2phy_check_vbus() local 276 vbus = rphy->vbus_supply[USB2PHY_PORT_HOST]; in rockchip_usb2phy_check_vbus() 282 vbus = rphy->vbus_supply[USB2PHY_PORT_OTG]; in rockchip_usb2phy_check_vbus() 286 return vbus; in rockchip_usb2phy_check_vbus() 334 struct udevice *vbus = NULL; in rockchip_usb2phy_power_on() local 337 vbus = rockchip_usb2phy_check_vbus(phy); in rockchip_usb2phy_power_on() 338 if (vbus) { in rockchip_usb2phy_power_on() 339 ret = regulator_set_enable(vbus, true); in rockchip_usb2phy_power_on() 351 struct udevice *vbus = NULL; in rockchip_usb2phy_power_off() local 354 vbus = rockchip_usb2phy_check_vbus(phy); in rockchip_usb2phy_power_off() [all …]
|
| /OK3568_Linux_fs/kernel/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()
|
| /OK3568_Linux_fs/kernel/drivers/usb/typec/tcpm/ |
| H A D | tcpci_husb311.c | 31 struct regulator *vbus; member 97 ret = regulator_enable(chip->vbus); in husb311_set_vbus() 99 ret = regulator_disable(chip->vbus); in husb311_set_vbus() 172 chip->vbus = devm_regulator_get_optional(chip->dev, "vbus"); in husb311_probe() 173 if (IS_ERR(chip->vbus)) { in husb311_probe() 174 ret = PTR_ERR(chip->vbus); in husb311_probe() 175 chip->vbus = NULL; in husb311_probe() 186 if (chip->vbus) in husb311_probe()
|
| H A D | tcpci_et7303.c | 35 struct regulator *vbus; member 103 ret = regulator_enable(chip->vbus); in et7303_set_vbus() 105 ret = regulator_disable(chip->vbus); in et7303_set_vbus() 255 chip->vbus = devm_regulator_get_optional(chip->dev, "vbus"); in et7303_probe() 256 if (IS_ERR(chip->vbus)) { in et7303_probe() 257 ret = PTR_ERR(chip->vbus); in et7303_probe() 258 chip->vbus = NULL; in et7303_probe() 272 if (chip->vbus) in et7303_probe()
|
| /OK3568_Linux_fs/kernel/arch/arm/boot/dts/ |
| 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>; 76 vbus-supply = <®_usb_otg_vbus>;
|
| 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";
|
| /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/usb/ |
| H A 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.
|
| 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 66 - atmel,vbus-gpio: If present, specifies a gpio that needs to be 75 atmel,vbus-gpio = <&pioC 5 0>; 97 - atmel,vbus-gpio: If present, specifies a gpio that allows to detect whether 98 vbus is present (USB is connected). 117 atmel,vbus-gpio = <&pioB 19 0>;
|
| /OK3568_Linux_fs/kernel/drivers/phy/motorola/ |
| H A D | phy-cpcap-usb.c | 132 struct iio_channel *vbus; member 144 error = iio_read_channel_processed(ddata->vbus, &value); in cpcap_usb_vbus_valid() 228 bool vbus = false; in cpcap_usb_detect() local 237 vbus = cpcap_usb_vbus_valid(ddata); in cpcap_usb_detect() 255 if (vbus && s.id_ground && ddata->docked) { in cpcap_usb_detect() 264 if (vbus && s.id_ground && !ddata->vbus_provider) { in cpcap_usb_detect() 313 vbus = cpcap_usb_vbus_valid(ddata); in cpcap_usb_detect() 316 if (vbus) { in cpcap_usb_detect() 575 ddata->vbus = devm_iio_channel_get(ddata->dev, "vbus"); in cpcap_usb_init_iio() 576 if (IS_ERR(ddata->vbus)) { in cpcap_usb_init_iio() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/usb/dwc3/ |
| H A D | dwc3-meson-g12a.c | 266 struct regulator *vbus; member 501 if (priv->vbus) { in dwc3_meson_g12a_otg_mode_set() 503 ret = regulator_disable(priv->vbus); in dwc3_meson_g12a_otg_mode_set() 505 ret = regulator_enable(priv->vbus); in dwc3_meson_g12a_otg_mode_set() 725 priv->vbus = devm_regulator_get_optional(dev, "vbus"); in dwc3_meson_g12a_probe() 726 if (IS_ERR(priv->vbus)) { in dwc3_meson_g12a_probe() 727 if (PTR_ERR(priv->vbus) == -EPROBE_DEFER) in dwc3_meson_g12a_probe() 728 return PTR_ERR(priv->vbus); in dwc3_meson_g12a_probe() 729 priv->vbus = NULL; in dwc3_meson_g12a_probe() 764 if (priv->vbus) { in dwc3_meson_g12a_probe() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/phy/renesas/ |
| H A D | phy-rcar-gen3-usb2.c | 110 struct regulator *vbus; member 172 static void rcar_gen3_enable_vbus_ctrl(struct rcar_gen3_chan *ch, int vbus) in rcar_gen3_enable_vbus_ctrl() argument 177 dev_vdbg(ch->dev, "%s: %08x, %d\n", __func__, val, vbus); in rcar_gen3_enable_vbus_ctrl() 178 if (vbus) in rcar_gen3_enable_vbus_ctrl() 483 if (channel->vbus) { in rcar_gen3_phy_usb2_power_on() 484 ret = regulator_enable(channel->vbus); in rcar_gen3_phy_usb2_power_on() 515 if (channel->vbus) in rcar_gen3_phy_usb2_power_off() 516 ret = regulator_disable(channel->vbus); in rcar_gen3_phy_usb2_power_off() 678 channel->vbus = devm_regulator_get_optional(dev, "vbus"); in rcar_gen3_phy_usb2_probe() 679 if (IS_ERR(channel->vbus)) { in rcar_gen3_phy_usb2_probe() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/phy/freescale/ |
| H A D | phy-fsl-imx8mq-usb.c | 38 struct regulator *vbus; member 110 ret = regulator_enable(imx_phy->vbus); in imx8mq_phy_power_on() 122 regulator_disable(imx_phy->vbus); in imx8mq_phy_power_off() 181 imx_phy->vbus = devm_regulator_get(dev, "vbus"); in imx8mq_usb_phy_probe() 182 if (IS_ERR(imx_phy->vbus)) in imx8mq_usb_phy_probe() 183 return PTR_ERR(imx_phy->vbus); in imx8mq_usb_phy_probe()
|
| /OK3568_Linux_fs/u-boot/arch/arm/dts/ |
| H A D | rk3036-sdk.dts | 69 vbus-supply = <&vcc5v0_host>; 74 vbus-supply = <&vcc5v0_otg>; 80 otg_vbus_drv: host-vbus-drv { 86 host_vbus_drv: host-vbus-drv {
|
| H A D | .rk3036-sdk.dtb.pre.tmp | |
| 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";
|
| /OK3568_Linux_fs/kernel/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() 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()
|