Hi!
I couldn’t find the reset pin name for the device-tree configuration of a custom touchscreen… I found number “6” from TS050 but it fails to open being declared non existent by the driver gt9xx.
From the schematics it has to be P6 from the TCA6408ARGTR ic, but I cannot find a GPIO name like “GPIOA_5” for TP_INT (which is working)…
So, I think the best solution is to update the khadas-tca6408 to be a gpio driver, so it can be accesible through the gpiolib… this way anyone will be able to configure any touchscreen driver with just the pin like this:
reset-gpio = <&gpio GPIOZ_15 GPIO_ACTIVE_HIGH>;
My touchscreen IC is supported in official linux and even has an amlogic version of the driver available in the default VIM3L image… but it will never work with the pin TP_RST (which is the dedicated pin in VIM3L) if you don’t provide gpiolib access for it, so it can be instantiated via device-tree, and that would be everyone’s win.
Modifying the gt9xx driver just to include khadas-tca6408 calls like these tca6408_output_set_value((0<<6), (1<<6)); instead of the gpio reset capability already covered by the official driver is not a good sustainable idea…
From what I’ve researched the vim3-ft5x06 driver is compatible with tca6408. So the majority of the gpio_chip driver should be already done…