-
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-3.16-1' of git://git.kernel.org/pub/scm/linux/ker…
…nel/git/sameo/nfc-next Samuel Ortiz <sameo@linux.intel.com> says: "NFC: 3.16: First pull request This is the NFC pull request for 3.16. We have: - STMicroeectronics st21nfca support. The st21nfca is an HCI chipset and thus relies on the HCI stack. This submission provides support for tag redaer/writer mode (including Type 5) and device tree bindings. - PM runtime support and a bunch of bug fixes for TI's trf7970a. - Device tree support for NXP's pn544. Legacy platform data support is obviously kept intact. - NFC Tag type 4B support to the NFC Digital stack. - SOCK_RAW type support to the raw NFC socket, and allow NCI sniffing from that. This can be extended to report HCI frames and also proprietarry ones like e.g. the pn533 ones." Signed-off-by: John W. Linville <linville@tuxdriver.com>
- Loading branch information
Showing
28 changed files
with
2,368 additions
and
139 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,35 @@ | ||
* NXP Semiconductors PN544 NFC Controller | ||
|
||
Required properties: | ||
- compatible: Should be "nxp,pn544-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 | ||
- enable-gpios: Output GPIO pin used for enabling/disabling the PN544 | ||
- firmware-gpios: Output GPIO pin used to enter firmware download mode | ||
|
||
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 PN544 on I2C2): | ||
|
||
&i2c2 { | ||
|
||
status = "okay"; | ||
|
||
pn544: pn544@28 { | ||
|
||
compatible = "nxp,pn544-i2c"; | ||
|
||
reg = <0x28>; | ||
clock-frequency = <400000>; | ||
|
||
interrupt-parent = <&gpio1>; | ||
interrupts = <17 GPIO_ACTIVE_HIGH>; | ||
|
||
enable-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>; | ||
firmware-gpios = <&gpio3 19 GPIO_ACTIVE_HIGH>; | ||
}; | ||
}; |
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,33 @@ | ||
* STMicroelectronics SAS. ST21NFCA NFC Controller | ||
|
||
Required properties: | ||
- compatible: Should be "st,st21nfca-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 | ||
- enable-gpios: Output GPIO pin used for enabling/disabling the ST21NFCA | ||
|
||
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 BeagleBoard xM with ST21NFCA on I2C2): | ||
|
||
&i2c2 { | ||
|
||
status = "okay"; | ||
|
||
st21nfca: st21nfca@1 { | ||
|
||
compatible = "st,st21nfca_i2c"; | ||
|
||
reg = <0x01>; | ||
clock-frequency = <400000>; | ||
|
||
interrupt-parent = <&gpio5>; | ||
interrupts = <2 IRQ_TYPE_LEVEL_LOW>; | ||
|
||
enable-gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>; | ||
}; | ||
}; |
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,23 @@ | ||
config NFC_ST21NFCA | ||
tristate "STMicroelectronics ST21NFCA NFC driver" | ||
depends on NFC_HCI | ||
select CRC_CCITT | ||
default n | ||
---help--- | ||
STMicroelectronics ST21NFCA core driver. It implements the chipset | ||
HCI logic and hooks into the NFC kernel APIs. Physical layers will | ||
register against it. | ||
|
||
To compile this driver as a module, choose m here. The module will | ||
be called st21nfca. | ||
Say N if unsure. | ||
|
||
config NFC_ST21NFCA_I2C | ||
tristate "NFC ST21NFCA i2c support" | ||
depends on NFC_ST21NFCA && I2C && NFC_SHDLC | ||
---help--- | ||
This module adds support for the STMicroelectronics st21nfca i2c interface. | ||
Select this if your platform is using the i2c bus. | ||
|
||
If you choose to build a module, it'll be called st21nfca_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,8 @@ | ||
# | ||
# Makefile for ST21NFCA HCI based NFC driver | ||
# | ||
|
||
st21nfca_i2c-objs = i2c.o | ||
|
||
obj-$(CONFIG_NFC_ST21NFCA) += st21nfca.o | ||
obj-$(CONFIG_NFC_ST21NFCA_I2C) += st21nfca_i2c.o |
Oops, something went wrong.