This is a Device Tree (DT) overlay for Goodix GT9110 touch controllers connected to Raspberry Pi via I2C on GPIO pins.
To use it, download the .dts file below or create one yourself and store it somewhere where you can find it. From the same directory run the following command to compile it:
sudo dtc -I dts -O dtb -o /boot/overlays/gt9110.dtbo GT9110_overlay.dts
This will compile the 'GT9110_overlay.dts' file into 'gt9110.dtbo' and store it under /boot/overlays.
Next you need to enable it in the /boot/config.txt file using the following:
dtoverlay=gt9110
** Also do not forget to enable the I2C interface on your board:
dtparam=i2c_arm=on
This is how the pins are currently connected:
Pin | GT9110 | RPi GPIO | Pin |
---|---|---|---|
1 | SDA | GPIO 2 | 3 |
2 | SCL | GPIO 3 | 5 |
3 | RST | GPIO 4 | 7 |
4 | INT | GPIO 27 | 13 |
5 | VDD | 3V3 | 1 |
6 | GND | Ground | 9 |
For more information about Device Trees, visit here: https://www.raspberrypi.org/documentation/configuration/device-tree.md
For a quick guide to all DT overlays used in Raspberry Pi, visit below: https://github.com/raspberrypi/firmware/blob/master/boot/overlays/README