From patchwork Fri Jan 31 22:17:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mark Greer X-Patchwork-Id: 3563961 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id ABA1EC02DD for ; Fri, 31 Jan 2014 22:17:38 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D15DB20257 for ; Fri, 31 Jan 2014 22:17:37 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EF13E20255 for ; Fri, 31 Jan 2014 22:17:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932979AbaAaWRc (ORCPT ); Fri, 31 Jan 2014 17:17:32 -0500 Received: from p3plsmtpa06-10.prod.phx3.secureserver.net ([173.201.192.111]:40291 "EHLO p3plsmtpa06-10.prod.phx3.secureserver.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932636AbaAaWR2 (ORCPT ); Fri, 31 Jan 2014 17:17:28 -0500 Received: from blue.animalcreek.com ([68.3.92.114]) by p3plsmtpa06-10.prod.phx3.secureserver.net with id LmHR1n00C2U2ZYs01mHR2w; Fri, 31 Jan 2014 15:17:26 -0700 Received: from blue.animalcreek.com (localhost [127.0.0.1]) by blue.animalcreek.com (Postfix) with ESMTP id 12E7865A85; Fri, 31 Jan 2014 15:17:25 -0700 (MST) From: "Mark A. Greer" To: Samuel Ortiz , Lauro Ramos Venancio , Aloisio Almeida Jr Cc: Felipe Balbi , Erick Macias , Thierry Escande , linux-wireless@vger.kernel.org, linux-nfc@lists.01.org, devicetree@vger.kernel.org, "Mark A. Greer" Subject: [PATCH 3/3] NFC: trf7970a: Add DTS Documentation Date: Fri, 31 Jan 2014 15:17:11 -0700 Message-Id: <1391206631-9862-4-git-send-email-mgreer@animalcreek.com> X-Mailer: git-send-email 1.8.3.4 In-Reply-To: <1391206631-9862-1-git-send-email-mgreer@animalcreek.com> References: <1391206631-9862-1-git-send-email-mgreer@animalcreek.com> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.5 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, 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 Describe the properies used by the trf7970a RFID/NFC/15693 transceiver driver. Signed-off-by: Mark A. Greer --- .../devicetree/bindings/net/nfc/trf7970a.txt | 37 ++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/nfc/trf7970a.txt diff --git a/Documentation/devicetree/bindings/net/nfc/trf7970a.txt b/Documentation/devicetree/bindings/net/nfc/trf7970a.txt new file mode 100644 index 0000000..4256893 --- /dev/null +++ b/Documentation/devicetree/bindings/net/nfc/trf7970a.txt @@ -0,0 +1,37 @@ +* Texas Instruments TRF7970A RFID/NFC/15693 Transceiver + +Required properties: +- compatible: Should be "ti,trf7970a". +- spi-max-frequency: Maximum SPI frequency (<= 2000000). +- interrupt-parent: phandle of parent interrupt handler. +- interrupts: A single interrupt specifier. +- ti,enable-gpios: Two GPIO entries used for 'EN' and 'EN2' pins on the + TRF7970A. + +Optional properties: +- ti,ss-gpio: GPIO used for Slave Select pin on TRF7970A. Its presence + indicates that "SPI with SS mode" is used by the TRF7970A. + +Optional SoC Specific Properties: +- pinctrl-names: Contains only one value - "default". +- pintctrl-0: Specifies the pin control groups used for this controller. + +Example (for ARM-based BeagleBone with TRF7970A on SPI1): + +&spi1 { + status = "okay"; + + nfc@0 { + compatible = "ti,trf7970a"; + reg = <0>; + pinctrl-names = "default"; + pinctrl-0 = <&trf7970a_default>; + spi-max-frequency = <2000000>; + interrupt-parent = <&gpio2>; + interrupts = <14 0>; + ti,enable-gpios = <&gpio2 2 GPIO_ACTIVE_LOW>, + <&gpio2 5 GPIO_ACTIVE_LOW>; + ti,ss-gpio = <&gpio1 30 GPIO_ACTIVE_LOW>; + status = "okay"; + }; +};