diff options
Diffstat (limited to 'target/linux/layerscape/patches-5.4/302-dts-0099-arm64-dts-layerscape-apply-dma-coherent-for-dwc3-nod.patch')
-rw-r--r-- | target/linux/layerscape/patches-5.4/302-dts-0099-arm64-dts-layerscape-apply-dma-coherent-for-dwc3-nod.patch | 150 |
1 files changed, 150 insertions, 0 deletions
diff --git a/target/linux/layerscape/patches-5.4/302-dts-0099-arm64-dts-layerscape-apply-dma-coherent-for-dwc3-nod.patch b/target/linux/layerscape/patches-5.4/302-dts-0099-arm64-dts-layerscape-apply-dma-coherent-for-dwc3-nod.patch new file mode 100644 index 0000000000..182c8ae242 --- /dev/null +++ b/target/linux/layerscape/patches-5.4/302-dts-0099-arm64-dts-layerscape-apply-dma-coherent-for-dwc3-nod.patch @@ -0,0 +1,150 @@ +From 18219eaa3f37f375584789b95876967e97b8da3e Mon Sep 17 00:00:00 2001 +From: Ran Wang <ran.wang_1@nxp.com> +Date: Wed, 25 Dec 2019 14:00:27 +0800 +Subject: [PATCH] arm64: dts: layerscape: apply dma-coherent for dwc3 nodes + +Since dwc3 cache type has been set to cacheable, apply dma-coherent to +all dwc3 nodes accordingly. + +Note: For LS1043A and LS1046A, since QE-HDLC still doesn't support +dma-coherent, we cannot directly revert cd1a4f3c (sdk: dts: ls104x move +dma-coherent from soc to its child nodes) to recover dma-coherent for +soc. + +Signed-off-by: Ran Wang <ran.wang_1@nxp.com> +--- + arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 1 + + arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 2 ++ + arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 3 +++ + arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 3 +++ + arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 2 ++ + arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi | 2 ++ + arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 1 + + 7 files changed, 14 insertions(+) + +--- a/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi ++++ b/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi +@@ -453,6 +453,7 @@ + snps,dis_rxdet_inp3_quirk; + snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>; + snps,host-vbus-glitches; ++ dma-coherent; + }; + + sata: sata@3200000 { +--- a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi ++++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi +@@ -381,6 +381,7 @@ + snps,dis_rxdet_inp3_quirk; + snps,quirk-frame-length-adjustment = <0x20>; + snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>; ++ dma-coherent; + }; + + usb1: usb@3110000 { +@@ -391,6 +392,7 @@ + snps,dis_rxdet_inp3_quirk; + snps,quirk-frame-length-adjustment = <0x20>; + snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>; ++ dma-coherent; + }; + + sata: sata@3200000 { +--- a/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi ++++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi +@@ -705,6 +705,7 @@ + snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>; + snps,host-vbus-glitches; + configure-gfladj; ++ dma-coherent; + }; + + usb1: usb3@3000000 { +@@ -719,6 +720,7 @@ + snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>; + snps,host-vbus-glitches; + configure-gfladj; ++ dma-coherent; + }; + + usb2: usb3@3100000 { +@@ -733,6 +735,7 @@ + snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>; + snps,host-vbus-glitches; + configure-gfladj; ++ dma-coherent; + }; + + sata: sata@3200000 { +--- a/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi ++++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi +@@ -603,6 +603,7 @@ + usb3-lpm-capable; + snps,dis-u1u2-when-u3-quirk; + snps,host-vbus-glitches; ++ dma-coherent; + }; + + usb1: usb@3000000 { +@@ -616,6 +617,7 @@ + usb3-lpm-capable; + snps,dis-u1u2-when-u3-quirk; + snps,host-vbus-glitches; ++ dma-coherent; + }; + + usb2: usb@3100000 { +@@ -629,6 +631,7 @@ + usb3-lpm-capable; + snps,dis-u1u2-when-u3-quirk; + snps,host-vbus-glitches; ++ dma-coherent; + }; + + sata: sata@3200000 { +--- a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi ++++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi +@@ -402,6 +402,7 @@ + snps,dis_rxdet_inp3_quirk; + snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>; + snps,host-vbus-glitches; ++ dma-coherent; + status = "disabled"; + }; + +@@ -414,6 +415,7 @@ + snps,dis_rxdet_inp3_quirk; + snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>; + snps,host-vbus-glitches; ++ dma-coherent; + status = "disabled"; + }; + +--- a/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi ++++ b/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi +@@ -738,6 +738,7 @@ + snps,dis_rxdet_inp3_quirk; + snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>; + snps,host-vbus-glitches; ++ dma-coherent; + }; + + usb1: usb3@3110000 { +@@ -750,6 +751,7 @@ + snps,dis_rxdet_inp3_quirk; + snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>; + snps,host-vbus-glitches; ++ dma-coherent; + }; + + ccn@4000000 { +--- a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi ++++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi +@@ -874,6 +874,7 @@ + snps,dis_rxdet_inp3_quirk; + snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>; + snps,host-vbus-glitches; ++ dma-coherent; + status = "disabled"; + }; + |