MLK-20060-6 dts: lpspi: Prevent CS line error in slave mode
authorClark Wang <xiaoning.wang@nxp.com>
Thu, 3 Jan 2019 09:54:11 +0000 (17:54 +0800)
committerLeonard Crestez <leonard.crestez@nxp.com>
Thu, 2 May 2019 08:35:29 +0000 (11:35 +0300)
Prevent cs line configuration error in slave mode.

If master mode uses cs-gpio configuration, it should be changed into
non-gpio for CS line in slave mode. Otherwise, slave will receive several
0xFF at the beginning of one transfer especially in dma mode.

Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
Acked-by: Fugang Duan <Fugang.duan@nxp.com>
Signed-off-by: Arulpandiyan Vadivel <arulpandiyan_vadivel@mentor.com>
Signed-off-by: Shrikant Bobade <Shrikant_Bobade@mentor.com>
(cherry picked from commit 88ba1025094d53fdecd1b443ef1a85514a132f21)

arch/arm/boot/dts/imx7ulp-evkb-spi-slave.dts

index 9a5f3e2..3e38544 100644 (file)
 
 /delete-node/&spidev0;
 
+&pinctrl_lpspi3 {
+       fsl,pins = <
+               IMX7ULP_PAD_PTF16__LPSPI3_SIN   0x0
+               IMX7ULP_PAD_PTF17__LPSPI3_SOUT  0x0
+               IMX7ULP_PAD_PTF18__LPSPI3_SCK   0x0
+               IMX7ULP_PAD_PTF19__LPSPI3_PCS0  0x0
+       >;
+};
+
 &lpspi3 {
+       pinctrl-0 = <&pinctrl_lpspi3>;
+       pinctrl-1 = <&pinctrl_lpspi3>;
+       /delete-property/ cs-gpios;
        spi-slave;
 };