NXP Semiconductors PN532 NFC controller

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

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "nxp,pn532"

Rule 2

Deprecated bindings

Allowed values (enum): "nxp,pn532-i2c", "nxp,pn533-i2c"

Deprecated (deprecated): true

interrupts — not listed as required here #

Required if connected via I2C

Maximum number of items (maxItems): 1

reg — not listed as required here #

Required if connected via I2C

Maximum number of items (maxItems): 1

Required in this object (required): "compatible"

Property dependencies (dependencies) #

interrupts — applies when this property is present #

Also requires: "reg"

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

false

Not allowed by this rule.

Examples (examples) #

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

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

    nfc@24 {
        compatible = "nxp,pn532";

        reg = <0x24>;

        interrupt-parent = <&gpio1>;
        interrupts = <17 IRQ_TYPE_LEVEL_HIGH>;
    };
};
serial@49042000 {
    reg = <0x49042000 0x400>;

    nfc {
        compatible = "nxp,pn532";
    };
};

Source notes #

Annotations retained from the schema source

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

Line 39: PN532 on I2C bus

Line 57: PN532 connected via UART

Edit this page