Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

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

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

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.