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: 12029 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 31FB424156 for ; Fri, 5 Oct 2012 15:32:17 +0000 (UTC) Received: from mail-ie0-f180.google.com (mail-ie0-f180.google.com [209.85.223.180]) by fiordland.canonical.com (Postfix) with ESMTP id BB64FA188CA for ; Fri, 5 Oct 2012 15:32:16 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so3999235iej.11 for ; Fri, 05 Oct 2012 08:32:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=QptXmd+uYGkh8wL7P+yL6UgUD9ECq5GASd3+DjoF4QI=; b=ArHnzy4hRofHhTVl4We2rRKvvqF5CJHsGWwkl+8/+cV8lwVerO6a8USFyC3qGQU7p2 xhO0SKEmZrlomHn+snnq8zMAPzVxoAGzc0+aDxFQcvK7Xzgb/aEo4AIe/oJN3yGNSxXg WEiIpb4Jsv4HVj7YOXTC0Bh4DxrE+QdEaf6Df98FKJfr8h4z7Jwn7uclx1lKxotduC3E nok+p3mpV2oiWPvyZPCijjZsKgc2tmPECkW1921IFIxXRXRYpFbCEjS/+rSvrpPo7lmu 91wEsfM0MquOEiRK9gEzoff5CYCozGg/EZPNuaGykhqpi7XR/fD6ym12heK+8FEUFnwM iKUA== Received: by 10.50.154.137 with SMTP id vo9mr1512247igb.28.1349451136446; Fri, 05 Oct 2012 08:32:16 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.184.232 with SMTP id ex8csp132564igc; Fri, 5 Oct 2012 08:32:15 -0700 (PDT) Received: by 10.216.209.150 with SMTP id s22mr5654290weo.49.1349451134835; Fri, 05 Oct 2012 08:32:14 -0700 (PDT) Received: from mail-we0-f178.google.com (mail-we0-f178.google.com [74.125.82.178]) by mx.google.com with ESMTPS id h4si12158669wej.121.2012.10.05.08.32.14 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 05 Oct 2012 08:32:14 -0700 (PDT) Received-SPF: neutral (google.com: 74.125.82.178 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) client-ip=74.125.82.178; Authentication-Results: mx.google.com; spf=neutral (google.com: 74.125.82.178 is neither permitted nor denied by best guess record for domain of lee.jones@linaro.org) smtp.mail=lee.jones@linaro.org Received: by mail-we0-f178.google.com with SMTP id r6so1331298wey.37 for ; Fri, 05 Oct 2012 08:32:14 -0700 (PDT) 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 Cc: arnd@arndb.de, linus.walleij@stericsson.com, Lee Jones 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: ALoCoQkx9ydWbVB4ZvW0XyBD7+jz9RPZOJzEd/Vr2InfIVCh7TFgpl3PVud5A5ZWiubu8IIjccsL 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>; + }; }; };