imx.6ull spi3 pin configuration in dts

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

imx.6ull spi3 pin configuration in dts

974 Views
winstonshi_aure
Contributor II

I found some sample code use 0x100b1 to configure the spi pins while some use 0x10b1. which one is correct? Thanks.

MX6UL_PAD_UART2_RTS_B__ECSPI3_MISO 0x100b1 /* MISO*/ MX6UL_PAD_UART2_CTS_B__ECSPI3_MOSI 0x100b1 /* MOSI*/ MX6UL_PAD_UART2_RX_DATA__ECSPI3_SCLK 0x100b1 /* CLK*/ MX6UL_PAD_UART2_TX_DATA__ECSPI3_SS0 0x100b0 /* CS*/

MX6UL_PAD_UART2_RTS_B__ECSPI3_MISO 0x10b1 /* MISO*/ MX6UL_PAD_UART2_CTS_B__ECSPI3_MOSI 0x10b1 /* MOSI*/ MX6UL_PAD_UART2_RX_DATA__ECSPI3_SCLK 0x10b1 /* CLK*/ MX6UL_PAD_UART2_TX_DATA__ECSPI3_SS0 0x10b0 /* CS*/

0 Kudos
Reply
2 Replies

946 Views
Rita_Wang
NXP TechSupport
NXP TechSupport

It is 0x10b1, you can see the register in the RM.

721.PNG

0 Kudos
Reply

935 Views
winstonshi_aure
Contributor II

thanks! do you have experience in using dma mode for spi3?

i met an RX error when I using dma mode. the PIO mode worked well.

[ 115.830065] spi_master spi2: I/O Error in DMA RX:400
[ 115.841541] spi_master spi2: failed to transfer one message from queue

Tags (1)
0 Kudos
Reply