Home
last modified time | relevance | path

Searched refs:otg_switch (Results 1 – 15 of 15) sorted by relevance

/linux/drivers/misc/
H A Dhisi_hikey_usb.c35 struct gpio_desc *otg_switch; member
77 if (!hisi_hikey_usb->otg_switch) in usb_switch_ctrl()
80 gpiod_set_value_cansleep(hisi_hikey_usb->otg_switch, switch_to); in usb_switch_ctrl()
155 hisi_hikey_usb->otg_switch = devm_gpiod_get(dev, "otg-switch", in hisi_hikey_usb_of_role_switch()
157 if (IS_ERR(hisi_hikey_usb->otg_switch)) { in hisi_hikey_usb_of_role_switch()
159 PTR_ERR(hisi_hikey_usb->otg_switch)); in hisi_hikey_usb_of_role_switch()
160 return PTR_ERR(hisi_hikey_usb->otg_switch); in hisi_hikey_usb_of_role_switch()
/linux/drivers/usb/mtu3/
H A Dmtu3_dr.c20 return container_of(otg_sx, struct ssusb_mtk, otg_switch); in otg_sx_to_ssusb()
76 if (ssusb->otg_switch.is_u3_drd) { in switch_port_to_host()
95 if (ssusb->otg_switch.is_u3_drd) { in switch_port_to_device()
233 struct otg_switch_mtk *otg_sx = &ssusb->otg_switch; in ssusb_mode_switch()
264 struct otg_switch_mtk *otg_sx = &ssusb->otg_switch; in ssusb_role_sw_set()
310 struct otg_switch_mtk *otg_sx = &ssusb->otg_switch; in ssusb_otg_switch_init()
327 struct otg_switch_mtk *otg_sx = &ssusb->otg_switch; in ssusb_otg_switch_exit()
H A Dmtu3_host.c250 if (ssusb->otg_switch.is_u3_drd) in ssusb_host_resume()
327 ssusb_set_vbus(&ssusb->otg_switch, 1); in ssusb_host_setup()
333 ssusb_set_vbus(&ssusb->otg_switch, 0); in ssusb_host_cleanup()
H A Dmtu3_debugfs.c411 ssusb->otg_switch.manual_drd_enabled ? "manual" : "auto"); in ssusb_mode_show()
454 struct otg_switch_mtk *otg_sx = &ssusb->otg_switch; in ssusb_vbus_show()
472 struct otg_switch_mtk *otg_sx = &ssusb->otg_switch; in ssusb_vbus_write()
H A Dmtu3_plat.c195 struct otg_switch_mtk *otg_sx = &ssusb->otg_switch; in ssusb_u3_drd_check()
221 struct otg_switch_mtk *otg_sx = &ssusb->otg_switch; in get_ssusb_rscs()
H A Dmtu3.h262 struct otg_switch_mtk otg_switch; member
/linux/arch/arm64/boot/dts/rockchip/
H A Drk3566-pinenote.dtsi418 otg_switch: OTG_SWITCH { label
419 regulator-name = "otg_switch";
481 vbus-supply = <&otg_switch>;
H A Drk3566-anbernic-rgxx3.dtsi445 otg_switch: OTG_SWITCH { label
446 regulator-name = "otg_switch";
H A Drk3326-gameforce-chi.dts556 otg_switch: OTG_SWITCH { label
557 regulator-name = "otg_switch";
H A Drk3566-powkiddy-rk2023.dtsi604 otg_switch: OTG_SWITCH { label
605 regulator-name = "otg_switch";
H A Drk3566-quartz64-a.dts532 otg_switch: OTG_SWITCH { label
533 regulator-name = "otg_switch";
H A Drk3566-powkiddy-x55.dts636 otg_switch: OTG_SWITCH { label
637 regulator-name = "otg_switch";
H A Drk3568-anbernic-rg-ds.dts781 otg_switch: OTG_SWITCH { label
782 regulator-name = "otg_switch";
H A Drk3566-pinetab2.dtsi547 regulator-name = "otg_switch";
/linux/arch/arm64/boot/dts/amlogic/
H A Dmeson-g12b-odroid-go-ultra.dts488 regulator-name = "otg_switch";