xref: /freebsd/sys/contrib/device-tree/Bindings/net/nfc/trf7970a.txt (revision 848ee2a3a8b47c9905fc51fefcf60eb371edbb98)
1* Texas Instruments TRF7970A RFID/NFC/15693 Transceiver
2
3Required properties:
4- compatible: Should be "ti,trf7970a".
5- spi-max-frequency: Maximum SPI frequency (<= 2000000).
6- interrupts: A single interrupt specifier.
7- ti,enable-gpios: One or two GPIO entries used for 'EN' and 'EN2' pins on the
8  TRF7970A. EN2 is optional.
9- vin-supply: Regulator for supply voltage to VIN pin
10
11Optional SoC Specific Properties:
12- pinctrl-names: Contains only one value - "default".
13- pintctrl-0: Specifies the pin control groups used for this controller.
14- autosuspend-delay: Specify autosuspend delay in milliseconds.
15- irq-status-read-quirk: Specify that the trf7970a being used has the
16  "IRQ Status Read" erratum.
17- en2-rf-quirk: Specify that the trf7970a being used has the "EN2 RF"
18  erratum.
19- vdd-io-supply: Regulator specifying voltage for vdd-io
20- clock-frequency: Set to specify that the input frequency to the trf7970a is 13560000Hz or 27120000Hz
21
22Example (for ARM-based BeagleBone with TRF7970A on SPI1):
23
24&spi1 {
25
26	nfc@0 {
27		compatible = "ti,trf7970a";
28		reg = <0>;
29		pinctrl-names = "default";
30		pinctrl-0 = <&trf7970a_default>;
31		spi-max-frequency = <2000000>;
32		interrupt-parent = <&gpio2>;
33		interrupts = <14 0>;
34		ti,enable-gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>,
35				  <&gpio2 5 GPIO_ACTIVE_HIGH>;
36		vin-supply = <&ldo3_reg>;
37		vdd-io-supply = <&ldo2_reg>;
38		autosuspend-delay = <30000>;
39		irq-status-read-quirk;
40		en2-rf-quirk;
41		clock-frequency = <27120000>;
42	};
43};
44