Back to home page

OSCL-LXR

 
 

    


0001 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
0002 %YAML 1.2
0003 ---
0004 $id: http://devicetree.org/schemas/net/nfc/st,st95hf.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006 
0007 title: STMicroelectronics ST95HF NFC controller
0008 
0009 maintainers:
0010   - Krzysztof Kozlowski <krzk@kernel.org>
0011 
0012 properties:
0013   compatible:
0014     const: st,st95hf
0015 
0016   enable-gpio:
0017     description: Output GPIO pin used for enabling/disabling the controller
0018 
0019   interrupts:
0020     maxItems: 1
0021 
0022   reg:
0023     maxItems: 1
0024 
0025   st95hfvin-supply:
0026     description: ST95HF transceiver's Vin regulator supply
0027 
0028 required:
0029   - compatible
0030   - enable-gpio
0031   - interrupts
0032   - reg
0033   - spi-max-frequency
0034 
0035 allOf:
0036   - $ref: /schemas/spi/spi-peripheral-props.yaml#
0037 
0038 unevaluatedProperties: false
0039 
0040 examples:
0041   - |
0042     #include <dt-bindings/gpio/gpio.h>
0043     #include <dt-bindings/interrupt-controller/irq.h>
0044 
0045     spi {
0046         #address-cells = <1>;
0047         #size-cells = <0>;
0048 
0049         nfc@0{
0050             compatible = "st,st95hf";
0051             reg = <0>;
0052 
0053             spi-max-frequency = <1000000>;
0054             enable-gpio = <&pio4 GPIO_ACTIVE_HIGH>;
0055             interrupt-parent = <&pio0>;
0056             interrupts = <7 IRQ_TYPE_EDGE_FALLING>;
0057         };
0058     };