STMicroelectronics ST NCI NFC controller
Schema identifier ($id): "http://devicetree.org/schemas/net/nfc/st,st-nci.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "st,st21nfcb-i2c", "st,st21nfcb-spi", "st,st21nfcc-i2c"
reset-gpios — required here #
Output GPIO pin used for resetting the controller
ese-present — not listed as required here #
Value type (type): "boolean"
Specifies that an ese is physically connected to the controller
interrupts — required here #
Maximum number of items (maxItems): 1
reg — required here #
Maximum number of items (maxItems): 1
uicc-present — not listed as required here #
Value type (type): "boolean"
Specifies that the uicc swp signal can be physically connected to the controller
Required in this object (required): "compatible", "interrupts", "reg", "reset-gpios"
Condition (if) #
Properties and child nodes (
properties) #
compatible— not listed as required here #Rule for matching array elements (
contains)
When the condition matches (then) #
Properties and child nodes (
properties) #
spi-max-frequency— not listed as required here #
false— Not permitted by this property rule.
When the condition does not match (else) #
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>
i2c {
#address-cells = <1>;
#size-cells = <0>;
nfc@8 {
compatible = "st,st21nfcb-i2c";
reg = <0x08>;
interrupt-parent = <&gpio5>;
interrupts = <2 IRQ_TYPE_LEVEL_HIGH>;
reset-gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>;
ese-present;
uicc-present;
};
};
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
spi {
#address-cells = <1>;
#size-cells = <0>;
nfc@0 {
compatible = "st,st21nfcb-spi";
reg = <0>;
spi-max-frequency = <4000000>;
interrupt-parent = <&gpio5>;
interrupts = <2 IRQ_TYPE_EDGE_RISING>;
reset-gpios = <&gpio5 29 GPIO_ACTIVE_HIGH>;
ese-present;
uicc-present;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause