xref: /linux/Documentation/devicetree/bindings/net/nfc/st,st21nfca.yaml (revision 702648721db590b3425c31ade294000e18808345)
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/st,st21nfca.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: STMicroelectronics SAS ST21NFCA NFC controller
8
9maintainers:
10  - Krzysztof Kozlowski <krzk@kernel.org>
11
12properties:
13  compatible:
14    const: st,st21nfca-i2c
15
16  enable-gpios:
17    description: Output GPIO pin used for enabling/disabling the controller
18
19  ese-present:
20    type: boolean
21    description: |
22      Specifies that an ese is physically connected to the controller
23
24  interrupts:
25    maxItems: 1
26
27  reg:
28    maxItems: 1
29
30  uicc-present:
31    type: boolean
32    description: |
33      Specifies that the uicc swp signal can be physically connected to the
34      controller
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@1 {
54            compatible = "st,st21nfca-i2c";
55            reg = <0x1>;
56
57            interrupt-parent = <&gpio5>;
58            interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
59            enable-gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>;
60
61            ese-present;
62            uicc-present;
63        };
64    };
65