DietPi-Config | I2C/SPI switches for Armbian kernel SBCs
Creating a bug report/issue
Required Information
-
DietPi version |
cat /boot/dietpi/.version(G_DIETPI_VERSION_CORE=8 G_DIETPI_VERSION_SUB=1 G_DIETPI_VERSION_RC=2 G_GITBRANCH='master' G_GITOWNER='MichaIng' G_LIVE_PATCH_STATUS[0]='applied' G_LIVE_PATCH_STATUS[1]='applied' G_LIVE_PATCH_STATUS[2]='not applicable' G_LIVE_PATCH_STATUS[3]='not applicable') -
Distro version |
echo $G_DISTRO_NAME $G_RASPBIAN(bullseye) -
Kernel version |
uname -a(Linux hass 5.10.63-rockchip64 #21.08.2 SMP PREEMPT Wed Sep 8 10:57:23 UTC 2021 aarch64 GNU/Linux) -
SBC model |
echo $G_HW_MODEL_NAME- ROCK64 (aarch64) -
Power supply used | (5V 3A - model SA-2412)
-
SD card used | (none - emmc 32Gb)
Additional Information (if applicable)
- Software title | (EG: Nextcloud)
- Was the software title installed freshly or updated/migrated?
- Can this issue be replicated on a fresh installation of DietPi?
- Bug report ID |
echo $G_HW_UUID
Steps to reproduce
- dietpi-config
- Display Options
- There is not a spot to enable i2c or adjust i2c frequency. What about SPI? Do I need to do anything the P5 bus?
Expected behaviour
- ...We should have the ability to enable/disable I2C and SPI. Not certain if there should be the ability to adjust the P5 bus.
Actual behaviour
- ...I cannot install a i2c or SPI display
Extra details
- ...I only have 1Gb of RAM, but I am not looking for a GUI, just CLI or stats
Many thanks for your request.
Those switches simply have not been implemented yet. On Armbian based SBCs, basically on mainline kernel based SBCs, it is usually done via device tree overlays. If we implement such a switch, we need to do it in a generic way, listing the available overlays to enable/disable individually, e.g. i2c0, i2c1, spi0, spi1, etc.
For the 64-bit Rockchip kernel, if I see it right, then basic I2C functionality should be enabled by default on the common pins. There are overlays to enable it on additional pins. See the /boot/dtb/rockchip/overlay/README.rockchip-overlays file. and the overlays in the same directory. To enable one, add in /boot/armbianEnv.txt to the overlays line (or add this line), skipping the rockchip- prefix and the .dtbo file extension, so that it looks e.g. like:
overlays=i2c7 spi-spidev