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