Jump to content

karlp

Validating
  • Posts

    1
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. John Wilson's device tree overlay was super helpful. I've gotten the LCD working on an Orange Pi PC plus, on armbian focal (20.04 based, kernel 5.4.x) with the following overlay. (I dropped defaults, optional settings, and things that reset back to defaults) /dts-v1/; /plugin/; / { compatible = "allwinner,sun8i-h3"; fragment@0 { target = <&spi0>; __overlay__ { status = "okay"; }; }; fragment@1 { target = <&spi0>; __overlay__ { /* needed to avoid dtc warning */ #address-cells = <1>; #size-cells = <0>; ili9486: ili9486@0 { compatible = "ilitek,ili9486"; reg = <0>; spi-max-frequency = <16000000>; rotate = <90>; fps = <30>; buswidth = <8>; regwidth = <16>; reset-gpios = <&pio 0 2 1>; /* PA2 */ dc-gpios = <&pio 2 7 0>; /* PC7 */ //debug = <0>; 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 0x10000e2 0x0f 0x32 0x2e 0x0b 0x0d 0x05 0x47 0x75 0x37 0x06 0x10 0x03 0x24 0x20 0x00 0x1000036 0x28 0x1000011 0x1000029>; }; }; }; }; Basically, this switches to SPI0, and updates the gpio used for data/command switching. (LCD_RS on some of the schematics) I've not got touch working (yet?) Note, this can only give you an LCD once linux has booted far enough, there's nothing here about uboot
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines