Searched refs:otg_switch (Results 1 – 9 of 9) sorted by relevance
35 struct gpio_desc *otg_switch; member77 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()
19 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()
219 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()
436 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()
254 struct otg_switch_mtk otg_switch; member
195 struct otg_switch_mtk *otg_sx = &ssusb->otg_switch; in get_ssusb_rscs()
67 vbus-supply = <&otg_switch>;
418 otg_switch: OTG_SWITCH { label419 regulator-name = "otg_switch";481 vbus-supply = <&otg_switch>;
477 otg_switch: OTG_SWITCH { label478 regulator-name = "otg_switch";