From patchwork Tue May 2 06:03:42 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Shikha SINGH X-Patchwork-Id: 98395 Delivered-To: patch@linaro.org Received: by 10.140.109.52 with SMTP id k49csp1724033qgf; Mon, 1 May 2017 23:04:34 -0700 (PDT) X-Received: by 10.99.114.3 with SMTP id n3mr31248101pgc.130.1493705074275; Mon, 01 May 2017 23:04:34 -0700 (PDT) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g87si16471146pfj.188.2017.05.01.23.04.34; Mon, 01 May 2017 23:04:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-wireless-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-wireless-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751394AbdEBGEc (ORCPT + 1 other); Tue, 2 May 2017 02:04:32 -0400 Received: from mx08-00178001.pphosted.com ([91.207.212.93]:41054 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751015AbdEBGE3 (ORCPT ); Tue, 2 May 2017 02:04:29 -0400 Received: from pps.filterd (m0046661.ppops.net [127.0.0.1]) by mx08-00178001.pphosted.com (8.16.0.11/8.16.0.11) with SMTP id v425nLqh003313; Tue, 2 May 2017 08:04:25 +0200 Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by mx08-.pphosted.com with ESMTP id 2a4hqc6v86-1 (version=TLSv1 cipher=ECDHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 02 May 2017 08:04:25 +0200 Received: from zeta.dmz-eu.st.com (zeta.dmz-eu.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id D43EE31; Tue, 2 May 2017 06:04:24 +0000 (GMT) Received: from Webmail-eu.st.com (sfhdag2node3.st.com [10.75.127.6]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id C0AE9107C; Tue, 2 May 2017 06:04:24 +0000 (GMT) Received: from localhost (10.75.127.50) by SFHDAG2NODE3.st.com (10.75.127.6) with Microsoft SMTP Server (TLS) id 15.0.1178.4; Tue, 2 May 2017 08:04:24 +0200 From: Shikha Singh To: , , CC: , , , , , Subject: [[linux-nfc][PATCH v1] 5/6] DT: bindings: net: nfc: stnfc binding doc Date: Tue, 2 May 2017 02:03:42 -0400 Message-ID: <1493705023-8710-6-git-send-email-shikha.singh@st.com> X-Mailer: git-send-email 1.8.2.1 In-Reply-To: <1493705023-8710-1-git-send-email-shikha.singh@st.com> References: <1493705023-8710-1-git-send-email-shikha.singh@st.com> MIME-Version: 1.0 X-Originating-IP: [10.75.127.50] X-ClientProxiedBy: SFHDAG4NODE3.st.com (10.75.127.12) To SFHDAG2NODE3.st.com (10.75.127.6) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:, , definitions=2017-05-02_02:, , signatures=0 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org This patch adds ST NFC binding doc that guides how to make SPI slave node entry of ST NFC transceiver in DT file of any platform. Signed-off-by: Shikha Singh --- .../devicetree/bindings/net/nfc/stnfc.txt | 50 ++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/nfc/stnfc.txt -- 1.8.2.1 diff --git a/Documentation/devicetree/bindings/net/nfc/stnfc.txt b/Documentation/devicetree/bindings/net/nfc/stnfc.txt new file mode 100644 index 0000000..b050b3e --- /dev/null +++ b/Documentation/devicetree/bindings/net/nfc/stnfc.txt @@ -0,0 +1,50 @@ +* STMicroelectronics : NFC Transceiver + +ST NFC Transceiver can be attached with SPI bus. +ST NFC node should be defined in DT as SPI slave device of SPI +master with which transceiver is physically connected. +The properties defined below are required to be the part of DT +to include ST NFC transceiver over SPI into the platform. + +Required properties: +=================== +- reg: Address of SPI slave "ST NFC transceiver" on SPI master bus. + +- compatible: should be "st,stnfc" for ST NFC transceiver + +- spi-max-frequency: Max. operating SPI frequency for ST NFC + transceiver. + +- enable-gpio: GPIO line to enable ST NFC transceiver. + +- interrupt-parent : Standard way to specify the controller to which + transceiver's interrupt is routed. + +- interrupts : Standard way to define ST NFC transceiver's out + interrupt. + +Optional property: +================= +- nfcstvin : This is an optional property. It contains a + phandle to ST NFC transceiver's regulator supply node in DT. + +Example: +======= +spi@9840000 { + reg = <0x9840000 0x110>; + #address-cells = <1>; + #size-cells = <0>; + cs-gpios = <&pio0 4>; + status = "okay"; + + stnfc@0{ + reg = <0>; + compatible = "st,stnfc"; + status = "okay"; + spi-max-frequency = <1000000>; + enable-gpio = <&pio4 0>; + interrupt-parent = <&pio0>; + interrupts = <7 IRQ_TYPE_EDGE_FALLING>; + }; + +};