Cadence XSPI Controller
Schema identifier ($id): "http://devicetree.org/schemas/spi/cdns,xspi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Parshuram Thombare <pthombar@cadence.com>"
The XSPI controller allows SPI protocol communication in single, dual, quad or octal wire transmission modes for read/write access to slaves such as SPI-NOR flash.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "cdns,xspi-nor", "marvell,cn10-xspi-nor"
reg — required here #
Array item rules (items) #
Item 1
address and length of the controller register set
Item 2
address and length of the Slave DMA data port
Item 3
address and length of the auxiliary registers
Item 4
address and length of the xfer registers
Minimum number of items (minItems): 3
reg-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"io"
Item 2
Exact value (
const):"sdma"
Item 3
Exact value (
const):"aux"
Item 4
Exact value (
const):"xfer"
Minimum number of items (minItems): 3
interrupts — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):spi-controller.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):4
reg-names— not listed as required hereMinimum number of items (
minItems):4When the condition does not match (
else) #Properties and child nodes (
properties)
reg— not listed as required hereMaximum number of items (
maxItems):3
reg-names— not listed as required hereMaximum number of items (
maxItems):3
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
bus {
#address-cells = <2>;
#size-cells = <2>;
xspi: spi@a0010000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "cdns,xspi-nor";
reg = <0x0 0xa0010000 0x0 0x1040>,
<0x0 0xb0000000 0x0 0x1000>,
<0x0 0xa0020000 0x0 0x100>;
reg-names = "io", "sdma", "aux";
interrupts = <0 90 IRQ_TYPE_LEVEL_HIGH>;
interrupt-parent = <&gic>;
flash@0 {
compatible = "jedec,spi-nor";
spi-max-frequency = <75000000>;
reg = <0>;
};
flash@1 {
compatible = "jedec,spi-nor";
spi-max-frequency = <75000000>;
reg = <1>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 2: Copyright 2020-21 Cadence