Inputs to use T30 NVIDIA SPI controller [ 0 & 1 ] both

Dear Toradex Team ,

We are planning to use T30 in one of design for which could you please
provide some inputs . We are planning to make use of SPI-0 & SPI-1 [ TWO SPI CONTROLLER ] with each having .max_speed_hz as 15MHZ so as to drive
SPI-ADC-0 & SPI-ADC-1 respectively in PARALLEL

The target is to read TWO HIGH SPEED SPI-ADC with approx 24ksps from kernel
& using PWM pin as start of conversion to ADC.

  1. Hence can both spi-controller work parallel & independently to perform ADC read
    operation ? Is there any resource shared between the controller which can create
    a bottleneck at later stage w.r.t above mentioned approach ?

  2. How can we achieve STREAMING data capture from the SPI interface ?
    Idea is to not loose the data from both the interface ?
    ( One idea is to have some sort of buffering in hardware / kernel )

  3. Can team let us know how any sample code / reading material to
    configure ( frequency & duty cycle ) & make use of any PWM pin
    from kernel ?

Thanks ,

Ashish Kumar Mishra.

Dear Team ,

Could you please some any inputs

Dear Team ,
Any input on the same.

Thanks ,
Ashish Kumar Mishra.

  1. Hence can both spi-controller work parallel & independently to perform ADC read operation ?

Yes, I would assume so.

Is there any resource shared between the controller which can create a bottleneck at later stage w.r.t above mentioned approach ?

No, we are not aware of any such.

  1. How can we achieve STREAMING data capture from the SPI interface ?

I don’t think any such is directly implemented by the Linux SPI subsystem. You may of course queue multiple separate transfers.

Idea is to not loose the data from both the interface ? ( One idea is to have some sort of buffering in hardware / kernel )

Makes sense.

  1. Can team let us know how any sample code / reading material to configure ( frequency & duty cycle ) & make use of any PWM pin from kernel ?

Please have a look at the following article on our developer website for more information about PWM usage in our Embedded Linux BSPs.

Thanks Marcel