dts: g12a-skt: add touch device node
authorSunny Luo <sunny.luo@amlogic.com>
Sun, 4 Feb 2018 07:57:09 +0000 (15:57 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Mon, 5 Mar 2018 06:22:13 +0000 (14:22 +0800)
PD#156734: dts: g12a-skt:
1. add and enable focaltech ftxx
2. add and enable goodix gtxx

Change-Id: Iff3a2d0a28c5ba78c93f23623b3c34b651bb2cae
Signed-off-by: Sunny Luo <sunny.luo@amlogic.com>
arch/arm64/boot/dts/amlogic/g12a_skt.dts

index 244c784..0b5fbe3 100644 (file)
        status = "okay";
        pinctrl-names="default";
        pinctrl-0=<&i2c0_master_pins2>;
-       clock-frequency = <100000>; /* default 100k */
+       clock-frequency = <400000>;
+
+       gt9xx@5d {
+               compatible = "goodix,gt9xx";
+               status = "disabled";
+               reg = <0x5d>;
+               reset-gpio = <&gpio GPIOZ_9 0x00>;
+               irq-gpio = <&gpio GPIOZ_3 0x00>;
+       };
+
+       ftxx@38 {
+               compatible = "focaltech,fts";
+               status = "disabled";
+               reg = <0x38>;
+               reset-gpio = <&gpio GPIOZ_9 0x00>;
+               irq-gpio = <&gpio GPIOZ_3 0x00>;
+               x_max = <600>;
+               y_max = <1024>;
+               max-touch-number = <10>;
+       };
 };
 
 &i2c3 {