eUSB2 HPG revision 1.0.2 recommends to program eusb register
USB_PHY_CFG_CTRL_1 to be programmed to 0x00 on phy init.
Since this divergence is only applicable for specific version therefore
updating the override sequence with the appropriate value.
Change-Id: I132acac6eaa0f2c5a718b63a089ff995a6be17ab
Signed-off-by: Uttkarsh Aggarwal <quic_uaggarwa@quicinc.com>
DWC3 host and XHCI plat now communicates the maximum number of interrupters
the XHCI HCD will allocate. Since platforms only require a limited number
of interrupters (i.e. 3) make sure XHCI doesn't allocate more than is
required.
Change-Id: I47ddfb603490afd2ab51d7c7fa9ecf844729eb62
Signed-off-by: Uttkarsh Aggarwal <quic_uaggarwa@quicinc.com>
This change will add usb-role-switch and eud in Tuna.
Change-Id: Id7bfad4e07aae84a6f1434d35e3519bf693905e4
Signed-off-by: Uttkarsh Aggarwal <quic_uaggarwa@quicinc.com>
In this change usb_nop_phy is replaced with usb_qmp_dp_phy to
enable Super-Speed on Tuna Platform.
Change-Id: I24a255e4bf1154870ba676fcb3d778d0842503be
Signed-off-by: Uttkarsh Aggarwal <quic_uaggarwa@quicinc.com>
To support cable detection events from UCSI, updates need to be made
to enable usb role switch and setting up a connection to the UCSI PMIC
glink node.
Change-Id: I2e3b6b1c3e36c4dca612df1e79156d669955070d
Signed-off-by: Uttkarsh Aggarwal <quic_uaggarwa@quicinc.com>
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>
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>
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>
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>
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>
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>
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>
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>
In this change adding memory region for iommu node
for tuna.
Change-Id: I50bc3d510bfab93bc5bfc22c2e3c44b9c450c8f1
Signed-off-by: Uttkarsh Aggarwal <quic_uaggarwa@quicinc.com>
In this change switching from "bypass" to "atomic"
for tuna.
Change-Id: Iae14cab97f4e98d6bd6cc350f61e5cfb4a97f7fc
Signed-off-by: Uttkarsh Aggarwal <quic_uaggarwa@quicinc.com>
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>
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>
Enable USB related properties for USB functionality
on tuna.
Change-Id: Ia4270aa4860d8b894ab094dafbad61d278f7606f
Signed-off-by: Uttkarsh Aggarwal <quic_uaggarwa@quicinc.com>