Freescale (Enhanced) Configurable Serial Peripheral Interface (CSPI/eCSPI) for i.MX
Schema identifier ($id): "http://devicetree.org/schemas/spi/fsl-imx-cspi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Shawn Guo <shawnguo@kernel.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"fsl,imx1-cspi"
Rule 2
Exact value (
const):"fsl,imx21-cspi"
Rule 3
Exact value (
const):"fsl,imx27-cspi"
Rule 4
Exact value (
const):"fsl,imx31-cspi"
Rule 5
Exact value (
const):"fsl,imx35-cspi"
Rule 6
Exact value (
const):"fsl,imx51-ecspi"
Rule 7
Exact value (
const):"fsl,imx53-ecspi"
Rule 8
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,imx25-cspi","fsl,imx50-cspi","fsl,imx51-cspi","fsl,imx53-cspi"Item 2
Exact value (
const):"fsl,imx35-cspi"
Rule 9
Array item rules (
items)Item 1
Exact value (
const):"fsl,imx8mp-ecspi"Item 2
Exact value (
const):"fsl,imx6ul-ecspi"
Rule 10
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,imx50-ecspi","fsl,imx6q-ecspi","fsl,imx6sx-ecspi","fsl,imx6sl-ecspi","fsl,imx6sll-ecspi","fsl,imx6ul-ecspi","fsl,imx7d-ecspi","fsl,imx8mq-ecspi","fsl,imx8mm-ecspi","fsl,imx8mn-ecspi"Item 2
Exact value (
const):"fsl,imx51-ecspi"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
SoC SPI ipg clock
Item 2
SoC SPI per clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"ipg"
Item 2
Exact value (
const):"per"
dmas — not listed as required here #
Array item rules (items) #
Item 1
DMA controller phandle and request line for RX
Item 2
DMA controller phandle and request line for TX
dma-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"rx"
Item 2
Exact value (
const):"tx"
fsl,spi-rdy-drctl — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Integer, representing the value of DRCTL, the register controlling the SPI_READY handling. Note that to enable the DRCTL consideration, the SPI_READY mode-flag needs to be set too. Valid values are: 0 (disabled), 1 (edge-triggered burst) and 2 (level-triggered burst).
Allowed values (enum): 0, 1, 2
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/imx5-clock.h>
spi@70010000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "fsl,imx51-ecspi";
reg = <0x70010000 0x4000>;
interrupts = <36>;
clocks = <&clks IMX5_CLK_ECSPI1_IPG_GATE>,
<&clks IMX5_CLK_ECSPI1_PER_GATE>;
clock-names = "ipg", "per";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)