xref: /freebsd/sys/contrib/device-tree/Bindings/net/nfc/st,st21nfca.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/st,st21nfca.yaml#
5*8cc087a1SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*8cc087a1SEmmanuel Vadot
7*8cc087a1SEmmanuel Vadottitle: STMicroelectronics SAS ST21NFCA NFC controller
8*8cc087a1SEmmanuel Vadot
9*8cc087a1SEmmanuel Vadotmaintainers:
10*8cc087a1SEmmanuel Vadot  - Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
11*8cc087a1SEmmanuel Vadot
12*8cc087a1SEmmanuel Vadotproperties:
13*8cc087a1SEmmanuel Vadot  compatible:
14*8cc087a1SEmmanuel Vadot    const: st,st21nfca-i2c
15*8cc087a1SEmmanuel Vadot
16*8cc087a1SEmmanuel Vadot  enable-gpios:
17*8cc087a1SEmmanuel Vadot    description: Output GPIO pin used for enabling/disabling the controller
18*8cc087a1SEmmanuel Vadot
19*8cc087a1SEmmanuel Vadot  ese-present:
20*8cc087a1SEmmanuel Vadot    type: boolean
21*8cc087a1SEmmanuel Vadot    description: |
22*8cc087a1SEmmanuel Vadot      Specifies that an ese is physically connected to the controller
23*8cc087a1SEmmanuel Vadot
24*8cc087a1SEmmanuel Vadot  interrupts:
25*8cc087a1SEmmanuel Vadot    maxItems: 1
26*8cc087a1SEmmanuel Vadot
27*8cc087a1SEmmanuel Vadot  reg:
28*8cc087a1SEmmanuel Vadot    maxItems: 1
29*8cc087a1SEmmanuel Vadot
30*8cc087a1SEmmanuel Vadot  uicc-present:
31*8cc087a1SEmmanuel Vadot    type: boolean
32*8cc087a1SEmmanuel Vadot    description: |
33*8cc087a1SEmmanuel Vadot      Specifies that the uicc swp signal can be physically connected to the
34*8cc087a1SEmmanuel Vadot      controller
35*8cc087a1SEmmanuel Vadot
36*8cc087a1SEmmanuel Vadotrequired:
37*8cc087a1SEmmanuel Vadot  - compatible
38*8cc087a1SEmmanuel Vadot  - enable-gpios
39*8cc087a1SEmmanuel Vadot  - interrupts
40*8cc087a1SEmmanuel Vadot  - reg
41*8cc087a1SEmmanuel Vadot
42*8cc087a1SEmmanuel VadotadditionalProperties: false
43*8cc087a1SEmmanuel Vadot
44*8cc087a1SEmmanuel Vadotexamples:
45*8cc087a1SEmmanuel Vadot  - |
46*8cc087a1SEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
47*8cc087a1SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
48*8cc087a1SEmmanuel Vadot
49*8cc087a1SEmmanuel Vadot    i2c {
50*8cc087a1SEmmanuel Vadot        #address-cells = <1>;
51*8cc087a1SEmmanuel Vadot        #size-cells = <0>;
52*8cc087a1SEmmanuel Vadot
53*8cc087a1SEmmanuel Vadot        nfc@1 {
54*8cc087a1SEmmanuel Vadot            compatible = "st,st21nfca-i2c";
55*8cc087a1SEmmanuel Vadot            reg = <0x1>;
56*8cc087a1SEmmanuel Vadot
57*8cc087a1SEmmanuel Vadot            interrupt-parent = <&gpio5>;
58*8cc087a1SEmmanuel Vadot            interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
59*8cc087a1SEmmanuel Vadot            enable-gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>;
60*8cc087a1SEmmanuel Vadot
61*8cc087a1SEmmanuel Vadot            ese-present;
62*8cc087a1SEmmanuel Vadot            uicc-present;
63*8cc087a1SEmmanuel Vadot        };
64*8cc087a1SEmmanuel Vadot    };
65