Re: [PATCH 3/5] arm64: dts: qcom: lemans-evk: Extend peripheral and subsystem support
From: Dmitry Baryshkov <hidden>
Date: 2025-08-28 13:30:06
Also in:
linux-arm-msm, linux-devicetree, linux-mmc, lkml
On Thu, Aug 28, 2025 at 06:38:03PM +0530, Sushrut Shree Trivedi wrote:
On 8/27/2025 7:05 AM, Dmitry Baryshkov wrote:quoted
On Tue, Aug 26, 2025 at 11:51:02PM +0530, Wasim Nazir wrote:quoted
Enhance the Qualcomm Lemans EVK board file to support essential peripherals and improve overall hardware capabilities, as outlined below: - Enable GPI (Generic Peripheral Interface) DMA-0/1/2 and QUPv3-0/2 controllers to facilitate DMA and peripheral communication. - Add support for PCIe-0/1, including required regulators and PHYs, to enable high-speed external device connectivity. - Integrate the TCA9534 I/O expander via I2C to provide 8 additional GPIO lines for extended I/O functionality. - Enable the USB0 controller in device mode to support USB peripheral operations. - Activate remoteproc subsystems for supported DSPs such as Audio DSP, Compute DSP-0/1 and Generic DSP-0/1, along with their corresponding firmware. - Configure nvmem-layout on the I2C EEPROM to store data for Ethernet and other consumers. - Enable the QCA8081 2.5G Ethernet PHY on port-0 and expose the Ethernet MAC address via nvmem for network configuration. It depends on CONFIG_QCA808X_PHY to use QCA8081 PHY. - Add support for the Iris video decoder, including the required firmware, to enable video decoding capabilities. - Enable SD-card slot on SDHC. Co-developed-by: Viken Dadhaniya <viken.dadhaniya@oss.qualcomm.com> Signed-off-by: Viken Dadhaniya <viken.dadhaniya@oss.qualcomm.com> Co-developed-by: Sushrut Shree Trivedi <redacted> Signed-off-by: Sushrut Shree Trivedi <redacted> Co-developed-by: Nirmesh Kumar Singh <redacted> Signed-off-by: Nirmesh Kumar Singh <redacted> Co-developed-by: Krishna Kurapati <redacted> Signed-off-by: Krishna Kurapati <redacted> Co-developed-by: Mohd Ayaan Anwar <redacted> Signed-off-by: Mohd Ayaan Anwar <redacted> Co-developed-by: Dikshita Agarwal <redacted> Signed-off-by: Dikshita Agarwal <redacted> Co-developed-by: Monish Chunara <redacted> Signed-off-by: Monish Chunara <redacted> Co-developed-by: Vishal Kumar Pal <redacted> Signed-off-by: Vishal Kumar Pal <redacted> Signed-off-by: Wasim Nazir <redacted> --- arch/arm64/boot/dts/qcom/lemans-evk.dts | 387 ++++++++++++++++++++++++++++++++ 1 file changed, 387 insertions(+)quoted
@@ -356,6 +720,29 @@ &ufs_mem_phy { status = "okay"; }; +&usb_0 { + status = "okay"; +}; + +&usb_0_dwc3 { + dr_mode = "peripheral";Is it actually peripheral-only?Hi Dmitry, HW supports OTG mode also, but for enabling OTG we need below mentioned driver changes in dwc3-qcom.c :
Is it the USB-C port? If so, then you should likely be using some form of the Type-C port manager (in software or in hardware). These platforms usually use pmic-glink in order to handle USB-C. Or is it micro-USB-OTG port?
a) dwc3 core callback registration by dwc3 glue driver; this change is under review in upstream. b) vbus supply enablement for host mode; this change is yet to be submitted to upstream. Post the above mentioned driver changes, we are planning to enable OTG on usb0. - Sushrutquoted
quoted
+}; +
-- With best wishes Dmitry