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 has been tested successfully but was only possible after heavy code modification out of the scope of this patch. The submission is broken into two patches: one for code itself and the second for DTS documentation. It is based on 48761f6db88da9e733e4405ce9842c0769e4d4ac (NFC: st21nfca: Implement load_session HCI hook) from the nfc-next master branch. Changes from v3: - Better handling of errors in case of absence of both platform-data and device-tree. - Implementation of Open Firmware interrupts. - Modification if the compatible string to fit device-tree guidelines. - Modification of the properties to fit device-tree naming conventions. 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 | 35 +++++ drivers/nfc/pn544/i2c.c | 148 ++++++++++++++++++--- 2 files changed, 166 insertions(+), 17 deletions(-) create mode 100644 Documentation/devicetree/bindings/net/nfc/pn544.txt -- 1.9.1 -- 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