Enable I2C, I2s, SPI in boot-config file?
#3
It seems that the way things are, the devices are not enablet right away. However, they can be enabled via "dts overlays", essentially additional changes to the internal "device tree" structure.

See https://github.com/ayufan-rock64/linux-b...al-devices

There is an example there of enabling a network interface. I found that I could enable the i2c-0 bus (the one on pins P3 and P5) by the following command, run as root:

enable_dtoverlay i2c0 i2c@ff150000 okay

where the names such as "i2c@ff150000" are found in the device-tree-source file on the github repository:

https://github.com/ayufan-rock64/linux-k...k3328.dtsi

Now, note that a number of GPIOs are already in use for various other purposes (the SPI for exampe is used for an on-board memory chip) and might not be readily available.

To have this happen on startup, put it into /etc/rc.local


Messages In This Thread
RE: Enable I2C, I2s, SPI in boot-config file? - by KnReLe - 07-16-2018, 07:44 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Rock64 v2.0 u-boot SPI issues ju0n 0 118 07-05-2026, 11:02 AM
Last Post: ju0n
  Rock64 won't boot luminosity7 10 17,318 03-16-2024, 08:33 AM
Last Post: dmitrymyadzelets
  Rock64 doesn't boot dstallmo 1 4,307 03-16-2024, 08:29 AM
Last Post: dmitrymyadzelets
  Boot from SPI first mjnck 1 5,486 02-29-2024, 02:12 PM
Last Post: reukiodo
  ROCK64 v3 can it boot from USB? Tsagualsa 4 9,489 11-29-2022, 11:31 AM
Last Post: Macgyver
  Rock64 u-boot for eMMC Build Error mexicanflyer 0 4,287 09-18-2022, 02:29 PM
Last Post: mexicanflyer
  Rock64 enable 1-wire to read DS18B20 or Dallas temperature sensor Perry 2 5,503 02-12-2021, 08:02 PM
Last Post: Perry
  boot hdd usb3 philipe 1 4,746 01-27-2021, 02:12 PM
Last Post: tllim
  Libreelec Rock64 - 4GB no boot spiker15 3 7,741 11-02-2020, 12:36 AM
Last Post: wilsonYan
  Rock64 - boot helpmerock 2 5,737 10-08-2020, 01:29 PM
Last Post: helpmerock

Forum Jump:


Users browsing this thread: 1 Guest(s)