Jump to content

Orange pi zero 3 SPI cs pin


Go to solution Solved by mantouboji,

Recommended Posts

Posted

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?

Posted

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?  

Posted

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"; `

Posted

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.

Posted (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!

Screenshot 2024-12-24 122931.png

 

IMG_20241224_123632.jpg

Edited by adif
Posted

👍🏽

 

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?

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines