Atmel Quad Serial Peripheral Interface (QSPI)
Schema identifier ($id): "http://devicetree.org/schemas/spi/atmel,quadspi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Tudor Ambarus <tudor.ambarus@linaro.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):spi-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "atmel,sama5d2-qspi", "microchip,sam9x60-qspi", "microchip,sam9x7-ospi", "microchip,sama7d65-qspi", "microchip,sama7d65-ospi", "microchip,sama7g5-qspi", "microchip,sama7g5-ospi"
reg — required here #
Array item rules (items) #
Item 1
base registers
Item 2
mapped memory
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"qspi_base"
Item 2
Exact value (
const):"qspi_mmap"
clocks — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
peripheral clock
Item 2
system clock or generic clock, if available
clock-names — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"pclk"
Item 2
interrupts — required here #
Maximum number of items (maxItems): 1
dmas — not listed as required here #
Array item rules (items) #
Item 1
tx DMA channel
Item 2
rx DMA channel
dma-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"tx"
Item 2
Exact value (
const):"rx"
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 0
Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "clocks", "clock-names", "#address-cells", "#size-cells"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/clock/at91.h>
spi@f0020000 {
compatible = "atmel,sama5d2-qspi";
reg = <0xf0020000 0x100>, <0xd0000000 0x8000000>;
reg-names = "qspi_base", "qspi_mmap";
interrupts = <52 IRQ_TYPE_LEVEL_HIGH 7>;
clocks = <&pmc PMC_TYPE_PERIPHERAL 52>;
clock-names = "pclk";
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_spi0_default>;
flash@0 {
compatible = "jedec,spi-nor";
spi-max-frequency = <50000000>;
reg = <0>;
spi-rx-bus-width = <4>;
spi-tx-bus-width = <4>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause