Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 5020

Automation, sensing and robotics • Re: Problems to use Raspberry Pi Zero 2W with SPI Module ST7796

$
0
0
..
my question is, does the 4bin.bin file have any configuration for the display to connect to SPI0 by default? and if so how can I change it so that I can connect my display through SPI1?
no, that bin file has initialization commands for the display only. It has no idea which SPI interface will use the display.

Connect your display to SPI-0, check if it works. Then move it to another port.

Or, write a custom overlay for using SPI-1. Sorry, I din't find it were intuitive to make use of several overlays for getting things running, hence I prefer to have custom ones.
The overlay.in viewtopic.php?t=380704#p2276740 gibes you an idea. Adopt the stock SPI-1 in the same way.

And ... If things stopped working when you started using your custom PCB you should check yoir design!
I have been checking information about the driver and I have found that in the file mipi-dbi-spi.dtbo there is a line “target-path = ‘spi0/spidev@0’;” which I think is the one that sets the display on the SPI0, I checked all the connections and everything seems to work.

I have several errors with my SPI because it generates conflicts with W5500 also connected in SPI0, do you know how I can edit this file to make it work in my case? I found this repository and I thought about modifying it and generate a new compiled file.

https://github.com/raspberrypi/linux/bl ... verlay.dts

Statistics: Posted by Juancho1998 — Tue Jan 21, 2025 7:11 am



Viewing all articles
Browse latest Browse all 5020

Trending Articles