xref: /freebsd/sys/contrib/device-tree/Bindings/net/nfc/st,st21nfca.yaml (revision c9ccf3a32da427475985b85d7df023ccfb138c27)
18cc087a1SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
28cc087a1SEmmanuel Vadot%YAML 1.2
38cc087a1SEmmanuel Vadot---
48cc087a1SEmmanuel Vadot$id: http://devicetree.org/schemas/net/nfc/st,st21nfca.yaml#
58cc087a1SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
68cc087a1SEmmanuel Vadot
78cc087a1SEmmanuel Vadottitle: STMicroelectronics SAS ST21NFCA NFC controller
88cc087a1SEmmanuel Vadot
98cc087a1SEmmanuel Vadotmaintainers:
10*c9ccf3a3SEmmanuel Vadot  - Krzysztof Kozlowski <krzk@kernel.org>
118cc087a1SEmmanuel Vadot
128cc087a1SEmmanuel Vadotproperties:
138cc087a1SEmmanuel Vadot  compatible:
148cc087a1SEmmanuel Vadot    const: st,st21nfca-i2c
158cc087a1SEmmanuel Vadot
168cc087a1SEmmanuel Vadot  enable-gpios:
178cc087a1SEmmanuel Vadot    description: Output GPIO pin used for enabling/disabling the controller
188cc087a1SEmmanuel Vadot
198cc087a1SEmmanuel Vadot  ese-present:
208cc087a1SEmmanuel Vadot    type: boolean
218cc087a1SEmmanuel Vadot    description: |
228cc087a1SEmmanuel Vadot      Specifies that an ese is physically connected to the controller
238cc087a1SEmmanuel Vadot
248cc087a1SEmmanuel Vadot  interrupts:
258cc087a1SEmmanuel Vadot    maxItems: 1
268cc087a1SEmmanuel Vadot
278cc087a1SEmmanuel Vadot  reg:
288cc087a1SEmmanuel Vadot    maxItems: 1
298cc087a1SEmmanuel Vadot
308cc087a1SEmmanuel Vadot  uicc-present:
318cc087a1SEmmanuel Vadot    type: boolean
328cc087a1SEmmanuel Vadot    description: |
338cc087a1SEmmanuel Vadot      Specifies that the uicc swp signal can be physically connected to the
348cc087a1SEmmanuel Vadot      controller
358cc087a1SEmmanuel Vadot
368cc087a1SEmmanuel Vadotrequired:
378cc087a1SEmmanuel Vadot  - compatible
388cc087a1SEmmanuel Vadot  - enable-gpios
398cc087a1SEmmanuel Vadot  - interrupts
408cc087a1SEmmanuel Vadot  - reg
418cc087a1SEmmanuel Vadot
428cc087a1SEmmanuel VadotadditionalProperties: false
438cc087a1SEmmanuel Vadot
448cc087a1SEmmanuel Vadotexamples:
458cc087a1SEmmanuel Vadot  - |
468cc087a1SEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
478cc087a1SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
488cc087a1SEmmanuel Vadot
498cc087a1SEmmanuel Vadot    i2c {
508cc087a1SEmmanuel Vadot        #address-cells = <1>;
518cc087a1SEmmanuel Vadot        #size-cells = <0>;
528cc087a1SEmmanuel Vadot
538cc087a1SEmmanuel Vadot        nfc@1 {
548cc087a1SEmmanuel Vadot            compatible = "st,st21nfca-i2c";
558cc087a1SEmmanuel Vadot            reg = <0x1>;
568cc087a1SEmmanuel Vadot
578cc087a1SEmmanuel Vadot            interrupt-parent = <&gpio5>;
588cc087a1SEmmanuel Vadot            interrupts = <2 IRQ_TYPE_LEVEL_LOW>;
598cc087a1SEmmanuel Vadot            enable-gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>;
608cc087a1SEmmanuel Vadot
618cc087a1SEmmanuel Vadot            ese-present;
628cc087a1SEmmanuel Vadot            uicc-present;
638cc087a1SEmmanuel Vadot        };
648cc087a1SEmmanuel Vadot    };
65