This is a cache of https://discuss.96boards.org/t/dragonboard-spi-support/212. It is a snapshot of the page at 2024-10-31T02:52:53.641+0000.
<strong>dragonboard</strong> SPI support - <strong>dragonboard</strong>410c - 96Boards Forum

dragonboard SPI support

Is SPI supported with the dragonboard and the latest Ubuntu release? I can compile and load the spidev.ko user-space driver, but I assume some additional configuration needs to be done. I suppose I could bitbang with GPIO, but I’d rather use a SPI driver. Any suggestions for next steps?

you should enable the following config to add SPI support
CONFIG_SPI_QUP=y

On boot you would see something like this:
[ 1.837105] spi_qup 78b7000.spi: IN:block:16, fifo:64, OUT:block:16, fifo:64
[ 1.837847] spi_qup 78b7000.spi: registered master spi32766 (dynamic)

the SPI info is arch/arm64/boot/dts/qcom/msm8916.dtsi

Notice that you will only see the “registered master” message if you enabled the SPI debug feature. Also this enabled SPI1 which is accessible from the HS connector pins.

If you’d rather use the controller in the LS connector, you will need to modify pq8016-sbc.dtsi

diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi b/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi
index 077bd61..d290bfb 100644
--- a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi
+++ b/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi
@@ -136,7 +136,7 @@
        pinctrl-1 = &lt;&amp;blsp1_uart1_sleep&gt;;
 };
 
-&amp;blsp_spi3 {
+&amp;blsp_spi5 {
        status = &quot;okay&quot;;
 };

The kernel config changes will be available in the next release.

Thanks! Any idea when the next release will be available?

having talked to the development team I believe the intention is to have something ready at the end of this month - having said that there are not firm schedules or delivery dates on this project that I am aware of.