Marvell International Ltd. NCI NFC controller

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

hci-muxed — not listed as required here #

Value type (type): "boolean"

Specifies that the chip is muxing NCI over HCI frames

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

reg — not listed as required here #

Maximum number of items (maxItems): 1

reset-n-io — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

Maximum number of items (maxItems): 1

Output GPIO pin used to reset the chip (active low)

i2c-int-falling — not listed as required here #

Value type (type): "boolean"

For I2C type of connection. Specifies that the chip read event shall be triggered on falling edge.

i2c-int-rising — not listed as required here #

Value type (type): "boolean"

For I2C type of connection. Specifies that the chip read event shall be triggered on rising edge.

break-control — not listed as required here #

Value type (type): "boolean"

For UART type of connection. Specifies that the chip needs specific break management.

flow-control — not listed as required here #

Value type (type): "boolean"

For UART type of connection. Specifies that the chip is using RTS/CTS.

spi-cpha — not listed as required here #

true — No constraints added by this property rule.

spi-cpol — not listed as required here #

true — No constraints added by this property rule.

Required in this object (required): "compatible"

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): "marvell,nfc-i2c"

When the condition matches (then) #

Properties and child nodes (properties)

break-control — not listed as required here

false — Not permitted by this property rule.

flow-control — not listed as required here

false — Not permitted by this property rule.

spi-cpha — not listed as required here

false — Not permitted by this property rule.

spi-cpol — not listed as required here

false — Not permitted by this property rule.

spi-max-frequency — not listed as required here

false — Not permitted by this property rule.

Required in this object (required): "reg"

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "marvell,nfc-spi"

When the condition matches (then) #

Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml#

Properties and child nodes (properties)

break-control — not listed as required here

false — Not permitted by this property rule.

flow-control — not listed as required here

false — Not permitted by this property rule.

i2c-int-falling — not listed as required here

false — Not permitted by this property rule.

i2c-int-rising — not listed as required here

false — Not permitted by this property rule.

Required in this object (required): "reg"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "marvell,nfc-uart"

When the condition matches (then) #

Properties and child nodes (properties)

i2c-int-falling — not listed as required here

false — Not permitted by this property rule.

i2c-int-rising — not listed as required here

false — Not permitted by this property rule.

interrupts — not listed as required here

false — Not permitted by this property rule.

spi-cpha — not listed as required here

false — Not permitted by this property rule.

spi-cpol — not listed as required here

false — Not permitted by this property rule.

spi-max-frequency — not listed as required here

false — Not permitted by this property rule.

reg — not listed as required here

false — Not permitted by this property rule.

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 = "marvell,nfc-i2c";
        reg = <0x8>;

        interrupt-parent = <&gpio3>;
        interrupts = <21 IRQ_TYPE_EDGE_RISING>;

        i2c-int-rising;

        reset-n-io = <&gpio3 19 GPIO_ACTIVE_LOW>;
    };
};
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>

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

    nfc@0 {
        compatible = "marvell,nfc-spi";
        reg = <0>;

        spi-max-frequency = <3000000>;
        spi-cpha;
        spi-cpol;

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

        reset-n-io = <&gpio3 19 GPIO_ACTIVE_LOW>;
    };
};
#include <dt-bindings/gpio/gpio.h>

uart {
    nfc {
        compatible = "marvell,nfc-uart";

        reset-n-io = <&gpio3 16 GPIO_ACTIVE_LOW>;

        hci-muxed;
        flow-control;
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page