Spi driver doesn't appear in dev folder

Hi all. I have a big problem and I don’t understand which could be the solution.
I have a mangOH green and a module wp7607. I have to use IoT slot for CABbus, but I can’t make available SPI bus!
I compiled a mangOH update file and I downloaded the 13 fw version. When enter in the board through ssh command, I can’t see SPI drivers in dev folder:
image ù

image

What I should to do in order to solve the problem?

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

Yes, I obtain:

Then it is not related

in fact I still can’t see SPI driver in dev folder…how can I see to include SPI?

Didn’t /dev/spidev1.0 is the device node and it appears in your log?

Hi @ga.imparato ,

Can you try running start_can.sh script without installing spisvc module ?

You could get spidev configurations over here

root@swi-mdm9x28-wp:/sys/module/spidev/parameters# ls
bufsiz busnum chipselect maxspeed spimode
root@swi-mdm9x28-wp:/sys/module/spidev/parameters# cat chipselect
-1
root@swi-mdm9x28-wp:/sys/module/spidev/parameters# cat spimode
3
root@swi-mdm9x28-wp:/sys/module/spidev/parameters# cat maxspeed
10000000
root@swi-mdm9x28-wp:/sys/module/spidev/parameters# cat bufsiz
40960
root@swi-mdm9x28-wp:/sys/module/spidev/parameters# cat busnum
-1

Regards

  • Akshay

Thanks for your answer. I have a doubt: is spimode 3 compatible with the required one by the hw talon? Because I read this:
image

Anyway the result of the script start_can.sh Is the same even if I don’t activate the SPI

can anyone help me? I’m blocked on this problem…

@ga.imparato ,
Can you try with another IOT card ? Sometimes i had faced issue with the slots on mangoh board as well . Also Do post your SW401 (switch) configurations ?

I solved the problem. The issue was that the metallic dissipator wasn’t well injected