xref: /OK3568_Linux_fs/kernel/Documentation/devicetree/bindings/net/nfc/pn532.txt (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun* NXP Semiconductors PN532 NFC Controller
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunRequired properties:
4*4882a593Smuzhiyun- compatible: Should be
5*4882a593Smuzhiyun    - "nxp,pn532" Place a node with this inside the devicetree node of the bus
6*4882a593Smuzhiyun                  where the NFC chip is connected to.
7*4882a593Smuzhiyun                  Currently the kernel has phy bindings for uart and i2c.
8*4882a593Smuzhiyun    - "nxp,pn532-i2c" (DEPRECATED) only works for the i2c binding.
9*4882a593Smuzhiyun    - "nxp,pn533-i2c" (DEPRECATED) only works for the i2c binding.
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunRequired properties if connected on i2c:
12*4882a593Smuzhiyun- clock-frequency: I²C work frequency.
13*4882a593Smuzhiyun- reg: for the I²C bus address. This is fixed at 0x24 for the PN532.
14*4882a593Smuzhiyun- interrupts: GPIO interrupt to which the chip is connected
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunOptional SoC Specific Properties:
17*4882a593Smuzhiyun- pinctrl-names: Contains only one value - "default".
18*4882a593Smuzhiyun- pintctrl-0: Specifies the pin control groups used for this controller.
19*4882a593Smuzhiyun
20*4882a593SmuzhiyunExample (for ARM-based BeagleBone with PN532 on I2C2):
21*4882a593Smuzhiyun
22*4882a593Smuzhiyun&i2c2 {
23*4882a593Smuzhiyun
24*4882a593Smuzhiyun
25*4882a593Smuzhiyun	pn532: nfc@24 {
26*4882a593Smuzhiyun
27*4882a593Smuzhiyun		compatible = "nxp,pn532";
28*4882a593Smuzhiyun
29*4882a593Smuzhiyun		reg = <0x24>;
30*4882a593Smuzhiyun		clock-frequency = <400000>;
31*4882a593Smuzhiyun
32*4882a593Smuzhiyun		interrupt-parent = <&gpio1>;
33*4882a593Smuzhiyun		interrupts = <17 IRQ_TYPE_EDGE_FALLING>;
34*4882a593Smuzhiyun
35*4882a593Smuzhiyun	};
36*4882a593Smuzhiyun};
37*4882a593Smuzhiyun
38*4882a593SmuzhiyunExample (for PN532 connected via uart):
39*4882a593Smuzhiyun
40*4882a593Smuzhiyunuart4: serial@49042000 {
41*4882a593Smuzhiyun        compatible = "ti,omap3-uart";
42*4882a593Smuzhiyun
43*4882a593Smuzhiyun        pn532: nfc {
44*4882a593Smuzhiyun                compatible = "nxp,pn532";
45*4882a593Smuzhiyun        };
46*4882a593Smuzhiyun};
47