Closed hwmland closed 1 year ago
Due to "reasons" you need to specify both compatible strings with a NUL character as separator.
A DT overlay would have had this as: compatible = "rpi-display", "panel-mipi-dbi-spi";
This is one incantation that I have used (rpi-display.bin):
dtoverlay=mipi-dbi-spi,spi0-0,speed=70000000
dtparam=compatible=rpi-display\0panel-mipi-dbi-spi
dtparam=width=320,height=240,width-mm=58,height-mm=43
dtparam=reset-gpio=23,dc-gpio=24
dtparam=backlight-gpio=18
dtparam=backlight-pwm
dtoverlay=ads7846,penirq=25,penirq_pull=2,xohms=60,pmax=255
Thank you, this does the trick. So I report ST2296S (4" LCD) working as I wish. BTW: thank you for all your grad work with small LCD in RPi!
I defined content of firmware for ST7796S driver (included - could be usefull for someone):
I defined following fragment in config.txt
When I copy st7796.bin into
/lib/firmware
aspanel.bin
, all is fine. However I see in mipi-dbi-spi-overlay.dts that it's possible to override as well 'compatible'. I hoped that with this I can have my firmware named st96.bin I'm not able to make it working. Once i write compatible=st7796 (using coma to dtoverlay or as dtparam) - LCD is not initialized, nothing in dmesg. Is it possible to specify name of firmware in config.txt? (how?)