1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/net/nfc/st,st95hf.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: STMicroelectronics ST95HF NFC controller
8
9maintainers:
10  - Krzysztof Kozlowski <krzk@kernel.org>
11
12properties:
13  compatible:
14    const: st,st95hf
15
16  enable-gpio:
17    description: Output GPIO pin used for enabling/disabling the controller
18
19  interrupts:
20    maxItems: 1
21
22  reg:
23    maxItems: 1
24
25  st95hfvin-supply:
26    description: ST95HF transceiver's Vin regulator supply
27
28required:
29  - compatible
30  - enable-gpio
31  - interrupts
32  - reg
33  - spi-max-frequency
34
35allOf:
36  - $ref: /schemas/spi/spi-peripheral-props.yaml#
37
38unevaluatedProperties: false
39
40examples:
41  - |
42    #include <dt-bindings/gpio/gpio.h>
43    #include <dt-bindings/interrupt-controller/irq.h>
44
45    spi {
46        #address-cells = <1>;
47        #size-cells = <0>;
48
49        nfc@0{
50            compatible = "st,st95hf";
51            reg = <0>;
52
53            spi-max-frequency = <1000000>;
54            enable-gpio = <&pio4 GPIO_ACTIVE_HIGH>;
55            interrupt-parent = <&pio0>;
56            interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
57        };
58    };
59