Freescale Low Power SPI (LPSPI) for i.MX
Schema identifier ($id): "http://devicetree.org/schemas/spi/spi-fsl-lpspi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Shawn Guo <shawnguo@kernel.org>", "Sascha Hauer <s.hauer@pengutronix.de>", "Fabio Estevam <festevam@gmail.com>"
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
Allowed values (
enum):"fsl,imx7ulp-spi","fsl,imx8qxp-spi","nxp,s32g2-lpspi"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,imx8ulp-spi","fsl,imx93-spi","fsl,imx94-spi","fsl,imx95-spi"Item 2
Exact value (
const):"fsl,imx7ulp-spi"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"nxp,s32g3-lpspi"Item 2
Exact value (
const):"nxp,s32g2-lpspi"
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 per clock
Item 2
SoC SPI ipg clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"per"
Item 2
Exact value (
const):"ipg"
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"
fsl,spi-only-use-cs1-sel — not listed as required here #
spi common code does not support use of CS signals discontinuously. i.MX8DXL-EVK board only uses CS1 without using CS0. Therefore, add this property to re-config the chipselect value in the LPSPI driver.
Value type (type): "boolean"
num-cs — not listed as required here #
number of chip selects.
Minimum value (minimum): 1
Maximum value (maximum): 2
Default value (default): 1
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
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/imx7ulp-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
spi@40290000 {
compatible = "fsl,imx7ulp-spi";
reg = <0x40290000 0x10000>;
interrupt-parent = <&intc>;
interrupts = <GIC_SPI 28 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clks IMX7ULP_CLK_LPSPI2>,
<&clks IMX7ULP_CLK_DUMMY>;
clock-names = "per", "ipg";
spi-slave;
fsl,spi-only-use-cs1-sel;
num-cs = <2>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)