AnsweredAssumed Answered

iMX6ULL GPIO Issue due to SPI

Question asked by Pankaj Dhule on Aug 10, 2018
Latest reply on Aug 13, 2018 by igorpadykov

Hi All,

 

We are currently using i.MX6ULL based custom board. We are facing issues due to SPI interface.

 

We are using SPI3 and four gpios on GPIO1 port.

 

1. We have configured 3 pins GPIO1_IO18, GPIO1_IO19 and GPIO1_IO06 as outputs.

2. We have set all these three pins high (verified it using Oscilloscope ) and executed the mxc_spi_test1.out application.

3. After executing mxc_spi_test1.out application status of these output pins is changed to low and GPIO1_IO06 is changed from output to input.

 

Request your help to resolve this issue.

 

We have configured SPI3 with below mentioned settings:

 

 &ecspi3 {

fsl,spi-num-chipselects = <1>;

pinctrl-names = "default";

pinctrl-0 = <&pinctrl_ecspi3>;

cs-gpios = <&gpio1 20 0>;

status = "okay";

 

chip1: spidev@0x0 {

 

compatible = "spidev";

 

spi-max-frequency = <10000000>;

 

reg = <0>;

 

};

};

pinctrl_ecspi3: ecspi3grp {

fsl,pins = <

MX6UL_PAD_UART2_TX_DATA__GPIO1_IO20 0x80000000

MX6UL_PAD_UART2_RX_DATA__ECSPI3_SCLK 0x80000000

MX6UL_PAD_UART2_CTS_B__ECSPI3_MOSI 0x80000000

MX6UL_PAD_UART2_RTS_B__ECSPI3_MISO 0x80000000

>;

};

Outcomes