-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'nfc-pn533-add-uart-phy-driver'
Lars Poeschel says: ==================== nfc: pn533: add uart phy driver The purpose of this patch series is to add a uart phy driver to the pn533 nfc driver. It first changes the dt strings and docs. The dt compatible strings need to change, because I would add "pn532-uart" to the already existing "pn533-i2c" one. These two are now unified into just "pn532". Then the neccessary changes to the pn533 core driver are made. Then the uart phy is added. As the pn532 chip supports a autopoll, I wanted to use this instead of the software poll loop in the pn533 core driver. It is added and activated by the last to patches. The way to add the autopoll later in seperate patches is chosen, to show, that the uart phy driver can also work with the software poll loop, if someone needs that for some reason. In v11 of this patchseries I address a byte ordering issue reported by kbuild test robot in patch 5/7. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
- Loading branch information
Showing
9 changed files
with
692 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
* NXP Semiconductors PN532 NFC Controller | ||
|
||
Required properties: | ||
- compatible: Should be | ||
- "nxp,pn532" Place a node with this inside the devicetree node of the bus | ||
where the NFC chip is connected to. | ||
Currently the kernel has phy bindings for uart and i2c. | ||
- "nxp,pn532-i2c" (DEPRECATED) only works for the i2c binding. | ||
- "nxp,pn533-i2c" (DEPRECATED) only works for the i2c binding. | ||
|
||
Required properties if connected on i2c: | ||
- clock-frequency: I²C work frequency. | ||
- reg: for the I²C bus address. This is fixed at 0x24 for the PN532. | ||
- interrupts: GPIO interrupt to which the chip is connected | ||
|
||
Optional SoC Specific Properties: | ||
- pinctrl-names: Contains only one value - "default". | ||
- pintctrl-0: Specifies the pin control groups used for this controller. | ||
|
||
Example (for ARM-based BeagleBone with PN532 on I2C2): | ||
|
||
&i2c2 { | ||
|
||
|
||
pn532: nfc@24 { | ||
|
||
compatible = "nxp,pn532"; | ||
|
||
reg = <0x24>; | ||
clock-frequency = <400000>; | ||
|
||
interrupt-parent = <&gpio1>; | ||
interrupts = <17 IRQ_TYPE_EDGE_FALLING>; | ||
|
||
}; | ||
}; | ||
|
||
Example (for PN532 connected via uart): | ||
|
||
uart4: serial@49042000 { | ||
compatible = "ti,omap3-uart"; | ||
|
||
pn532: nfc { | ||
compatible = "nxp,pn532"; | ||
}; | ||
}; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.