2014-03-11 02:56:25 +08:00
|
|
|
* Texas Instruments TRF7970A RFID/NFC/15693 Transceiver
|
|
|
|
|
|
|
|
Required properties:
|
|
|
|
- compatible: Should be "ti,trf7970a".
|
|
|
|
- spi-max-frequency: Maximum SPI frequency (<= 2000000).
|
|
|
|
- interrupt-parent: phandle of parent interrupt handler.
|
|
|
|
- interrupts: A single interrupt specifier.
|
|
|
|
- ti,enable-gpios: Two GPIO entries used for 'EN' and 'EN2' pins on the
|
|
|
|
TRF7970A.
|
|
|
|
- vin-supply: Regulator for supply voltage to VIN pin
|
|
|
|
|
|
|
|
Optional SoC Specific Properties:
|
|
|
|
- pinctrl-names: Contains only one value - "default".
|
|
|
|
- pintctrl-0: Specifies the pin control groups used for this controller.
|
2014-03-25 23:54:41 +08:00
|
|
|
- autosuspend-delay: Specify autosuspend delay in milliseconds.
|
2014-08-08 08:41:42 +08:00
|
|
|
- vin-voltage-override: Specify voltage of VIN pin in microvolts.
|
2014-08-08 08:41:44 +08:00
|
|
|
- irq-status-read-quirk: Specify that the trf7970a being used has the
|
|
|
|
"IRQ Status Read" erratum.
|
2014-08-08 08:41:46 +08:00
|
|
|
- en2-rf-quirk: Specify that the trf7970a being used has the "EN2 RF"
|
|
|
|
erratum.
|
2014-03-11 02:56:25 +08:00
|
|
|
|
|
|
|
Example (for ARM-based BeagleBone with TRF7970A on SPI1):
|
|
|
|
|
|
|
|
&spi1 {
|
|
|
|
status = "okay";
|
|
|
|
|
|
|
|
nfc@0 {
|
|
|
|
compatible = "ti,trf7970a";
|
|
|
|
reg = <0>;
|
|
|
|
pinctrl-names = "default";
|
|
|
|
pinctrl-0 = <&trf7970a_default>;
|
|
|
|
spi-max-frequency = <2000000>;
|
|
|
|
interrupt-parent = <&gpio2>;
|
|
|
|
interrupts = <14 0>;
|
|
|
|
ti,enable-gpios = <&gpio2 2 GPIO_ACTIVE_LOW>,
|
|
|
|
<&gpio2 5 GPIO_ACTIVE_LOW>;
|
|
|
|
vin-supply = <&ldo3_reg>;
|
2014-08-08 08:41:42 +08:00
|
|
|
vin-voltage-override = <5000000>;
|
2014-03-25 23:54:41 +08:00
|
|
|
autosuspend-delay = <30000>;
|
2014-08-08 08:41:44 +08:00
|
|
|
irq-status-read-quirk;
|
2014-08-08 08:41:46 +08:00
|
|
|
en2-rf-quirk;
|
2014-03-11 02:56:25 +08:00
|
|
|
status = "okay";
|
|
|
|
};
|
|
|
|
};
|