From patchwork Fri Oct 5 15:31:44 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 12027 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 2714224156 for ; Fri, 5 Oct 2012 15:32:14 +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 CE943A1889F for ; Fri, 5 Oct 2012 15:32:13 +0000 (UTC) Received: by mail-ie0-f180.google.com with SMTP id e10so3999235iej.11 for ; Fri, 05 Oct 2012 08:32:13 -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=uCY7o4ua8LXq4l+cjbymJI3hjT8UV5ePcS1ATrcXcfQ=; b=FOYRcA/KyfsDaaTeSQyWosQ/LuyDZYZuS3nYTtNDVGsPjSZsc6P8kIwhBO8uii5n/g QxII7ZC4kEYXsk2gjur65G3SRAy3YZPKBoN0A4s3UQa3xU5tMLxnY6kcFhQdbX6/w0Pc O/n5ZipaNZVXI76zR45KgzCOgLctxb4FcgAKdJIlEkKSqk6vUvxCcyGdqDUctBF2Inz6 qIFGtxnyiNdOIjmW1Va+5rgouaDqXRhQ/J9ZyhulkBVzogd0E+s8oY9veBgT07MeHIwi 0qHgvdMosy9J08WjavWNyA0+6EK58mrEdRuQMsR1JAyOCBr1yVNUGtHH3xkG03bKj8By +vOQ== Received: by 10.50.154.227 with SMTP id vr3mr1484616igb.43.1349451133532; Fri, 05 Oct 2012 08:32:13 -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 ex8csp132560igc; Fri, 5 Oct 2012 08:32:12 -0700 (PDT) Received: by 10.180.87.34 with SMTP id u2mr4141211wiz.3.1349451131668; Fri, 05 Oct 2012 08:32:11 -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 y49si12177936wen.33.2012.10.05.08.32.11 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 05 Oct 2012 08:32:11 -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 r6so1331115wey.37 for ; Fri, 05 Oct 2012 08:32:11 -0700 (PDT) Received: by 10.180.106.9 with SMTP id gq9mr4129142wib.12.1349451131181; Fri, 05 Oct 2012 08:32:11 -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.09 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 05 Oct 2012 08:32:10 -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 , Dmitry Torokhov , linux-input@vger.kernel.org Subject: [PATCH 08/10] Documentation: Describe bindings for STMPE Keypad driver Date: Fri, 5 Oct 2012 16:31:44 +0100 Message-Id: <1349451107-8009-9-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: ALoCoQnDARcnbeumHv8stE9ymesW2agPPFJ0z3Zvp9aboW1Qz68vMnUyb25I65KhbgyNP3cWP/ZR Here we add the required documentation for the STMPE Device Tree bindings. It describes all of the bindings currently supported by the driver. Cc: Dmitry Torokhov Cc: linux-input@vger.kernel.org Acked-by: Linus Walleij Signed-off-by: Lee Jones --- .../devicetree/bindings/input/stmpe-keypad.txt | 39 ++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/stmpe-keypad.txt diff --git a/Documentation/devicetree/bindings/input/stmpe-keypad.txt b/Documentation/devicetree/bindings/input/stmpe-keypad.txt new file mode 100644 index 0000000..e18e2de --- /dev/null +++ b/Documentation/devicetree/bindings/input/stmpe-keypad.txt @@ -0,0 +1,39 @@ +* STMPE Keypad + +Required properties: + - compatible : "st,stmpe-keypad" + - linux,keymap : See ./matrix-keymap.txt + +Optional properties: + - debounce-interval : Debouncing interval time in milliseconds + - stericsson,scan-count : Scanning cycles elapsed before key data is updated + - stericsson,no-autorepeat : If specified device will not autorepeat + +Example: + + 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>; + };