Add SPI devices in devicetree

This commit is contained in:
Joris van Rantwijk 2024-10-04 17:14:47 +02:00
parent 8e58cdfefc
commit fe9d56c161
1 changed files with 15 additions and 0 deletions

View File

@ -169,6 +169,21 @@
status = "okay";
is-decoded-cs = <0>;
num-cs = <3>;
// The SPI ports of both ADC chips on the Red Pitaya 4-input board
// are connected, via the FPGA, to the PS SPI0 master.
adca@0 {
// We use a fake compatible string to work around
// a limitation in the Linux spidev driver.
compatible = "rohm,dh2228fv";
reg = <0>;
spi-max-frequency = <4000000>;
};
adcb@1 {
compatible = "rohm,dh2228fv";
reg = <1>;
spi-max-frequency = <4000000>;
};
};
&spi1 {