Skip to content

Commit dd4b487

Browse files
saschahauerShawn Guo
authored andcommitted
ARM: dts: imx6: Use correct SDMA script for SPI cores
According to the reference manual the shp_2_mcu / mcu_2_shp scripts must be used for devices connected through the SPBA. This fixes an issue we saw with DMA transfers from SPI NOR Flashes. Sometimes the SPI controller RX FIFO was not empty after a DMA transfer and the driver got stuck in the next PIO transfer when it read one word more than expected. Signed-off-by: Sascha Hauer <[email protected]> Signed-off-by: Shawn Guo <[email protected]>
1 parent 3da1785 commit dd4b487

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

arch/arm/boot/dts/imx6qdl.dtsi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@
261261
clocks = <&clks IMX6QDL_CLK_ECSPI1>,
262262
<&clks IMX6QDL_CLK_ECSPI1>;
263263
clock-names = "ipg", "per";
264-
dmas = <&sdma 3 7 1>, <&sdma 4 7 2>;
264+
dmas = <&sdma 3 8 1>, <&sdma 4 8 2>;
265265
dma-names = "rx", "tx";
266266
status = "disabled";
267267
};
@@ -275,7 +275,7 @@
275275
clocks = <&clks IMX6QDL_CLK_ECSPI2>,
276276
<&clks IMX6QDL_CLK_ECSPI2>;
277277
clock-names = "ipg", "per";
278-
dmas = <&sdma 5 7 1>, <&sdma 6 7 2>;
278+
dmas = <&sdma 5 8 1>, <&sdma 6 8 2>;
279279
dma-names = "rx", "tx";
280280
status = "disabled";
281281
};
@@ -289,7 +289,7 @@
289289
clocks = <&clks IMX6QDL_CLK_ECSPI3>,
290290
<&clks IMX6QDL_CLK_ECSPI3>;
291291
clock-names = "ipg", "per";
292-
dmas = <&sdma 7 7 1>, <&sdma 8 7 2>;
292+
dmas = <&sdma 7 8 1>, <&sdma 8 8 2>;
293293
dma-names = "rx", "tx";
294294
status = "disabled";
295295
};
@@ -303,7 +303,7 @@
303303
clocks = <&clks IMX6QDL_CLK_ECSPI4>,
304304
<&clks IMX6QDL_CLK_ECSPI4>;
305305
clock-names = "ipg", "per";
306-
dmas = <&sdma 9 7 1>, <&sdma 10 7 2>;
306+
dmas = <&sdma 9 8 1>, <&sdma 10 8 2>;
307307
dma-names = "rx", "tx";
308308
status = "disabled";
309309
};

0 commit comments

Comments
 (0)