100 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/ti,trf7970a.yaml#5$schema: http://devicetree.org/meta-schemas/core.yaml#6 7title: Texas Instruments TRF7970A RFID/NFC/15693 Transceiver8 9maintainers:10 - Krzysztof Kozlowski <krzk@kernel.org>11 - Mark Greer <mgreer@animalcreek.com>12 13properties:14 compatible:15 const: ti,trf7970a16 17 autosuspend-delay:18 $ref: /schemas/types.yaml#/definitions/uint3219 description: |20 Specify autosuspend delay in milliseconds.21 22 clock-frequency:23 description: |24 Set to specify that the input frequency to the trf7970a is 13560000Hz or25 27120000Hz26 27 en2-rf-quirk:28 type: boolean29 description: |30 Specify that the trf7970a being used has the "EN2 RF" erratum31 32 interrupts:33 maxItems: 134 35 irq-status-read-quirk:36 type: boolean37 description: |38 Specify that the trf7970a being used has the "IRQ Status Read" erratum39 40 reg:41 maxItems: 142 43 ti,enable-gpios:44 minItems: 145 maxItems: 246 description: |47 One or two GPIO entries used for 'EN' and 'EN2' pins on the TRF7970A. EN248 is optional.49 50 vdd-io-supply:51 description: |52 Regulator specifying voltage for VDD-IO53 54 vin-supply:55 description: |56 Regulator for supply voltage to VIN pin57 58required:59 - compatible60 - interrupts61 - reg62 - spi-max-frequency63 - ti,enable-gpios64 - vin-supply65 66allOf:67 - $ref: /schemas/spi/spi-peripheral-props.yaml#68 69unevaluatedProperties: false70 71examples:72 - |73 #include <dt-bindings/gpio/gpio.h>74 #include <dt-bindings/interrupt-controller/irq.h>75 76 spi {77 #address-cells = <1>;78 #size-cells = <0>;79 80 nfc@0 {81 compatible = "ti,trf7970a";82 reg = <0>;83 84 pinctrl-names = "default";85 pinctrl-0 = <&trf7970a_default>;86 spi-max-frequency = <2000000>;87 interrupt-parent = <&gpio2>;88 interrupts = <14 0>;89 90 ti,enable-gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>,91 <&gpio2 5 GPIO_ACTIVE_HIGH>;92 vin-supply = <&ldo3_reg>;93 vdd-io-supply = <&ldo2_reg>;94 autosuspend-delay = <30000>;95 irq-status-read-quirk;96 en2-rf-quirk;97 clock-frequency = <27120000>;98 };99 };100