xref: /freebsd/sys/contrib/device-tree/Bindings/net/nfc/ti,trf7970a.yaml (revision 01950c46b8155250f64374fb72fc11faa44bf099)
18cc087a1SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
28cc087a1SEmmanuel Vadot%YAML 1.2
38cc087a1SEmmanuel Vadot---
48cc087a1SEmmanuel Vadot$id: http://devicetree.org/schemas/net/nfc/ti,trf7970a.yaml#
58cc087a1SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
68cc087a1SEmmanuel Vadot
78cc087a1SEmmanuel Vadottitle: Texas Instruments TRF7970A RFID/NFC/15693 Transceiver
88cc087a1SEmmanuel Vadot
98cc087a1SEmmanuel Vadotmaintainers:
10c9ccf3a3SEmmanuel Vadot  - Krzysztof Kozlowski <krzk@kernel.org>
118cc087a1SEmmanuel Vadot  - Mark Greer <mgreer@animalcreek.com>
128cc087a1SEmmanuel Vadot
138cc087a1SEmmanuel Vadotproperties:
148cc087a1SEmmanuel Vadot  compatible:
158cc087a1SEmmanuel Vadot    const: ti,trf7970a
168cc087a1SEmmanuel Vadot
178cc087a1SEmmanuel Vadot  autosuspend-delay:
188cc087a1SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
198cc087a1SEmmanuel Vadot    description: |
208cc087a1SEmmanuel Vadot      Specify autosuspend delay in milliseconds.
218cc087a1SEmmanuel Vadot
228cc087a1SEmmanuel Vadot  clock-frequency:
238cc087a1SEmmanuel Vadot    description: |
248cc087a1SEmmanuel Vadot      Set to specify that the input frequency to the trf7970a is 13560000Hz or
258cc087a1SEmmanuel Vadot      27120000Hz
268cc087a1SEmmanuel Vadot
278cc087a1SEmmanuel Vadot  en2-rf-quirk:
288cc087a1SEmmanuel Vadot    type: boolean
298cc087a1SEmmanuel Vadot    description: |
308cc087a1SEmmanuel Vadot      Specify that the trf7970a being used has the "EN2 RF" erratum
318cc087a1SEmmanuel Vadot
328cc087a1SEmmanuel Vadot  interrupts:
338cc087a1SEmmanuel Vadot    maxItems: 1
348cc087a1SEmmanuel Vadot
358cc087a1SEmmanuel Vadot  irq-status-read-quirk:
368cc087a1SEmmanuel Vadot    type: boolean
378cc087a1SEmmanuel Vadot    description: |
388cc087a1SEmmanuel Vadot      Specify that the trf7970a being used has the "IRQ Status Read" erratum
398cc087a1SEmmanuel Vadot
408cc087a1SEmmanuel Vadot  reg:
418cc087a1SEmmanuel Vadot    maxItems: 1
428cc087a1SEmmanuel Vadot
438cc087a1SEmmanuel Vadot  ti,enable-gpios:
448cc087a1SEmmanuel Vadot    minItems: 1
458cc087a1SEmmanuel Vadot    maxItems: 2
468cc087a1SEmmanuel Vadot    description: |
478cc087a1SEmmanuel Vadot      One or two GPIO entries used for 'EN' and 'EN2' pins on the TRF7970A. EN2
488cc087a1SEmmanuel Vadot      is optional.
498cc087a1SEmmanuel Vadot
508cc087a1SEmmanuel Vadot  vdd-io-supply:
518cc087a1SEmmanuel Vadot    description: |
528cc087a1SEmmanuel Vadot      Regulator specifying voltage for VDD-IO
538cc087a1SEmmanuel Vadot
548cc087a1SEmmanuel Vadot  vin-supply:
558cc087a1SEmmanuel Vadot    description: |
568cc087a1SEmmanuel Vadot      Regulator for supply voltage to VIN pin
578cc087a1SEmmanuel Vadot
588cc087a1SEmmanuel Vadotrequired:
598cc087a1SEmmanuel Vadot  - compatible
608cc087a1SEmmanuel Vadot  - interrupts
618cc087a1SEmmanuel Vadot  - reg
628cc087a1SEmmanuel Vadot  - spi-max-frequency
638cc087a1SEmmanuel Vadot  - ti,enable-gpios
648cc087a1SEmmanuel Vadot  - vin-supply
658cc087a1SEmmanuel Vadot
66b97ee269SEmmanuel VadotallOf:
67b97ee269SEmmanuel Vadot  - $ref: /schemas/spi/spi-peripheral-props.yaml#
68b97ee269SEmmanuel Vadot
69b97ee269SEmmanuel VadotunevaluatedProperties: false
708cc087a1SEmmanuel Vadot
718cc087a1SEmmanuel Vadotexamples:
728cc087a1SEmmanuel Vadot  - |
738cc087a1SEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
748cc087a1SEmmanuel Vadot    #include <dt-bindings/interrupt-controller/irq.h>
758cc087a1SEmmanuel Vadot
76*01950c46SEmmanuel Vadot    spi {
778cc087a1SEmmanuel Vadot        #address-cells = <1>;
788cc087a1SEmmanuel Vadot        #size-cells = <0>;
798cc087a1SEmmanuel Vadot
808cc087a1SEmmanuel Vadot        nfc@0 {
818cc087a1SEmmanuel Vadot            compatible = "ti,trf7970a";
828cc087a1SEmmanuel Vadot            reg = <0>;
838cc087a1SEmmanuel Vadot
848cc087a1SEmmanuel Vadot            pinctrl-names = "default";
858cc087a1SEmmanuel Vadot            pinctrl-0 = <&trf7970a_default>;
868cc087a1SEmmanuel Vadot            spi-max-frequency = <2000000>;
878cc087a1SEmmanuel Vadot            interrupt-parent = <&gpio2>;
888cc087a1SEmmanuel Vadot            interrupts = <14 0>;
898cc087a1SEmmanuel Vadot
908cc087a1SEmmanuel Vadot            ti,enable-gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>,
918cc087a1SEmmanuel Vadot                              <&gpio2 5 GPIO_ACTIVE_HIGH>;
928cc087a1SEmmanuel Vadot            vin-supply = <&ldo3_reg>;
938cc087a1SEmmanuel Vadot            vdd-io-supply = <&ldo2_reg>;
948cc087a1SEmmanuel Vadot            autosuspend-delay = <30000>;
958cc087a1SEmmanuel Vadot            irq-status-read-quirk;
968cc087a1SEmmanuel Vadot            en2-rf-quirk;
978cc087a1SEmmanuel Vadot            clock-frequency = <27120000>;
988cc087a1SEmmanuel Vadot        };
998cc087a1SEmmanuel Vadot    };
100