[PATCH v3 2/2] NFC: pn544_i2c: Add DTS Documentation

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

 




Describe the properties used by the PN544 NFC controller driver.

Signed-off-by: Clément Perrochaud <clement.perrochaud@xxxxxxx>
---
 .../devicetree/bindings/net/nfc/pn544.txt          | 32 ++++++++++++++++++++++
 1 file changed, 32 insertions(+)
 create mode 100644 Documentation/devicetree/bindings/net/nfc/pn544.txt

diff --git a/Documentation/devicetree/bindings/net/nfc/pn544.txt b/Documentation/devicetree/bindings/net/nfc/pn544.txt
new file mode 100644
index 0000000..2017ad5
--- /dev/null
+++ b/Documentation/devicetree/bindings/net/nfc/pn544.txt
@@ -0,0 +1,32 @@
+* NXP Semiconductors PN544 NFC Controller
+
+Required properties:
+- compatible: Should be "nxp,pn544_i2c".
+- clock-frequency: I²C work frequency.
+- reg: address on the bus
+- irq: Input GPIO pin used for interrupt requests from the controller
+- en: Output GPIO pin used for enabling/disabling the PN544
+- fw: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>;
+
+        irq  = <&gpio1 17 GPIO_ACTIVE_HIGH>;
+        en = <&gpio3 21 GPIO_ACTIVE_HIGH>;
+        fw = <&gpio3 19 GPIO_ACTIVE_HIGH>;
+    };
+};
-- 
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