From 60f8ee9af1da4c7e26bbc8467719a334749e71ce Mon Sep 17 00:00:00 2001 From: Max Krummenacher Date: Wed, 24 Jun 2020 13:37:23 +0200 Subject: ARM64: dts: apalis-imx8qm-v1.1: spi: use gpio cs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It’s a limitation that one cannot use native SPI CS & DMA and have a continuous CS for the whole transfer. The CS is deasserted after each word sent. One can either use DMA and GPIO CS or one can use PIO mode. With this commit we change from using PIO mode to DMA mode and change the CS used from the IP provided one to GPIO CS on the same pin. This sync's the SPI configuration with the i.MX 8X based modules which already uses DMA with GPIO CS. Related-to: ELB-1278 Signed-off-by: Max Krummenacher --- arch/arm64/boot/dts/freescale/fsl-imx8qm-apalis-v1.1.dtsi | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/arm64/boot/dts/freescale/fsl-imx8qm-apalis-v1.1.dtsi b/arch/arm64/boot/dts/freescale/fsl-imx8qm-apalis-v1.1.dtsi index c0af744e327f..222a33d0084f 100644 --- a/arch/arm64/boot/dts/freescale/fsl-imx8qm-apalis-v1.1.dtsi +++ b/arch/arm64/boot/dts/freescale/fsl-imx8qm-apalis-v1.1.dtsi @@ -847,7 +847,7 @@ SC_P_SPI0_SCK_DMA_SPI0_SCK 0x0600004c SC_P_SPI0_SDO_DMA_SPI0_SDO 0x0600004c SC_P_SPI0_SDI_DMA_SPI0_SDI 0x0600004c - SC_P_SPI0_CS0_DMA_SPI0_CS0 0x0600004c + SC_P_SPI0_CS0_LSIO_GPIO3_IO05 0x0600004c >; }; @@ -857,7 +857,7 @@ SC_P_SPI2_SCK_DMA_SPI2_SCK 0x0600004c SC_P_SPI2_SDO_DMA_SPI2_SDO 0x0600004c SC_P_SPI2_SDI_DMA_SPI2_SDI 0x0600004c - SC_P_SPI2_CS0_DMA_SPI2_CS0 0x0600004c + SC_P_SPI2_CS0_LSIO_GPIO3_IO10 0x0600004c >; }; @@ -1210,7 +1210,7 @@ pinctrl-0 = <&pinctrl_lpspi0>; #address-cells = <1>; #size-cells = <0>; - dma-names = "no","no"; + cs-gpios = <&gpio3 5 GPIO_ACTIVE_LOW>; spidev0: spi@0 { compatible = "toradex,evalspi"; @@ -1225,7 +1225,7 @@ pinctrl-0 = <&pinctrl_lpspi2>; #address-cells = <1>; #size-cells = <0>; - dma-names = "no","no"; + cs-gpios = <&gpio3 10 GPIO_ACTIVE_LOW>; spidev1: spi@0 { compatible = "toradex,evalspi"; -- cgit v1.2.3