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  - Krzysztof Kozlowski <krzk@kernel.org>
11
12properties:
13  compatible:
14    oneOf:
15      - const: nxp,nxp-nci-i2c
16      - items:
17          - enum:
18              - nxp,nq310
19              - nxp,pn547
20          - const: nxp,nxp-nci-i2c
21
22  enable-gpios:
23    description: Output GPIO pin used for enabling/disabling the controller
24
25  firmware-gpios:
26    description: Output GPIO pin used to enter firmware download mode
27
28  interrupts:
29    maxItems: 1
30
31  reg:
32    maxItems: 1
33
34required:
35  - compatible
36  - enable-gpios
37  - interrupts
38  - reg
39
40additionalProperties: false
41
42examples:
43  - |
44    #include <dt-bindings/gpio/gpio.h>
45    #include <dt-bindings/interrupt-controller/irq.h>
46
47    i2c {
48        #address-cells = <1>;
49        #size-cells = <0>;
50
51        nfc@29 {
52            compatible = "nxp,nxp-nci-i2c";
53
54            reg = <0x29>;
55
56            interrupt-parent = <&gpio1>;
57            interrupts = <29 IRQ_TYPE_LEVEL_HIGH>;
58
59            enable-gpios = <&gpio0 30 GPIO_ACTIVE_HIGH>;
60            firmware-gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;
61        };
62    };
63