]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
arm64: dts: qcom: lemans-evk: Enable first USB controller in device mode
authorKrishna Kurapati <krishna.kurapati@oss.qualcomm.com>
Tue, 16 Sep 2025 10:46:56 +0000 (16:16 +0530)
committerBjorn Andersson <andersson@kernel.org>
Tue, 16 Sep 2025 14:48:05 +0000 (09:48 -0500)
commit7bd68ef80661a9436120702e1300b56904fdd022
tree1cb36f1f4d762f78f5dd9543c6afe79c7df2384b
parentfd32b5d586ac650ce1c6f58535ec79cd2632be09
arm64: dts: qcom: lemans-evk: Enable first USB controller in device mode

Enable the first USB controller in device mode on the Lemans EVK
board and configure the associated LDO regulators to power
the PHYs accordingly.

The USB port is a Type-C port controlled by HD3SS3320 port controller.
The role switch notifications would need to be routed to glue driver by
adding an appropriate usb-c-connector node in DT. However in the design,
the vbus supply that is to be provided to connected peripherals when
port is configured as an DFP, is controlled by a GPIO.

There is also one ID line going from Port controller chip to GPIO-50 of
the SoC. As per the datasheet of HD3SS3320:

"Upon detecting a UFP device, HD3SS3220 will keep ID pin high if VBUS is
not at VSafe0V. Once VBUS is at VSafe0V, the HD3SS3220 will assert ID
pin low. This is done to enforce Type-C requirement that VBUS must be
at VSafe0V before re-enabling VBUS."

The current HD3SS3220 driver doesn't have this functionality present. So,
putting the first USB controller in device mode for now. Once the vbus
control based on ID pin is implemented in hd3ss3220.c, the
usb-c-connector will be implemented and dr mode would be made OTG.

Signed-off-by: Krishna Kurapati <krishna.kurapati@oss.qualcomm.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@oss.qualcomm.com>
Signed-off-by: Wasim Nazir <wasim.nazir@oss.qualcomm.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
Link: https://lore.kernel.org/r/20250916-lemans-evk-bu-v5-8-53d7d206669d@oss.qualcomm.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
arch/arm64/boot/dts/qcom/lemans-evk.dts