Adding new SPI Slave device in LS1021A-TWR Board

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

Adding new SPI Slave device in LS1021A-TWR Board

1,690 Views
nimeshkanoth
Contributor I

Hi All,

we are trying to add a new peripheral to SPI BUS Interface in LS1021A-TWR based board, we have some doubts about that

      which is the SPI master driver that needs to be enabled in kernel.

and in our present Linux SDK QorIQ-SDK-V1.8, DSPI interface support is there in Linux Device Tree and DSPI master driver spi-fsl-dspi is enabled in kernel configuration. we are not using any dspi, how to add SPI interface and new device to the Device Tree.

Thanks,

vijay

0 Kudos
Reply
1 Reply

1,097 Views
bpe
NXP Employee
NXP Employee

spi-fsl-dspi.c is the correct driver for  SPI buses which are visible

on your board connectors. The driver for it is enabled in the SDK default

kernel configuration. Another type of SPI, namely QSPI, is only

connected to the board Flash and not routed outside. You can, however,

enable it if you wish, refer to this document:

https://freescale.sdlproducts.com/LiveContent/content/en-US/QorIQ_SDK_1.9/GUID-AC454217-C750-47E2-B8...

LS1021 does not have any other SPI controller.

Refer to Documentation/devicetree/bindings/spi/spi-bus.txt for basic

information on required properties for SPI slaves. Consult at your

SPI peripheral driver documentation, source code or maintainer for

additional Device Tree node properties the driver requires. 


Have a great day,
Platon

-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos
Reply