From patchwork Fri Feb 6 09:32:01 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans Holmberg X-Patchwork-Id: 437130 Return-Path: X-Original-To: incoming-dt@patchwork.ozlabs.org Delivered-To: patchwork-incoming-dt@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 4B45C140281 for ; Fri, 6 Feb 2015 20:29:53 +1100 (AEDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755112AbbBFJ3w (ORCPT ); Fri, 6 Feb 2015 04:29:52 -0500 Received: from mga03.intel.com ([134.134.136.65]:13869 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755076AbbBFJ3v (ORCPT ); Fri, 6 Feb 2015 04:29:51 -0500 Received: from orsmga003.jf.intel.com ([10.7.209.27]) by orsmga103.jf.intel.com with ESMTP; 06 Feb 2015 01:25:04 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.09,528,1418112000"; d="scan'208";a="523541359" Received: from betelguse.isk.intel.com ([10.102.209.11]) by orsmga003.jf.intel.com with ESMTP; 06 Feb 2015 01:22:02 -0800 From: Hans Holmberg To: Dmitry Torokhov Cc: devicetree@vger.kernel.org, linux-input@vger.kernel.org, Hans Holmberg Subject: [PATCH 1/2] Documentation: Device Tree binding information for gpio-joy driver Date: Fri, 6 Feb 2015 10:32:01 +0100 Message-Id: <1423215122-19947-2-git-send-email-hans.holmberg@intel.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1423215122-19947-1-git-send-email-hans.holmberg@intel.com> References: <1423215122-19947-1-git-send-email-hans.holmberg@intel.com> Sender: devicetree-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org This document describes the Device Tree bindings for the gpio-joy driver. Signed-off-by: Hans Holmberg --- .../devicetree/bindings/input/gpio-joy.txt | 29 ++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 Documentation/devicetree/bindings/input/gpio-joy.txt diff --git a/Documentation/devicetree/bindings/input/gpio-joy.txt b/Documentation/devicetree/bindings/input/gpio-joy.txt new file mode 100644 index 0000000..ef8ad09 --- /dev/null +++ b/Documentation/devicetree/bindings/input/gpio-joy.txt @@ -0,0 +1,29 @@ +Device-Tree bindings for input/joystick/gpio_joy.c joystick driver + +This driver can be used for connecting i.e. C64 and Atari joysticks. + +Required properties: + - compatible = "gpio-joy"; + + - left-gpio : gpio connected to the "left" joystick signal + - right-gpio : gpio connected to the "right" joystick signal + - up-gpio : gpio connected to the "up" joystick signal + - down-gpio : gpio connected to the "down" joystick signal + - button-gpio : gpio connected to the "button" joystick signal + See OF device-tree gpio specification. + +Optional properties: + - debounce-interval-ms: debounce interval in milliseconds for connected pins + Default is 10 milliseconds + +Example node: + +joystick { + compatible = "gpio-joy"; + left-gpio = <&gpio 24 GPIO_ACTIVE_LOW>; + right-gpio = <&gpio 10 GPIO_ACTIVE_LOW>; + up-gpio = <&gpio 3 GPIO_ACTIVE_LOW>; + down-gpio = <&gpio 27 GPIO_ACTIVE_LOW>; + button-gpio = <&gpio 2 GPIO_ACTIVE_LOW>; +}; +