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