Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Revert "ARM: dts: imx6q: Use correct SDMA script for SPI5 core"

There are two ways for SDMA accessing SPBA devices: one is SDMA->AIPS
->SPBA(masterA port), another is SDMA->SPBA(masterC port). Please refer
to the 'Figure 58-1. i.MX 6Dual/6Quad SPBA connectivity' of i.mx6DQ
Reference Manual. SDMA provide the corresponding app_2_mcu/mcu_2_app and
shp_2_mcu/mcu_2_shp script for such two options. So both AIPS and SPBA
scripts should keep the same behaviour, the issue only caught in AIPS
script sounds not solide.
The issue is more likely as the ecspi errata
ERR009165(http://www.nxp.com/docs/en/errata/IMX6DQCE.pdf):
eCSPI: TXFIFO empty flag glitch can cause the current FIFO transfer to
be sent twice
So revert commit 'df07101e1c4a' firstly.

Signed-off-by: Robin Gong <yibin.gong@nxp.com>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Shawn Guo <shawnguo@kernel.org>

authored by

Robin Gong and committed by
Shawn Guo
affd9bfa e73f0f0e

+1 -1
+1 -1
arch/arm/boot/dts/imx6q.dtsi
··· 177 177 clocks = <&clks IMX6Q_CLK_ECSPI5>, 178 178 <&clks IMX6Q_CLK_ECSPI5>; 179 179 clock-names = "ipg", "per"; 180 - dmas = <&sdma 11 8 1>, <&sdma 12 8 2>; 180 + dmas = <&sdma 11 7 1>, <&sdma 12 7 2>; 181 181 dma-names = "rx", "tx"; 182 182 status = "disabled"; 183 183 };