Jump to content

Orange Pi Zero 3 ili9486 TFT LCD


Go to solution Solved by WDR_s,

Recommended Posts

Posted
36 minutes ago, Sári Zoltán said:

Orange Pi Lite:

Different soc and even different soc family. This most likely will not work on h618.

Posted
20 hours ago, Sári Zoltán said:

Paste your custom overlay configuration for SPI, DC, and reset GPIOs

 

 

 

Share your DTS. It is the most challenging part of this. We can customize, based on SBC model.

Posted (edited)

In my first post, I shared it in a file called "spi-display-overlay.txt".
Yes, I know it’s strange that it’s in a .txt file — but it’s there nonetheless. 
But you know what? Here it is :) :
 

/dts-v1/;
/plugin/;

/ {
    compatible = "allwinner,sun50i-h616";  /* Orange Pi Lite SoC */

    fragment@0 {
        target = <&spi0>;  /* SPI0 bus */
        __overlay__ {
            status = "okay";
        };
    };

    fragment@1 {
        target = <&spi0>;
        __overlay__ {
            #address-cells = <1>;
            #size-cells = <0>;

            ili9486: ili9486@0 {
                compatible = "ilitek,ili9486";
                reg = <0>;  /* CS0 */

                spi-max-frequency = <24000000>;  /* Speed of SPI */
                rotate = <0>;
                fps = <30>;
                buswidth = <8>;
                regwidth = <16>;
                bgr = <0>;

                reset-gpios = <&pio 2 8 1>; /* PC08 */
                dc-gpios = <&pio 2 7 0>;     /* PC07 */

                init = <0x10000b0 0x00
                        0x1000011
                        0x20000ff
                        0x100003a 0x55
                        0x1000036 0x28
                        0x10000c2 0x44
                        0x10000c5 0x00 0x00 0x00 0x00
                        0x10000e0 0x0f 0x1f 0x1c 0x0c 0x0f 0x08 0x48 0x98 0x37 0x0a 0x13 0x04 0x11 0x0d 0x00
                        0x10000e1 0x0f 0x32 0x2e 0x0b 0x0d 0x05 0x47 0x75 0x37 0x06 0x10 0x03 0x24 0x20 0x00
                        0x1000036 0x28
                        0x1000011
                        0x1000029>;
            };
        };
    };
};

Edited by Sári Zoltán

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines