Re: Can't get SPI to work

[email protected] (Michael van Elst)
Newsgroups gmane.os.netbsd.devel.kernel
Organization Serpens User Group
Message-ID <[email protected]>
[email protected] ("Nikita Donskov") writes:

>from RPI's firmware repo:
>https://github.com/raspberrypi/firmware/blob/master/boot/overlays/spi1-1cs.=
>dtbo

Maybe spi0-1cs.dtbo works better.


>	dtoverlay=3Dspi1-1cs,cs0_spidev=3Doff

The *spidev* attributes are for Linux and the Linux driver.

You can use http://cdn.netbsd.org/pub/NetBSD/misc/mlelstv/spi.dtbo,
the source is http://cdn.netbsd.org/pub/NetBSD/misc/mlelstv/spi.dts:

/dts-v1/;
/plugin/;

/ {
	compatible = "brcm,bcm2835";

	fragment@0 {
		target = <&spi>;

		__overlay__ {
			status = "okay";
			pinctrl-names = "default";
			pinctrl-0 = <&spi0_gpio7>;
		};
	};
};


Greetings,
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.