Return-path: Received: from mx07-00178001.pphosted.com ([62.209.51.94]:9409 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752346AbbKFMkd (ORCPT ); Fri, 6 Nov 2015 07:40:33 -0500 From: Shikha Singh To: , , , , CC: , , , , Subject: [[linux-nfc] PATCH v2.0 3/3] DT: bindings: net: nfc: ST95HF binding doc Date: Fri, 6 Nov 2015 07:38:18 -0500 Message-ID: <1446813498-22981-4-git-send-email-shikha.singh@st.com> (sfid-20151106_134043_333826_ABAB117B) In-Reply-To: <1446813498-22981-1-git-send-email-shikha.singh@st.com> References: <1446813498-22981-1-git-send-email-shikha.singh@st.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-wireless-owner@vger.kernel.org List-ID: This patch includes ST95HF binding doc that guides how to make node entry of ST95HF in DT file of any platform. Signed-off-by: Shikha Singh --- .../devicetree/bindings/net/nfc/st95hf.txt | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 Documentation/devicetree/bindings/net/nfc/st95hf.txt diff --git a/Documentation/devicetree/bindings/net/nfc/st95hf.txt b/Documentation/devicetree/bindings/net/nfc/st95hf.txt new file mode 100644 index 0000000..4f90536 --- /dev/null +++ b/Documentation/devicetree/bindings/net/nfc/st95hf.txt @@ -0,0 +1,48 @@ +* STMicroelectronics : NFC Transceiver ST95HF + +ST NFC Transceiver is required to attach with SPI bus. +ST95HF 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 transceiver into the platform. + +Required properties: + +- reg: Address of SPI slave "transceiver" on SPI master bus. + +- compatible: should be "st,st95hf" for ST NFC transceiver + +- spi-max-frequency: Max. operating SPI frequency for transceiver. + +- enable-gpio: GPIO line used to enable transceiver. + +- interrupt-parent : Standard way to specify the controller to which + transceiver interrupt is routed. + +- interrupts : Standard way to define device (transceiver's out) interrupt. + +Optional property: + +- st95hfvin-supply : This is an optional property.It contains a phandle to + transceiver regulator supply node in DT. + +Example: + spi@9840000 { + reg = <0x9840000 0x110>; + #address-cells = <1>; + #size-cells = <0>; + cs-gpios = <&pio0 4>; + status = "okay"; + + st95hf@0{ + reg = <0>; + compatible = "st,st95hf"; + status = "okay"; + spi-max-frequency = <1000000>; + enable-gpio = <&pio4 0>; + interrupt-parent = <&pio0>; + interrupts = <7 IRQ_TYPE_EDGE_FALLING>; + }; + + }; + -- 1.8.2.1