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/ti,trf7970a.yaml#
0005 $schema: http://devicetree.org/meta-schemas/core.yaml#
0006
0007 title: Texas Instruments TRF7970A RFID/NFC/15693 Transceiver
0008
0009 maintainers:
0010 - Krzysztof Kozlowski <krzk@kernel.org>
0011 - Mark Greer <mgreer@animalcreek.com>
0012
0013 properties:
0014 compatible:
0015 const: ti,trf7970a
0016
0017 autosuspend-delay:
0018 $ref: /schemas/types.yaml#/definitions/uint32
0019 description: |
0020 Specify autosuspend delay in milliseconds.
0021
0022 clock-frequency:
0023 description: |
0024 Set to specify that the input frequency to the trf7970a is 13560000Hz or
0025 27120000Hz
0026
0027 en2-rf-quirk:
0028 type: boolean
0029 description: |
0030 Specify that the trf7970a being used has the "EN2 RF" erratum
0031
0032 interrupts:
0033 maxItems: 1
0034
0035 irq-status-read-quirk:
0036 type: boolean
0037 description: |
0038 Specify that the trf7970a being used has the "IRQ Status Read" erratum
0039
0040 reg:
0041 maxItems: 1
0042
0043 ti,enable-gpios:
0044 minItems: 1
0045 maxItems: 2
0046 description: |
0047 One or two GPIO entries used for 'EN' and 'EN2' pins on the TRF7970A. EN2
0048 is optional.
0049
0050 vdd-io-supply:
0051 description: |
0052 Regulator specifying voltage for VDD-IO
0053
0054 vin-supply:
0055 description: |
0056 Regulator for supply voltage to VIN pin
0057
0058 required:
0059 - compatible
0060 - interrupts
0061 - reg
0062 - spi-max-frequency
0063 - ti,enable-gpios
0064 - vin-supply
0065
0066 allOf:
0067 - $ref: /schemas/spi/spi-peripheral-props.yaml#
0068
0069 unevaluatedProperties: false
0070
0071 examples:
0072 - |
0073 #include <dt-bindings/gpio/gpio.h>
0074 #include <dt-bindings/interrupt-controller/irq.h>
0075
0076 i2c {
0077 #address-cells = <1>;
0078 #size-cells = <0>;
0079
0080 nfc@0 {
0081 compatible = "ti,trf7970a";
0082 reg = <0>;
0083
0084 pinctrl-names = "default";
0085 pinctrl-0 = <&trf7970a_default>;
0086 spi-max-frequency = <2000000>;
0087 interrupt-parent = <&gpio2>;
0088 interrupts = <14 0>;
0089
0090 ti,enable-gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>,
0091 <&gpio2 5 GPIO_ACTIVE_HIGH>;
0092 vin-supply = <&ldo3_reg>;
0093 vdd-io-supply = <&ldo2_reg>;
0094 autosuspend-delay = <30000>;
0095 irq-status-read-quirk;
0096 en2-rf-quirk;
0097 clock-frequency = <27120000>;
0098 };
0099 };