0001 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/net/nfc/nxp,pn544.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: NXP Semiconductors PN544 NFC Controller
0008
0009 maintainers:
0010 - Krzysztof Kozlowski <krzk@kernel.org>
0011
0012 properties:
0013 compatible:
0014 const: nxp,pn544-i2c
0015
0016 reg:
0017 maxItems: 1
0018
0019 interrupts:
0020 maxItems: 1
0021
0022 enable-gpios:
0023 description: Output GPIO pin used for enabling/disabling the PN544
0024 maxItems: 1
0025
0026 firmware-gpios:
0027 description: Output GPIO pin used to enter firmware download mode
0028 maxItems: 1
0029
0030 required:
0031 - compatible
0032 - reg
0033 - interrupts
0034 - enable-gpios
0035 - firmware-gpios
0036
0037 additionalProperties: false
0038
0039 examples:
0040 - |
0041 #include <dt-bindings/gpio/gpio.h>
0042 #include <dt-bindings/interrupt-controller/irq.h>
0043
0044 i2c {
0045 #address-cells = <1>;
0046 #size-cells = <0>;
0047
0048 nfc@28 {
0049 compatible = "nxp,pn544-i2c";
0050 reg = <0x28>;
0051
0052 interrupt-parent = <&gpio1>;
0053 interrupts = <17 IRQ_TYPE_LEVEL_HIGH>;
0054
0055 enable-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>;
0056 firmware-gpios = <&gpio3 19 GPIO_ACTIVE_HIGH>;
0057 };
0058 };