From patchwork Mon Feb 10 04:22:14 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Shiyan X-Patchwork-Id: 3615341 Return-Path: X-Original-To: patchwork-linux-input@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 114E09F382 for ; Mon, 10 Feb 2014 04:22:21 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 47B652010C for ; Mon, 10 Feb 2014 04:22:20 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 43EF620171 for ; Mon, 10 Feb 2014 04:22:19 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751869AbaBJEWS (ORCPT ); Sun, 9 Feb 2014 23:22:18 -0500 Received: from smtp12.mail.ru ([94.100.176.89]:39349 "EHLO smtp12.mail.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751612AbaBJEWS (ORCPT ); Sun, 9 Feb 2014 23:22:18 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mail.ru; s=mail2; h=Message-Id:Date:Subject:Cc:To:From; bh=Ew4dShsMgqItvKV3Eo5VhHAqhGea4GpS8SUqxfahbgs=; b=IUwh6ZmwPX+w2i54XyvQIs5xJJS+r/UZYl6YUtST9M50QGYMyMWxBrMT30cbWlfYxr3Tazx4Di6MChwmGQexBfo+yTWpwiNYsWObeBiD3p3314TMar33gjNaK9qexZZRUHCoKhUOtbV84xnYpPss4GJwTdwpnbQ87vyH79ziqsY=; Received: from [188.134.40.128] (port=45313 helo=shc.zet) by smtp12.mail.ru with esmtpa (envelope-from ) id 1WCiNr-0005vw-Qc; Mon, 10 Feb 2014 08:22:16 +0400 From: Alexander Shiyan To: linux-input@vger.kernel.org Cc: Dmitry Torokhov , devicetree@vger.kernel.org, Rob Herring , Pawel Moll , Mark Rutland , Ian Campbell , Kumar Gala , Grant Likely , Alexander Shiyan Subject: [PATCH v2 2/2] input: clps711x-keypad: dts: Add bindings documentation Date: Mon, 10 Feb 2014 08:22:14 +0400 Message-Id: <1392006134-10265-1-git-send-email-shc_work@mail.ru> X-Mailer: git-send-email 1.8.3.2 X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM,RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Mras: Ok Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-1.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, RDNS_NONE, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=no 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 This patch adds the devicetree documentation for the Cirrus Logic CLPS711X keypad. Signed-off-by: Alexander Shiyan --- .../devicetree/bindings/input/clps711x-keypad.txt | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/clps711x-keypad.txt diff --git a/Documentation/devicetree/bindings/input/clps711x-keypad.txt b/Documentation/devicetree/bindings/input/clps711x-keypad.txt new file mode 100644 index 0000000..bcf5f02 --- /dev/null +++ b/Documentation/devicetree/bindings/input/clps711x-keypad.txt @@ -0,0 +1,29 @@ +* Cirrus Logic CLPS711X matrix keypad device tree bindings + +Required Properties: +- compatible: Should be "cirrus,clps711x-keypad". +- syscon: phandle to syscon device node which control keypad (SYSCON1). +- row-gpios: List of GPIOs used as row lines. +- poll-interval: Poll interval time in milliseconds. +- linux,keymap: The definition can be found at + bindings/input/matrix-keymap.txt. + +Optional Properties: +- autorepeat: Enable autorepeat feature. + +Example: + keypad { + compatible = "cirrus,clps711x-keypad"; + syscon = <&syscon1>; + autorepeat; + poll-interval = <120>; + row-gpios = <&porta 0 0>, + <&porta 1 0>; + + linux,keymap = < + MATRIX_KEY(0, 0, KEY_UP) + MATRIX_KEY(0, 1, KEY_DOWN) + MATRIX_KEY(1, 0, KEY_LEFT) + MATRIX_KEY(1, 1, KEY_RIGHT) + >; + };