1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/net/nfc/nxp,nci.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: NXP Semiconductors NCI NFC controller
8
9maintainers:
10  - Charles Gorand <charles.gorand@effinnov.com>
11  - Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
12
13properties:
14  compatible:
15    oneOf:
16      - const: nxp,nxp-nci-i2c
17      - items:
18          - const: nxp,pn547
19          - const: nxp,nxp-nci-i2c
20
21  enable-gpios:
22    description: Output GPIO pin used for enabling/disabling the controller
23
24  firmware-gpios:
25    description: Output GPIO pin used to enter firmware download mode
26
27  interrupts:
28    maxItems: 1
29
30  reg:
31    maxItems: 1
32
33required:
34  - compatible
35  - enable-gpios
36  - interrupts
37  - reg
38
39additionalProperties: false
40
41examples:
42  - |
43    #include <dt-bindings/gpio/gpio.h>
44    #include <dt-bindings/interrupt-controller/irq.h>
45
46    i2c {
47        #address-cells = <1>;
48        #size-cells = <0>;
49
50        nfc@29 {
51            compatible = "nxp,nxp-nci-i2c";
52
53            reg = <0x29>;
54
55            interrupt-parent = <&gpio1>;
56            interrupts = <29 IRQ_TYPE_LEVEL_HIGH>;
57
58            enable-gpios = <&gpio0 30 GPIO_ACTIVE_HIGH>;
59            firmware-gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;
60        };
61    };
62