Spidev not found on WP7607

Hello,

I want to activate the spidev with modprobe command and than I got the message that
modprobe: module spidev not found in modules.dep
Moreover, when I execute the dmesg command it appears that the system cannot bound correctly with the device tree. hereafter what I got when I execute this command :
root@swi-mdm9x28:/# dmesg | grep spi
[ 0.963413] of_get_named_gpiod_flags: can’t parse ‘qcom,gpio-clk’ property of node ‘/soc/spi@78b6000[0]’
[ 0.963432] of_get_named_gpiod_flags: can’t parse ‘qcom,gpio-miso’ property of node ‘/soc/spi@78b6000[0]’
[ 0.963445] of_get_named_gpiod_flags: can’t parse ‘qcom,gpio-mosi’ property of node ‘/soc/spi@78b6000[0]’
[ 0.963457] of_get_named_gpiod_flags: can’t parse ‘qcom,gpio-cs0’ property of node ‘/soc/spi@78b6000[0]’
[ 0.963468] of_get_named_gpiod_flags: can’t parse ‘qcom,gpio-cs1’ property of node ‘/soc/spi@78b6000[0]’
[ 0.963480] of_get_named_gpiod_flags: can’t parse ‘qcom,gpio-cs2’ property of node ‘/soc/spi@78b6000[0]’
[ 0.963491] of_get_named_gpiod_flags: can’t parse ‘qcom,gpio-cs3’ property of node ‘/soc/spi@78b6000[0]’

Can you please help me with that. Thank you

Any idea about this issue please ?

Are you using the release 8 firmware for WP76?

yes, I am using the last one 18.01.0_607d14ac5f0edd90fada704659a46736.

this is what I got as logread when starting the spiService API :

Mar 14 15:50:04 swi-mdm9x28 user.warn Legato: -WRN- | supervisor[678]/supervisor T=main | proc.c GetWatchdogAction() 359 | spiService watchdogAction ‘’ in proc section
Mar 14 15:50:04 swi-mdm9x28 user.warn Legato: -WRN- | supervisor[678]/supervisor T=main | proc.c GetWatchdogAction() 359 | spiService watchdogAction ‘’ in proc section
Mar 14 15:50:04 swi-mdm9x28 user.err Legato: =ERR= | supervisor[678]/supervisor T=main | app.c GetDevID() 644 | Could not get file info for ‘/dev/spidev0.0’. No such file or directory.
Mar 14 15:50:04 swi-mdm9x28 user.err Legato: =ERR= | supervisor[678]/supervisor T=main | app.c SetCfgDevicePermissions() 754 | Failed to set permissions (rw) for app ‘spiService’ on device ‘/dev/spidev0.0’.

I think the spidev1.0 is the used one by the WP76 not the spidev0.0. Do you know how to change that ?

Hi @Souhail, I have Mangoh. RED - WP7609 with exactly same problem!!

I built my own image yocto_wp76xx.4k.cwe from Legato-Dist-Source-mdm9x28-SWI9X07Y_02.28.03.05.tar.bz2 (R13.3) without any modification and spidev0.0 is not in /dev/.

after burn image, on target: $ dmesg | grep spi

[ 0.978430] of_get_named_gpiod_flags: can’t parse ‘qcom,gpio-clk’ property of node ‘/soc/spi@78b6000[0]’
[ 0.978446] of_get_named_gpiod_flags: can’t parse ‘qcom,gpio-miso’ property of node ‘/soc/spi@78b6000[0]’
[ 0.978459] of_get_named_gpiod_flags: can’t parse ‘qcom,gpio-mosi’ property of node ‘/soc/spi@78b6000[0]’
[ 0.978470] of_get_named_gpiod_flags: can’t parse ‘qcom,gpio-cs0’ property of node ‘/soc/spi@78b6000[0]’
[ 0.978482] of_get_named_gpiod_flags: can’t parse ‘qcom,gpio-cs1’ property of node ‘/soc/spi@78b6000[0]’
[ 0.978493] of_get_named_gpiod_flags: can’t parse ‘qcom,gpio-cs2’ property of node ‘/soc/spi@78b6000[0]’
[ 0.978505] of_get_named_gpiod_flags: can’t parse ‘qcom,gpio-cs3’ property of node ‘/soc/spi@78b6000[0]’

Same as you!

Looks like a dts issue!

Did you solve this issue?

How about doing the following?

root@swi-mdm9x28-wp:~# insmod /mnt/legato/system/modules/spisvc.ko

root@swi-mdm9x28-wp:~#

root@swi-mdm9x28-wp:~# ls /dev/spidev1.0

/dev/spidev1.0

root@swi-mdm9x28-wp:~#

root@swi-mdm9x28-wp:~# cm info

Device: WP7608

IMEI: 352913090100734

IMEISV: 6

FSN: XG805285330204

Firmware Version: SWI9X07Y_02.28.03.03 000000 jenkins 2019/05/21 03:33:04

Bootloader Version: SWI9X07Y_[ 5351.653591] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(rx:0 tx:2) mode:FIFO slv_addr:0x3a MSTR_STS:0x0c1300c8 OPER:0x00000090

02.28.03.03 000000 jenkins 2019/05/21 03:33:04

[ 5351.672125] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(rx:0 tx:2) mode:FIFO slv_addr:0x3a MSTR_STS:0x0c1300c8 OPER:0x00000090

MCU Version: 002.011

PRI Part Number (PN): 9907762

PRI Revision: 001.001

Carrier PRI Name: GENERIC

Carrier PRI Revision: 002.068_000

SKU: 1103788

Last Reset Cause: Reset, User Requested

Resets Count: Expected: 494 Unexpected: 9

root@swi-mdm9x28-wp:~#

root@swi-mdm9x28-wp:~# legato version

19.02.0_51b4a2be75dcffede8b1f4e3a2533a1d_modified

insmod /mnt/legato/system/modules/spisvc.ko solve this problem!!!

Thank you @jyijyi

any sample code available for SPI

You can see here