I managed to find out the corrrect display initialization.
I looked at the original fbtft.dts file and I add this:
I add the ssd entry to the display pool referring to the fragment 32 just added:then in /boot/overlays:
I looked at the original fbtft.dts file and I add this:
Code:
/* SSD2119 */fragment@32 {target = <&display>;__dormant__ {compatible = "solomon,ssd1289";spi-max-frequency = <16000000>;width = <320>;height= <240>;regwidth= <16>; setaddrwin= <2>;buswidth = <8>;init = <0x01000010 0x00010x0100001e 0x00b20x01000028 0x00060x01000000 0x00010x01000001 0x30ef0x01000002 0x06000x01000010 0x00000x020000640x01000011 0x6a300x01000007 0x00330x0100000c 0x00050x01000030 0x00000x01000031 0x01010x01000032 0x01000x01000033 0x03050x01000034 0x07070x01000035 0x03050x01000036 0x07070x01000037 0x02010x0100003a 0x12000x0100003b 0x09000x0100000d 0x000a0x0100000e 0x2e000x0100000f 0x00010x01000041 0x00000x01000042 0x00000x01000044 0xef000x01000045 0x00000x01000046 0x013f0x0100004e 0x00000x0100004f 0x00000x01000022 >;>;
Code:
ssd2119 = <0>, "+32";
in /boot/firmware/config.txtsudo dtc -@ -I dts -O dtb -o fbtft.dtbo fbtft.dts
sudo dtoverlay -d . fbtft.dtbo
dtparam=spi=on
dtoverlay=fbtft,spi0-0,ssd2119,dc_pin=24,reset_pin=25,width=320,height=240,rotate=0,buswidth=8,fps=25,speed=16000000
Statistics: Posted by Manfre90 — Sat Apr 13, 2024 6:13 am