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