From patchwork Mon May 16 20:54:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Grant Grundler X-Patchwork-Id: 9105981 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.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id E2AE29F1C1 for ; Mon, 16 May 2016 20:56:27 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 00423202B8 for ; Mon, 16 May 2016 20:56:27 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 13F42201B4 for ; Mon, 16 May 2016 20:56:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751014AbcEPU4I (ORCPT ); Mon, 16 May 2016 16:56:08 -0400 Received: from mail-pf0-f171.google.com ([209.85.192.171]:33667 "EHLO mail-pf0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750874AbcEPU4H (ORCPT ); Mon, 16 May 2016 16:56:07 -0400 Received: by mail-pf0-f171.google.com with SMTP id 206so71566640pfu.0 for ; Mon, 16 May 2016 13:55:51 -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=/wpmmEvarZ7ltkSGIH1AOeMbeeUmbZ6lNFDk4pajEoM=; b=h6q+HcncS639mWTPLRQxS1mUKHRg1w5x/qElUZqd4cN7QVVkfoR+j5Jq6pjlwpZa3z /MKQpMRA+Ih8SZ0JUlGHVUl8WFEmbZa+fd5vqWrO2Wyt/J5AZcVrtkmtZJJdkVHXezAt xnbEcjmbeREwhutxQDXDWu5TFuVfJff75F5PE= 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=/wpmmEvarZ7ltkSGIH1AOeMbeeUmbZ6lNFDk4pajEoM=; b=XutTjmD+9cnR+uVUE59ztfRqLRiO+jQHcUM5a4hF+pdz3jHMmZIzY7jmOqD4f+748Z 6ElVjBX8YH8cBTXTZNoKOyEYZ4EjqXAgiTLazg72pVUcgNsn9r8jR536Dhvn0+/ZbWYa Xr1TnKAJ00yxKIxHXCgH0AXS7XiRyKr1plhr+56l6wu/7Hj//di4bx+X9zKst8bVWtKq NwN98xuHX2D9GOlRaTuOvTXeXPYZJPF3xUZkCcCV0HETuVjczUZk5CtGg6uw17PNHbzA qyDd1EN44gCpSLlwdhA4/K7bODN5ImWh5hgOvxw6gsv0XEqpgImtk3Q0KhTiBwL+/y4J Atvg== X-Gm-Message-State: AOPr4FVqpa+pCyaTX0eGRZWRUJ3FaLFaKQAjq2Gbw3EcPUg0a3zszcxzcMqXx5Q3erwKIQ== X-Received: by 10.98.71.13 with SMTP id u13mr48757140pfa.123.1463432151025; Mon, 16 May 2016 13:55:51 -0700 (PDT) Received: from firesword.mtv.corp.google.com ([172.17.73.81]) by smtp.gmail.com with ESMTPSA id m12sm49309732pfi.5.2016.05.16.13.55.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 16 May 2016 13:55:49 -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 1/2 V3] dt: add Atmel Captouch bindings Date: Mon, 16 May 2016 13:54:53 -0700 Message-Id: <1463432094-146726-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.2 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 Acked-by: Rob Herring --- .../devicetree/bindings/input/atmel,captouch.txt | 36 ++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/atmel,captouch.txt V3: doh! use dash, not underscore in node names. Wordsmith description. 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,36 @@ +Device tree bindings for Atmel capacitive touch device, typically +an Atmel touch sensor connected to AtmegaXX MCU running firmware +based on Qtouch library. + +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; + };