xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/net/nfc/st95hf.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* STMicroelectronics : NFC Transceiver ST95HF
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunST NFC Transceiver is required to attach with SPI bus.
4*4882a593SmuzhiyunST95HF node should be defined in DT as SPI slave device of SPI
5*4882a593Smuzhiyunmaster with which ST95HF transceiver is physically connected.
6*4882a593SmuzhiyunThe properties defined below are required to be the part of DT
7*4882a593Smuzhiyunto include ST95HF transceiver into the platform.
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunRequired properties:
10*4882a593Smuzhiyun===================
11*4882a593Smuzhiyun- reg: Address of SPI slave "ST95HF transceiver" on SPI master bus.
12*4882a593Smuzhiyun
13*4882a593Smuzhiyun- compatible: should be "st,st95hf" for ST95HF NFC transceiver
14*4882a593Smuzhiyun
15*4882a593Smuzhiyun- spi-max-frequency: Max. operating SPI frequency for ST95HF
16*4882a593Smuzhiyun	transceiver.
17*4882a593Smuzhiyun
18*4882a593Smuzhiyun- enable-gpio: GPIO line to enable ST95HF transceiver.
19*4882a593Smuzhiyun
20*4882a593Smuzhiyun- interrupts : Standard way to define ST95HF transceiver's out
21*4882a593Smuzhiyun	interrupt.
22*4882a593Smuzhiyun
23*4882a593SmuzhiyunOptional property:
24*4882a593Smuzhiyun=================
25*4882a593Smuzhiyun- st95hfvin-supply : This is an optional property. It contains a
26*4882a593Smuzhiyun	phandle to ST95HF transceiver's regulator supply node in DT.
27*4882a593Smuzhiyun
28*4882a593SmuzhiyunExample:
29*4882a593Smuzhiyun=======
30*4882a593Smuzhiyunspi@9840000 {
31*4882a593Smuzhiyun	reg = <0x9840000 0x110>;
32*4882a593Smuzhiyun	#address-cells = <1>;
33*4882a593Smuzhiyun	#size-cells = <0>;
34*4882a593Smuzhiyun	cs-gpios = <&pio0 4>;
35*4882a593Smuzhiyun
36*4882a593Smuzhiyun	st95hf@0{
37*4882a593Smuzhiyun		reg = <0>;
38*4882a593Smuzhiyun		compatible = "st,st95hf";
39*4882a593Smuzhiyun		spi-max-frequency = <1000000>;
40*4882a593Smuzhiyun		enable-gpio = <&pio4 0>;
41*4882a593Smuzhiyun		interrupt-parent = <&pio0>;
42*4882a593Smuzhiyun		interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
43*4882a593Smuzhiyun	};
44*4882a593Smuzhiyun
45*4882a593Smuzhiyun};
46