59 lines · yaml
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause2%YAML 1.23---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 controller8 9maintainers:10 - Krzysztof Kozlowski <krzk@kernel.org>11 12properties:13 compatible:14 const: st,st95hf15 16 enable-gpio:17 description: Output GPIO pin used for enabling/disabling the controller18 19 interrupts:20 maxItems: 121 22 reg:23 maxItems: 124 25 st95hfvin-supply:26 description: ST95HF transceiver's Vin regulator supply27 28required:29 - compatible30 - enable-gpio31 - interrupts32 - reg33 - spi-max-frequency34 35allOf:36 - $ref: /schemas/spi/spi-peripheral-props.yaml#37 38unevaluatedProperties: false39 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