FelSM Posted September 23, 2023 Posted September 23, 2023 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 0 Quote
Gunjan Gupta Posted September 26, 2023 Posted September 26, 2023 @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. 1 Quote
Gunjan Gupta Posted September 26, 2023 Posted September 26, 2023 @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? 0 Quote
SteeMan Posted September 26, 2023 Posted September 26, 2023 Topic moved and appropriate tag added. 2 Quote
FelSM Posted October 7, 2023 Author Posted October 7, 2023 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. 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.