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: 1554011 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id F04913FE80 for ; Fri, 5 Oct 2012 15:34:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756458Ab2JEPd2 (ORCPT ); Fri, 5 Oct 2012 11:33:28 -0400 Received: from mail-wi0-f178.google.com ([209.85.212.178]:38332 "EHLO mail-wi0-f178.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756148Ab2JEPcL (ORCPT ); Fri, 5 Oct 2012 11:32:11 -0400 Received: by mail-wi0-f178.google.com with SMTP id hr7so853431wib.1 for ; Fri, 05 Oct 2012 08:32:11 -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=uCY7o4ua8LXq4l+cjbymJI3hjT8UV5ePcS1ATrcXcfQ=; b=cK4/ZJ6UwLaBKJmLNRecIamNeDr57boIAV8yatKXq/5YBT4nRZhPLCzab+Gt8TKoSk nlfv50Pgz+sGZqCTq6u1Jb5XumnNd+cOCx/3oy4btG6+1OdkBTXRiC5jEicgx7l4WzqI LrOuoFhsW2YpCgYyjqAIRL7zPtUyxgi4Cq6tCjobRprc1+7UAgxvjT1LypgbrVYXFipe ngiOedCOs2eQIHvux40M0OmS/PkT2OXRcws3IXt3EvqLWzyqsN+KiK4dSUWx6zvgxqUx lT/PeBvq3oU1IwbqJ/v0nePtlZSVyzZ2sB4JRdWnUIjWoU1gfUHd73S83dJSvbaCRFs5 pa7A== 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: ALoCoQmN+maC2ju28B3J+OXuboOIRrM8VaXKjSWIys9KawaEQg034hV4Su4xmEHtFPX8rHRp03Du Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org 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>; + };