I see 3 devices in spidev, they are;
/dev/spidev1.0 /dev/spidev2.0 /dev/spidev2.1 /dev/spidev3.0 /dev/spidev3.1
and I have folder which is /sys/class/spi_master and there are 3 file spi1, spi2 and spi3. There is no spi_slave file in /sys/class folder. And also when I was trying spidev module, all of them(spi1,2 and 3) were master. So, how can I change property of spi’s to slave?
Have a check below document
NVIDIA Tegra124 SPI Slave controller.
Required properties:
- compatible : should be "nvidia,tegra124-spi-slave".
- reg: Should contain SPI registers location and length.
- interrupts: Should contain SPI interrupts.
- nvidia,dma-request-selector : The Tegra DMA controller's phandle and
request selector for this SPI controller.
- nvidia,clk-pin: Name of the tegra pin selected for controller clock input.
It is require to disable external clock while programing/resetting
the controller.
Recommended properties:
- spi-max-frequency: Maximum SPI clocking speed of device in Hz. For slave,
It must be at least 1.5 times bus rate.
Optional properties:
- nvidia,clock-always-on: Enable clock of spi always.
- nvidia,maximum-dma-buffer-size: Maximum dma buffer size per transfer.
If this is not available then 16K will be default. The value should
This file has been truncated. show original