adif Posted December 21, 2024 Posted December 21, 2024 I'm trying to configure the CS (Chip Select) pin on my Orange Pi Zero 3. I added overlays=spi-spidev to the /boot/armbianEnv.txt file, created my own dtbo file, and tried all possible methods suggested by ChatGPT. I've been struggling for two weeks with no success. I haven't been able to switch the CE1 pin to alt4 state; it only stays off, nothing else. Is it even possible to work with SPI on this board? 0 Quote
SteeMan Posted December 21, 2024 Posted December 21, 2024 Moved to the correct forum (community support). This is not a supported board. Adjusted the tag to reflect the correct board. 0 Quote
WDR_s Posted December 22, 2024 Posted December 22, 2024 (edited) Did you get it to work? Edited December 22, 2024 by WDR_s 0 Quote
adif Posted December 22, 2024 Author Posted December 22, 2024 CLK, MOSI, MISO is work, but CS not work. In gpio readall : CLK1 - ALT4, MOSI1 - ALT4, MISO1-ALT4, but CE1 - OFF. How change mode CE1 to ALT4? 0 Quote
mantouboji Posted December 23, 2024 Posted December 23, 2024 yeah, SPI in Zero3 can't work, but works in Zero2W . 0 Quote
mantouboji Posted December 23, 2024 Posted December 23, 2024 But maybe I found the mistake: In DT overlay of H616, some developer set spidev devices to compate with "rohm,dh2228fv", maybe he attached a DH2228FV DAC chip? change all of sun50i-h616-spi* dts files to `compatible = "armbian,spi-dev"; ` 0 Quote
mantouboji Posted December 23, 2024 Posted December 23, 2024 It seems the CS pin is not configured in the dts overlay . I tried to add them and failed. 0 Quote
adif Posted December 23, 2024 Author Posted December 23, 2024 i'm change all of sun50i-h616-spi* dts files to`compatible = "armbian,spi-dev" but nothing. CS is OFF! Maybe the reason is that it's called CE. In gpio readall CS is name CE. 0 Quote
Solution mantouboji Posted December 24, 2024 Solution Posted December 24, 2024 (edited) I modified the sun50i-h616-spidev1_1 dts file , it seems work. sun50i-h616-spidev1_1.dtbo sun50i-h616-spidev1_1.dtso sun50i-h616-spi-spidev.dtbo sun50i-h616-spi-spidev.dtso Edited December 24, 2024 by mantouboji add screen capture 0 Quote
adif Posted December 24, 2024 Author Posted December 24, 2024 (edited) It's working! Thank you so much, you've been a huge help. These challenges have really helped me understand device trees and hardware configuration. This forum is amazing! Edited December 24, 2024 by adif 0 Quote
robertoj Posted December 26, 2024 Posted December 26, 2024 👍🏽 This is a problem with a specific dts meant for the spidev driver, because I am using the spi1 bus with 2 chip selects everyday with my LCD, which doesn’t use the spidev driver (uses dedicated LCD-spi driver). Do you have an older orange pi zero 3 Armbian image, and see if it works normally? can you rebuild Armbian with ./compile.sh, choose Linux edge (latest) and see if it works normally? 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.