From patchwork Wed May 11 02:07:48 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grant Grundler X-Patchwork-Id: 9064451 Return-Path: X-Original-To: patchwork-linux-input@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 8CD49BF29F for ; Wed, 11 May 2016 02:08:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A9ED220155 for ; Wed, 11 May 2016 02:08:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id D46A920114 for ; Wed, 11 May 2016 02:08:35 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751069AbcEKCIS (ORCPT ); Tue, 10 May 2016 22:08:18 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:33879 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751076AbcEKCIQ (ORCPT ); Tue, 10 May 2016 22:08:16 -0400 Received: by mail-pa0-f41.google.com with SMTP id r5so12173614pag.1 for ; Tue, 10 May 2016 19:08:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id; bh=TYymRJ7YUQmaJ3Pynzxp2veDUrUfV5/T8n9pVKXUNU0=; b=eKfQYyb8Z7lqbYAkOliN1E4B2BL8OM1BSPJnMarxOC23Qh0iMt/k2+JE8NKfXv36Su 0c8LtaHKkXlm9W0vkNi9y/HAeWDKCOPx7h4slkVM46JfjbYdA89W6IRgw8KUX8aSEcAh 6vAecJ58ViciPvKLP8Vurtua8UEGcBTZ6AGJs= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=TYymRJ7YUQmaJ3Pynzxp2veDUrUfV5/T8n9pVKXUNU0=; b=gjmef41iSty+y/vc38WUE7Lz2SUAmmdo09yJhbtDpFdqi+fyuo8QBQ9FMstojb1ZZp +UMZDt8eO5FZQgWT81nHemiVOQPpgnJiWtYL088J9jwmTYBwWX/IOLPddcz4GWtal0KG /3SBwDfz3TaMkzSCbm0JWwnZLXW/c7w+r2v/Su85WezxwHzWCkc8fSyyrtakCnEUjNFU Q5gihRcnaZv32m+bpSifd8QOccAdbtGEVFVYJ/Gqbizi9deUy7x9xl60jUFnEmbV2dnz RO4BpoAuK2r73tA5EXm5g3iXGZT9Trj32sL8n6ttI0JfwgIUhdb83Br5tqL+6FGJkYsa NRSg== X-Gm-Message-State: AOPr4FU2LY+1J/uy5GIdZXCPOQJTz0zeoX+1xtHEtSLVpxwi3gpZErYKDde+4dYEGMsIeg== X-Received: by 10.66.25.133 with SMTP id c5mr1077301pag.104.1462932495735; Tue, 10 May 2016 19:08:15 -0700 (PDT) Received: from firesword.mtv.corp.google.com ([172.17.73.81]) by smtp.gmail.com with ESMTPSA id c25sm7412226pfd.67.2016.05.10.19.08.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 10 May 2016 19:08:14 -0700 (PDT) From: Grant Grundler To: Rob Herring , Pawel Moll , Mark Rutland , Dmitry Torokhov Cc: devicetree , linux-input , LKML , Hung-yu Wu , Kumar Gala , Ian Campbell , Grant Likely , Grant Grundler Subject: [PATCH] dt: add Atmel Captouch bindings Date: Tue, 10 May 2016 19:07:48 -0700 Message-Id: <1462932469-122552-1-git-send-email-grundler@chromium.org> X-Mailer: git-send-email 2.8.0.rc3.226.g39d4020 Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-8.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable 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 From: Daniel Hung-yu Wu Add binding for Atmel Capacitive Touch Button device. Signed-off-by: Daniel Hung-yu Wu Signed-off-by: Grant Grundler --- .../devicetree/bindings/input/atmel,captouch.txt | 34 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/atmel,captouch.txt I haven't posted the corresponding device driver and dtsi changes yet but will shortly. V2: split Documentation/devicetree/bindings from driver patch rename "atmel,atmegaxx_captouch" to "atmel,captouch" since it's irrelevant which controller implements the register set/controller. V1: posted https://lkml.org/lkml/2016/5/3/613 diff --git a/Documentation/devicetree/bindings/input/atmel,captouch.txt b/Documentation/devicetree/bindings/input/atmel,captouch.txt new file mode 100644 index 0000000..405d287 --- /dev/null +++ b/Documentation/devicetree/bindings/input/atmel,captouch.txt @@ -0,0 +1,34 @@ +Device tree bindings for Atmel AtmegaXX capacitive touch sensor + +The node for this device must be a child of a I2C controller node, as the +device communicates via I2C. + +Required properties: + + compatible: Must be "atmel,captouch". + reg: The I2C slave address of the device. + interrupts: Property describing the interrupt line the device + is connected to. The device only has one interrupt + source. + linux,keycodes: Specifies an array of numeric keycode values to + be used for reporting button presses. The array can + contain up to 8 entries. + +Optional properties: + + autorepeat: Enables the Linux input system's autorepeat + feature on the input device. + +Example: + + atmel_captouch@51 { + compatible = "atmel,captouch"; + reg = <0x51>; + interrupt-parent = <&tlmm>; + interrupts = <67 IRQ_TYPE_EDGE_FALLING>; + linux,keycodes = , , + , , + , , + , ; + autorepeat; + };