From: 黄涛 Date: Thu, 13 Feb 2014 10:12:15 +0000 (+0800) Subject: ARM: rockchip: rk3188-tb add ts support X-Git-Tag: firefly_0821_release~6326 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=642d6c30cd3ae6ab8e57740bbafab021eb91eb26;p=firefly-linux-kernel-4.4.55.git ARM: rockchip: rk3188-tb add ts support --- diff --git a/arch/arm/boot/dts/rk3188-tb.dts b/arch/arm/boot/dts/rk3188-tb.dts index 6ae2aa4ffb40..73642d2edc1c 100644 --- a/arch/arm/boot/dts/rk3188-tb.dts +++ b/arch/arm/boot/dts/rk3188-tb.dts @@ -80,6 +80,19 @@ }; }; +&i2c2 { + status = "okay"; + ts@55 { + compatible = "goodix,gt8xx"; + reg = <0x55>; + touch-gpio = <&gpio1 GPIO_B7 IRQ_TYPE_LEVEL_LOW>; + reset-gpio = <&gpio0 GPIO_B6 GPIO_ACTIVE_LOW>; + power-gpio = <&gpio0 GPIO_C5 GPIO_ACTIVE_LOW>; + max-x = <1280>; + max-y = <800>; + }; +}; + &i2c3 { status = "okay"; }; diff --git a/arch/arm/configs/rockchip_defconfig b/arch/arm/configs/rockchip_defconfig index b8645530990d..b409c367309a 100755 --- a/arch/arm/configs/rockchip_defconfig +++ b/arch/arm/configs/rockchip_defconfig @@ -288,6 +288,7 @@ CONFIG_TABLET_USB_HANWANG=y CONFIG_TABLET_USB_KBTAB=y CONFIG_TABLET_USB_WACOM=y CONFIG_INPUT_TOUCHSCREEN=y +CONFIG_TOUCHSCREEN_GT8XX=y CONFIG_INPUT_MISC=y CONFIG_INPUT_KEYCHORD=y CONFIG_INPUT_UINPUT=y