Skip to content

Commit 3c57b39

Browse files
poescheldavem330
authored andcommitted
nfc: pn532: Add uart phy docs and rename it
This adds documentation about the uart phy to the pn532 binding doc. As the filename "pn533-i2c.txt" is not appropriate any more, rename it to the more general "pn532.txt". This also documents the deprecation of the compatible strings ending with "...-i2c". Cc: Johan Hovold <[email protected]> Cc: Simon Horman <[email protected]> Reviewed-by: Rob Herring <[email protected]> Signed-off-by: Lars Poeschel <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 3d5f3a6 commit 3c57b39

File tree

2 files changed

+46
-29
lines changed

2 files changed

+46
-29
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
* NXP Semiconductors PN532 NFC Controller
2+
3+
Required 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+
11+
Required 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+
16+
Optional SoC Specific Properties:
17+
- pinctrl-names: Contains only one value - "default".
18+
- pintctrl-0: Specifies the pin control groups used for this controller.
19+
20+
Example (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+
38+
Example (for PN532 connected via uart):
39+
40+
uart4: serial@49042000 {
41+
compatible = "ti,omap3-uart";
42+
43+
pn532: nfc {
44+
compatible = "nxp,pn532";
45+
};
46+
};

Documentation/devicetree/bindings/net/nfc/pn533-i2c.txt

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)