File tree Expand file tree Collapse file tree 3 files changed +56
-0
lines changed Expand file tree Collapse file tree 3 files changed +56
-0
lines changed Original file line number Diff line number Diff line change 93
93
};
94
94
};
95
95
96
+ /*
97
+ * Mark DMA peripherals connected via IOC port as dma-coherent. We do
98
+ * it via overlay because peripherals defined in axs10x_mb.dtsi are
99
+ * used for both AXS101 and AXS103 boards and only AXS103 has IOC (so
100
+ * only AXS103 board has HW-coherent DMA peripherals)
101
+ * We don't need to mark pgu@17000 as dma-coherent because it uses
102
+ * external DMA buffer located outside of IOC aperture.
103
+ */
104
+ axs10x_mb {
105
+ ethernet@0x18000 {
106
+ dma-coherent;
107
+ };
108
+
109
+ ehci@0x40000 {
110
+ dma-coherent;
111
+ };
112
+
113
+ ohci@0x60000 {
114
+ dma-coherent;
115
+ };
116
+
117
+ mmc@0x15000 {
118
+ dma-coherent;
119
+ };
120
+ };
121
+
96
122
/*
97
123
* The DW APB ICTL intc on MB is connected to CPU intc via a
98
124
* DT "invisible" DW APB GPIO block, configured to simply pass thru
Original file line number Diff line number Diff line change 100
100
};
101
101
};
102
102
103
+ /*
104
+ * Mark DMA peripherals connected via IOC port as dma-coherent. We do
105
+ * it via overlay because peripherals defined in axs10x_mb.dtsi are
106
+ * used for both AXS101 and AXS103 boards and only AXS103 has IOC (so
107
+ * only AXS103 board has HW-coherent DMA peripherals)
108
+ * We don't need to mark pgu@17000 as dma-coherent because it uses
109
+ * external DMA buffer located outside of IOC aperture.
110
+ */
111
+ axs10x_mb {
112
+ ethernet@0x18000 {
113
+ dma-coherent;
114
+ };
115
+
116
+ ehci@0x40000 {
117
+ dma-coherent;
118
+ };
119
+
120
+ ohci@0x60000 {
121
+ dma-coherent;
122
+ };
123
+
124
+ mmc@0x15000 {
125
+ dma-coherent;
126
+ };
127
+ };
128
+
103
129
/*
104
130
* This INTC is actually connected to DW APB GPIO
105
131
* which acts as a wire between MB INTC and CPU INTC.
Original file line number Diff line number Diff line change 181
181
resets = <&cgu_rst HSDK_ETH_RESET>;
182
182
reset-names = "stmmaceth";
183
183
mac-address = [00 00 00 00 00 00]; /* Filled in by U-Boot */
184
+ dma-coherent;
184
185
185
186
mdio {
186
187
#address-cells = <1>;
199
200
compatible = "snps,hsdk-v1.0-ohci", "generic-ohci";
200
201
reg = <0x60000 0x100>;
201
202
interrupts = <15>;
203
+ dma-coherent;
202
204
};
203
205
204
206
ehci@40000 {
205
207
compatible = "snps,hsdk-v1.0-ehci", "generic-ehci";
206
208
reg = <0x40000 0x100>;
207
209
interrupts = <15>;
210
+ dma-coherent;
208
211
};
209
212
210
213
mmc@a000 {
217
220
clock-names = "biu", "ciu";
218
221
interrupts = <12>;
219
222
bus-width = <4>;
223
+ dma-coherent;
220
224
};
221
225
};
222
226
You can’t perform that action at this time.
0 commit comments