Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/misc/
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-5.19.10/drivers/usb/mtu3/
Dmtu3_dr.c19 return container_of(otg_sx, struct ssusb_mtk, otg_switch); in otg_sx_to_ssusb()
75 if (ssusb->otg_switch.is_u3_drd) { in switch_port_to_host()
94 if (ssusb->otg_switch.is_u3_drd) { in switch_port_to_device()
232 struct otg_switch_mtk *otg_sx = &ssusb->otg_switch; in ssusb_mode_switch()
263 struct otg_switch_mtk *otg_sx = &ssusb->otg_switch; in ssusb_role_sw_set()
308 struct otg_switch_mtk *otg_sx = &ssusb->otg_switch; in ssusb_otg_switch_init()
325 struct otg_switch_mtk *otg_sx = &ssusb->otg_switch; in ssusb_otg_switch_exit()
Dmtu3_host.c219 if (ssusb->otg_switch.is_u3_drd) in ssusb_host_resume()
296 ssusb_set_vbus(&ssusb->otg_switch, 1); in ssusb_host_setup()
302 ssusb_set_vbus(&ssusb->otg_switch, 0); in ssusb_host_cleanup()
Dmtu3_debugfs.c436 ssusb->otg_switch.manual_drd_enabled ? "manual" : "auto"); in ssusb_mode_show()
479 struct otg_switch_mtk *otg_sx = &ssusb->otg_switch; in ssusb_vbus_show()
497 struct otg_switch_mtk *otg_sx = &ssusb->otg_switch; in ssusb_vbus_write()
Dmtu3.h254 struct otg_switch_mtk otg_switch; member
Dmtu3_plat.c195 struct otg_switch_mtk *otg_sx = &ssusb->otg_switch; in get_ssusb_rscs()
/linux-5.19.10/Documentation/devicetree/bindings/usb/
Dwillsemi,wusb3801.yaml67 vbus-supply = <&otg_switch>;
/linux-5.19.10/arch/arm64/boot/dts/rockchip/
Drk3566-pinenote.dtsi418 otg_switch: OTG_SWITCH { label
419 regulator-name = "otg_switch";
481 vbus-supply = <&otg_switch>;
Drk3566-quartz64-a.dts477 otg_switch: OTG_SWITCH { label
478 regulator-name = "otg_switch";