From patchwork Thu Jan 8 22:43:10 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Moritz Fischer X-Patchwork-Id: 5595971 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 A5EA8C058E for ; Thu, 8 Jan 2015 22:43:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E3EE620558 for ; Thu, 8 Jan 2015 22:43:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 17B3B20562 for ; Thu, 8 Jan 2015 22:43:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757581AbbAHWnf (ORCPT ); Thu, 8 Jan 2015 17:43:35 -0500 Received: from mail-wi0-f174.google.com ([209.85.212.174]:48039 "EHLO mail-wi0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757171AbbAHWna (ORCPT ); Thu, 8 Jan 2015 17:43:30 -0500 Received: by mail-wi0-f174.google.com with SMTP id h11so6295313wiw.1 for ; Thu, 08 Jan 2015 14:43:29 -0800 (PST) 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:in-reply-to :references; bh=2LvIsLmFTDhulQWUyFVdEpnFckiS/i6bl5s3BKR0khY=; b=Jc5lOzpFnD1sTm8HIqo3wx0OdfEIkoEHPFaWl84VVnEnEnO/EfVsr1KlQZMx3VrVZu yocDL42ep38ZT08BWezfNmUWUsfYy5+ifWnf0pLxtaxLh+iBIILQHmDxWXXXIPv7D63B 7PQHOdIscFNV2Y393kIKCBBZ2ZD7POcqo3noCeaT8njmjsb1YL/k1dOvqY6Xg3rE8fIF FR7t+JQ2pAmcyZVTRMFWBMIQGxXvE/lEk367VNNiKgq/6GKzLNJRUdPLTQYX6d/NMaKH PDpzz9Fn4QFmqko1i/DG9TFTmndttewC/phpJmT1lqUlB7wVPA5r0kCnyhOxMnoxo6R+ +Bjg== X-Gm-Message-State: ALoCoQkLv69PNZARkNU40DWecPEXlKmtujxcImtlSPy3BFz6eTKtKBgJ1VfjYtEB5Cc6dlD2DbIM X-Received: by 10.180.82.98 with SMTP id h2mr25037458wiy.7.1420757009687; Thu, 08 Jan 2015 14:43:29 -0800 (PST) Received: from fenrir.local.pure-entropy.org (tyr.pure-entropy.org. [82.240.30.221]) by mx.google.com with ESMTPSA id l9sm23512992wic.21.2015.01.08.14.43.27 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Jan 2015 14:43:29 -0800 (PST) From: Moritz Fischer To: dmitry.torokhov@gmail.com Cc: linux-input@vger.kernel.org, linux-kernel@vger.kernel.org, Moritz Fischer Subject: [PATCH v2 2/3] doc: dt: Add documentation for e3x0-button bindings. Date: Thu, 8 Jan 2015 23:43:10 +0100 Message-Id: <1420756991-16506-3-git-send-email-moritz.fischer@ettus.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1420756991-16506-1-git-send-email-moritz.fischer@ettus.com> References: <1420756991-16506-1-git-send-email-moritz.fischer@ettus.com> Sender: linux-input-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-input@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 Signed-off-by: Moritz Fischer --- .../devicetree/bindings/input/e3x0-button.txt | 25 ++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/Documentation/devicetree/bindings/input/e3x0-button.txt b/Documentation/devicetree/bindings/input/e3x0-button.txt new file mode 100644 index 0000000..751665e --- /dev/null +++ b/Documentation/devicetree/bindings/input/e3x0-button.txt @@ -0,0 +1,25 @@ +National Instruments Ettus Research USRP E3x0 button driver + +This module is part of the NI Ettus Research USRP E3x0 SDR. + +This module provides a simple power button event via two interrupts. + +Required properties: +- compatible: should be one of the following + - "ettus,e3x0-button": For devices such as the NI Ettus Research USRP E3x0 +- interrupt-parent: + - a phandle to the interrupt controller that it is attached to. +- interrupts: should be one of the following + - <0 30 1>, <0 31 1>: For devices such as the NI Ettus Research USRP E3x0 +- interrupt-names: should be one of the following + - "press", "release": For devices such as the NI Ettus Research USRP E3x0 + +Note: Interrupt numbers might vary depending on the FPGA configuration. + +Example: + button { + compatible = "ettus,e3x0-button"; + interrupt-parent = <&intc>; + interrupts = <0 30 1>, <0 31 1>; + interrupt-names = "press", "release"; + }