Lines Matching refs:otg_sx
217 struct otg_switch_mtk *otg_sx = &ssusb->otg_switch; in get_ssusb_rscs() local
289 otg_sx->vbus = devm_regulator_get(dev, "vbus"); in get_ssusb_rscs()
290 if (IS_ERR(otg_sx->vbus)) { in get_ssusb_rscs()
292 return PTR_ERR(otg_sx->vbus); in get_ssusb_rscs()
299 otg_sx->is_u3_drd = of_property_read_bool(node, "mediatek,usb3-drd"); in get_ssusb_rscs()
300 otg_sx->manual_drd_enabled = in get_ssusb_rscs()
302 otg_sx->role_sw_used = of_property_read_bool(node, "usb-role-switch"); in get_ssusb_rscs()
304 if (!otg_sx->role_sw_used && of_property_read_bool(node, "extcon")) { in get_ssusb_rscs()
305 otg_sx->edev = extcon_get_edev_by_phandle(ssusb->dev, 0); in get_ssusb_rscs()
306 if (IS_ERR(otg_sx->edev)) { in get_ssusb_rscs()
308 return PTR_ERR(otg_sx->edev); in get_ssusb_rscs()
314 ssusb->dr_mode, otg_sx->is_u3_drd, ssusb->u3p_dis_msk, in get_ssusb_rscs()
315 otg_sx->manual_drd_enabled ? "manual" : "auto"); in get_ssusb_rscs()