Hi, I finally have time to get back to my little project.
I've been trying to get a working display with tinydrm for an ILI9341 base lcd.
My setup works on OpenWrt with the older fbtft driver, but now I'd like to
go back and try Armbian (current release is Jammy) on it.
My first try with devicetree overlay seems functional but not correct.
The display just show garbled data (see attached). What could be the problem with it?
This is my env.
verbosity=1
bootlogo=false
console=both
overlay_prefix=sun50i-h5
overlays=usbhost1 usbhost2 spi-spidev
param_spidev_spi_bus=0
rootdev=UUID=e0ed80c4-a252-4d96-ad61-78b7834d6b8d
rootfstype=ext4
user_overlays=spilcd
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u
and this is my overlay
/dts-v1/;
/plugin/;
/ {
compatible = "allwinner,sun4i-a10", "allwinner,sun7i-a20", "allwinner,sun8i-h3", "allwinner,sun50i-a64", "allwinner,sun50i-h5";
fragment@0 {
target = <&spi0>;
__overlay__ {
#address-cells = <1>;
#size-cells = <0>;
display: display@0 {
compatible = "adafruit,yx240qv29", "ilitek,ili9341";
reg = <0>;
rotation = <270>;
reset-gpios = <&pio 0 6 0>; /* GPIOA 6 */
dc-gpios = <&pio 0 3 0>; /* GPIOA 3 */
};
};
};
};