ef719e393b5b7527463e8ccce7b55fa76cf772cc
[openwrt/staging/blogic.git] /
1 From 18219eaa3f37f375584789b95876967e97b8da3e Mon Sep 17 00:00:00 2001
2 From: Ran Wang <ran.wang_1@nxp.com>
3 Date: Wed, 25 Dec 2019 14:00:27 +0800
4 Subject: [PATCH] arm64: dts: layerscape: apply dma-coherent for dwc3 nodes
5
6 Since dwc3 cache type has been set to cacheable, apply dma-coherent to
7 all dwc3 nodes accordingly.
8
9 Note: For LS1043A and LS1046A, since QE-HDLC still doesn't support
10 dma-coherent, we cannot directly revert cd1a4f3c (sdk: dts: ls104x move
11 dma-coherent from soc to its child nodes) to recover dma-coherent for
12 soc.
13
14 Signed-off-by: Ran Wang <ran.wang_1@nxp.com>
15 ---
16 arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi | 1 +
17 arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi | 2 ++
18 arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi | 3 +++
19 arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi | 3 +++
20 arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi | 2 ++
21 arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi | 2 ++
22 arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi | 1 +
23 7 files changed, 14 insertions(+)
24
25 --- a/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi
26 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1012a.dtsi
27 @@ -454,6 +454,7 @@
28 snps,dis_rxdet_inp3_quirk;
29 snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
30 snps,host-vbus-glitches;
31 + dma-coherent;
32 };
33
34 sata: sata@3200000 {
35 --- a/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi
36 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1028a.dtsi
37 @@ -381,6 +381,7 @@
38 snps,dis_rxdet_inp3_quirk;
39 snps,quirk-frame-length-adjustment = <0x20>;
40 snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
41 + dma-coherent;
42 };
43
44 usb1: usb@3110000 {
45 @@ -391,6 +392,7 @@
46 snps,dis_rxdet_inp3_quirk;
47 snps,quirk-frame-length-adjustment = <0x20>;
48 snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
49 + dma-coherent;
50 };
51
52 sata: sata@3200000 {
53 --- a/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi
54 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1043a.dtsi
55 @@ -706,6 +706,7 @@
56 snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
57 snps,host-vbus-glitches;
58 configure-gfladj;
59 + dma-coherent;
60 };
61
62 usb1: usb3@3000000 {
63 @@ -720,6 +721,7 @@
64 snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
65 snps,host-vbus-glitches;
66 configure-gfladj;
67 + dma-coherent;
68 };
69
70 usb2: usb3@3100000 {
71 @@ -734,6 +736,7 @@
72 snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
73 snps,host-vbus-glitches;
74 configure-gfladj;
75 + dma-coherent;
76 };
77
78 sata: sata@3200000 {
79 --- a/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi
80 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1046a.dtsi
81 @@ -604,6 +604,7 @@
82 usb3-lpm-capable;
83 snps,dis-u1u2-when-u3-quirk;
84 snps,host-vbus-glitches;
85 + dma-coherent;
86 };
87
88 usb1: usb@3000000 {
89 @@ -617,6 +618,7 @@
90 usb3-lpm-capable;
91 snps,dis-u1u2-when-u3-quirk;
92 snps,host-vbus-glitches;
93 + dma-coherent;
94 };
95
96 usb2: usb@3100000 {
97 @@ -630,6 +632,7 @@
98 usb3-lpm-capable;
99 snps,dis-u1u2-when-u3-quirk;
100 snps,host-vbus-glitches;
101 + dma-coherent;
102 };
103
104 sata: sata@3200000 {
105 --- a/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi
106 +++ b/arch/arm64/boot/dts/freescale/fsl-ls1088a.dtsi
107 @@ -402,6 +402,7 @@
108 snps,dis_rxdet_inp3_quirk;
109 snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
110 snps,host-vbus-glitches;
111 + dma-coherent;
112 status = "disabled";
113 };
114
115 @@ -414,6 +415,7 @@
116 snps,dis_rxdet_inp3_quirk;
117 snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
118 snps,host-vbus-glitches;
119 + dma-coherent;
120 status = "disabled";
121 };
122
123 --- a/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi
124 +++ b/arch/arm64/boot/dts/freescale/fsl-ls208xa.dtsi
125 @@ -737,6 +737,7 @@
126 snps,dis_rxdet_inp3_quirk;
127 snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
128 snps,host-vbus-glitches;
129 + dma-coherent;
130 };
131
132 usb1: usb3@3110000 {
133 @@ -749,6 +750,7 @@
134 snps,dis_rxdet_inp3_quirk;
135 snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
136 snps,host-vbus-glitches;
137 + dma-coherent;
138 };
139
140 ccn@4000000 {
141 --- a/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
142 +++ b/arch/arm64/boot/dts/freescale/fsl-lx2160a.dtsi
143 @@ -874,6 +874,7 @@
144 snps,dis_rxdet_inp3_quirk;
145 snps,incr-burst-type-adjustment = <1>, <4>, <8>, <16>;
146 snps,host-vbus-glitches;
147 + dma-coherent;
148 status = "disabled";
149 };
150