From patchwork Fri Oct 5 15:31:46 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 1554221 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 82B97DF24C for ; Fri, 5 Oct 2012 15:42:54 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TK9x6-0004ih-GT; Fri, 05 Oct 2012 15:36:36 +0000 Received: from mail-we0-f177.google.com ([74.125.82.177]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TK9tu-0002ua-SL for linux-arm-kernel@lists.infradead.org; Fri, 05 Oct 2012 15:33:19 +0000 Received: by mail-we0-f177.google.com with SMTP id u50so1160815wey.36 for ; Fri, 05 Oct 2012 08:32:14 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=QptXmd+uYGkh8wL7P+yL6UgUD9ECq5GASd3+DjoF4QI=; b=LN/mSbvMNEZ2tKCdnPdYBdiPFLdQEUN03qwnpY77DHWmuFTmz2M9S1eBheNtAJgyqD WyHP+xp31HRNLBAXCR6wpJPa+BdX+FJdnSmiAgQiQBCklm157iVRP6q1qOLbtdsae5JY RH/sUpWhBWru+P5e/uLbLEhOn5VRCjDi4qvbX9pzveWGrumyX9By//G05KPt3LZ3j3v6 SmzFe8KjOS5aN4E0AN11xUi/ZRb3tRY1Ue1lykYz13sgF+mPHQKZT2ZUPIXxaGC/BS6k husd7wRdROor0zqtD71662GXEGvhhlcuk8Wb152NpUDPQ90doLt7hVbAR/r1jHudBBsF NOug== Received: by 10.180.88.130 with SMTP id bg2mr4054438wib.22.1349451134364; Fri, 05 Oct 2012 08:32:14 -0700 (PDT) Received: from localhost.localdomain (cpc1-aztw13-0-0-cust473.18-1.cable.virginmedia.com. [77.102.241.218]) by mx.google.com with ESMTPS id w8sm2906148wif.4.2012.10.05.08.32.12 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 05 Oct 2012 08:32:13 -0700 (PDT) From: Lee Jones To: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 10/10] ARM: ux500: Supply the STMPE keypad Device Tree node to the STUIB DT Date: Fri, 5 Oct 2012 16:31:46 +0100 Message-Id: <1349451107-8009-11-git-send-email-lee.jones@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1349451107-8009-1-git-send-email-lee.jones@linaro.org> References: <1349451107-8009-1-git-send-email-lee.jones@linaro.org> X-Gm-Message-State: ALoCoQm7aZ+2s+P2iA7+zgZKUCqzUtA6z2yj1u+gGsMnLOcBl8XBwreLsfIlLRURKGr3WEaxq4w/ X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [74.125.82.177 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Lee Jones , linus.walleij@stericsson.com, arnd@arndb.de X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org This patch allows the STMPE keypad driver to be successfully probed and initialised during a Device Tree enabled boot sequence. It contains all of the required properties needed to setup and map each key on the 6x3 keypad located on the ST User Interface Board. Acked-by: Linus Walleij Signed-off-by: Lee Jones --- arch/arm/boot/dts/stuib.dtsi | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/arch/arm/boot/dts/stuib.dtsi b/arch/arm/boot/dts/stuib.dtsi index b25663c..b492e3e 100644 --- a/arch/arm/boot/dts/stuib.dtsi +++ b/arch/arm/boot/dts/stuib.dtsi @@ -21,6 +21,33 @@ i2c-client-wake; st,autosleep-timeout = <1024>; + + stmpe_keypad { + compatible = "st,stmpe-keypad"; + + debounce-interval = <64>; + stericsson,scan-count = <8>; + stericsson,no-autorepeat; + + linux,keymap = <0x205006b + 0x4010074 + 0x3050072 + 0x1030004 + 0x502006a + 0x500000a + 0x5008b + 0x706001c + 0x405000b + 0x6070003 + 0x3040067 + 0x303006c + 0x60400e7 + 0x602009e + 0x4020073 + 0x5050002 + 0x4030069 + 0x3020008>; + }; }; };