Jump to content

Recommended Posts

Posted

I am working on a project with armbian 23.8.1 embedded in a banana pi m2 zero. I need to use the spi 0 with the two select chips. When I initialize I can only initialize spidev0.0 or spidev 0.1. There is no way that can initialize both.

Configure the armbianEnv.txt file with the following parameters:

overlays= spi-add-cs1 spi-spidev
param_spidev_spi_bus=0
param_spidev_spi_cs=1

Also try other combinations and nothing. 

 

Then try to modify the .dtb file by adding cs-gpios and changing status = "okay" but it doesn't work

archivo dts modificado-no funciona.PNG

Posted

@FelSM The format you have used to define gpios for cs-gpios format seems bit odd to me. May be it is just my lack of knowledge, not 100% sure. Generally for allwinner boards, the format I have seen contains 4 parameter i.e. reference to pinctrl node either &pio or &r_pio, pin line number, gpio number and then state. You only have mentioned 3 parameters which makes me a bit confused about what pins you are trying to use as chip selects here.

Posted

@WernerI believe this should be in the board forum if we have one for Banana Pi M2 zero, or atleast in allwinner unsupported forum. Doesn't seem like a userspace question to me. I don't have the privileges to move it. Could you please do the honors? :) 

Posted

Sorry, I'm new. I tried to change the tag but couldn't so I created a new post. If any moderator can delete this post, I would appreciate it.

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