AnsweredAssumed Answered

IMX6Q adding ECSPI1 driver

Question asked by yongfeng zhang on Aug 22, 2017
Latest reply on Sep 6, 2017 by Carlos_Musich

Hi all,


Recently I am trying to get Linux Kernel SPI driver working with ECSPI1 on IMX6Q. I have successfully implemented the driver on ECSPI3 and passed the close-loop SPI test. The driver and device tree are matching well with a character device node at /dev/spidev32766.0. However when I am adding a new SPI device node in file <imx6qdl-sabreauto.dtsi> with the following modification:


&ecspi1 {
fsl,spi-num-chipselects = <1>;
cs-gpios = <&gpio3 19 0>;
//cs-gpios = <0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_ecspi1_1 &pinctrl_ecspi1_cs_1>;
//pinctrl-0 = <&pinctrl_ecspi1_1>;
status = "okay";
spidev1: spi@0 {
compatible = "spidev";
reg = <0>;
spi-max-frequency = <1000000>;


I am able to create a new character device node at /dev/spidev32765.0. But there is data sending out when doing the close-loop test. 


What could I possibly miss? Any help would be appreciated. Thanks!