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