From: Aleksei Mamlin Date: Fri, 18 Dec 2015 08:51:50 +0000 (+0300) Subject: ARM: dts: sun7i: Enable touchscreen on Wexler TAB7200 tablet X-Git-Tag: v4.14-rc1~3962^2~16^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e7bb896a7fabdf05fb0126f9f5a489cb987f2152;p=platform%2Fkernel%2Flinux-rpi.git ARM: dts: sun7i: Enable touchscreen on Wexler TAB7200 tablet Add a node for the Goodix GT911 touchscreen found on the Wexler TAB7200 tablet Signed-off-by: Aleksei Mamlin Signed-off-by: Maxime Ripard --- diff --git a/arch/arm/boot/dts/sun7i-a20-wexler-tab7200.dts b/arch/arm/boot/dts/sun7i-a20-wexler-tab7200.dts index 119713b..1dc9079 100644 --- a/arch/arm/boot/dts/sun7i-a20-wexler-tab7200.dts +++ b/arch/arm/boot/dts/sun7i-a20-wexler-tab7200.dts @@ -102,6 +102,18 @@ pinctrl-names = "default"; pinctrl-0 = <&i2c2_pins_a>; status = "okay"; + + gt911: touchscreen@5d { + compatible = "goodix,gt911"; + reg = <0x5d>; + interrupt-parent = <&pio>; + interrupts = <7 21 IRQ_TYPE_EDGE_FALLING>; /* EINT21 (PH21) */ + pinctrl-names = "default"; + pinctrl-0 = <&ts_reset_pin>; + irq-gpios = <&pio 7 21 GPIO_ACTIVE_HIGH>; /* INT (PH21) */ + reset-gpios = <&pio 1 13 GPIO_ACTIVE_HIGH>; /* RST (PB13) */ + touchscreen-swapped-x-y; + }; }; &lradc { @@ -146,6 +158,13 @@ }; &pio { + ts_reset_pin: ts_reset_pin@0 { + allwinner,pins = "PB13"; + allwinner,function = "gpio_out"; + allwinner,drive = ; + allwinner,pull = ; + }; + usb0_id_detect_pin: usb0_id_detect_pin@0 { allwinner,pins = "PH4"; allwinner,function = "gpio_in";