Hello guys,
i'm trying to connect that ili9341 display with my m2 zero but it wont work. My armbian Version: Armbian_23-02-0-trunk_Bananapim2zero_lunar_edge_6.1.11_xfce_desktop
The display has a pinout that matches with the raspberry pi, so also the banana pi m2 zero would do the job, since it has the same pinout like the raspberry pi has.
It uses 26 pins to connect to the banana pi m2 zero gpio output pins. 3 buttons and a touch panel are available but i only want to use the lcd for now.
I edited the armbianEnv.txt to open the spi port and added my overlay tft.dts to /boot/overlay-user but i cant get a picture on the screen, Its just glowing white.
Am I missing something? Are my gpios numbers in the overlay correct? do i have to install additional software?
I would be very happy for tips or help!
My armbianEnv.txt :
verbosity=1
bootlogo=false
console=both
disp_mode=1920x1080p60
overlay_prefix=sun8i-h3
rootdev=UUID=39f6ab06-e14f-4885-8454-717c5405f006
rootfstype=ext4
overlays=cpu-clock-1.2GHz-1.3v spi-spidev
param_spidev_spi_bus=0
user_overlays=tft
usbstoragequirks=0x2537:0x1066:u,0x2537:0x1068:u
My overlay tft.dts
/dts-v1/;
/plugin/;
/ {
compatible = "allwinner,sun4i-a10", "allwinner,sun7i-a20", "allwinner,sun8i-h3", "allwinner,sun50i-a64", "allwinner,sun50i-h5";
fragmen@0 {
target = <&pio>;
__overlay__ {
display_pins: display_pins {
pins = "PC0", "PC3";
function = "gpio_out";
};
};
};
fragment@1 {
target = <&spi0>;
__overlay__ {
/* needed to avoid dtc warning */
#address-cells = <1>;
#size-cells = <0>;
display: display@0 {
compatible = "adafruit,yx240qv29", "ilitek,ili9341";
reg = <0>;
pinctrl-names = "default";
pinctrl-0 = <&display_pins>;
spi-max-frequency = <16000000>;
rotation= <270>;
bgr;
fps = <10>;
buswidth = <8>;
height = <240>;
width = <320>;
reset-gpios = <&pio 0 25 0>; /* GPIOA 6 */
dc-gpios = <&pio 0 24 0>; /* GPIOA 3 */
debug = <3>;
};
};
};
__overrides__ {
rotation = <&display>, "rotation:0";
fps = <&display>, "fps:0";
debug = <&display>, "debug:0";
};
};