This repository has been archived by the owner on Jan 6, 2020. It is now read-only.
forked from meteorza/Amlogic_s905-kernel
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
NFC: nxp-nci_i2c: Add I2C support to NXP NCI driver
Add a module to the NXP-NCI driver to support NFC controllers with an I2C control interface, such as the NPC100. Signed-off-by: Clément Perrochaud <clement.perrochaud@effinnov.com> Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
- Loading branch information
Clément Perrochaud
authored and
Samuel Ortiz
committed
Mar 26, 2015
1 parent
dece458
commit 6be8867
Showing
4 changed files
with
464 additions
and
0 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 NXP NCI NFC Controllers | ||
|
||
Required properties: | ||
- compatible: Should be "nxp,nxp-nci-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 chip | ||
- 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 NPC100 NFC controller on I2C2): | ||
|
||
&i2c2 { | ||
|
||
status = "okay"; | ||
|
||
npc100: npc100@29 { | ||
|
||
compatible = "nxp,nxp-nci-i2c"; | ||
|
||
reg = <0x29>; | ||
clock-frequency = <100000>; | ||
|
||
interrupt-parent = <&gpio1>; | ||
interrupts = <29 GPIO_ACTIVE_HIGH>; | ||
|
||
enable-gpios = <&gpio0 30 GPIO_ACTIVE_HIGH>; | ||
firmware-gpios = <&gpio0 31 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
Oops, something went wrong.