Hi,
For this example, I’ve using SPI 1 - Chip-Select 0 (or /dev/spidev1.0), configured to work at 10 MHz, 16-bit per word, Most Significant Bit First, CPOL=0 e CPHA=0. In the end of this question is the configuration of this node in device-tree.
In the images showed below, please observe of this sequence of the signals, from top to bottom:
- Chip-Select
- Clock
- MOSI
I’m facing a problem here, which is a “peak” of the Chip-Select signal during a SPI transfer.
See below:
[upload|B+nctXVDVTTm9vJ7oroUCeksPCY=]
What could be causing that? It is not occurring all the time, but can mess with the functioning of the other peripheral I’ll be using in the other side.
Plus, another problem is a persistent “High” signal between words in a SPI Transfer.
In a transfer that the Chip-Select behave “normally”, I’ve got this result:
[upload|+52jZyL0qjCEzvlFLvNlBUUlZEU=]
Please, observe the “High” signal between words of 0x0000.
I’m using the linux-toradex 4.4-next branch.
According to @gafernandes, I’ve configured the spidev1.0 like this way in device-tree, hoping to fix the “clock” issue between two consecutive words.
&dspi1 {
status = "okay";
/* This will create /dev/spidev1.0 */
spidev10: spidev1@0 {
compatible = "toradex,evalspi";
reg = <0>;
spi-max-frequency = <10000000>;
fsl,spi-cs-sck-delay = <100>;
fsl,spi-sck-cs-delay = <50>;
status = "okay";
};
What could be causing the peak of chip-select?
Is it normal to have this “high” signal between words?
Is there any way to fix this issues?
Thanks for your attention,
Andre Curvello