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 1 1,881 09-25-2026, 11:19 PM
Last Post: mysy
  Rock64 won't boot luminosity7 10 20,198 03-16-2024, 08:33 AM
Last Post: dmitrymyadzelets
  Rock64 doesn't boot dstallmo 1 5,319 03-16-2024, 08:29 AM
Last Post: dmitrymyadzelets
  Boot from SPI first mjnck 1 6,424 02-29-2024, 02:12 PM
Last Post: reukiodo
  ROCK64 v3 can it boot from USB? Tsagualsa 4 11,098 11-29-2022, 11:31 AM
Last Post: Macgyver
  Rock64 u-boot for eMMC Build Error mexicanflyer 0 4,938 09-18-2022, 02:29 PM
Last Post: mexicanflyer
  Rock64 enable 1-wire to read DS18B20 or Dallas temperature sensor Perry 2 6,075 02-12-2021, 08:02 PM
Last Post: Perry
  boot hdd usb3 philipe 1 5,276 01-27-2021, 02:12 PM
Last Post: tllim
  Libreelec Rock64 - 4GB no boot spiker15 3 8,437 11-02-2020, 12:36 AM
Last Post: wilsonYan
  Rock64 - boot helpmerock 2 6,349 10-08-2020, 01:29 PM
Last Post: helpmerock

Forum Jump:


Users browsing this thread: 1 Guest(s)