Texas Instruments TRF7970A RFID/NFC/15693 Transceiver
Schema identifier ($id): "http://devicetree.org/schemas/net/nfc/ti,trf7970a.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>", "Mark Greer <mgreer@animalcreek.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "ti,trf7970a"
autosuspend-delay — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Specify autosuspend delay in milliseconds.
clock-frequency — not listed as required here #
Set to specify that the input frequency to the trf7970a is 13560000Hz or 27120000Hz
en2-rf-quirk — not listed as required here #
Value type (type): "boolean"
Specify that the trf7970a being used has the "EN2 RF" erratum
interrupts — required here #
Maximum number of items (maxItems): 1
irq-status-read-quirk — not listed as required here #
Value type (type): "boolean"
Specify that the trf7970a being used has the "IRQ Status Read" erratum
reg — required here #
Maximum number of items (maxItems): 1
ti,enable-gpios — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
One or two GPIO entries used for 'EN' and 'EN2' pins on the TRF7970A. EN2 is optional.
vdd-io-supply — not listed as required here #
Regulator specifying voltage for VDD-IO
vin-supply — required here #
Regulator for supply voltage to VIN pin
ti,rx-gain-reduction-db — not listed as required here #
Specify an RX gain reduction to reduce antenna sensitivity with 5dB per increment, with a maximum of 15dB.
Allowed values (enum): 0, 5, 10, 15
Required in this object (required): "compatible", "interrupts", "reg", "spi-max-frequency", "ti,enable-gpios", "vin-supply"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
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_HIGH>,
<&gpio2 5 GPIO_ACTIVE_HIGH>;
vin-supply = <&ldo3_reg>;
vdd-io-supply = <&ldo2_reg>;
autosuspend-delay = <30000>;
irq-status-read-quirk;
en2-rf-quirk;
clock-frequency = <27120000>;
ti,rx-gain-reduction-db = <15>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause