ARM Freescale DSPI controller

Schema identifier ($id): "http://devicetree.org/schemas/spi/fsl,dspi.yaml#"

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

Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "fsl,vf610-dspi", "fsl,ls1021a-v1.0-dspi", "fsl,ls1012a-dspi", "fsl,ls1028a-dspi", "fsl,ls1043a-dspi", "fsl,ls1046a-dspi", "fsl,ls1088a-dspi", "fsl,ls2080a-dspi", "fsl,ls2085a-dspi", "fsl,lx2160a-dspi", "nxp,s32g2-dspi"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "fsl,ls1012a-dspi", "fsl,ls1028a-dspi", "fsl,ls1043a-dspi", "fsl,ls1046a-dspi", "fsl,ls1088a-dspi"

Item 2

Exact value (const): "fsl,ls1021a-v1.0-dspi"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "fsl,ls2080a-dspi"

Item 2

Exact value (const): "fsl,ls2085a-dspi"

Rule 4

Array item rules (items)

Item 1

Exact value (const): "fsl,lx2160a-dspi"

Item 2

Exact value (const): "fsl,ls2085a-dspi"

Rule 5

Array item rules (items)

Item 1

Exact value (const): "nxp,s32g3-dspi"

Item 2

Exact value (const): "nxp,s32g2-dspi"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "dspi"

dmas — not listed as required here #

Array item rules (items) #

Item 1

DMA controller phandle and request line for TX

Item 2

DMA controller phandle and request line for RX

dma-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "tx"

Item 2

Exact value (const): "rx"

spi-num-chipselects — required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

The number of the chip native chipselect signals. cs-gpios don't count against this number.

big-endian — not listed as required here #

true — No constraints added by this property rule.

bus-num — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

SoC-specific identifier for the SPI controller.

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

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>
#include <dt-bindings/clock/vf610-clock.h>

spi@4002c000 {
    compatible = "fsl,vf610-dspi";
    reg = <0x4002c000 0x1000>;
    #address-cells = <1>;
    #size-cells = <0>;
    interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&clks VF610_CLK_DSPI0>;
    clock-names = "dspi";
    spi-num-chipselects = <5>;
    bus-num = <0>;
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_dspi0_1>;
    big-endian;

    flash@0 {
        compatible = "jedec,spi-nor";
        reg = <0>;
        spi-max-frequency = <16000000>;
        spi-cpol;
        spi-cpha;
        spi-cs-setup-delay-ns = <100>;
        spi-cs-hold-delay-ns = <50>;
    };
};
spi@401d4000 {
    compatible = "nxp,s32g3-dspi", "nxp,s32g2-dspi";
    reg = <0x401d4000 0x1000>;
    interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&clks 26>;
    clock-names = "dspi";
    spi-num-chipselects = <8>;
    bus-num = <0>;
    dmas = <&edma0 0 7>, <&edma0 0 8>;
    dma-names = "tx", "rx";
    spi-slave;
};

Source notes #

Annotations retained from the schema source

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

Line 121: S32G3 in target mode

Edit this page