From patchwork Tue Aug 26 15:28:55 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Javier Martinez Canillas X-Patchwork-Id: 4783101 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 1BAB79F2A9 for ; Tue, 26 Aug 2014 15:31:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 13A4620123 for ; Tue, 26 Aug 2014 15:31:58 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id E54A92011D for ; Tue, 26 Aug 2014 15:31:56 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1XMIhH-0008SW-50; Tue, 26 Aug 2014 15:30:11 +0000 Received: from bhuna.collabora.co.uk ([93.93.135.160]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1XMIh0-0007Ww-NV for linux-arm-kernel@lists.infradead.org; Tue, 26 Aug 2014 15:29:55 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: javier) with ESMTPSA id 5ABF26032C0 From: Javier Martinez Canillas To: Kukjin Kim Subject: [PATCH v2 1/3] ARM: dts: Add Peach Pit dts entry for Atmel touchpad Date: Tue, 26 Aug 2014 17:28:55 +0200 Message-Id: <1409066937-3574-2-git-send-email-javier.martinez@collabora.co.uk> X-Mailer: git-send-email 2.0.1 In-Reply-To: <1409066937-3574-1-git-send-email-javier.martinez@collabora.co.uk> References: <1409066937-3574-1-git-send-email-javier.martinez@collabora.co.uk> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140826_082954_910356_2EAD5EB0 X-CRM114-Status: GOOD ( 11.76 ) X-Spam-Score: 0.0 (/) Cc: linux-samsung-soc@vger.kernel.org, Doug Anderson , Nick Dyer , linux-kernel@vger.kernel.org, Sjoerd Simons , Javier Martinez Canillas , Olof Johansson , Yufeng Shen , afaerber@suse.de, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Sjoerd Simons The Peach Pit board has an Atmel maXTouch trackpad device. Add the needed Device Tree nodes to support it. This Device Tree change is based on the Chrome OS 3.8 tree but adapted to use the mainline Atmel maXTouch DT binding. Signed-off-by: Sjoerd Simons [javier.martinez: added linux,gpio-keymap property and changed IRQ type] Signed-off-by: Javier Martinez Canillas --- Changes since v1: - Change trackpad IRQ pad function from 0x0 (GPIO input) to 0xf (GPIO IRQ). suggested by Tomasz Figa. - Remove BTN_TOOL_* from "linux,gpio-keymap" property since those are set by input mt core if INPUT_MT_POINTER is set. Suggested by Nick Dyer. - Use correct values for "linux,gpio-keymap" property. Suggested by Nick Dyer. - Remove support for Peach Pi board since it uses a different Atmel touchpad that requires an Atmel object protocol (T100) not supported by the driver. - Use IRQ type constants from instead of magic numbers. Suggested by Andreas Farber. --- arch/arm/boot/dts/exynos5420-peach-pit.dts | 31 ++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/arch/arm/boot/dts/exynos5420-peach-pit.dts b/arch/arm/boot/dts/exynos5420-peach-pit.dts index 228a6b1..e4f82d5 100644 --- a/arch/arm/boot/dts/exynos5420-peach-pit.dts +++ b/arch/arm/boot/dts/exynos5420-peach-pit.dts @@ -11,6 +11,7 @@ /dts-v1/; #include #include +#include #include "exynos5420.dtsi" / { @@ -157,6 +158,29 @@ }; }; +&hsi2c_8 { + status = "okay"; + clock-frequency = <333000>; + + trackpad@4b { + compatible="atmel,maxtouch"; + reg=<0x4b>; + interrupt-parent=<&gpx1>; + interrupts=<1 IRQ_TYPE_EDGE_FALLING>; + wakeup-source; + pinctrl-names = "default"; + pinctrl-0 = <&trackpad_irq>; + linux,gpio-keymap = < KEY_RESERVED + KEY_RESERVED + 0 /* GPIO 0 */ + 0 /* GPIO 1 */ + 0 /* GPIO 2 */ + BTN_LEFT /* GPIO 3 */ + KEY_RESERVED + KEY_RESERVED >; + }; +}; + &hsi2c_9 { status = "okay"; clock-frequency = <400000>; @@ -249,6 +273,13 @@ samsung,pin-drv = <0>; }; + trackpad_irq: trackpad-irq { + samsung,pins = "gpx1-1"; + samsung,pin-function = <0xf>; + samsung,pin-pud = <0>; + samsung,pin-drv = <0>; + }; + power_key_irq: power-key-irq { samsung,pins = "gpx1-2"; samsung,pin-function = <0>;