Jump to content

Recommended Posts

Posted (edited)

Hello, I`ll try to hook up display to OpangePi PC, But have no output.

My English is not native so i`ll try to write in simlpe way.

 

image

Armbian_23.8.1_Orangepipc_jammy_current_6.1.47_minimal.img.xz

 

my dts:

/dts-v1/;
/plugin/;
/ {
    compatible = "allwinner,sun8i-h3";
    fragment@0 {
        target = <&spi0>;
        __overlay__ {
            status = "okay";
            // cs-gpios = <&pio 0 9 0>,<&pio 0 8 0>; /* PA9=CS0 for LCD, PA8=CS1 for touch */
            display: display@0 {
                compatible = "ilitek,ili9341";
                reg = <0>;
                pinctrl-names = "default";
                spi-max-frequency = <20000000>;
                txbuflen = <65536>;
                rotate = <270>;
                bgr = <0>;
                fps = <30>;
                buswidth = <8>;
                regwidth = <16>;
                height = <480>;
                width = <320>;
                reset-gpios = <&pio 0 2 1>; /* PA20 */
                dc-gpios = <&pio 0 71 0>; /* PA10 */
                debug = <0>;
                init = <0x10000b0 0x00 // Interface Mode Control
                        0x1000011  // Sleep Out
                        0x20000ff  // Delay (255ms)
                        0x10000C0 0x0D 0x0D  // Power Control 1
                        0x10000C1 0x43  // Power Control 2
                        0x10000C5 0x00 0x48 0x80  // VCOM Control 1
                        0x10000C7 0x00  // VCOM Control 2
                        0x1000036 0x28  // Memory Access Control (Rotacao)
                        0x100003A 0x55  // Pixel Format Set (16bit)
                        0x10000B1 0xB0 0x11  // Frame Rate Control
                        0x10000F0 0x01 // Enable Extended Comand Set
                        0x10000F6 0x00 0x01 0x32 // SPI ilInterface Control
                        0x1000026 0x01 // Gamma Set
                        0x10000E0 0x0F 0x31 0x2B 0x0C 0x0E 0x08 0x4E 0xF1 0x37 0x07 0x10 0x03 0x0E 0x09 0x00  // Positive Gamma Correction
                        0x10000E1 0x00 0x0E 0x14 0x03 0x11 0x07 0x31 0xC1 0x48 0x08 0x0F 0x0C 0x31 0x36 0x0F  // Negative Gamma Correction
                        0x10000B6 0x02 0x02 0x3B  // Display Function Control
                        0x1000011  // Sleep Out
                        0x20000ff  // Delay (255ms)
                        0x1000029>; // Display ON
                };
//                xpt2046: xpt2046@1 {
//                                compatible = "ti,ads7846";
//                                reg = <1>;
//                                spi-max-frequency = <2000000>;
//                                interrupts = <0 7 2>; /* high-to-low edge triggered */
//                                interrupt-parent = <&pio>;
//                                pendown-gpio = <&pio 0 7 0>;
//                                ti,keep-vref-on = <1>;
//                                ti,x-min = /bits/ 16 <200>;
//                                ti,x-max = /bits/ 16 <3900>;
//                                ti,y-min = /bits/ 16 <200>;
//                                ti,y-max = /bits/ 16 <3900>;
//                                ti,x-plate-ohms = /bits/ 16 <60>;
//                                ti,pressure-max = /bits/ 16 <255>;
//                                ti,swap-xy = <1>;
//            };
        };
    };
};

 

when board boots, display switch from white to black. Without console output.

 

gpio readall - looks good. all pins present.

 

when I try Armbian_25.8.1_Orangepione_noble_current_6.12.43.img.xz

board boots. add overlay to it, by armbian-add-overlays

remove HDMI cable. (Really good first-config over ssh, why not to add this to other boards, like mine?)

reboot

Display works(Ony if HDMI is unpluged), with output of boot Armbian.

 

I`ll think this something wrong with output on spi LCD over OrangePi PC Armbian build, or sometning like that way....

Any advise?

Edited by ComProf

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