xref: /linux/Documentation/devicetree/bindings/net/nfc/st,st95hf.yaml (revision 0a94608f0f7de9b1135ffea3546afe68eafef57f)
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
28  spi-max-frequency: true
29
30required:
31  - compatible
32  - enable-gpio
33  - interrupts
34  - reg
35  - spi-max-frequency
36
37additionalProperties: false
38
39examples:
40  - |
41    #include <dt-bindings/gpio/gpio.h>
42    #include <dt-bindings/interrupt-controller/irq.h>
43
44    spi {
45        #address-cells = <1>;
46        #size-cells = <0>;
47
48        nfc@0{
49            compatible = "st,st95hf";
50            reg = <0>;
51
52            spi-max-frequency = <1000000>;
53            enable-gpio = <&pio4 GPIO_ACTIVE_HIGH>;
54            interrupt-parent = <&pio0>;
55            interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
56        };
57    };
58