Hi,
I need a second SPI chip select for our application. Both SPIs should be triggered by an interrupt and the data should be read with DMA.
I’d prefer to use le_gpio7 for the second chip select so I can test it on the mangoYellow before the real hardware arrives.
I know that I have to adjust the device tree, but unfortunately I don’t know which files and I don’t know which value.
I already read every thread about a second SPI in this forum, but unfortunately nobody mentions which file I have to change. Also nobody added DMA or an IRQ.
Which file do I have to modify for the chips selects?
what do I have to adjust in this file to get gpio7 or preferably a pin from the outer ring of the module to be set up as a chip select?
What do you mean? Triggering the chip select with a manual write via sysfs?
I already tried that and it’s way to slow. I need the fastest way to handle this. The fastest way should be a native chip select so I can use it with the IIO interface. Therefore I also need a interrupt pin, which also needs to be setup in the device tree, as far as I’m aware.
yes, but it’s way to slow.
The interrupt latency is jittering between 5us (which would be good) and 2.4ms (which is way to slow).
Also reading without DMA put a break between every byte that is around 2.2us long, which is also way to slow, because reading 512 bytes then takes around 4.1 ms. So over two thirds of the time is spend in this breaks.
I need a native second SPI chip select. Otherwise I won’t be able to write 2 IIO drivers for the 2 sensors connected.
The IIO interface and it’s ringbuffers and triggers should be able to mitigate all other problems regarding latency (as far as I’m aware).
So the question is: Which is the correct dts file to adjust?