xref: /linux/Documentation/devicetree/bindings/net/nfc/st,st21nfca.yaml (revision 4d9bae3345c3cc067202d894305487b93303a44d)
1*4d9bae33SKrzysztof Kozlowski# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2*4d9bae33SKrzysztof Kozlowski%YAML 1.2
3*4d9bae33SKrzysztof Kozlowski---
4*4d9bae33SKrzysztof Kozlowski$id: http://devicetree.org/schemas/net/nfc/st,st21nfca.yaml#
5*4d9bae33SKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml#
6*4d9bae33SKrzysztof Kozlowski
7*4d9bae33SKrzysztof Kozlowskititle: STMicroelectronics SAS ST21NFCA NFC controller
8*4d9bae33SKrzysztof Kozlowski
9*4d9bae33SKrzysztof Kozlowskimaintainers:
10*4d9bae33SKrzysztof Kozlowski  - Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
11*4d9bae33SKrzysztof Kozlowski
12*4d9bae33SKrzysztof Kozlowskiproperties:
13*4d9bae33SKrzysztof Kozlowski  compatible:
14*4d9bae33SKrzysztof Kozlowski    const: st,st21nfca-i2c
15*4d9bae33SKrzysztof Kozlowski
16*4d9bae33SKrzysztof Kozlowski  enable-gpios:
17*4d9bae33SKrzysztof Kozlowski    description: Output GPIO pin used for enabling/disabling the controller
18*4d9bae33SKrzysztof Kozlowski
19*4d9bae33SKrzysztof Kozlowski  ese-present:
20*4d9bae33SKrzysztof Kozlowski    type: boolean
21*4d9bae33SKrzysztof Kozlowski    description: |
22*4d9bae33SKrzysztof Kozlowski      Specifies that an ese is physically connected to the controller
23*4d9bae33SKrzysztof Kozlowski
24*4d9bae33SKrzysztof Kozlowski  interrupts:
25*4d9bae33SKrzysztof Kozlowski    maxItems: 1
26*4d9bae33SKrzysztof Kozlowski
27*4d9bae33SKrzysztof Kozlowski  reg:
28*4d9bae33SKrzysztof Kozlowski    maxItems: 1
29*4d9bae33SKrzysztof Kozlowski
30*4d9bae33SKrzysztof Kozlowski  uicc-present:
31*4d9bae33SKrzysztof Kozlowski    type: boolean
32*4d9bae33SKrzysztof Kozlowski    description: |
33*4d9bae33SKrzysztof Kozlowski      Specifies that the uicc swp signal can be physically connected to the
34*4d9bae33SKrzysztof Kozlowski      controller
35*4d9bae33SKrzysztof Kozlowski
36*4d9bae33SKrzysztof Kozlowskirequired:
37*4d9bae33SKrzysztof Kozlowski  - compatible
38*4d9bae33SKrzysztof Kozlowski  - enable-gpios
39*4d9bae33SKrzysztof Kozlowski  - interrupts
40*4d9bae33SKrzysztof Kozlowski  - reg
41*4d9bae33SKrzysztof Kozlowski
42*4d9bae33SKrzysztof KozlowskiadditionalProperties: false
43*4d9bae33SKrzysztof Kozlowski
44*4d9bae33SKrzysztof Kozlowskiexamples:
45*4d9bae33SKrzysztof Kozlowski  - |
46*4d9bae33SKrzysztof Kozlowski    #include <dt-bindings/gpio/gpio.h>
47*4d9bae33SKrzysztof Kozlowski    #include <dt-bindings/interrupt-controller/irq.h>
48*4d9bae33SKrzysztof Kozlowski
49*4d9bae33SKrzysztof Kozlowski    i2c {
50*4d9bae33SKrzysztof Kozlowski        #address-cells = <1>;
51*4d9bae33SKrzysztof Kozlowski        #size-cells = <0>;
52*4d9bae33SKrzysztof Kozlowski
53*4d9bae33SKrzysztof Kozlowski        nfc@1 {
54*4d9bae33SKrzysztof Kozlowski            compatible = "st,st21nfca-i2c";
55*4d9bae33SKrzysztof Kozlowski            reg = <0x1>;
56*4d9bae33SKrzysztof Kozlowski
57*4d9bae33SKrzysztof Kozlowski            interrupt-parent = <&gpio5>;
58*4d9bae33SKrzysztof Kozlowski            interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
59*4d9bae33SKrzysztof Kozlowski            enable-gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>;
60*4d9bae33SKrzysztof Kozlowski
61*4d9bae33SKrzysztof Kozlowski            ese-present;
62*4d9bae33SKrzysztof Kozlowski            uicc-present;
63*4d9bae33SKrzysztof Kozlowski        };
64*4d9bae33SKrzysztof Kozlowski    };
65