NXP Flex Serial Peripheral Interface (FSPI)
Schema identifier ($id): "http://devicetree.org/schemas/spi/spi-nxp-fspi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Han Xu <han.xu@nxp.com>", "Kuldeep Singh <singh.kuldeep87k@gmail.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):spi-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"nxp,imx8dxl-fspi","nxp,imx8mm-fspi","nxp,imx8mp-fspi","nxp,imx8qxp-fspi","nxp,imx8ulp-fspi","nxp,lx2160a-fspi"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"nxp,imx8mm-fspi"
reg — required here #
Array item rules (items) #
Item 1
registers address space
Item 2
memory mapped address space
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"fspi_base"
Item 2
Exact value (
const):"fspi_mmap"
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
SPI bus clock
Item 2
SPI serial clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"fspi_en"
Item 2
Exact value (
const):"fspi"
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "clocks", "clock-names"
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@20c0000 {
compatible = "nxp,lx2160a-fspi";
reg = <0x0 0x20c0000 0x0 0x100000>,
<0x0 0x20000000 0x0 0x10000000>;
reg-names = "fspi_base", "fspi_mmap";
interrupts = <GIC_SPI 25 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clockgen QORIQ_CLK_PLATFORM_PLL QORIQ_CLK_PLL_DIV(4)>,
<&clockgen QORIQ_CLK_PLATFORM_PLL QORIQ_CLK_PLL_DIV(4)>;
clock-names = "fspi_en", "fspi";
#address-cells = <1>;
#size-cells = <0>;
flash@0 {
compatible = "jedec,spi-nor";
spi-max-frequency = <50000000>;
reg = <0>;
spi-rx-bus-width = <8>;
spi-tx-bus-width = <8>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)