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.

[Rock64] How to Communicate with a SPI Device?

Featured Replies

 

I have a Rock64 v2.  For my project I wish to connect the board to an MCP3008 ADC chip via SPI so I can read some analog sensors.  Pretty straightforward.

 

But when I look at /lib/modules/4.4.178-rockchip64/kernel/drivers I see there are modules for i2c, usb, one wire, GPIO ... everything but SPI.  Am I out of luck?

 

ARMBIAN 5.75 stable Ubuntu 18.04.2 LTS 4.4.178-rockchip64

 

  • Author

I switched to Nightly, that didn't help.  But I see on github that ayufan has mainline kernels that appear to have SPI in them.  I'll read up on how to do that and give it a try.  Thanks.

  • Author
On 5/17/2019 at 7:29 AM, martinayotte said:

Armbian builds are based on Ayufan's branch. The spidev.ko module is present in DEV images. But you need to enable SPI in DeviceTree.

 

 

This suggests I should be able to do a DT overlay with 

sudo enable_dtoverlay spi0 spi@ff190000 okay

but the enable_dtoverlay command is not found.  BTW I'm a maker, not a developer, so if it seems I'm floundering here, I am :-)  It would be really sweet if the armbian-config utility included an "interfaces" option similar to what the RPi has, where you can simply toggle GPIO, SPI, i2C, etc on and off.

Sry to revive this but is it currently possible to enable spi with the current buster image or still only in dev or next images?

If yes, how?

I tried enabling via armbian-config and rebooted but ls dev/spi* shows nothing.

 

I'd like to control ws2812 led's via gpio spi.

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.