Commit Graph

14 Commits

Author SHA1 Message Date
Uttkarsh Aggarwal
fccbac3614 ARM: dts: msm: Add pin configuration for USB3 PHY portselect on Tuna
TLMM pin is used to notify USB3/DP Combo PHY about the
orientation. Select this pinctrl from the usb_qmp_dp_phy
and ensure it is selecting the "usb0_phy_ps" pin function for Tuna.

Change-Id: I69f4004b00dcba0140871171b6c8b08471ae6aee
Signed-off-by: Uttkarsh Aggarwal <quic_uaggarwa@quicinc.com>
2024-11-18 21:52:30 -08:00
Uttkarsh Aggarwal
ca1f1fad6d ARM: dts: msm: Adding dependency of iommu node on USB driver
Currently, wait_for_device_probe api added before dwc3_probe
is called in core_init which is suppose to ensure that in case
the child is getting teared down, the userspace doesn't get to
write UDC and do gadget_start.

However, wait_for_device_probe api makes sure that the driver wait
until all probes are completed. Ideally, it wouldn't be a problem
but in cases of other driver's probe fails, usb would be affected
here even though usb isn't at fault.

Fix this by making a dummy-dependency on smmu node since the original
intention of the patch was to make sure if smmu driver was probed
successfully, then only proceed for child driver's probe.

Addtional: Adding qcom,dis-sending-cm-l1-quirk in tuna
Change-Id: I7503fd04407ef8d2ee108effcc95699a4325c9c5
Signed-off-by: Uttkarsh Aggarwal <quic_uaggarwa@quicinc.com>
2024-11-15 14:13:51 +05:30
Uttkarsh Aggarwal
a3e441feb2 ARM: dts: msm: Adding Regulator support for both HS and SS Phy
In this change EUSB_1P2 is added for eusb_phy and Refgen support
is added for SS Phy.

Change-Id: I1d6726882725c958178f0ad43bbd0ae264cb6046
Signed-off-by: Uttkarsh Aggarwal <quic_uaggarwa@quicinc.com>
2024-10-22 01:24:43 -07:00
Uttkarsh Aggarwal
a10ae9a363 ARM: dts: msm: Add GSI event buffers on Tuna USB
The GSI event buffers are required for the various GSI related
usecases which are excercised from the dwc3 glue driver.
Add the number of event buffers along with the register offsets
defined.

Change-Id: I07bd9bb0c319392657070b6c338ddc0edf442934
Signed-off-by: Uttkarsh Aggarwal <quic_uaggarwa@quicinc.com>
2024-10-22 01:24:21 -07:00
Uttkarsh Aggarwal
a0b0aec77b ARM: dts: msm: Add register entry to ssusb in tuna
Adding a 4-byte register entry for tcsr_dyn-en-dis to enable/disable USB
dynamically from dwc3-msm-core.

Change-Id: I34163cf381ff92d90dc687817612f0f191407501
Signed-off-by: Uttkarsh Aggarwal <quic_uaggarwa@quicinc.com>
2024-10-09 02:52:46 -07:00
Uttkarsh Aggarwal
8f9a845d79 ARM: dts: msm: Add qmi audio node on Tuna USB
Adding the necessary audio node providing the necessary
resources of the qmi audio to get probed.

Note: SID for usb audio is 100B.
Change-Id: Ib55eb5957d38e8551c2a2bda5446fc64539203e1
Signed-off-by: Uttkarsh Aggarwal <quic_uaggarwa@quicinc.com>
2024-10-09 02:52:37 -07:00
Uttkarsh Aggarwal
85fd55734a ARM: dts: qcom: Add QMP DP phy node & init sequence for Tuna
QMP phy is used for SS/SSP usb usecases as well as DP use cases
in a target. This change adds the basic resources required along
with the init sequence for functionality.

Note: init sequence is following Kalama QMP init sequence and
ref_clk is set to 38.4 Mhz.

Change-Id: I9422f9af88801fa0dde4d79a7e72ec74e264420d
Signed-off-by: Uttkarsh Aggarwal <quic_uaggarwa@quicinc.com>
2024-10-09 02:52:22 -07:00
Uttkarsh Aggarwal
632193f30b ARM: dts: msm: Added interconnects for Tuna
This change adds interconnects on Tuna USB.

Change-Id: I2f2a6d5948225dbfeb3d20db7693318977033956
Signed-off-by: Uttkarsh Aggarwal <quic_uaggarwa@quicinc.com>
2024-10-08 03:02:40 -07:00
Uttkarsh Aggarwal
d0dd9b24bc ARM: dts: msm: Add high speed usb support & interrupts for Tuna
The high speed phy is required for USB to support HS
usecases. Add eusb node on tuna which includes the
necessary resources for the eusb phy to work.

Additional: Added interrupts for tuna.
Change-Id: Ifa3484bd52f876804b455e46a67a3b7b28fc663d
Signed-off-by: Uttkarsh Aggarwal <quic_uaggarwa@quicinc.com>
2024-10-08 03:02:31 -07:00
Uttkarsh Aggarwal
12a89c859a ARM: dts: msm: Adding memory region for USB Tuna
In this change adding memory region for iommu node
for tuna.

Change-Id: I50bc3d510bfab93bc5bfc22c2e3c44b9c450c8f1
Signed-off-by: Uttkarsh Aggarwal <quic_uaggarwa@quicinc.com>
2024-10-08 02:58:44 -07:00
Uttkarsh Aggarwal
37943fdc91 ARM: dts: msm: Setting IOMMU to atomic in tuna
In this change switching from "bypass" to "atomic"
for tuna.

Change-Id: Iae14cab97f4e98d6bd6cc350f61e5cfb4a97f7fc
Signed-off-by: Uttkarsh Aggarwal <quic_uaggarwa@quicinc.com>
2024-07-15 21:50:28 -07:00
Uttkarsh Aggarwal
00b7d1455c ARM: dts: msm: Enable SMMU in tuna
Enable SMMU for the USB controller on tuna.

Note: Currently in bypass mode.
Change-Id: If60f552246306b2f73527b2cd8cbb6a9396eeaad
Signed-off-by: Uttkarsh Aggarwal <quic_uaggarwa@quicinc.com>
2024-07-15 21:50:13 -07:00
Uttkarsh Aggarwal
77348a1ad7 ARM: dts: msm: Update IRQ number for TUNA usb
Currently, IRQ is set to IRQ = IRQ -2 for E2 builds,
but for the E3 build IRQ number should be set according
to document.

Change-Id: I18cc6f3172b61cdb0af868b59db48e151a15fb2c
Signed-off-by: Uttkarsh Aggarwal <quic_uaggarwa@quicinc.com>
2024-05-27 03:43:46 -07:00
Uttkarsh Aggarwal
1f72b5a080 ARM: dts: msm: Add USB device nodes for tuna
Enable USB related properties for USB functionality
on tuna.

Change-Id: Ia4270aa4860d8b894ab094dafbad61d278f7606f
Signed-off-by: Uttkarsh Aggarwal <quic_uaggarwa@quicinc.com>
2024-05-20 01:16:17 -07:00