LS1012A - muxing SPI and GPIO

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

LS1012A - muxing SPI and GPIO

跳至解决方案
2,776 次查看
luka_pirnat
Contributor II

Hello,

we're designing a LS1012-based board and we'll be using SPI only to load FPGA configuration, therefore we only need SPI_CLK and SPI_MOSI signals. So, I'd like to know whether it's possible to use the remaining SPI signal pins as GPIOs (GPIO1_25, _26, _27, _28)? I found conflicting info on here (LS1043A, GPIO Query), so I'm not sure. I did check the PinMux tool and it seems it's possible.

 

Regards,
Luka

标签 (1)
标记 (1)
1 解答
2,643 次查看
alexander_yakov
NXP Employee
NXP Employee

Please refer to LS1012A Reference Manual, Table 4-10 "RCW Field descriptions".

You can see that SPI_MOSI, SPICS0_B, SPI_CLK are configured in group by one RCW field "SDHC2_BASE_BASE", whereas other pins SPI_MISO, SPICS2_B, SPI_CS1_B are configured by other field "SDHC2_BASE_DAT321". This mease your can configure only first three pins to SPI functions by SDHC2_BASE_BASE="11", leaving other three pins configured as GPIO1[26,27,28] by SDHC2_BASE_DAT321="00" and SDHC2_EXT_* = "0"

在原帖中查看解决方案

2 回复数
2,644 次查看
alexander_yakov
NXP Employee
NXP Employee

Please refer to LS1012A Reference Manual, Table 4-10 "RCW Field descriptions".

You can see that SPI_MOSI, SPICS0_B, SPI_CLK are configured in group by one RCW field "SDHC2_BASE_BASE", whereas other pins SPI_MISO, SPICS2_B, SPI_CS1_B are configured by other field "SDHC2_BASE_DAT321". This mease your can configure only first three pins to SPI functions by SDHC2_BASE_BASE="11", leaving other three pins configured as GPIO1[26,27,28] by SDHC2_BASE_DAT321="00" and SDHC2_EXT_* = "0"

2,643 次查看
luka_pirnat
Contributor II

Yes, I actually checked the ref. manual, Table 3-6 (SDHC2_BASE signal configuration), but I suppose I misinterpreted it. However I do understand now: once I set RCW[SDHC2_BASE_BASE] to 0b11, I cannot use these three signals for anything else but SPI. Thanks!

0 项奖励
回复