xref: /linux/Documentation/devicetree/bindings/net/nfc/st,st21nfca.yaml (revision 8a1e6bb3f78f06432e095758476358d8cb63c03d)
14d9bae33SKrzysztof Kozlowski# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
24d9bae33SKrzysztof Kozlowski%YAML 1.2
34d9bae33SKrzysztof Kozlowski---
44d9bae33SKrzysztof Kozlowski$id: http://devicetree.org/schemas/net/nfc/st,st21nfca.yaml#
54d9bae33SKrzysztof Kozlowski$schema: http://devicetree.org/meta-schemas/core.yaml#
64d9bae33SKrzysztof Kozlowski
74d9bae33SKrzysztof Kozlowskititle: STMicroelectronics SAS ST21NFCA NFC controller
84d9bae33SKrzysztof Kozlowski
94d9bae33SKrzysztof Kozlowskimaintainers:
10*8a1e6bb3SKrzysztof Kozlowski  - Krzysztof Kozlowski <krzk@kernel.org>
114d9bae33SKrzysztof Kozlowski
124d9bae33SKrzysztof Kozlowskiproperties:
134d9bae33SKrzysztof Kozlowski  compatible:
144d9bae33SKrzysztof Kozlowski    const: st,st21nfca-i2c
154d9bae33SKrzysztof Kozlowski
164d9bae33SKrzysztof Kozlowski  enable-gpios:
174d9bae33SKrzysztof Kozlowski    description: Output GPIO pin used for enabling/disabling the controller
184d9bae33SKrzysztof Kozlowski
194d9bae33SKrzysztof Kozlowski  ese-present:
204d9bae33SKrzysztof Kozlowski    type: boolean
214d9bae33SKrzysztof Kozlowski    description: |
224d9bae33SKrzysztof Kozlowski      Specifies that an ese is physically connected to the controller
234d9bae33SKrzysztof Kozlowski
244d9bae33SKrzysztof Kozlowski  interrupts:
254d9bae33SKrzysztof Kozlowski    maxItems: 1
264d9bae33SKrzysztof Kozlowski
274d9bae33SKrzysztof Kozlowski  reg:
284d9bae33SKrzysztof Kozlowski    maxItems: 1
294d9bae33SKrzysztof Kozlowski
304d9bae33SKrzysztof Kozlowski  uicc-present:
314d9bae33SKrzysztof Kozlowski    type: boolean
324d9bae33SKrzysztof Kozlowski    description: |
334d9bae33SKrzysztof Kozlowski      Specifies that the uicc swp signal can be physically connected to the
344d9bae33SKrzysztof Kozlowski      controller
354d9bae33SKrzysztof Kozlowski
364d9bae33SKrzysztof Kozlowskirequired:
374d9bae33SKrzysztof Kozlowski  - compatible
384d9bae33SKrzysztof Kozlowski  - enable-gpios
394d9bae33SKrzysztof Kozlowski  - interrupts
404d9bae33SKrzysztof Kozlowski  - reg
414d9bae33SKrzysztof Kozlowski
424d9bae33SKrzysztof KozlowskiadditionalProperties: false
434d9bae33SKrzysztof Kozlowski
444d9bae33SKrzysztof Kozlowskiexamples:
454d9bae33SKrzysztof Kozlowski  - |
464d9bae33SKrzysztof Kozlowski    #include <dt-bindings/gpio/gpio.h>
474d9bae33SKrzysztof Kozlowski    #include <dt-bindings/interrupt-controller/irq.h>
484d9bae33SKrzysztof Kozlowski
494d9bae33SKrzysztof Kozlowski    i2c {
504d9bae33SKrzysztof Kozlowski        #address-cells = <1>;
514d9bae33SKrzysztof Kozlowski        #size-cells = <0>;
524d9bae33SKrzysztof Kozlowski
534d9bae33SKrzysztof Kozlowski        nfc@1 {
544d9bae33SKrzysztof Kozlowski            compatible = "st,st21nfca-i2c";
554d9bae33SKrzysztof Kozlowski            reg = <0x1>;
564d9bae33SKrzysztof Kozlowski
574d9bae33SKrzysztof Kozlowski            interrupt-parent = <&gpio5>;
584d9bae33SKrzysztof Kozlowski            interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
594d9bae33SKrzysztof Kozlowski            enable-gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>;
604d9bae33SKrzysztof Kozlowski
614d9bae33SKrzysztof Kozlowski            ese-present;
624d9bae33SKrzysztof Kozlowski            uicc-present;
634d9bae33SKrzysztof Kozlowski        };
644d9bae33SKrzysztof Kozlowski    };
65