Search Linux Wireless

[[linux-nfc][PATCH v1] 5/6] DT: bindings: net: nfc: stnfc binding doc

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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 <shikha.singh@xxxxxx>
---
 .../devicetree/bindings/net/nfc/stnfc.txt          | 50 ++++++++++++++++++++++
 1 file changed, 50 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/net/nfc/stnfc.txt

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>;
+	};
+
+};
-- 
1.8.2.1




[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Wireless Personal Area Network]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite Hiking]     [MIPS Linux]     [ARM Linux]     [Linux RAID]

  Powered by Linux