Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5657f9dd authored by Hemant Kumar's avatar Hemant Kumar
Browse files

usb: dwc3: Pass USB connector type info from device tree



Currently driver is using power supply property to query
USB connector type. But on some targets power supply property
may not be available. Hence pass the connector type info from
HW platform specific device tree file using qcom,connector-type-uAB
property.

Change-Id: I17e18a12cb9520e36d02b207cffcd26a85f84f88
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent ce254fb6
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -82,6 +82,7 @@ Optional properties :
- qcom,smmu-s1-bypass: If present, configure SMMU to bypass stage 1 translation.
- qcom,no-vbus-vote-with-type-C: If present, then do not try to get and enable VBUS
	regulator in type-C host mode from dwc3-msm driver.
- qcom,connector-type-uAB: HW platform is using micro-AB USB connector type.

Sub nodes:
- Sub node for "DWC3- USB3 controller".
+2 −0
Original line number Diff line number Diff line
@@ -3589,6 +3589,8 @@ static int dwc3_msm_probe(struct platform_device *pdev)
	mutex_init(&mdwc->suspend_resume_mutex);
	/* Mark type-C as true by default */
	mdwc->type_c = true;
	if (of_property_read_bool(node, "qcom,connector-type-uAB"))
		mdwc->type_c = false;

	mdwc->usb_psy = power_supply_get_by_name("usb");
	if (!mdwc->usb_psy) {