From a0a81632a86cc0a1ccde5ace61d32baa24378c7b Mon Sep 17 00:00:00 2001 From: Uttkarsh Aggarwal Date: Fri, 13 May 2022 15:29:25 +0530 Subject: [PATCH 1/2] ARM: dts: msm: Add otg support in Anorak Add support for otg mode in Anorak and remove features that no longer supports. Change-Id: Ia31b1567504d3e7bdff566caaa1233417c092f30 --- qcom/anorak-usb.dtsi | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/qcom/anorak-usb.dtsi b/qcom/anorak-usb.dtsi index 31894bc7..a23c923d 100644 --- a/qcom/anorak-usb.dtsi +++ b/qcom/anorak-usb.dtsi @@ -28,14 +28,11 @@ qcom,core-clk-rate = <200000000>; qcom,core-clk-rate-hs = <66666667>; - qcom,dwc-usb3-msm-tx-fifo-size = <27696>; - dwc3@a600000 { compatible = "snps,dwc3"; reg = <0xa600000 0xd93c>; interrupts = ; - linux,sysdev_is_parent; snps,disable-clk-gating; snps,has-lpm-erratum; snps,hird-threshold = /bits/ 8 <0x0>; @@ -43,8 +40,8 @@ snps,dis-u1-entry-quirk; snps,dis-u2-entry-quirk; snps,dis_u2_susphy_quirk; - snps,ssp-u3-u0-quirk; tx-fifo-resize; + dr_mode = "otg"; maximum-speed = "super-speed-plus"; }; }; From 1baac19dbca87c777cbf9a0b08dd9299ef578a0b Mon Sep 17 00:00:00 2001 From: Uttkarsh Aggarwal Date: Wed, 25 May 2022 15:50:51 +0530 Subject: [PATCH 2/2] ARM: dts: msm: Add IOMMU node on USB for Anorak This change adds iommu entry for usb controller on Anorak. Change-Id: I78dba50b321f7e0f8b20d5e51d4aef87d0feb7ba --- qcom/anorak-usb.dtsi | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qcom/anorak-usb.dtsi b/qcom/anorak-usb.dtsi index a23c923d..e06c3065 100644 --- a/qcom/anorak-usb.dtsi +++ b/qcom/anorak-usb.dtsi @@ -32,6 +32,11 @@ compatible = "snps,dwc3"; reg = <0xa600000 0xd93c>; + iommus = <&apps_smmu 0x40 0x0>; + qcom,iommu-dma = "bypass"; + qcom,iommu-dma-addr-pool = <0x90000000 0x60000000>; + dma-coherent; + interrupts = ; snps,disable-clk-gating; snps,has-lpm-erratum;