Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Valued Contributor III
748 Views

Arria 10 SPI Master bits per word support

Hi All,  

 

We are using Arria 10 SOC FPGA and interfacing SPI slave device which needs 20-bit stream of data as input. 

 

Here we have few questions on Arria 10 SPI controller. 

 

1. What is the minimum and maximum bits per word supported on SPI master controller? (spi-dw.c driver supports only 8 and 16 bits) 

 

2. How do we set chip select to active until spi transfer completes 3 byte or 20 bit data.?
0 Kudos
2 Replies
Highlighted
Valued Contributor III
11 Views

The technical reference manual for the A10 SoC HPS says the SPI controller supports data size from 4 to 16 bits. To access a device with 20-bit data you'll probably have to implement a soft SPI controller in the FPGA fabric and access that from the HPS. That would obviously require a custom driver unless you can find a soft SPI core that already has Linux support. 

 

Good luck.
0 Kudos
Highlighted
Valued Contributor III
11 Views

Thanks for your reply, 

 

There should option to set the chip select pin as force active form SPI master. 

 

Can you please share information regarding that or register level details of SPI master controller.
0 Kudos