Dragonboard 410c SPI not enabling


#1

So I have followed everything from the Enable SPI page on the documentation and can not get /dev/spidev to appear

Here is my kernel diff

diff --git a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi b/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi
index c99fc9a..153954c 100644
--- a/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi
+++ b/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi
@@ -133,12 +133,28 @@
                /* On High speed expansion */
                        label = "HS-SPI1";
                        status = "okay";
+                       cs-gpios = <&msmgpio 10>;
+
+                       spidev@0 {
+                               compatible = "spidev";
+                               spi-max-frequency = <500000>;
+                               req = <0>;
+                       };
+
                };
 
                spi@78b9000 {
                /* On Low speed expansion */
                        label = "LS-SPI0";
                        status = "okay";
+                       cs-gpios = <&msmgpio 18 0>;
+
+                       spidev@0 {
+                               compatible = "spidev";
+                               spi-max-frequency = <100000>;
+                               req = <0>;
+                       };
+
                };
 
                leds {
@@ -486,6 +502,28 @@
        };
 };
 
+/* on low speed header */
+&blsp_spi5 {
+       status = "okay";
+       spidev@0 {
+               compatible = "spidev";
+               spi-max-frequency = <100000>;
+               req = <0>;
+       };
+};
+
+/* on High speed header */
+&blsp_spi3 {
+       status = "okay";
+       spidev@0 {
+               compatible = "spidev";
+               spi-max-frequency = <500000>;
+               req = <0>;
+       };
+};

and all I get is this

root@linaro-alip:~# dmesg | grep spi
[    1.349841] spi_qup 78b7000.spi: IN:block:16, fifo:64, OUT:block:16, fifo:64
[    1.349924] OF: /soc/spi@78b7000: arguments longer than property
[    1.356071] spi_qup: probe of 78b7000.spi failed with error -22
[    1.362705] spi_qup 78b9000.spi: IN:block:16, fifo:64, OUT:block:16, fifo:64
[    1.367917] spi_master spi0: /soc/spi@78b9000/spidev@0 has no valid 'reg' property (-22)
[    1.374906] spi_master spi0: Failed to create SPI device for /soc/spi@78b9000/spidev@0

I have tried various device tree configuration and the forum seems to be all over the place from last year of trying to get SPI to work on people boards

Also modprobe spidev didn’t help neither

I need both clock selects as well

Any help/direction would be greatly appreciated

This is all using the latest 18.01 builds as well


#2

I realized I put req and not reg … ouch, my bad|


#3

Awesome. Glad you fixed this!