[PATCH v3 0/2] NFC: pn544_i2c: Add device-tree support to PN544

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




This patch brings device-tree support to the pn544_i2c device
driver.

It has been successfully tested on a BeagleBone Black board - a
common ARM-Based SoC - both as a module and built-in.
Testing involved enabling and disabling the chip, as well as
reading a Type 4 NFC tag. Firmware download could not be tested
due to issues in the pn544_i2c device driver unrelated to this
patch.

The submission is broken into two patches: the first one for code
itself and the second one for DTS documentation.

It is based on 48761f6db88da9e733e4405ce9842c0769e4d4ac
(NFC: st21nfca: Implement load_session HCI hook) from the nfc-next master
branch.

Changes from v2:
 - Forgotten documentation patch has been added.
 - pn544_hci_i2c_of_request_resources is now static and takes a struct
i2c_client as argument instead of a struct pn544_i2c_phy.
 - Spacing around operators has been added.
 - Test for device-tree use instead of platform data has been improved.

Changes from v1:
 - Incorrect resource freeing on module removal has been fixed.
 - Compatibility table variable name has been corrected to match
standard pattern.

Clément Perrochaud (2):
  NFC: pn544_i2c: Add device-tree (Open Firmware) support to PN544
  NFC: pn544_i2c: Add DTS Documentation

 .../devicetree/bindings/net/nfc/pn544.txt          |  32 ++++
 drivers/nfc/pn544/i2c.c                            | 162 ++++++++++++++++++---
 2 files changed, 177 insertions(+), 17 deletions(-)
 create mode 100644 Documentation/devicetree/bindings/net/nfc/pn544.txt

-- 
1.9.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Device Tree Compilter]     [Device Tree Spec]     [Linux Driver Backports]     [Video for Linux]     [Linux USB Devel]     [Linux PCI Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Yosemite Backpacking]
  Powered by Linux