xref: /linux/Documentation/devicetree/bindings/net/nfc/nxp,nci.yaml (revision fc2d791a43d3880496d1c729b8bd74d2c19cb4e7)
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              - nxp,pn553
21              - nxp,pn557
22          - const: nxp,nxp-nci-i2c
23
24  enable-gpios:
25    description: Output GPIO pin used for enabling/disabling the controller
26
27  firmware-gpios:
28    description: Output GPIO pin used to enter firmware download mode
29
30  interrupts:
31    maxItems: 1
32
33  reg:
34    maxItems: 1
35
36required:
37  - compatible
38  - enable-gpios
39  - interrupts
40  - reg
41
42additionalProperties: false
43
44examples:
45  - |
46    #include <dt-bindings/gpio/gpio.h>
47    #include <dt-bindings/interrupt-controller/irq.h>
48
49    i2c {
50        #address-cells = <1>;
51        #size-cells = <0>;
52
53        nfc@29 {
54            compatible = "nxp,nxp-nci-i2c";
55
56            reg = <0x29>;
57
58            interrupt-parent = <&gpio1>;
59            interrupts = <29 IRQ_TYPE_LEVEL_HIGH>;
60
61            enable-gpios = <&gpio0 30 GPIO_ACTIVE_HIGH>;
62            firmware-gpios = <&gpio0 31 GPIO_ACTIVE_HIGH>;
63        };
64    };
65