Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4906

General discussion • add a spi master without enabling spidev

$
0
0
Hello,

I am using Raspberry Pi v5.15.92-v7 and would like to add a spi master without enabling spidev. Based on that, I will be able to use my own device driver.

At the beginning, I was referring to the method mentioned at this link https://embetronicx.com/tutorials/linux ... -tutorial/.
I tried the way in the link as below. By the way, putting these two statements in one line, separated by comma, doesn't work for me to create spidev1.0.

Code:

#dtoverlay=spi1-1cs,cs0_spidev=disableddtoverlay=spi1-1cscs0_spidev=disabled
Although spidev1.0 is created, it still says "chip select 0 is in use".

I suspect that spidev can not be enabled if I would like to use my own device driver on either SPI0 or SPI1.
But how to do that? I couldn't yet find any information that is really relevant.
Anyone can point to the direction to find it out?

Thanks!
Crane

Statistics: Posted by crane — Tue Jan 02, 2024 2:09 am



Viewing all articles
Browse latest Browse all 4906

Trending Articles