arm64: dts: g12b: add focaltech touchpanel config
authorQianggui Song <qianggui.song@amlogic.com>
Thu, 28 Jun 2018 06:59:22 +0000 (14:59 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Wed, 4 Jul 2018 08:11:14 +0000 (01:11 -0700)
PD#169477: arm64: dts: g12b: add focaltech touchpanel config

Change-Id: Ia6ede5da68dad6994e537279b1e7edacf4203d63
Signed-off-by: Qianggui Song <qianggui.song@amlogic.com>
arch/arm64/boot/dts/amlogic/g12b_a311d_skt.dts
arch/arm64/boot/dts/amlogic/g12b_a311d_w400.dts

index b12005c..ee7c8d1 100644 (file)
                status = "okay";
        };
 
+&i2c0 {
+       status = "okay";
+       pinctrl-names = "default";
+       pinctrl-0 = <&i2c0_master_pins2>;
+       clock-frequency = <400000>;
+
+       touchscreen@38 {
+               compatible = "focaltech,fts";
+               status = "disabled";
+               reg = <0x38>;
+               reset-gpio = <&gpio GPIOZ_9 GPIO_ACTIVE_HIGH>;
+               irq-gpio = <&gpio GPIOZ_3 GPIO_ACTIVE_HIGH>;
+               x_max = <720>;
+               y_max = <1280>;
+               max-touch-number = <10>;
+       };
+};
+
 &i2c3 {
        status = "okay";
        pinctrl-names="default";
index de012fa..36bf70e 100644 (file)
                status = "okay";
        };
 
+&i2c0 {
+       status = "okay";
+       pinctrl-names = "default";
+       pinctrl-0 = <&i2c0_master_pins2>;
+       clock-frequency = <400000>;
+
+       touchscreen@38 {
+               compatible = "focaltech,fts";
+               status = "disabled";
+               reg = <0x38>;
+               reset-gpio = <&gpio GPIOZ_9 GPIO_ACTIVE_HIGH>;
+               irq-gpio = <&gpio GPIOZ_3 GPIO_ACTIVE_HIGH>;
+               x_max = <720>;
+               y_max = <1280>;
+               max-touch-number = <10>;
+       };
+};
+
 &i2c3 {
        status = "okay";
        pinctrl-names="default";