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.

Lime 2 emmc and 2 spi bus

Featured Replies

Hello !

In my project I need use 2 spi bus : /dev/spidev1.0 and /dev/spi2.0

/dev/spidev1.0 for 3.5inch rpi display

and

/dev/spidev2.0 for 8x8 led matrices, such as  MAX7219-8x32-MCU-Drive-LED

If I am use legacy kernel   (3.4.113-sun7i) both spi buses work well

But if use mainline kernel (4.14.18-sunxi), I can use only 1 spi bus

This is my armbianEnv.txt:

   overlays=spi-spidev spi1 spi2
   param_spidev_spi_bus=1

In this case I can use /dev/spidev1.0

If I set

   param_spidev_spi_bus=2

I can use /dev/spidev2.0

 

How to enable 2 spi buses at the same time ?

 

 

The MAX7219 can easily be driven with bit banging (see my Arduino implementation here: https://github.com/bitbank2/max7219), but you raise a good question. I don't see in the documentation how it would be possible to enable both SPI bus 0 and 1 on AllWinner boards using the device tree overlays text file.

 

@tkaiser Do you know how to specify both buses to be enabled?

 

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.