grixm Posted August 3, 2024 Posted August 3, 2024 (edited) Hi guys, I got a SPIdev overlay to work on the rock S0, figured I'd just share it here for the record, since I could have used this info myself (I spent days trying to figure it out since I had no experience with device trees or whatnot). Basically, download the attached .dts file, then run sudo armbian-add-overlay rk3308-spi2-spidev.dts I also edited /boot/armbianEnv.txt and added this line, but I'm unsure if that's actually necessary? param_spidev_spi_bus=2 This worked on Armbian 24.5.1 Noble, creating /dev/spidev2.0. You can verify that it works using this tool: https://github.com/rm-hull/spidev-test The dts file is based on this one from radxa, however changed to "fragment@" syntax like other armbian overlays: https://github.com/radxa-pkg/radxa-overlays/blob/main/arch/arm64/boot/dts/rockchip/overlays/rk3308-spi2-spidev.dts Maybe this will also work on Rock Pi S, but haven't tested. rk3308-spi2-spidev.dts Edited August 3, 2024 by grixm 0 Quote
Solution grixm Posted December 28, 2024 Author Solution Posted December 28, 2024 And here is one for SPI1: rk3308-spi1-spidev.dts 0 Quote
Meestor_X Posted December 30, 2024 Posted December 30, 2024 Interesting that you were able to get the overlay to work on Noble. Cannot get any overlay to work on bookworm 24.11.1... 0 Quote
Meestor_X Posted January 6 Posted January 6 (edited) Do you happen to know if the S0 has an ADC input? (Got the overlays working finally) Edited January 6 by Meestor_X 0 Quote
grixm Posted January 7 Author Posted January 7 (edited) No I don't think it has ADC. But you can use the numerous SPI or i2c ports to connect an external adc. Edited January 7 by grixm 1 Quote
eselarm Posted January 7 Posted January 7 The SoC has an ADC AFAIR, but it is used for 'Recovery Key' AFAIR. Look in Radxa PCB schematics to be sure. 1 Quote
Meestor_X Posted January 19 Posted January 19 (edited) Ty. I picked up a cheap sda1115 ADC which uses I2C. Will i2c on the Rock-S0 need an overlay or is it already enabled by default in armbian. Haven't figured out how to test for that yet. NM - it "just works", I didn't have to change anything or add an overlay! 🙂 Edited January 19 by Meestor_X 0 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.