imx.6ull spi3 pin configuration in dts

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

imx.6ull spi3 pin configuration in dts

975 次查看
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 项奖励
回复
2 回复数

947 次查看
Rita_Wang
NXP TechSupport
NXP TechSupport

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

721.PNG

0 项奖励
回复

936 次查看
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

标记 (1)
0 项奖励
回复