Samsung S3FWRN5 NCI NFC Controller

Schema identifier ($id): "http://devicetree.org/schemas/net/nfc/samsung,s3fwrn5.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): "samsung,s3fwrn5-i2c", "samsung,s3fwrn82"

en-gpios — required here #

Maximum number of items (maxItems): 1

Output GPIO pin used for enabling/disabling the chip

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

reg — not listed as required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

wake-gpios — required here #

Maximum number of items (maxItems): 1

Output GPIO pin used to enter firmware mode and sleep/wakeup control

s3fwrn5,en-gpios — not listed as required here #

Maximum number of items (maxItems): 1

Deprecated (deprecated): true

Use en-gpios

s3fwrn5,fw-gpios — not listed as required here #

Maximum number of items (maxItems): 1

Deprecated (deprecated): true

Use wake-gpios

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Required in this object (required): "compatible", "en-gpios", "wake-gpios"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "samsung,s3fwrn5-i2c"

When the condition matches (then) #

Required in this object (required): "interrupts", "reg"

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    s3fwrn5@27 {
        compatible = "samsung,s3fwrn5-i2c";
        reg = <0x27>;

        interrupt-parent = <&gpa1>;
        interrupts = <3 IRQ_TYPE_EDGE_RISING>;

        en-gpios = <&gpf1 4 GPIO_ACTIVE_HIGH>;
        wake-gpios = <&gpj0 2 GPIO_ACTIVE_HIGH>;

        clocks = <&rpmcc 20>;
    };
};
uart0 {
    nfc {
        compatible = "samsung,s3fwrn82";

        en-gpios = <&gpio 20 GPIO_ACTIVE_HIGH>;
        wake-gpios = <&gpio 16 GPIO_ACTIVE_HIGH>;

    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Line 89: UART example on Raspberry Pi

Edit this page