Home
last modified time | relevance | path

Searched refs:vbus (Results 1 – 25 of 507) sorted by relevance

12345678910>>...21

/linux/drivers/usb/common/
H A Dusb-conn-gpio.c39 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()
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()
117 if (info->vbus) in usb_conn_detect_cable()
[all …]
/linux/drivers/phy/socionext/
H A Dphy-uniphier-usb2.c42 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 Dphy-uniphier-usb3ss.c59 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 Dphy-uniphier-usb3hs.c73 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()
/linux/drivers/phy/samsung/
H A Dphy-samsung-usb2.c27 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()
/linux/drivers/usb/phy/
H A Dphy-omap-otg.c24 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 Dphy-generic.c105 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()
/linux/drivers/usb/typec/
H A Dhd3ss3220.c64 struct regulator *vbus; member
338 ret = regulator_enable(hd3ss3220->vbus); in hd3ss3220_id_isr()
340 ret = regulator_disable(hd3ss3220->vbus); in hd3ss3220_id_isr()
354 struct regulator *vbus; in hd3ss3220_probe() local
390 vbus = devm_of_regulator_get_optional(hd3ss3220->dev, in hd3ss3220_probe()
393 if (IS_ERR(vbus) && vbus != ERR_PTR(-ENODEV)) { in hd3ss3220_probe()
394 ret = PTR_ERR(vbus); in hd3ss3220_probe()
399 hd3ss3220->vbus = (vbus == ERR_PTR(-ENODEV) ? NULL : vbus); in hd3ss3220_probe()
401 if (hd3ss3220->vbus) { in hd3ss3220_probe()
/linux/arch/arm/boot/dts/nxp/imx/
H A Dimx6qdl-prti6q.dtsi21 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 = <&reg_usb_h1_vbus>;
77 vbus-supply = <&reg_usb_otg_vbus>;
/linux/arch/arm64/boot/dts/qcom/
H A Dpm4125.dtsi39 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 Dpmi632.dtsi47 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 Dpm7250b.dtsi47 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/usb/dwc3/
H A Ddwc3-meson-g12a.c260 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 = NULL; in dwc3_meson_g12a_probe()
755 if (priv->vbus) { in dwc3_meson_g12a_probe()
[all …]
/linux/drivers/phy/renesas/
H A Dphy-rcar-gen3-usb2.c137 struct regulator *vbus; member
207 static void rcar_gen3_enable_vbus_ctrl(struct rcar_gen3_chan *ch, int vbus) in rcar_gen3_enable_vbus_ctrl() argument
215 if (ch->vbus) in rcar_gen3_enable_vbus_ctrl()
216 regulator_hardware_enable(ch->vbus, vbus); in rcar_gen3_enable_vbus_ctrl()
223 if (vbus) in rcar_gen3_enable_vbus_ctrl()
227 dev_vdbg(ch->dev, "%s: %08x, %d\n", __func__, val, vbus); in rcar_gen3_enable_vbus_ctrl()
586 if (channel->vbus) { in rcar_gen3_phy_usb2_power_on()
587 ret = regulator_enable(channel->vbus); in rcar_gen3_phy_usb2_power_on()
627 if (channel->vbus) in rcar_gen3_phy_usb2_power_off()
628 ret = regulator_disable(channel->vbus); in rcar_gen3_phy_usb2_power_off()
[all …]
/linux/arch/arm/boot/dts/allwinner/
H A Dsunxi-common-regulators.dtsi2 * 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/Documentation/devicetree/bindings/usb/
H A Dohci-da8xx.txt12 - vbus-supply: phandle of regulator that controls vbus power / over-current
22 vbus-supply = <&reg_usb_ohci>;
H A Datmel-usb.txt16 - 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/arch/arm64/boot/dts/nvidia/
H A Dtegra210-p3541-0000.dts27 vbus-supply = <&vdd_hub_5v0>;
31 vbus-supply = <&vdd_hub_5v0>;
35 /delete-property/ vbus-supply;
/linux/arch/arm64/boot/dts/freescale/
H A Dimx8mp-tx8p-ml81-moduline-display-106-av101hdt-a10.dtso33 reg_vbus: regulator-vbus {
39 regulator-name = "usb-c-vbus";
80 vbus-supply = <&reg_vbus>;
/linux/arch/arm/boot/dts/nvidia/
H A Dtegra30-apalis-eval.dts155 vbus-supply = <&reg_usbo1_vbus>;
165 vbus-supply = <&reg_usbh_vbus>;
175 vbus-supply = <&reg_usbh_vbus>;
225 reg_usbo1_vbus: regulator-usbo1-vbus {
236 reg_usbh_vbus: regulator-usbh-vbus {
H A Dtegra124-apalis-eval.dts165 vbus-supply = <&reg_usbo1_vbus>;
175 vbus-supply = <&reg_usbh_vbus>;
185 vbus-supply = <&reg_usbh_vbus>;
232 reg_usbo1_vbus: regulator-usbo1-vbus {
243 reg_usbh_vbus: regulator-usbh-vbus {
H A Dtegra124-apalis-v1.2-eval.dts167 vbus-supply = <&reg_usbo1_vbus>;
177 vbus-supply = <&reg_usbh_vbus>;
187 vbus-supply = <&reg_usbh_vbus>;
234 reg_usbo1_vbus: regulator-usbo1-vbus {
245 reg_usbh_vbus: regulator-usbh-vbus {
/linux/drivers/usb/typec/tcpm/
H A Dtcpci_rt1711h.c66 struct regulator *vbus; member
164 ret = regulator_enable(chip->vbus); in rt1711h_set_vbus()
166 ret = regulator_disable(chip->vbus); in rt1711h_set_vbus()
372 chip->vbus = devm_regulator_get(&client->dev, "vbus"); in rt1711h_probe()
373 if (IS_ERR(chip->vbus)) in rt1711h_probe()
374 return PTR_ERR(chip->vbus); in rt1711h_probe()
/linux/arch/arm64/boot/dts/marvell/
H A Darmada-8040-db.dts34 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";
/linux/include/linux/platform_data/
H A Dmv_usb.h26 struct mv_usb_addon_irq *vbus; /* valid for OTG/UDC. VBUS change*/ member
38 int (*set_vbus)(unsigned int vbus);

12345678910>>...21