How can I use SPI A and SPI B simultaneously on the VIM1S?

Which system do you use? Android, Ubuntu, OOWOW or others?

OOWOW(Ubuntu)

Which version of system do you use? Please provide the version of the system here:

Linux Khadas 5.15.137 #1.7 SMP PREEMPT Thu Sep 26 09:58:09 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux

Please describe your issue below:

I am using the VIM1S board.
I would like to use SPI A and SPI B simultaneously.
However, I found that there is only the spi0.dtbo file in the Overlays folder.

I believe I can use SPI B on the 30-pin IOs located on the back of the board.
I believe GPIOH_4 to GPIOH_7 pins are for SPI B.

What should I do?

I would appreciate your support.


root@Khadas:/boot/overlays/kvim1s.dtb.overlays# ls -al
total 60
drwxrwxr-x 2 root root 4096 Dec  1 20:25 .
drwxrwxr-x 3 root root 4096 Dec  1 09:35 ..
-rw-rw-r-- 1 root root  229 Sep 25 17:39 4k2k_fb.dtbo
-rw-rw-r-- 1 root root  223 Sep 25 17:39 i2cm_e.dtbo
-rw-rw-r-- 1 root root 4230 Sep 25 17:39 i2s.dtbo
-rw-rw-r-- 1 root root  226 Sep 25 17:39 onewire.dtbo
-rw-rw-r-- 1 root root  302 Sep 25 17:39 panfrost.dtbo
-rw-rw-r-- 1 root root  345 Sep 25 17:39 pwm_f.dtbo
-rw-rw-r-- 1 root root  452 Sep 25 17:39 spdifout.dtbo
-rw-rw-r-- 1 root root  417 Sep 25 17:39 spi0.dtbo
-rw-rw-r-- 1 root root  225 Sep 25 17:39 uart_c.dtbo
root@Khadas:/boot/overlays/kvim1s.dtb.overlays# 

Post a console log of your issue below:

Hello @sungchan_hwang

You can’t use it, VIM1S has only one SPICC, it is SPI_A, it is not for SPI_B.

GPIOH_4 to GPIOH_7 pins are another pinctrl of SPI_A.

Pinctrl for SPI_A, and you can only choose one:

  • spicc0_pins_z - Default
  • spicc0_pins_h
  • spicc0_pins_x

Thank you for your kind words!

Can other VIM series boards also not use SPI A and SPI B simultaneously?

T_T

Hello @sungchan_hwang

It seems only one spi is available.