0001 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/net/nfc/st,st21nfca.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: STMicroelectronics SAS ST21NFCA NFC controller
0008
0009 maintainers:
0010 - Krzysztof Kozlowski <krzk@kernel.org>
0011
0012 properties:
0013 compatible:
0014 const: st,st21nfca-i2c
0015
0016 enable-gpios:
0017 description: Output GPIO pin used for enabling/disabling the controller
0018
0019 ese-present:
0020 type: boolean
0021 description: |
0022 Specifies that an ese is physically connected to the controller
0023
0024 interrupts:
0025 maxItems: 1
0026
0027 reg:
0028 maxItems: 1
0029
0030 uicc-present:
0031 type: boolean
0032 description: |
0033 Specifies that the uicc swp signal can be physically connected to the
0034 controller
0035
0036 required:
0037 - compatible
0038 - enable-gpios
0039 - interrupts
0040 - reg
0041
0042 additionalProperties: false
0043
0044 examples:
0045 - |
0046 #include <dt-bindings/gpio/gpio.h>
0047 #include <dt-bindings/interrupt-controller/irq.h>
0048
0049 i2c {
0050 #address-cells = <1>;
0051 #size-cells = <0>;
0052
0053 nfc@1 {
0054 compatible = "st,st21nfca-i2c";
0055 reg = <0x1>;
0056
0057 interrupt-parent = <&gpio5>;
0058 interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
0059 enable-gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>;
0060
0061 ese-present;
0062 uicc-present;
0063 };
0064 };