Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754178AbbLGH0s (ORCPT ); Mon, 7 Dec 2015 02:26:48 -0500 Received: from plaes.org ([188.166.43.21]:43060 "EHLO plaes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752736AbbLGH0T (ORCPT ); Mon, 7 Dec 2015 02:26:19 -0500 From: Priit Laes To: Maxime Ripard , Chen-Yu Tsai , Dmitry Torokhov , Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-input@vger.kernel.org, Aleksei Mamlin , linux-sunxi@googlegroups.com, Priit Laes Subject: [PATCH 1/2] ARM: dts: sun4i: gemei-g9: Add touchscreen (Goodix gt801x2) support Date: Mon, 7 Dec 2015 09:26:00 +0200 Message-Id: <1449473161-3535-2-git-send-email-plaes@plaes.org> X-Mailer: git-send-email 2.6.3 In-Reply-To: <1449473161-3535-1-git-send-email-plaes@plaes.org> References: <1449473161-3535-1-git-send-email-plaes@plaes.org> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2013 Lines: 74 Goodix GT801 2+1 is a touchscreen controller supporting up to 10 touches. Enable pin and wakeup pin support is currently not implemented: - enable pin (PI16, specified in FEX) seems to be wrong - wakeup pin needs some additional reverse engineering work Signed-off-by: Priit Laes --- arch/arm/boot/dts/sun4i-a10-gemei-g9.dts | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/sun4i-a10-gemei-g9.dts b/arch/arm/boot/dts/sun4i-a10-gemei-g9.dts index 1d73a98..52e6275 100644 --- a/arch/arm/boot/dts/sun4i-a10-gemei-g9.dts +++ b/arch/arm/boot/dts/sun4i-a10-gemei-g9.dts @@ -48,6 +48,7 @@ #include #include #include +#include / { model = "Gemei G9 Tablet"; @@ -65,11 +66,11 @@ /* * TODO: * 2x cameras via CSI - * audio input + * audio input (+ ext. amplifier enable GPIO) * AXP battery management * NAND * OTG - * Touchscreen - gt801_2plus1 @ i2c adapter 2 @ 0x48 + * Touchscreen enable and wakeup pins */ &codec { status = "okay"; @@ -114,6 +115,27 @@ }; }; +&i2c2 { + pinctrl-names = "default"; + pinctrl-0 = <&i2c2_pins_a>; + status = "okay"; + + touchscreen@55 { + compatible = "goodix,gt801_2plus1"; + reg = <0x55>; + + interrupt-parent = <&pio>; + interrupts = <7 21 IRQ_TYPE_EDGE_FALLING>; /* EINT21 (PH21) */ + + /* + * TODO - figure out the wakeup pin: + * ctp_wakeup = port:PB13<1><1> + * TODO - find correct GPIO pin, PI16 seems to be incorrect: + * ctp_en = port:PI16<1><0> + */ + }; +}; + &lradc { vref-supply = <®_ldo2>; -- 2.6.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/