From patchwork Sun Feb 12 19:13:07 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marc Dietrich X-Patchwork-Id: 140826 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id 1042FB6F9D for ; Mon, 13 Feb 2012 06:14:07 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755823Ab2BLTOF (ORCPT ); Sun, 12 Feb 2012 14:14:05 -0500 Received: from mailout-de.gmx.net ([213.165.64.22]:35119 "HELO mailout-de.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1755821Ab2BLTOD (ORCPT ); Sun, 12 Feb 2012 14:14:03 -0500 Received: (qmail invoked by alias); 12 Feb 2012 19:14:02 -0000 Received: from pD9E5C601.dip0.t-ipconnect.de (EHLO localhost.localdomain) [217.229.198.1] by mail.gmx.net (mp070) with SMTP; 12 Feb 2012 20:14:02 +0100 X-Authenticated: #9962044 X-Provags-ID: V01U2FsdGVkX1+WdxkfIbGWYweJqKKAPOca7/rispHGJtPZ3kk5SJ f7cLBQa/xd8Anj From: Marc Dietrich To: linux-tegra@vger.kernel.org Cc: Stephen Warren , Colin Cross , Olof Johansson , linux-wireless@vger.kernel.org, "John W. Linville" , Johannes Berg , Rhyland Klein , Grant Likely , devicetree-discuss@lists.ozlabs.org Subject: [PATCH 2/3] dt: rfkill-gpio: add bindings documentation Date: Sun, 12 Feb 2012 20:13:07 +0100 Message-Id: <86044d44009316a48b402050f9dd742391d46eac.1329073559.git.marvin24@gmx.de> X-Mailer: git-send-email 1.7.5.4 In-Reply-To: <1ec0e63a7453072689618430ebc2bdd7b62542a2.1329073559.git.marvin24@gmx.de> References: <1ec0e63a7453072689618430ebc2bdd7b62542a2.1329073559.git.marvin24@gmx.de> In-Reply-To: <1ec0e63a7453072689618430ebc2bdd7b62542a2.1329073559.git.marvin24@gmx.de> References: <1ec0e63a7453072689618430ebc2bdd7b62542a2.1329073559.git.marvin24@gmx.de> X-Y-GMX-Trusted: 0 Sender: linux-tegra-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-tegra@vger.kernel.org Add device tree bindings information for rfkill gpio switches. Cc: linux-wireless@vger.kernel.org Cc: "John W. Linville" Cc: Johannes Berg Cc: Rhyland Klein Cc: Grant Likely Cc: devicetree-discuss@lists.ozlabs.org Signed-off-by: Marc Dietrich --- Documentation/devicetree/bindings/gpio/rfkill.txt | 38 +++++++++++++++++++++ 1 files changed, 38 insertions(+), 0 deletions(-) create mode 100644 Documentation/devicetree/bindings/gpio/rfkill.txt diff --git a/Documentation/devicetree/bindings/gpio/rfkill.txt b/Documentation/devicetree/bindings/gpio/rfkill.txt new file mode 100644 index 0000000..22bf22a --- /dev/null +++ b/Documentation/devicetree/bindings/gpio/rfkill.txt @@ -0,0 +1,38 @@ +RFKILL switches connected to GPIO lines + +Required properties: +- compatible : should be "rfkill-gpio". + +Each rfkill switch is represented as a sub-node of the rfkill-gpio device. +Each node has a label property which represents the name of the corresponding +rfkill device. + +RFKILL sub-node properties: +- label : (optional) The label for this rfkill switch. If omitted, the label is + taken from the node name (excluding the unit address). +- reset-gpio, shutdown-gpio : Should specify the rfkill gpios for reset and + shutdown (see "Specifying GPIO information for devices" in + Documentation/devicetree/booting-without-of.txt). +- type : enumerated type of the gpio (see include/linux/rfkill.h). +- clock : (optional) name of the clock name associated with the rfkill switch + (see include/linux/rfkill-gpio.h) + +Examples: + +rfkill-switches { + compatible = "rfkill-gpio"; + + wifi { + label = "wifi"; + reset-gpio = <&gpio 25 0>; /* Active high */ + shutdown-gpio = <&gpio 85 0>; /* Active high */ + type = <1>; + }; + + bt { + label = "bluetooth"; + reset-gpio = <&gpio 17 0>; /* Active high */ + shutdown-gpio = <&gpio 35 0>; /* Active high */ + type = <1>; + }; +};