Freescale SPI (Serial Peripheral Interface) controller

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

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

Maintainers (maintainers): "J. Neuschäfer <j.ne@posteo.net>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "fsl,spi", "aeroflexgaisler,spictrl"

reg — required here #

Maximum number of items (maxItems): 1

cell-index — not listed as required here #

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

QE SPI subblock index. 0: QE subblock SPI1 1: QE subblock SPI2

mode — required here #

SPI operation mode

Allowed values (enum): "cpu", "cpu-qe"

interrupts — required here #

Maximum number of items (maxItems): 1

clock-frequency — not listed as required here #

input clock frequency to non FSL_SOC cores

cs-gpios — not listed as required here #

true — No constraints added by this property rule.

fsl,spisel_boot — not listed as required here #

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

For the MPC8306 and MPC8309, specifies that the SPISEL_BOOT signal is used as chip select for a slave device. Use reg = <number of gpios> in the corresponding child node, i.e. 0 if the cs-gpios property is not present.

Required in this object (required): "compatible", "reg", "mode", "interrupts"

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/irq.h>

spi@4c0 {
    compatible = "fsl,spi";
    reg = <0x4c0 0x40>;
    cell-index = <0>;
    interrupts = <82 0>;
    mode = "cpu";
    cs-gpios = <&gpio 18 IRQ_TYPE_EDGE_RISING          // device reg=<0>
                &gpio 19 IRQ_TYPE_EDGE_RISING>;        // device reg=<1>
};

Source notes #

Annotations retained from the schema source

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

Edit this page