Freescale Quad Serial Peripheral Interface (QuadSPI)
Schema identifier ($id): "http://devicetree.org/schemas/spi/fsl,spi-fsl-qspi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Han Xu <han.xu@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-qspi","fsl,imx6sx-qspi","fsl,imx7d-qspi","fsl,imx6ul-qspi","fsl,ls1021a-qspi","fsl,ls2080a-qspi","spacemit,k1-qspi"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"fsl,ls1021a-qspi"
Rule 3
Array item rules (
items)Item 1
Item 2
Exact value (
const):"fsl,imx7d-qspi"
reg — required here #
Array item rules (items) #
Item 1
registers
Item 2
memory mapping
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"QuadSPI"
Item 2
Exact value (
const):"QuadSPI-memory"
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
SoC SPI qspi_en clock
Item 2
SoC SPI qspi clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"qspi_en"
Item 2
Exact value (
const):"qspi"
resets — not listed as required here #
Array item rules (items) #
Item 1
SoC QSPI reset
Item 2
SoC QSPI bus reset
Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "clocks", "clock-names"
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 hereThis rule must not match (
not)Rule for matching array elements (
contains)Exact value (
const):"spacemit,k1-qspi"When the condition matches (
then) #Properties and child nodes (
properties)
resets— not listed as required here
false— Not permitted by this property rule.
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/fsl,qoriq-clockgen.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
spi@1550000 {
compatible = "fsl,ls1021a-qspi";
reg = <0x0 0x1550000 0x0 0x100000>,
<0x0 0x40000000 0x0 0x10000000>;
reg-names = "QuadSPI", "QuadSPI-memory";
interrupts = <GIC_SPI 99 IRQ_TYPE_LEVEL_HIGH>;
#address-cells = <1>;
#size-cells = <0>;
clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL QORIQ_CLK_PLL_DIV(2)>,
<&clockgen QORIQ_CLK_PLATFORM_PLL QORIQ_CLK_PLL_DIV(2)>;
clock-names = "qspi_en", "qspi";
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)