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

Troubleshooting • Re: ILI9341 SPI display with SPI5

$
0
0
Sorry i'm new to device tree overlays and drivers, etc.

So i managed to find some previous posts where you outlined what you've done to get them working several times so I understand your frustration. But thanks for sharing your knowledge I really appreciate it.

I now understand that fbtft is no longer supported but you can get SPI displays to work by writing your own overlay.

This is the one I have written however I am no expert and it doesn't seem to work. Does anything seem to stand out to you?

Code:

/dts-v1/;/plugin/;/ {    compatible = "brcm,bcm2835";    fragment@0 {        target = <&spi5>;        __overlay__ {            #address-cells = <1>;            #size-cells = <0>;            ili9341@1 {                compatible = "ilitek,ili9341";                reg = <1>;  // Chip select 1                spi-max-frequency = <32000000>;  // Max SPI frequency for ILI9341                reset-gpios = <&gpio 23 1>;  // Active HIGH                dc-gpios = <&gpio 24 1>;     // Data/Command pin, active HIGH                led-gpios = <&gpio 18 1>;    // LED backlight, active high                rotation = <270>;  // Optional: Define rotation if needed                buswidth = <8>;    // ILI9341 is commonly used with 8-bit parallel data                bgr;                fps = <60>;  // Frames per second            };        };    };};

Statistics: Posted by botoxparty — Mon May 06, 2024 8:39 pm



Viewing all articles
Browse latest Browse all 4919

Trending Articles