NXP Semiconductors PN544 NFC Controller

Schema identifier ($id): "http://devicetree.org/schemas/net/nfc/nxp,pn544.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 #

Exact value (const): "nxp,pn544-i2c"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

enable-gpios — required here #

Output GPIO pin used for enabling/disabling the PN544

Maximum number of items (maxItems): 1

firmware-gpios — required here #

Output GPIO pin used to enter firmware download mode

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "interrupts", "enable-gpios", "firmware-gpios"

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

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@28 {
        compatible = "nxp,pn544-i2c";
        reg = <0x28>;

        interrupt-parent = <&gpio1>;
        interrupts = <17 IRQ_TYPE_LEVEL_HIGH>;

        enable-gpios = <&gpio3 21 GPIO_ACTIVE_HIGH>;
        firmware-gpios = <&gpio3 19 GPIO_ACTIVE_HIGH>;
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page