-
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 tag 'nfc-next-4.7-1' of git://git.kernel.org/pub/scm/linux/kern…
…el/git/sameo/nfc-next Samuel Ortiz says: ==================== NFC 4.7 pull request This is the first NFC pull request for 4.7. With this one we mainly have: - Support for NXP's pn532 NFC chipset. The pn532 is based on the same microcontroller as the pn533, but it talks to the host through i2c instead of USB. By separating the pn533 driver into core and PHY parts, we can not add the i2c layer and support the pn532 chipset. - Support for NCI's loopback mode. This is a testing mode where each packet received by the NFCC is sent back to the DH, allowing the host to test that the controller can receive and send data. - A few ACPI related fixes for the STMicro drivers, in order to match the device tree naming scheme. - A bunch of cleanups for the st-nci and the st21nfca STMicro drivers. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
- Loading branch information
Showing
24 changed files
with
1,695 additions
and
1,108 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,31 @@ | ||
* NXP Semiconductors PN532 NFC Controller | ||
|
||
Required properties: | ||
- compatible: Should be "nxp,pn532-i2c" or "nxp,pn533-i2c". | ||
- clock-frequency: I²C work frequency. | ||
- reg: address on the bus | ||
- interrupt-parent: phandle for the interrupt gpio controller | ||
- 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 { | ||
|
||
status = "okay"; | ||
|
||
pn532: pn532@24 { | ||
|
||
compatible = "nxp,pn532-i2c"; | ||
|
||
reg = <0x24>; | ||
clock-frequency = <400000>; | ||
|
||
interrupt-parent = <&gpio1>; | ||
interrupts = <17 IRQ_TYPE_EDGE_FALLING>; | ||
|
||
}; | ||
}; |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
config NFC_PN533 | ||
tristate | ||
help | ||
NXP PN533 core driver. | ||
This driver provides core functionality for NXP PN533 NFC devices. | ||
|
||
config NFC_PN533_USB | ||
tristate "NFC PN533 device support (USB)" | ||
depends on USB | ||
select NFC_PN533 | ||
---help--- | ||
This module adds support for the NXP pn533 USB interface. | ||
Select this if your platform is using the USB bus. | ||
|
||
If you choose to build a module, it'll be called pn533_usb. | ||
Say N if unsure. | ||
|
||
config NFC_PN533_I2C | ||
tristate "NFC PN533 device support (I2C)" | ||
depends on I2C | ||
select NFC_PN533 | ||
---help--- | ||
This module adds support for the NXP pn533 I2C interface. | ||
Select this if your platform is using the I2C bus. | ||
|
||
If you choose to build a module, it'll be called pn533_i2c. | ||
Say N if unsure. |
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,9 @@ | ||
# | ||
# Makefile for PN533 NFC driver | ||
# | ||
pn533_usb-objs = usb.o | ||
pn533_i2c-objs = i2c.o | ||
|
||
obj-$(CONFIG_NFC_PN533) += pn533.o | ||
obj-$(CONFIG_NFC_PN533_USB) += pn533_usb.o | ||
obj-$(CONFIG_NFC_PN533_I2C) += pn533_i2c.o |
Oops, something went wrong.