How to add a spi master without enabling spidev
by Cranegsh from LinuxQuestions.org on (#6HJ48)
Hello,
I am using 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.
I am referring to the method mentioned at this link https://embetronicx.com/tutorials/li...iver-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.
#dtoverlay=spi1-1cs,cs0_spidev=disabled
dtoverlay=spi1-1cs
cs0_spidev=disabled
Although spidev1.0 is created, when loading the module, the error says "chip select 0 is in use".
I suspect that spidev can not be enabled. But if it is not enabled, when loading the module, I got another error "SPI master not found".
So, how to make spi master available without adding spidev? I couldn't yet find any information that is really relevant.
Anyone can point to the direction to find it out?
Thanks!
Crane
I am using 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.
I am referring to the method mentioned at this link https://embetronicx.com/tutorials/li...iver-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.
#dtoverlay=spi1-1cs,cs0_spidev=disabled
dtoverlay=spi1-1cs
cs0_spidev=disabled
Although spidev1.0 is created, when loading the module, the error says "chip select 0 is in use".
I suspect that spidev can not be enabled. But if it is not enabled, when loading the module, I got another error "SPI master not found".
So, how to make spi master available without adding spidev? I couldn't yet find any information that is really relevant.
Anyone can point to the direction to find it out?
Thanks!
Crane