Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
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- interrupt-parent: phandle of parent interrupt handler.
7- interrupts: A single interrupt specifier.
8- ti,enable-gpios: One or two GPIO entries used for 'EN' and 'EN2' pins on the
9 TRF7970A. EN2 is optional.
10- vin-supply: Regulator for supply voltage to VIN pin
11
12Optional SoC Specific Properties:
13- pinctrl-names: Contains only one value - "default".
14- pintctrl-0: Specifies the pin control groups used for this controller.
15- autosuspend-delay: Specify autosuspend delay in milliseconds.
16- irq-status-read-quirk: Specify that the trf7970a being used has the
17 "IRQ Status Read" erratum.
18- en2-rf-quirk: Specify that the trf7970a being used has the "EN2 RF"
19 erratum.
20- vdd-io-supply: Regulator specifying voltage for vdd-io
21- clock-frequency: Set to specify that the input frequency to the trf7970a is 13560000Hz or 27120000Hz
22
23Example (for ARM-based BeagleBone with TRF7970A on SPI1):
24
25&spi1 {
26
27 nfc@0 {
28 compatible = "ti,trf7970a";
29 reg = <0>;
30 pinctrl-names = "default";
31 pinctrl-0 = <&trf7970a_default>;
32 spi-max-frequency = <2000000>;
33 interrupt-parent = <&gpio2>;
34 interrupts = <14 0>;
35 ti,enable-gpios = <&gpio2 2 GPIO_ACTIVE_HIGH>,
36 <&gpio2 5 GPIO_ACTIVE_HIGH>;
37 vin-supply = <&ldo3_reg>;
38 vdd-io-supply = <&ldo2_reg>;
39 autosuspend-delay = <30000>;
40 irq-status-read-quirk;
41 en2-rf-quirk;
42 clock-frequency = <27120000>;
43 };
44};