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