]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: dts: qcom: msm8916-longcheer-l8150: Use &pm8916_usbin extcon
authorStephan Gerhold <stephan@gerhold.net>
Tue, 28 Sep 2021 11:29:45 +0000 (13:29 +0200)
committerBjorn Andersson <bjorn.andersson@linaro.org>
Tue, 28 Sep 2021 15:28:05 +0000 (10:28 -0500)
commitf4a4fc90d9f39badbd1080dd4351bb1ba93722f3
treea0e932f3d72f2d1973708088250a8c71ec7eaa88
parent14f20eb2552547e8c33869d592721feb751efaf2
arm64: dts: qcom: msm8916-longcheer-l8150: Use &pm8916_usbin extcon

At the moment, longcheer-l8150 is using a dummy extcon-usb-gpio device
that permanently enables USB gadget mode. This workaround allows USB
to work but is actually wrong and confusing. The "vbus-gpio" used there
refers to an unused (floating) GPIO that is pulled up to make
extcon-usb-gpio report USB gadget mode permanently.

Replace this with the new &pm8916_usbin extcon device that actually
reports if an USB cable is attached or not. This allows the USB PHY
to be turned off when there is no USB cable attached and is much
cleaner overall.

Fixes: a2dd0abd0538 ("arm64: dts: qcom: Add device tree for Longcheer L8150")
Signed-off-by: Stephan Gerhold <stephan@gerhold.net>
Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
Link: https://lore.kernel.org/r/20210928112945.25310-3-stephan@gerhold.net
arch/arm64/boot/dts/qcom/msm8916-longcheer-l8150.dts