Hello there. First time posting on this forum so I apologize in advance if there is any issue with my post.
I have been learning and using Armbian for some time on an Orange Pi Zero 2W intended for Klipper with an ili9341 as a screen for KlipperScreen. In order to have the display and touch working with the CS0 and CS1 pins, I used the dts provided below. I am not very knowledgeable about the structure required in dts files, so I tried to keep all the values the same from the examples that I found online on this forum and Github and only modified what I required or what seemed to work for my case.
Pins were assigned in the following way:
CS0 = Connected to CS from display
CS1 = Connected to T_CS from touch
IRQ = PI5
Reset = PI6
DC = PH4
LED = PI14 (PWM)
These were connected to the same pins in display and touch
MOSI = PH7 | Connected to SDI (MOSI) and T_DIN
MISO = PH8 | Connected to SDO (MISO) and T_DO
SCL = PH6 | Connected to SCK and T_CLK
Backlight is controlled by pin PI14 which is assigned to pwm4 in fragment@0 since pwm4 is assigned to PH1 by default on the Orange Pi Zero 2W and that pin was a bit far from the rest. At first I was using gpio-backlight on PI14 to control the backlight, so I left those values commented in the dts just for future reference. For VCC I used the 3.3V pin from the Orange Pi Zero 2W. In regards to CS, I once tried to define both, CS0 and CS1, in cs-gpios at the same time but the dts never loaded when I did this. However touch appears to work fine on CS1 even when only CS0 is defined in cs-gpios. No additional overlays from armbian-config were required for this.
Something I noticed and I am not sure if this has to do with my configuration, the drivers, my wiring, or the screen itself, but when the screen was turned off by dpms on an X11 session, touch would stop working on some occasions and touch activity was no longer displayed with evtest which always forced me to reboot the device in order to make it work again. Reloading the ads7846 driver did not help since I always receive an error saying "ads7846 spi1.0: failed to request pendown GPIO" when trying to load the driver with modprobe after unloading it. Due to that issue, I changed the backlight to a PWM pin and instead of completely turning it off, I now set it at the lowest brightness level. I have not yet encountered the same problem again after making this change, so the source of the issue is still a mystery for me.
Anyways, I hope any of this information is helpful for the Orange Pi Zero 3.