Re: Kernel doesn't call spi driver's _match() and _attach()

Valery Ushakov <[email protected]>
Newsgroups gmane.os.netbsd.devel.kernel
Message-ID <[email protected]>
On Mon, Sep 16, 2024 at 23:16:18 +0300, Nikita Donskov wrote:

> Spi is configured by default in sys/arch/evbarm/conf/RPI config file nearly
> the same way, as i2c:
> 	# Broadcom Serial Control (I2C)
> 	bsciic* at fdt?
> 	iic* at i2cbus?
> 	...
>
> 	# SPI controller
> 	bcmspi* at fdt?
> 	spi* at spibus?

I don't know much about SPI and FDT (my mental model is that FDT is
kinda like an externalized OFW device tree :), but the fact that
bcmspi is not attached might indicate that the FDT blob that you used
to boot your board doesn't declare that it's there.  You might want to
cross-check it.

If I'm not mistaken, the sources are in sys/external/gpl2/dts/dist


> What I've tried to do is creating /dev/spiu device node manually:

Nodes in /dev are just a way for userland programs to open the devices
and don't affect the autoconfiguration process in any way.


-uwe
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.