From 729bd5a5659453408dec9f8a555383aacd60f221 Mon Sep 17 00:00:00 2001 From: Qianggui Song Date: Thu, 28 Jun 2018 14:59:22 +0800 Subject: [PATCH] arm64: dts: g12b: add focaltech touchpanel config PD#169477: arm64: dts: g12b: add focaltech touchpanel config Change-Id: Ia6ede5da68dad6994e537279b1e7edacf4203d63 Signed-off-by: Qianggui Song --- arch/arm64/boot/dts/amlogic/g12b_a311d_skt.dts | 18 ++++++++++++++++++ .../arm64/boot/dts/amlogic/g12b_a311d_w400.dts | 18 ++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/arch/arm64/boot/dts/amlogic/g12b_a311d_skt.dts b/arch/arm64/boot/dts/amlogic/g12b_a311d_skt.dts index b12005cac2a4..ee7c8d176062 100644 --- a/arch/arm64/boot/dts/amlogic/g12b_a311d_skt.dts +++ b/arch/arm64/boot/dts/amlogic/g12b_a311d_skt.dts @@ -739,6 +739,24 @@ 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"; diff --git a/arch/arm64/boot/dts/amlogic/g12b_a311d_w400.dts b/arch/arm64/boot/dts/amlogic/g12b_a311d_w400.dts index de012fac69e4..36bf70e5ab5a 100644 --- a/arch/arm64/boot/dts/amlogic/g12b_a311d_w400.dts +++ b/arch/arm64/boot/dts/amlogic/g12b_a311d_w400.dts @@ -674,6 +674,24 @@ 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";