Closed Barmallini closed 2 months ago
Please modify Linux Kernel configuration and device tree to generate spi0 and spi2 devices in /dev
Enable Kernel config CONFIG_SPI_SPIDEV
Set spidev node of spi0 and spi2 in device tree
Rebuild and boot Linux Kernel. spidev1.1 and spidev2.1 are generated in /dev
compatible = "spidev", default driver?
compatible = "spidev"; is also fine. Following is another sample It can generate /dev/spidev1.0, /dev/spidev2.0 for spi0 and spi2 respectively.
Not sure about
Most valuable information taked from ST wiki:
https://wiki.st.com/stm32mpu/wiki/SPI_device_tree_configuration
Actually, SPI start working. Issue with DMA. Better to say - it works with DMA (disabled by default in dts) and do not work without DMA (loose 1 byte in transaction and stuck in infinity loop, RXFIFO empty)
Unable to add spi0 and spi2 to Linux. Added status OK to dts, but no spi devices in ls /dev
Found this example: http://forum.nuvoton.com/viewtopic.php?t=11238
I need raw spi