AnsweredAssumed Answered

SPI issue in imx6ul

Question asked by Anand Singh on Feb 17, 2017
Latest reply on Feb 19, 2017 by TomE

I am struggling with an spi issue on imx6ul.

Any pointer will be helpful to fix / debug this issue

When I trace the SPI line, it seems that there us a drift in CS line, Also on clk line there are sometime 7 pulses and sometime 8 pulses.

Below is my device tree setting 

 

spi0 = &ecspi2;  

 

&ecspi2 {
 pinctrl-names = "default";
 pinctrl-0 = <&pinctrl_ecspi2>;
 fsl,spi-num-chipselects = <1>;
 cs-gpios = <&gpio1 10 1>;
 status = "okay";

 

 spidev0: spi@0 {
    compatible = "spidev";
    reg = <0>;
    spi-max-frequency = <10000000>;
    };
};

pinctrl_ecspi2: ecspi2grp {
 fsl,pins = <
 MX6UL_PAD_JTAG_MOD__GPIO1_IO10 0x0b0b0 /* CSPI_SS */
 MX6UL_PAD_UART5_TX_DATA__ECSPI2_MOSI 0x0b0b0 /* CSPI_MOSI */
 MX6UL_PAD_UART5_RX_DATA__ECSPI2_MISO 0x0b0b0 /* CSPI_MISO */
 MX6UL_PAD_UART4_TX_DATA__ECSPI2_SCLK 0x0b0b0 /* CSPI_SCLK */
 >;
};

 

Attachments

Outcomes