Jump to content

[Invalid] - RockPi4 : activate SPI (gpio, not flash)


Piscenois

Recommended Posts

Hi !

 

I spent several hours looking for the solution, here and elsewhere, I didn't find. :unsure:
 

The Radxa wiki speaks about 2 SPI: 1 and 2

 

The device tree README speaks about 4 SPI:

SPI 0 pins (MOSI, MISO, SCK, CS): GPIO3_A5, GPIO3_A4, GPIO3_A6, GPIO3_A7
SPI 1 pins (MOSI, MISO, SCK, CS): GPIO1_A7, GPIO1_B0, GPIO1_B1, GPIO1_B2
SPI 2 pins (MOSI, MISO, SCK, CS): GPIO1_C0, GPIO1_B7, GPIO1_C1, GPIO1_C2
SPI 3 pins (MOSI, MISO, SCK, CS): GPIO2_B2, GPIO2_B1, GPIO2_B3, GPIO2_B4

 

So, the correspondence seems to be:

radxa SPI 1 <=> DT SPI 1

radxa SPI2 <=> DT SPI 3

 

With the latest kernel (5.10.12-rockchip64, Debian buster I tried these configurations:

overlays=spi-dev
param_spidev_spi_bus=3

and

overlays=spi-dev spi-add-cs1
param_spidev_spi_bus=1
param_spidev_spi_cs=1

 

The first doesn't boot and the second gives the error:

[    2.500481] rockchip-spi ff1d0000.spi: cs1 >= max 1
[    2.500499] spi_master spi1: spi_device register error /spi@ff1d0000/spidev
[    2.500516] spi_master spi1: Failed to create SPI device for /spi@ff1d0000/spidev

 

I didn't tried the SPI1 because I boot on NVME (SPI1 flash). But this is not mandatory. I could use an SD card or eMMC to boot if it is necessary.

 

Please, how can I achieve the desired configuration: activate GPIO SPI ? ^_^

 

Regards

Link to comment
Share on other sites

Your issue report is invalid for one or multiple reasons (non-exhaustive enumeration):

 

  • it has been stated at the wrong place
  • it lacks fundamental requested data
  • it could have been easily solved by a quick search and/or reading documentation

 

Since you refused to use the bug reporting form carefully and follow the information there as you have been asked for we have no intention to further investigate.

 

https://www.armbian.com/bugs

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines