blob: 3e223e61067723ebcc24a1b506349e0e71bfcfcf [file] [log] [blame]
Goodix GT9xx series touch controller
Required properties:
- compatible : Should be "goodix,gt9xx"
- reg : I2C slave address of the device.
- interrupt-parent : Parent of interrupt.
- interrupts : Configuration of touch panel controller interrupt
GPIO.
- goodix,family-id : Family identification of the controller.
- interrupt-gpios : Interrupt gpio which is to provide interrupts to
host, same as "interrupts" node.
- reset-gpios : Reset gpio to control the reset of chip.
- goodix,display-coords : Display coordinates in pixels. It is a four
tuple consisting of min x, min y, max x and
max y values.
Optional properties:
- avdd-supply : Power supply needed to power up the device, this is
for fixed voltage external regulator.
- vdd-supply : Power supply needed to power up the device, when use
external regulator, do not add this property.
- vcc-i2c-supply : Power source required to power up i2c bus.
GT9xx series can provide 1.8V from internal
LDO, add this properties base on hardware
design.
- goodix,panel-coords : Panel coordinates for the chip in pixels.
It is a four tuple consisting of min x,
min y, max x and max y values.
- goodix,i2c-pull-up : To specify pull up is required.
- goodix,no-force-update : To specify force update is allowed.
- goodix,button-map : Button map of key codes. The number of key codes
depend on panel.
- goodix,cfg-data : Touchpanel controller configuration data, ask vendor
to provide that. Default configuration will be
used if this property is not present.
Example:
i2c@f9927000 {
goodix@5d {
compatible = "goodix,gt9xx";
reg = <0x5d>;
interrupt-parent = <&msmgpio>;
interrupts = <17 0x2008>;
reset-gpios = <&msmgpio 16 0x00>;
interrupt-gpios = <&msmgpio 17 0x00>;
avdd-supply = <&tp_power>;
goodix,panel-coords = <0 0 720 1200>;
goodix,display-coords = <0 0 720 1080>;
goodix,button-map= <158 102 139>;
goodix,family-id = <0x0>;
goodix,cfg-data = [
41 D0 02 00 05 0A 05 01 01 08
12 58 50 41 03 05 00 00 00 00
00 00 00 00 00 00 00 8C 2E 0E
28 24 73 13 00 00 00 83 03 1D
40 02 00 00 00 03 64 32 00 00
00 1A 38 94 C0 02 00 00 00 04
9E 1C 00 8D 20 00 7A 26 00 6D
2C 00 60 34 00 60 10 38 68 00
F0 50 35 FF FF 27 00 00 00 00
00 01 1B 14 0C 14 00 00 01 00
00 00 00 00 00 00 00 00 00 00
00 00 02 04 06 08 0A 0C 0E 10
12 14 16 18 1A 1C FF FF FF FF
FF FF FF FF FF FF FF FF FF FF
FF FF 00 02 04 06 08 0A 0C 0F
10 12 13 14 16 18 1C 1D 1E 1F
20 21 22 24 26 28 29 2A FF FF
FF FF FF FF FF FF FF 22 22 22
22 22 22 FF 07 01];
};
};