NXP External Serial Peripheral Interface (xSPI)

Schema identifier ($id): "http://devicetree.org/schemas/spi/nxp,imx94-xspi.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "Haibo Chen <haibo.chen@nxp.com>", "Han Xu <han.xu@nxp.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "nxp,imx94-xspi"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "nxp,imx952-xspi"

Item 2

Exact value (const): "nxp,imx94-xspi"

reg — required here #

Array item rules (items) #

Item 1

registers address space

Item 2

memory mapped address space

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "base"

Item 2

Exact value (const): "mmap"

interrupts — required here #

Array item rules (items) #

Item 1

interrupt for EENV0

Item 2

interrupt for EENV1

Item 3

interrupt for EENV2

Item 4

interrupt for EENV3

Item 5

interrupt for EENV4

clocks — required here #

Array item rules (items) #

Item 1

SPI serial clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "per"

Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "clocks", "clock-names"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): spi-controller.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

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

soc {
    #address-cells = <2>;
    #size-cells = <2>;

    spi@42b90000 {
        compatible = "nxp,imx94-xspi";
        reg = <0x0 0x42b90000 0x0 0x50000>, <0x0 0x28000000 0x0 0x08000000>;
        reg-names = "base", "mmap";
        interrupts = <GIC_SPI 390 IRQ_TYPE_LEVEL_HIGH>,
                     <GIC_SPI 391 IRQ_TYPE_LEVEL_HIGH>,
                     <GIC_SPI 392 IRQ_TYPE_LEVEL_HIGH>,
                     <GIC_SPI 393 IRQ_TYPE_LEVEL_HIGH>,
                     <GIC_SPI 394 IRQ_TYPE_LEVEL_HIGH>;
        #address-cells = <1>;
        #size-cells = <0>;
        clocks = <&scmi_1>;
        clock-names = "per";

        flash@0 {
            compatible = "jedec,spi-nor";
            reg = <0>;
            spi-max-frequency = <200000000>;
            spi-rx-bus-width = <8>;
            spi-tx-bus-width = <8>;
        };
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page