adif Posted Saturday at 04:52 PM Posted Saturday at 04:52 PM 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 Saturday at 05:05 PM Posted Saturday at 05:05 PM 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 Sunday at 01:13 AM Posted Sunday at 01:13 AM (edited) Did you get it to work? Edited Sunday at 01:15 AM by WDR_s 0 Quote
adif Posted Sunday at 10:33 AM Author Posted Sunday at 10:33 AM 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 Monday at 08:21 AM Posted Monday at 08:21 AM yeah, SPI in Zero3 can't work, but works in Zero2W . 0 Quote
mantouboji Posted Monday at 09:13 AM Posted Monday at 09:13 AM 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 Monday at 03:26 PM Posted Monday at 03:26 PM It seems the CS pin is not configured in the dts overlay . I tried to add them and failed. 0 Quote
adif Posted Monday at 06:10 PM Author Posted Monday at 06:10 PM 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 16 hours ago Solution Posted 16 hours ago (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 16 hours ago by mantouboji add screen capture 0 Quote
adif Posted 15 hours ago Author Posted 15 hours ago (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 15 hours ago by adif 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.