Spi bindings
Single-page view · as markdown
Analog Devices AXI SPI Engine Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/adi,axi-spi-engine.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The AXI SPI Engine controller is part of the SPI Engine framework[1] and allows memory mapped access to the SPI Engine control bus. This allows it to be used as a general purpose software driven SPI controller as well as some optional advanced acceleration and offloading capabilities.
[1] https://wiki.analog.com/resources/fpga/peripherals/spi_engine
Maintainers (maintainers): "Michael Hennerich <Michael.Hennerich@analog.com>", "Nuno Sá <nuno.sa@analog.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 #
Exact value (const): "adi,axi-spi-engine-1.00.a"
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
The AXI interconnect clock.
Item 2
The SPI controller clock.
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"s_axi_aclk"
Item 2
Exact value (
const):"spi_clk"
trigger-sources — not listed as required here #
An array of trigger source phandles for offload instances. The index in the array corresponds to the offload instance number.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 32
dmas — not listed as required here #
DMA channels connected to the input or output stream interface of an offload instance.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 32
dma-names — not listed as required here #
Array item rules (items) #
String pattern (
pattern):"^offload(?:[12]?[0-9]|3[01])-[tr]x$"
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 32
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties matching a name pattern (patternProperties) #
^.*@[0-9a-f]+ — name matches this regular expression #
Value type (type): "object"
Properties and child nodes (properties) #
spi-rx-bus-width — not listed as required here
Maximum number of items (maxItems): 8
Array item rules (items)
spi-tx-bus-width — not listed as required here
Maximum number of items (maxItems): 8
Array item rules (items)
Examples (examples) #
spi@44a00000 {
compatible = "adi,axi-spi-engine-1.00.a";
reg = <0x44a00000 0x1000>;
interrupts = <0 56 4>;
clocks = <&clkc 15>, <&clkc 15>;
clock-names = "s_axi_aclk", "spi_clk";
trigger-sources = <&trigger_clock>;
dmas = <&dma 0>;
dma-names = "offload0-rx";
#address-cells = <1>;
#size-cells = <0>;
/* SPI devices */
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
SPI-NAND flash controller for Airoha ARM SoCs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/airoha,en7581-snand.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lorenzo Bianconi <lorenzo@kernel.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 #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"airoha,en7581-snand"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"airoha,en7581-snand"
reg — required here #
Array item rules (items) #
Item 1
spi base address
Item 2
nfi2spi base address
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"spi"
Required in this object (required): "compatible", "reg", "clocks", "clock-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/en7523-clk.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
spi@1fa10000 {
compatible = "airoha,en7581-snand";
reg = <0x0 0x1fa10000 0x0 0x140>,
<0x0 0x1fa11000 0x0 0x160>;
clocks = <&scuclk EN7523_CLK_SPI>;
clock-names = "spi";
#address-cells = <1>;
#size-cells = <0>;
flash@0 {
compatible = "spi-nand";
reg = <0>;
spi-tx-bus-width = <1>;
spi-rx-bus-width = <2>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Allwinner A10 SPI Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/allwinner,sun4i-a10-spi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):spi-controller.yaml
Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "allwinner,sun4i-a10-spi"
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
Bus Clock
Item 2
Module Clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"ahb"
Item 2
Exact value (
const):"mod"
dmas — not listed as required here #
Array item rules (items) #
Item 1
RX DMA Channel
Item 2
TX DMA Channel
dma-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"rx"
Item 2
Exact value (
const):"tx"
Properties matching a name pattern (patternProperties) #
^.*@[0-9a-f]+ — name matches this regular expression #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Properties and child nodes (properties) #
reg — not listed as required here
Array item rules (items)
Minimum value (
minimum):0Maximum value (
maximum):4
spi-rx-bus-width — not listed as required here
Array item rules (items)
Item 1
Exact value (
const):1
spi-tx-bus-width — not listed as required here
Array item rules (items)
Item 1
Exact value (
const):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) #
spi1: spi@1c06000 {
compatible = "allwinner,sun4i-a10-spi";
reg = <0x01c06000 0x1000>;
interrupts = <11>;
clocks = <&ahb_gates 21>, <&spi1_clk>;
clock-names = "ahb", "mod";
#address-cells = <1>;
#size-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Allwinner A31 SPI Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/allwinner,sun6i-a31-spi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"allwinner,sun50i-r329-spi"
Rule 2
Exact value (
const):"allwinner,sun55i-a523-spi"
Rule 3
Exact value (
const):"allwinner,sun6i-a31-spi"
Rule 4
Exact value (
const):"allwinner,sun8i-h3-spi"
Rule 5
Array item rules (
items)Item 1
Allowed values (
enum):"allwinner,sun8i-r40-spi","allwinner,sun50i-h6-spi","allwinner,sun50i-h616-spi","allwinner,suniv-f1c100s-spi"Item 2
Exact value (
const):"allwinner,sun8i-h3-spi"
Rule 6
Array item rules (
items)Item 1
Allowed values (
enum):"allwinner,sun20i-d1-spi","allwinner,sun50i-r329-spi-dbi"Item 2
Exact value (
const):"allwinner,sun50i-r329-spi"
Rule 7
Array item rules (
items)Item 1
Exact value (
const):"allwinner,sun20i-d1-spi-dbi"Item 2
Exact value (
const):"allwinner,sun50i-r329-spi-dbi"Item 3
Exact value (
const):"allwinner,sun50i-r329-spi"
Rule 8
Array item rules (
items)Item 1
Exact value (
const):"allwinner,sun55i-a523-spi-dbi"Item 2
Exact value (
const):"allwinner,sun55i-a523-spi"
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
Bus Clock
Item 2
Module Clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"ahb"
Item 2
Exact value (
const):"mod"
resets — not listed as required here #
Maximum number of items (maxItems): 1
dmas — not listed as required here #
Array item rules (items) #
Item 1
RX DMA Channel
Item 2
TX DMA Channel
dma-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"rx"
Item 2
Exact value (
const):"tx"
Properties matching a name pattern (patternProperties) #
^.*@[0-9a-f]+ — name matches this regular expression #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Properties and child nodes (properties) #
reg — not listed as required here
Array item rules (items)
Minimum value (
minimum):0Maximum value (
maximum):4
spi-rx-bus-width — not listed as required here
Array item rules (items)
spi-tx-bus-width — not listed as required here
Array item rules (items)
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):spi-controller.yaml
Rule 2 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"allwinner,sun50i-r329-spi","allwinner,sun55i-a523-spi"When the condition matches (
then) #Properties matching a name pattern (
patternProperties)
^.*@[0-9a-f]+— name matches this regular expressionProperties and child nodes (
properties)
spi-rx-bus-width— not listed as required hereArray item rules (
items)
spi-tx-bus-width— not listed as required hereArray item rules (
items)
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi1: spi@1c69000 {
compatible = "allwinner,sun6i-a31-spi";
reg = <0x01c69000 0x1000>;
interrupts = <0 66 4>;
clocks = <&ahb1_gates 21>, <&spi1_clk>;
clock-names = "ahb", "mod";
resets = <&ahb1_rst 21>;
#address-cells = <1>;
#size-cells = <0>;
};
spi0: spi@1c68000 {
compatible = "allwinner,sun8i-h3-spi";
reg = <0x01c68000 0x1000>;
interrupts = <0 65 4>;
clocks = <&ccu 30>, <&ccu 82>;
clock-names = "ahb", "mod";
dmas = <&dma 23>, <&dma 23>;
dma-names = "rx", "tx";
resets = <&ccu 15>;
#address-cells = <1>;
#size-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Amlogic A1 SPI Flash Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/amlogic,a1-spifc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Martin Kurbanov <mmkurbanov@sberdevices.ru>"
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): "amlogic,a1-spifc"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "clocks"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi@fd000400 {
compatible = "amlogic,a1-spifc";
reg = <0xfd000400 0x290>;
clocks = <&clkc_clkid_spifc>;
#address-cells = <1>;
#size-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
SPI flash controller for Amlogic ARM SoCs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/amlogic,a4-spifc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Liang Yang <liang.yang@amlogic.com>", "Feng Chen <feng.chen@amlogic.com>", "Xianwei Zhao <xianwei.zhao@amlogic.com>"
The Amlogic SPI flash controller is an extended version of the Amlogic NAND flash controller. It supports SPI Nor Flash and SPI NAND Flash(where the Host ECC HW engine could be enabled).
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 #
Exact value (const): "amlogic,a4-spifc"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
clock apb gate
Item 2
clock used for the controller
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"gate"
Item 2
Exact value (
const):"core"
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
amlogic,rx-adj — not listed as required here #
Number of clock cycles by which sampling is delayed.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
Default value (default): 0
Required in this object (required): "compatible", "reg", "clocks", "clock-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
sfc0: spi@fe08d000 {
compatible = "amlogic,a4-spifc";
reg = <0xfe08d000 0x800>;
clocks = <&clkc_periphs 31>,
<&clkc_periphs 102>;
clock-names = "gate", "core";
pinctrl-0 = <&spiflash_default>;
pinctrl-names = "default";
#address-cells = <1>;
#size-cells = <0>;
flash@0 {
compatible = "spi-nand";
reg = <0>;
#address-cells = <1>;
#size-cells = <1>;
nand-ecc-engine = <&sfc0>;
nand-ecc-strength = <8>;
nand-ecc-step-size = <512>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright (C) 2025 Amlogic, Inc. All rights reserved
Amlogic SPI Scatter-Gather Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/amlogic,a4-spisg.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Xianwei Zhao <xianwei.zhao@amlogic.com>", "Sunny Luo <sunny.luo@amlogic.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 #
Exact value (const): "amlogic,a4-spisg"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 2
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"core"
Item 2
Exact value (
const):"pclk"
resets — 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/interrupt-controller/arm-gic.h>
spi@50000 {
compatible = "amlogic,a4-spisg";
reg = <0x50000 0x38>;
interrupts = <GIC_SPI 183 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clkc 37>,
<&clkc 93>;
clock-names = "core", "pclk";
#address-cells = <1>;
#size-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright (C) 2025 Amlogic, Inc. All rights reserved
Amlogic Meson SPI Communication Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/amlogic,meson-gx-spicc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Neil Armstrong <neil.armstrong@linaro.org>"
The Meson SPICC is a generic SPI controller for general purpose Full-Duplex communications with dedicated 16 words RX/TX PIO FIFOs.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "amlogic,meson-gx-spicc", "amlogic,meson-axg-spicc", "amlogic,meson-g12a-spicc"
interrupts — required here #
Maximum number of items (maxItems): 1
reg — required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
controller register bus clock
Item 2
baud rate generator and delay control clock
clock-names — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
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)
clocks— not listed as required hereMinimum number of items (
minItems):2
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"core"Item 2
Exact value (
const):"pclk"When the condition does not match (
else) #Properties and child nodes (
properties)
clocks— not listed as required hereMaximum number of items (
maxItems):1
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"core"
Rule 3 #
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)
pinctrl-0— not listed as required here
true— No constraints added by this property rule.
pinctrl-1— not listed as required here
true— No constraints added by this property rule.
pinctrl-2— not listed as required here
true— No constraints added by this property rule.
pinctrl-names— not listed as required hereMinimum number of items (
minItems):1Array item rules (
items)Item 1
Exact value (
const):"default"Item 2
Exact value (
const):"idle-high"Item 3
Exact value (
const):"idle-low"
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) #
spi@c1108d80 {
compatible = "amlogic,meson-gx-spicc";
reg = <0xc1108d80 0x80>;
interrupts = <112>;
clocks = <&clk81>;
clock-names = "core";
#address-cells = <1>;
#size-cells = <0>;
display@0 {
compatible = "lg,lg4573";
spi-max-frequency = <1000000>;
reg = <0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 2: Copyright 2019 BayLibre, SAS
Line 20: SPICC controller on Amlogic GX and compatible SoCs
Line 21: SPICC controller on Amlogic AXG and compatible SoCs
Line 22: SPICC controller on Amlogic G12A and compatible SoCs
Amlogic Meson SPI Flash Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/amlogic,meson6-spifc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Neil Armstrong <neil.armstrong@linaro.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):spi-controller.yaml#
The Meson SPIFC is a controller optimized for communication with SPI NOR memories, without DMA support and a 64-byte unified transmit / receive buffer.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "amlogic,meson6-spifc", "amlogic,meson-gxbb-spifc"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "clocks"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi@c1108c80 {
compatible = "amlogic,meson6-spifc";
reg = <0xc1108c80 0x80>;
clocks = <&clk81>;
#address-cells = <1>;
#size-cells = <0>;
flash: flash@0 {
compatible = "spansion,m25p80", "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <40000000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 2: Copyright 2019 BayLibre, SAS
Line 24: SPI Flash Controller on Meson6 and compatible SoCs
Line 25: SPI Flash Controller on GXBB and compatible SoCs
Andes ATCSPI200 SPI controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/andestech,ae350-spi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "CL Wang <cl634@andestech.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Item 2
Exact value (
const):"andestech,ae350-spi"
Rule 2
Exact value (
const):"andestech,ae350-spi"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
num-cs — not listed as required here #
Number of chip selects supported
Maximum number of items (maxItems): 1
dmas — required here #
Array item rules (items) #
Item 1
Transmit FIFO DMA channel
Item 2
Receive FIFO DMA channel
dma-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"tx"
Item 2
Exact value (
const):"rx"
Properties matching a name pattern (patternProperties) #
@[0-9a-f]+$ — name matches this regular expression #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Properties and child nodes (properties) #
spi-rx-bus-width — not listed as required here
Array item rules (items)
Item 1
spi-tx-bus-width — not listed as required here
Array item rules (items)
Item 1
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):spi-controller.yaml#
Required in this object (required): "compatible", "reg", "clocks", "dmas", "dma-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi@f0b00000 {
compatible = "andestech,ae350-spi";
reg = <0xf0b00000 0x100>;
clocks = <&clk_spi>;
dmas = <&dma0 0>, <&dma0 1>;
dma-names = "tx", "rx";
#address-cells = <1>;
#size-cells = <0>;
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-tx-bus-width = <4>;
spi-rx-bus-width = <4>;
spi-cpol;
spi-cpha;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Apple ARM SoC SPI controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/apple,spi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):spi-controller.yaml#
Maintainers (maintainers): "Hector Martin <marcan@marcan.st>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"apple,t6020-spi"Item 2
Exact value (
const):"apple,t8103-spi"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"apple,t8103-spi","apple,t8112-spi","apple,t6000-spi"Item 2
Exact value (
const):"apple,spi"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "clocks", "interrupts"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/apple-aic.h>
#include <dt-bindings/interrupt-controller/irq.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
spi@39b104000 {
compatible = "apple,t6000-spi", "apple,spi";
reg = <0x3 0x9b104000 0x0 0x4000>;
interrupt-parent = <&aic>;
interrupts = <AIC_IRQ 0 1107 IRQ_TYPE_LEVEL_HIGH>;
#address-cells = <1>;
#size-cells = <0>;
clocks = <&clk>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Peripheral-specific properties for Arm PL022 SPI controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/arm,pl022-peripheral-props.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"
Automatic schema selection (select) #
false
Not selected automatically by this rule.
Properties and child nodes (properties) #
pl022,interface — not listed as required here #
SPI interface type
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2
pl022,com-mode — not listed as required here #
Specifies the transfer mode
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2
Default value (default): 1
pl022,rx-level-trig — not listed as required here #
Rx FIFO watermark level
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 4
pl022,tx-level-trig — not listed as required here #
Tx FIFO watermark level
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 4
pl022,ctrl-len — not listed as required here #
Microwire interface - Control length
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 3
Maximum value (maximum): 31
pl022,wait-state — not listed as required here #
Microwire interface - Wait state
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
pl022,duplex — not listed as required here #
Microwire interface - Full/Half duplex
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Line 19: SPI
Line 20: Texas Instruments Synchronous Serial Frame Format
Line 21: Microwire (Half Duplex)
Line 27: interrupt mode
Line 28: polling mode
Line 29: DMA mode
Aspeed SMC controllers
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/aspeed,ast2600-fmc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chin-Ting Kuo <chin-ting_kuo@aspeedtech.com>", "Cédric Le Goater <clg@kaod.org>"
This binding describes the Aspeed Static Memory Controllers (FMC and SPI) of the AST2400, AST2500, AST2600 and AST2700 SOCs.
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): "aspeed,ast2700-fmc", "aspeed,ast2700-spi", "aspeed,ast2600-fmc", "aspeed,ast2600-spi", "aspeed,ast2500-fmc", "aspeed,ast2500-spi", "aspeed,ast2400-fmc", "aspeed,ast2400-spi"
reg — required here #
Array item rules (items) #
Item 1
registers
Item 2
memory mapping
clocks — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "clocks"
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/interrupt-controller/aspeed-scu-ic.h>
#include <dt-bindings/clock/ast2600-clock.h>
spi@1e620000 {
reg = <0x1e620000 0xc4>, <0x20000000 0x10000000>;
#address-cells = <1>;
#size-cells = <0>;
compatible = "aspeed,ast2600-fmc";
clocks = <&syscon ASPEED_CLK_AHB>;
interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
flash@0 {
reg = < 0 >;
compatible = "jedec,spi-nor";
spi-max-frequency = <50000000>;
spi-rx-bus-width = <2>;
};
flash@1 {
reg = < 1 >;
compatible = "jedec,spi-nor";
spi-max-frequency = <50000000>;
spi-rx-bus-width = <2>;
};
flash@2 {
reg = < 2 >;
compatible = "jedec,spi-nor";
spi-max-frequency = <50000000>;
spi-rx-bus-width = <2>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Atmel SPI device
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/atmel,at91rm9200-spi.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 #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"atmel,at91rm9200-spi"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"microchip,lan9691-spi","microchip,sam9x60-spi","microchip,sam9x7-spi","microchip,sama7d65-spi"Item 2
Exact value (
const):"atmel,at91rm9200-spi"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"spi_clk"
Item 2
Exact value (
const):"spi_gclk"
Minimum number of items (minItems): 1
clocks — required here #
Array item rules (items) #
Item 1
Peripheral Bus clock
Item 2
Programmable Generic clock
Minimum number of items (minItems): 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"
atmel,fifo-size — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Maximum number of data the RX and TX FIFOs can store for FIFO capable SPI controllers.
Required in this object (required): "compatible", "reg", "interrupts", "clock-names", "clocks"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
spi1: spi@fffcc000 {
compatible = "atmel,at91rm9200-spi";
reg = <0xfffcc000 0x4000>;
interrupts = <13 IRQ_TYPE_LEVEL_HIGH 5>;
#address-cells = <1>;
#size-cells = <0>;
clocks = <&spi1_clk>;
clock-names = "spi_clk";
cs-gpios = <&pioB 3 GPIO_ACTIVE_HIGH>;
atmel,fifo-size = <32>;
mmc@0 {
compatible = "mmc-spi-slot";
reg = <0>;
gpios = <&pioC 4 GPIO_ACTIVE_HIGH>; /* CD */
spi-max-frequency = <25000000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright (C) 2022 Microchip Technology, Inc. and its subsidiaries
Atmel Quad Serial Peripheral Interface (QSPI)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
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
Axiado AX3000 SoC SPI controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/axiado,ax3000-spi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Vladimir Moravcevic <vmoravcevic@axiado.com>", "Tzu-Hao Wei <twei@axiado.com>", "Swark Yang <syang@axiado.com>", "Prasad Bolisetty <pbolisetty@axiado.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 #
Allowed values (enum): "axiado,ax3000-spi"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"ref"
Item 2
Exact value (
const):"pclk"
clocks — required here #
Maximum number of items (maxItems): 2
num-cs — not listed as required here #
Number of chip selects used.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 1
Maximum value (maximum): 4
Default value (default): 4
Required in this object (required): "compatible", "reg", "interrupts", "clock-names", "clocks"
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/interrupt-controller/arm-gic.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
spi@80510000 {
compatible = "axiado,ax3000-spi";
reg = <0x00 0x80510000 0x00 0x1000>;
clock-names = "ref", "pclk";
clocks = <&spi_clk>, <&apb_pclk>;
interrupt-parent = <&gic500>;
interrupts = <GIC_SPI 115 IRQ_TYPE_LEVEL_HIGH>;
num-cs = <4>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Broadcom BCM2835 Auxiliary SPI1/2 Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/brcm,bcm2835-aux-spi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Karan Sanghavi <karansanghvi98@gmail.com>"
The BCM2835 contains two forms of SPI master controller. One is known simply as SPI0, and the other as the "Universal SPI Master," which is part of the auxiliary block. This binding applies to the SPI1 and SPI2 auxiliary controllers.
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): "brcm,bcm2835-aux-spi"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts", "clocks"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/bcm2835-aux.h>
spi@7e215080 {
compatible = "brcm,bcm2835-aux-spi";
reg = <0x7e215080 0x40>;
interrupts = <1 29>;
clocks = <&aux_clocks BCM2835_AUX_CLOCK_SPI1>;
#address-cells = <1>;
#size-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Broadcom BCM2835 SPI0 controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/brcm,bcm2835-spi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Florian Fainelli <florian.fainelli@broadcom.com>", "Kanak Shilledar <kanakshilledar111@protonmail.com>", "Stefan Wahren <wahrenst@gmx.net>"
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): "brcm,bcm2835-spi", "brcm,bcm2711-spi", "brcm,bcm7211-spi"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts", "clocks"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi@20204000 {
compatible = "brcm,bcm2835-spi";
reg = <0x7e204000 0x1000>;
interrupts = <2 22>;
clocks = <&clk_spi>;
#address-cells = <1>;
#size-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
Broadcom Broadband SoC High Speed SPI controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/brcm,bcm63xx-hsspi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "William Zhang <william.zhang@broadcom.com>", "Kursad Oney <kursad.oney@broadcom.com>", "Jonas Gorski <jonas.gorski@gmail.com>"
Broadcom Broadband SoC supports High Speed SPI master controller since the early MIPS based chips such as BCM6328 and BCM63268. This initial rev 1.0 controller was carried over to recent ARM based chips, such as BCM63138, BCM4908 and BCM6858. The old MIPS based chip should continue to use the brcm,bcm6328-hsspi compatible string. The recent ARM based chip is required to use the brcm,bcmbca-hsspi-v1.0 as part of its compatible string list as defined below to match the specific chip along with ip revision info.
This rev 1.0 controller has a limitation that can not keep the chip select line active between the SPI transfers within the same SPI message. This can terminate the transaction to some SPI devices prematurely. The issue can be worked around by either the controller's prepend mode or using the dummy chip select workaround. Driver automatically picks the suitable mode based on transfer type so it is transparent to the user.
The newer SoCs such as BCM6756, BCM4912 and BCM6855 include an updated SPI controller rev 1.1 that add the capability to allow the driver to control chip select explicitly. This solves the issue in the old controller.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"brcm,bcm6328-hsspi"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"brcm,bcm47622-hsspi","brcm,bcm4908-hsspi","brcm,bcm63138-hsspi","brcm,bcm63146-hsspi","brcm,bcm63148-hsspi","brcm,bcm63158-hsspi","brcm,bcm63178-hsspi","brcm,bcm6846-hsspi","brcm,bcm6856-hsspi","brcm,bcm6858-hsspi","brcm,bcm6878-hsspi"Item 2
Exact value (
const):"brcm,bcmbca-hsspi-v1.0"
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"brcm,bcm4912-hsspi","brcm,bcm6756-hsspi","brcm,bcm6813-hsspi","brcm,bcm6855-hsspi"Item 2
Exact value (
const):"brcm,bcmbca-hsspi-v1.1"
reg — required here #
Array item rules (items) #
Item 1
main registers
Item 2
miscellaneous control registers
Minimum number of items (minItems): 1
reg-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"hsspi"
Item 2
Exact value (
const):"spim-ctrl"
Minimum number of items (minItems): 1
clocks — required here #
Array item rules (items) #
Item 1
SPI master reference clock
Item 2
SPI master pll clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"hsspi"
Item 2
Exact value (
const):"pll"
interrupts — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "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)Allowed values (
enum):"brcm,bcm6328-hsspi","brcm,bcmbca-hsspi-v1.0"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMaximum number of items (
maxItems):1
reg-names— not listed as required hereMaximum number of items (
maxItems):1When the condition does not match (
else) #Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
reg-names— required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
spi@ff801000 {
compatible = "brcm,bcm6756-hsspi", "brcm,bcmbca-hsspi-v1.1";
reg = <0xff801000 0x1000>,
<0xff802610 0x4>;
reg-names = "hsspi", "spim-ctrl";
interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&hsspi>, <&hsspi_pll>;
clock-names = "hsspi", "pll";
num-cs = <8>;
#address-cells = <1>;
#size-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
Broadcom BCM6348/BCM6358 SPI controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/brcm,bcm63xx-spi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonas Gorski <jonas.gorski@gmail.com>"
Broadcom "Low Speed" SPI controller found in many older MIPS based Broadband SoCs.
This controller has a limitation that can not keep the chip select line active between the SPI transfers within the same SPI message. This can terminate the transaction to some SPI devices prematurely. The issue can be worked around by the controller's prepend mode.
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
Array item rules (
items)Item 1
Allowed values (
enum):"brcm,bcm6368-spi","brcm,bcm6362-spi","brcm,bcm63268-spi"Item 2
Exact value (
const):"brcm,bcm6358-spi"
Rule 2
Allowed values (
enum):"brcm,bcm6348-spi","brcm,bcm6358-spi"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
SPI master reference clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"spi"
interrupts — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi@10000800 {
compatible = "brcm,bcm6368-spi", "brcm,bcm6358-spi";
reg = <0x10000800 0x70c>;
interrupts = <1>;
clocks = <&clkctl 9>;
clock-names = "spi";
num-cs = <5>;
#address-cells = <1>;
#size-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0 OR BSD-2-Clause
Broadcom SPI controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/brcm,spi-bcm-qspi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Kamal Dasu <kdasu.kdev@gmail.com>", "Rafał Miłecki <rafal@milecki.pl>"
The Broadcom SPI controller is a SPI master found on various SOCs, including
BRCMSTB (BCM7XXX), Cygnus, NSP and NS2. The Broadcom Master SPI hw IP consists
of:
MSPI : SPI master controller can read and write to a SPI slave device
BSPI : Broadcom SPI in combination with the MSPI hw IP provides acceleration
for flash reads and be configured to do single, double, quad lane
io with 3-byte and 4-byte addressing support.
Supported Broadcom SoCs have one instance of MSPI+BSPI controller IP. MSPI master can be used without BSPI. BRCMSTB SoCs have an additional instance of a MSPI master without the BSPI to use with non flash slave devices that use SPI protocol.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):spi-controller.yaml#
Properties and child nodes (properties) #
compatible — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Second Instance of MSPI BRCMSTB SoCs
Array item rules (
items)Item 1
Allowed values (
enum):"brcm,spi-bcm7425-qspi","brcm,spi-bcm7429-qspi","brcm,spi-bcm7435-qspi","brcm,spi-bcm7445-qspi","brcm,spi-bcm7216-qspi","brcm,spi-bcm7278-qspi"Item 2
Exact value (
const):"brcm,spi-bcm-qspi"Item 3
Exact value (
const):"brcm,spi-brcmstb-mspi"
Rule 2
Second Instance of MSPI BRCMSTB SoCs
Array item rules (
items)Item 1
Allowed values (
enum):"brcm,spi-brcmstb-qspi","brcm,spi-brcmstb-mspi","brcm,spi-nsp-qspi","brcm,spi-ns2-qspi"Item 2
Exact value (
const):"brcm,spi-bcm-qspi"
reg — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 5
reg-names — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"mspi"
Item 2
Exact value (
const):"bspi"
Item 3
Allowed values (
enum):"intr_regs","intr_status_reg","cs_reg"
Item 4
Allowed values (
enum):"intr_regs","intr_status_reg","cs_reg"
Item 5
Allowed values (
enum):"intr_regs","intr_status_reg","cs_reg"
interrupts — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 7
interrupt-names — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Minimum number of items (
minItems):1Array item rules (
items)Item 1
Exact value (
const):"mspi_done"Item 2
Exact value (
const):"mspi_halted"Item 3
Exact value (
const):"spi_lr_fullness_reached"Item 4
Exact value (
const):"spi_lr_session_aborted"Item 5
Exact value (
const):"spi_lr_impatient"Item 6
Exact value (
const):"spi_lr_session_done"Item 7
Exact value (
const):"spi_lr_overread"
Rule 2
Exact value (
const):"spi_l1_intr"
clocks — not listed as required here #
Maximum number of items (maxItems): 1
reference clock for this block
native-endian — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Defined when using BE SoC and device uses BE register read/write
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "reg", "reg-names", "interrupts", "interrupt-names"
Examples (examples) #
spi@f03e3400 {
compatible = "brcm,spi-brcmstb-qspi", "brcm,spi-bcm-qspi";
reg = <0xf03e3400 0x188>, <0xf03e3200 0x50>, <0xf03e0920 0x4>;
reg-names = "mspi", "bspi", "cs_reg";
interrupts = <0x5>, <0x6>, <0x1>, <0x2>, <0x3>, <0x4>, <0x0>;
interrupt-parent = <&gic>;
interrupt-names = "mspi_done",
"mspi_halted",
"spi_lr_fullness_reached",
"spi_lr_session_aborted",
"spi_lr_impatient",
"spi_lr_session_done",
"spi_lr_overread";
clocks = <&hif_spi>;
#address-cells = <0x1>;
#size-cells = <0x0>;
flash@0 {
#size-cells = <0x2>;
#address-cells = <0x2>;
compatible = "m25p80";
reg = <0x0>;
spi-max-frequency = <0x2625a00>;
spi-cpol;
spi-cpha;
};
};
spi@f0416000 {
clocks = <&upg_fixed>;
compatible = "brcm,spi-brcmstb-mspi", "brcm,spi-bcm-qspi";
reg = <0xf0416000 0x180>;
reg-names = "mspi";
interrupts = <0x14>;
interrupt-parent = <&irq0_aon_intc>;
interrupt-names = "mspi_done";
#address-cells = <1>;
#size-cells = <0>;
};
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
spi@18027200 {
compatible = "brcm,spi-nsp-qspi", "brcm,spi-bcm-qspi";
reg = <0x18027200 0x184>,
<0x18027000 0x124>,
<0x1811c408 0x004>,
<0x180273a0 0x01c>;
reg-names = "mspi", "bspi", "intr_regs", "intr_status_reg";
interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 78 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 72 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 75 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 76 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "mspi_done",
"mspi_halted",
"spi_lr_fullness_reached",
"spi_lr_session_aborted",
"spi_lr_impatient",
"spi_lr_session_done";
clocks = <&iprocmed>;
num-cs = <2>;
#address-cells = <1>;
#size-cells = <0>;
};
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
spi@66470200 {
compatible = "brcm,spi-ns2-qspi", "brcm,spi-bcm-qspi";
reg = <0x66470200 0x184>,
<0x66470000 0x124>,
<0x67017408 0x004>,
<0x664703a0 0x01c>;
reg-names = "mspi", "bspi", "intr_regs", "intr_status_reg";
interrupts = <GIC_SPI 419 IRQ_TYPE_LEVEL_HIGH>;
interrupt-names = "spi_l1_intr";
clocks = <&iprocmed>;
num-cs = <2>;
#address-cells = <1>;
#size-cells = <0>;
flash@0 {
#address-cells = <1>;
#size-cells = <1>;
compatible = "m25p80";
reg = <0x0>;
spi-max-frequency = <12500000>;
spi-cpol;
spi-cpha;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Peripheral-specific properties for the Cadence QSPI controller.
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/cdns,qspi-nor-peripheral-props.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
See spi-peripheral-props.yaml for more info.
Maintainers (maintainers): "Vaishnav Achath <vaishnav.a@ti.com>"
Properties and child nodes (properties) #
cdns,read-delay — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Delay for read capture logic, in clock cycles.
cdns,tshsl-ns — not listed as required here #
Delay in nanoseconds for the length that the master mode chip select outputs are de-asserted between transactions.
cdns,tsd2d-ns — not listed as required here #
Delay in nanoseconds between one chip select being de-activated and the activation of another.
cdns,tchsh-ns — not listed as required here #
Delay in nanoseconds between last bit of current transaction and deasserting the device chip select (qspi_n_ss_out).
cdns,tslch-ns — not listed as required here #
Delay in nanoseconds between setting qspi_n_ss_out low and first bit transfer.
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 16: cdns,qspi-nor.yaml
Cadence Quad/Octal SPI controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/cdns,qspi-nor.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Vaishnav Achath <vaishnav.a@ti.com>"
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)Exact value (
const):"xlnx,versal-ospi-1.0"When the condition matches (
then) #
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"starfive,jh7110-qspi"When the condition matches (
then) #Properties and child nodes (
properties)
resets— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):3
reset-names— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):3Array item rules (
items)When the condition does not match (
else) #Properties and child nodes (
properties)
resets— not listed as required hereMaximum number of items (
maxItems):2
reset-names— not listed as required hereMinimum number of items (
minItems):1Maximum number of items (
maxItems):2Array item rules (
items)
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"amd,pensando-elba-qspi"When the condition matches (
then) #Properties and child nodes (
properties)
cdns,fifo-depth— not listed as required hereAllowed values (
enum):128,256,1024Default value (
default):1024When the condition does not match (
else) #Properties and child nodes (
properties)
cdns,fifo-depth— not listed as required hereAllowed values (
enum):128,256Default value (
default):128
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,rzn1-qspi"When the condition matches (
then) #Properties and child nodes (
properties)
cdns,trigger-address— not listed as required here
false— Not permitted by this property rule.
cdns,fifo-depth— not listed as required here
false— Not permitted by this property rule.
cdns,fifo-width— not listed as required here
false— Not permitted by this property rule.When the condition does not match (
else) #Required in this object (
required):"cdns,trigger-address","cdns,fifo-depth"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"amd,pensando-elba-qspi","amd,versal2-ospi","intel,lgm-qspi","intel,socfpga-qspi","mobileye,eyeq5-ospi","starfive,jh7110-qspi","ti,am654-ospi","ti,k2g-qspi","xlnx,versal-ospi-1.0"Item 2
Exact value (
const):"cdns,qspi-nor"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"renesas,r9a06g032-qspi"Item 2
Exact value (
const):"renesas,rzn1-qspi"
Rule 3
Exact value (
const):"cdns,qspi-nor"Deprecated (
deprecated):true
reg — required here #
Array item rules (items) #
Item 1
the controller register set
Item 2
the controller data area
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
clock-names — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"ref"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"ref"Item 2
Exact value (
const):"ahb"Item 3
Exact value (
const):"apb"
cdns,fifo-depth — not listed as required here #
Size of the data FIFO in words.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
cdns,fifo-width — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Bus width of the data FIFO in bytes.
Default value (default): 4
cdns,trigger-address — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
32-bit indirect AHB trigger address.
cdns,is-decoded-cs — not listed as required here #
Value type (type): "boolean"
Flag to indicate whether decoder is used to select different chip select for different memory regions.
cdns,rclk-en — not listed as required here #
Value type (type): "boolean"
Flag to indicate that QSPI return clock is used to latch the read data rather than the QSPI clock. Make sure that QSPI return clock is populated on the board before using this property.
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 3
reset-names — not listed as required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 3
Array item rules (items) #
Properties matching a name pattern (patternProperties) #
^flash@[0-9a-f]+$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): cdns,qspi-nor-peripheral-props.yaml
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Required in this object (required): "cdns,read-delay", "cdns,tshsl-ns", "cdns,tsd2d-ns", "cdns,tchsh-ns", "cdns,tslch-ns"
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "#address-cells", "#size-cells"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi@ff705000 {
compatible = "intel,socfpga-qspi", "cdns,qspi-nor";
#address-cells = <1>;
#size-cells = <0>;
reg = <0xff705000 0x1000>,
<0xffa00000 0x1000>;
interrupts = <0 151 4>;
clocks = <&qspi_clk>;
cdns,fifo-depth = <128>;
cdns,fifo-width = <4>;
cdns,trigger-address = <0x00000000>;
resets = <&rst 0x1>, <&rst 0x2>;
reset-names = "qspi", "qspi-ocp";
flash@0 {
compatible = "jedec,spi-nor";
reg = <0x0>;
cdns,read-delay = <4>;
cdns,tshsl-ns = <60>;
cdns,tsd2d-ns = <60>;
cdns,tchsh-ns = <60>;
cdns,tslch-ns = <60>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 93: The compatible is qspi-nor for historical reasons but such
Line 94: controllers are meant to be used with flashes of all kinds,
Line 95: ie. also NAND flashes, not only NOR flashes.
Cadence XSPI Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
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
EP93xx SoC SPI controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/cirrus,ep9301-spi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Alexander Sverdlin <alexander.sverdlin@gmail.com>", "Nikita Shubin <nikita.shubin@maquefel.me>"
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
Exact value (
const):"cirrus,ep9301-spi"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"cirrus,ep9302-spi","cirrus,ep9307-spi","cirrus,ep9312-spi","cirrus,ep9315-spi"Item 2
Exact value (
const):"cirrus,ep9301-spi"
reg — required here #
Array item rules (items) #
Item 1
SPI registers region
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Array item rules (items) #
Item 1
SPI Controller reference clock source
dmas — not listed as required here #
Array item rules (items) #
Item 1
rx DMA channel
Item 2
tx DMA channel
dma-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"rx"
Item 2
Exact value (
const):"tx"
Required in this object (required): "compatible", "reg", "interrupts", "clocks"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/clock/cirrus,ep9301-syscon.h>
spi@808a0000 {
compatible = "cirrus,ep9301-spi";
reg = <0x808a0000 0x18>;
interrupt-parent = <&vic1>;
interrupts = <21>;
clocks = <&syscon EP93XX_CLK_SPI>;
dmas = <&dma1 10 2>, <&dma1 10 1>;
dma-names = "rx", "tx";
cs-gpios = <&gpio5 2 GPIO_ACTIVE_HIGH>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Faraday FTSSP010 SPI Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/faraday,ftssp010.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "faraday,ftssp010"
interrupts — required here #
Maximum number of items (maxItems): 1
reg — required here #
Maximum number of items (maxItems): 1
cs-gpios — not listed as required here #
true — No constraints added by this property rule.
Required in this object (required): "compatible", "interrupts", "reg"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):spi-controller.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
spi@4a000000 {
compatible = "faraday,ftssp010";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x4a000000 0x1000>;
interrupts = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Peripheral-specific properties for Freescale DSPI controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/fsl,dspi-peripheral-props.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Vladimir Oltean <olteanv@gmail.com>"
See spi-peripheral-props.yaml for more info.
Properties and child nodes (properties) #
fsl,spi-cs-sck-delay — not listed as required here #
Deprecated (deprecated): true
Delay in nanoseconds between activating chip select and the start of clock signal, at the start of a transfer.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
fsl,spi-sck-cs-delay — not listed as required here #
Deprecated (deprecated): true
Delay in nanoseconds between stopping the clock signal and deactivating chip select, at the end of a transfer.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
ARM Freescale DSPI controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/fsl,dspi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Frank Li <Frank.Li@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-dspi","fsl,ls1021a-v1.0-dspi","fsl,ls1012a-dspi","fsl,ls1028a-dspi","fsl,ls1043a-dspi","fsl,ls1046a-dspi","fsl,ls1088a-dspi","fsl,ls2080a-dspi","fsl,ls2085a-dspi","fsl,lx2160a-dspi","nxp,s32g2-dspi"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,ls1012a-dspi","fsl,ls1028a-dspi","fsl,ls1043a-dspi","fsl,ls1046a-dspi","fsl,ls1088a-dspi"Item 2
Exact value (
const):"fsl,ls1021a-v1.0-dspi"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"fsl,ls2080a-dspi"Item 2
Exact value (
const):"fsl,ls2085a-dspi"
Rule 4
Array item rules (
items)Item 1
Exact value (
const):"fsl,lx2160a-dspi"Item 2
Exact value (
const):"fsl,ls2085a-dspi"
Rule 5
Array item rules (
items)Item 1
Exact value (
const):"nxp,s32g3-dspi"Item 2
Exact value (
const):"nxp,s32g2-dspi"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"dspi"
dmas — not listed as required here #
Array item rules (items) #
Item 1
DMA controller phandle and request line for TX
Item 2
DMA controller phandle and request line for RX
dma-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"tx"
Item 2
Exact value (
const):"rx"
spi-num-chipselects — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
The number of the chip native chipselect signals. cs-gpios don't count against this number.
big-endian — not listed as required here #
true — No constraints added by this property rule.
bus-num — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
SoC-specific identifier for the SPI controller.
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "spi-num-chipselects"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):spi-controller.yaml#
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/vf610-clock.h>
spi@4002c000 {
compatible = "fsl,vf610-dspi";
reg = <0x4002c000 0x1000>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = <GIC_SPI 67 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clks VF610_CLK_DSPI0>;
clock-names = "dspi";
spi-num-chipselects = <5>;
bus-num = <0>;
pinctrl-names = "default";
pinctrl-0 = <&pinctrl_dspi0_1>;
big-endian;
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <16000000>;
spi-cpol;
spi-cpha;
spi-cs-setup-delay-ns = <100>;
spi-cs-hold-delay-ns = <50>;
};
};
spi@401d4000 {
compatible = "nxp,s32g3-dspi", "nxp,s32g2-dspi";
reg = <0x401d4000 0x1000>;
interrupts = <GIC_SPI 85 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clks 26>;
clock-names = "dspi";
spi-num-chipselects = <8>;
bus-num = <0>;
dmas = <&edma0 0 7>, <&edma0 0 8>;
dma-names = "tx", "rx";
spi-slave;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 121: S32G3 in target mode
Freescale eSPI (Enhanced Serial Peripheral Interface) controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/fsl,espi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "J. Neuschäfer <j.ne@posteo.net>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "fsl,mpc8536-espi"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
fsl,espi-num-chipselects — required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
The number of the chipselect signals.
fsl,csbef — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 15
Chip select assertion time in bits before frame starts
fsl,csaft — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 15
Chip select negation time in bits after frame ends
Required in this object (required): "compatible", "reg", "interrupts", "fsl,espi-num-chipselects"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):spi-controller.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
spi@110000 {
compatible = "fsl,mpc8536-espi";
reg = <0x110000 0x1000>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = <53 IRQ_TYPE_EDGE_FALLING>;
fsl,espi-num-chipselects = <4>;
fsl,csbef = <1>;
fsl,csaft = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Freescale Quad Serial Peripheral Interface (QuadSPI)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
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)
Freescale SPI (Serial Peripheral Interface) controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/fsl,spi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "J. Neuschäfer <j.ne@posteo.net>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "fsl,spi", "aeroflexgaisler,spictrl"
reg — required here #
Maximum number of items (maxItems): 1
cell-index — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
QE SPI subblock index. 0: QE subblock SPI1 1: QE subblock SPI2
mode — required here #
SPI operation mode
Allowed values (enum): "cpu", "cpu-qe"
interrupts — required here #
Maximum number of items (maxItems): 1
clock-frequency — not listed as required here #
input clock frequency to non FSL_SOC cores
cs-gpios — not listed as required here #
true — No constraints added by this property rule.
fsl,spisel_boot — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
For the MPC8306 and MPC8309, specifies that the SPISEL_BOOT signal is used as chip select for a slave device. Use reg = <number of gpios> in the corresponding child node, i.e. 0 if the cs-gpios property is not present.
Required in this object (required): "compatible", "reg", "mode", "interrupts"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):spi-controller.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
spi@4c0 {
compatible = "fsl,spi";
reg = <0x4c0 0x40>;
cell-index = <0>;
interrupts = <82 0>;
mode = "cpu";
cs-gpios = <&gpio 18 IRQ_TYPE_EDGE_RISING // device reg=<0>
&gpio 19 IRQ_TYPE_EDGE_RISING>; // device reg=<1>
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Freescale (Enhanced) Configurable Serial Peripheral Interface (CSPI/eCSPI) for i.MX
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/fsl-imx-cspi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Shawn Guo <shawnguo@kernel.org>"
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
Exact value (
const):"fsl,imx1-cspi"
Rule 2
Exact value (
const):"fsl,imx21-cspi"
Rule 3
Exact value (
const):"fsl,imx27-cspi"
Rule 4
Exact value (
const):"fsl,imx31-cspi"
Rule 5
Exact value (
const):"fsl,imx35-cspi"
Rule 6
Exact value (
const):"fsl,imx51-ecspi"
Rule 7
Exact value (
const):"fsl,imx53-ecspi"
Rule 8
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,imx25-cspi","fsl,imx50-cspi","fsl,imx51-cspi","fsl,imx53-cspi"Item 2
Exact value (
const):"fsl,imx35-cspi"
Rule 9
Array item rules (
items)Item 1
Exact value (
const):"fsl,imx8mp-ecspi"Item 2
Exact value (
const):"fsl,imx6ul-ecspi"
Rule 10
Array item rules (
items)Item 1
Allowed values (
enum):"fsl,imx50-ecspi","fsl,imx6q-ecspi","fsl,imx6sx-ecspi","fsl,imx6sl-ecspi","fsl,imx6sll-ecspi","fsl,imx6ul-ecspi","fsl,imx7d-ecspi","fsl,imx8mq-ecspi","fsl,imx8mm-ecspi","fsl,imx8mn-ecspi"Item 2
Exact value (
const):"fsl,imx51-ecspi"
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 ipg clock
Item 2
SoC SPI per clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"ipg"
Item 2
Exact value (
const):"per"
dmas — not listed as required here #
Array item rules (items) #
Item 1
DMA controller phandle and request line for RX
Item 2
DMA controller phandle and request line for TX
dma-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"rx"
Item 2
Exact value (
const):"tx"
fsl,spi-rdy-drctl — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Integer, representing the value of DRCTL, the register controlling the SPI_READY handling. Note that to enable the DRCTL consideration, the SPI_READY mode-flag needs to be set too. Valid values are: 0 (disabled), 1 (edge-triggered burst) and 2 (level-triggered burst).
Allowed values (enum): 0, 1, 2
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/imx5-clock.h>
spi@70010000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "fsl,imx51-ecspi";
reg = <0x70010000 0x4000>;
interrupts = <36>;
clocks = <&clks IMX5_CLK_ECSPI1_IPG_GATE>,
<&clks IMX5_CLK_ECSPI1_PER_GATE>;
clock-names = "ipg", "per";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
HPE GXP spi controller flash interface
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/hpe,gxp-spifi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Nick Hawkins <nick.hawkins@hpe.com>", "Jean-Marie Verdun <verdun@hpe.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 #
Exact value (const): "hpe,gxp-spifi"
reg — required here #
Array item rules (items) #
Item 1
cfg registers
Item 2
data registers
Item 3
mapped memory
interrupts — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi@200 {
compatible = "hpe,gxp-spifi";
reg = <0x200 0x80>, <0xc000 0x100>, <0x38000000 0x800000>;
interrupts = <20>;
interrupt-parent = <&vic0>;
#address-cells = <1>;
#size-cells = <0>;
flash@0 {
reg = <0>;
compatible = "jedec,spi-nor";
};
flash@1 {
reg = <1>;
compatible = "jedec,spi-nor";
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
IBM FSI-attached SPI Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/ibm,spi-fsi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Eddie James <eajames@linux.ibm.com>"
A SPI controller found on IBM Power processors, accessed over FSI from a service processor. This node will always be a child node of an ibm,fsi2spi node.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "ibm,spi-fsi"
reg — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):spi-controller.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
fsi {
#address-cells = <1>;
#size-cells = <0>;
spi@0 {
compatible = "ibm,spi-fsi";
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
eeprom@0 {
compatible = "atmel,at25";
reg = <0>;
size = <0x80000>;
address-width = <24>;
pagesize = <256>;
spi-max-frequency = <1000000>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Ingenic SoCs SPI controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/ingenic,spi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Artur Rojek <contact@artur-rojek.eu>", "Paul Cercueil <paul@crapouillou.net>"
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):"ingenic,jz4750-spi","ingenic,jz4775-spi","ingenic,jz4780-spi","ingenic,x1000-spi","ingenic,x2000-spi"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"ingenic,jz4760-spi","ingenic,jz4770-spi"Item 2
Exact value (
const):"ingenic,jz4750-spi"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
dmas — required here #
Maximum number of items (maxItems): 2
Minimum number of items (minItems): 2
dma-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"rx"
Item 2
Exact value (
const):"tx"
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "dmas", "dma-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/ingenic,jz4770-cgu.h>
spi@10043000 {
compatible = "ingenic,jz4770-spi", "ingenic,jz4750-spi";
reg = <0x10043000 0x1c>;
#address-cells = <1>;
#size-cells = <0>;
interrupt-parent = <&intc>;
interrupts = <8>;
clocks = <&cgu JZ4770_CLK_SSI0>;
dmas = <&dmac1 23 0xffffffff>, <&dmac1 22 0xffffffff>;
dma-names = "rx", "tx";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Loongson SPI controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/loongson,ls2k-spi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Yinbo Zhu <zhuyinbo@loongson.cn>"
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
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"loongson,ls2k1000-spi"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "clocks"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi0: spi@1fff0220{
compatible = "loongson,ls2k1000-spi";
reg = <0x1fff0220 0x10>;
clocks = <&clk 17>;
#address-cells = <1>;
#size-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Marvell Armada 3700 SPI Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/marvell,armada-3700-spi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The SPI controller on Marvell Armada 3700 SoC.
Maintainers (maintainers): "Kousik Sanagavarapu <five231003@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 #
Exact value (const): "marvell,armada-3700-spi"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
num-cs — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts", "clocks"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
spi0: spi@10600 {
compatible = "marvell,armada-3700-spi";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x10600 0x5d>;
clocks = <&nb_perih_clk 7>;
interrupts = <GIC_SPI 0 IRQ_TYPE_LEVEL_HIGH>;
num-cs = <4>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
PXA2xx SSP SPI Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/marvell,mmp2-ssp.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Lubomir Rintel <lkundrak@v3.sk>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "marvell,mmp2-ssp", "mrvl,ce4100-ssp", "mvrl,pxa168-ssp", "mrvl,pxa25x-ssp", "mvrl,pxa25x-nssp", "mrvl,pxa27x-ssp", "mrvl,pxa3xx-ssp", "mrvl,pxa910-ssp"
interrupts — required here #
Maximum number of items (maxItems): 1
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
dmas — not listed as required here #
Array item rules (items) #
Item 1
Receive DMA
Item 2
Transmit DMA
dma-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"rx"
Item 2
Exact value (
const):"tx"
ready-gpios — not listed as required here #
GPIO used to signal a SPI master that the FIFO is filled and we're ready to service a transfer. Only useful in slave mode.
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts", "clocks"
Property dependencies (dependencies) #
ready-gpios — applies when this property is present #
Also requires: "spi-slave"
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)Exact value (
const):"marvell,mmp2-ssp"When the condition matches (
then) #Properties and child nodes (
properties)
dmas— not listed as required here
false— Not permitted by this property rule.
dma-names— 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/clock/marvell,mmp2.h>
spi@d4035000 {
compatible = "marvell,mmp2-ssp";
#address-cells = <1>;
#size-cells = <0>;
reg = <0xd4035000 0x1000>;
clocks = <&soc_clocks MMP2_CLK_SSP0>;
interrupts = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 2: Copyright 2019,2020 Lubomir Rintel <lkundrak@v3.sk>
Marvell Orion SPI controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/marvell,orion-spi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Lunn <andrew@lunn.ch>", "Gregory CLEMENT <gregory.clement@bootlin.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):"marvell,orion-spi","marvell,armada-380-spi"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"marvell,armada-370-spi","marvell,armada-375-spi","marvell,armada-380-spi","marvell,armada-390-spi","marvell,armada-xp-spi"Item 2
Exact value (
const):"marvell,orion-spi"
cell-index — not listed as required here #
Instance id for the SPI controller
Deprecated (deprecated): true
reg — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
control registers
Item 2
CS0 MBUS target/attribute registers for direct mode
Item 3
CS1 MBUS target/attribute registers for direct mode
Item 4
CS2 MBUS target/attribute registers for direct mode
Item 5
CS3 MBUS target/attribute registers for direct mode
Item 6
CS4 MBUS target/attribute registers for direct mode
Item 7
CS5 MBUS target/attribute registers for direct mode
Item 8
CS6 MBUS target/attribute registers for direct mode
Item 9
CS7 MBUS target/attribute registers for direct mode
clocks — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"core"
Item 2
Exact value (
const):"axi"
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "clocks"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi@10600 {
compatible = "marvell,orion-spi";
#address-cells = <1>;
#size-cells = <0>;
cell-index = <0>;
reg = <0x10600 0x28>;
clocks = <&coreclk 0>;
interrupts = <23>;
};
#define MBUS_ID(target,attributes) (((target) << 24) | ((attributes) << 16))
bus {
#address-cells = <2>;
#size-cells = <1>;
spi@10600 {
compatible = "marvell,orion-spi";
#address-cells = <1>;
#size-cells = <0>;
cell-index = <0>;
reg = <MBUS_ID(0xf0, 0x01) 0x10600 0x28>, /* control */
<MBUS_ID(0x01, 0x1e) 0 0xffffffff>, /* CS0 */
<MBUS_ID(0x01, 0x5e) 0 0xffffffff>, /* CS1 */
<MBUS_ID(0x01, 0x9e) 0 0xffffffff>, /* CS2 */
<MBUS_ID(0x01, 0xde) 0 0xffffffff>, /* CS3 */
<MBUS_ID(0x01, 0x1f) 0 0xffffffff>, /* CS4 */
<MBUS_ID(0x01, 0x5f) 0 0xffffffff>, /* CS5 */
<MBUS_ID(0x01, 0x9f) 0 0xffffffff>, /* CS6 */
<MBUS_ID(0x01, 0xdf) 0 0xffffffff>; /* CS7 */
clocks = <&coreclk 0>;
interrupts = <23>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 21: For ap80x and cp11x
SPI Bus controller for MediaTek ARM SoCs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/mediatek,spi-mt65xx.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Leilk Liu <leilk.liu@mediatek.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
Array item rules (
items)Item 1
Allowed values (
enum):"mediatek,mt7629-spi","mediatek,mt8365-spi"Item 2
Exact value (
const):"mediatek,mt7622-spi"
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"mediatek,mt2712-spi"
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"mediatek,mt6779-spi","mediatek,mt8186-spi","mediatek,mt8192-spi","mediatek,mt8195-spi"Item 2
Exact value (
const):"mediatek,mt6765-spi"
Rule 4
Array item rules (
items)Item 1
Allowed values (
enum):"mediatek,mt7981-spi-ipm","mediatek,mt7986-spi-ipm","mediatek,mt7988-spi-quad","mediatek,mt7988-spi-single","mediatek,mt8188-spi-ipm"Item 2
Exact value (
const):"mediatek,spi-ipm"
Rule 5
Array item rules (
items)Item 1
Item 2
Exact value (
const):"mediatek,mt6991-spi"
Rule 6
Array item rules (
items)Item 1
Allowed values (
enum):"mediatek,mt2701-spi","mediatek,mt2712-spi","mediatek,mt6589-spi","mediatek,mt6765-spi","mediatek,mt6893-spi","mediatek,mt6991-spi","mediatek,mt7622-spi","mediatek,mt8135-spi","mediatek,mt8173-spi","mediatek,mt8183-spi"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 3
Array item rules (items) #
Item 1
clock used for the parent clock
Item 2
clock used for the muxes clock
Item 3
clock used for the clock gate
Item 4
clock used for the AHB bus, this clock is optional
clock-names — required here #
Minimum number of items (minItems): 3
Array item rules (items) #
Item 1
Exact value (
const):"parent-clk"
Item 2
Exact value (
const):"sel-clk"
Item 3
Exact value (
const):"spi-clk"
Item 4
Exact value (
const):"hclk"
mediatek,pad-select — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
Array item rules (items) #
specify which pins group(ck/mi/mo/cs) spi controller used. This is an array.
Required in this object (required): "compatible", "reg", "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/clock/mt8173-clk.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
spi@1100a000 {
compatible = "mediatek,mt8173-spi";
#address-cells = <1>;
#size-cells = <0>;
reg = <0x1100a000 0x1000>;
interrupts = <GIC_SPI 110 IRQ_TYPE_LEVEL_LOW>;
clocks = <&topckgen CLK_TOP_SYSPLL3_D2>,
<&topckgen CLK_TOP_SPI_SEL>,
<&pericfg CLK_PERI_SPI0>;
clock-names = "parent-clk", "sel-clk", "spi-clk";
cs-gpios = <&pio 105 GPIO_ACTIVE_LOW>, <&pio 72 GPIO_ACTIVE_LOW>;
mediatek,pad-select = <1>, <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Serial NOR flash controller for MediaTek ARM SoCs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/mediatek,spi-mtk-nor.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Bayi Cheng <bayi.cheng@mediatek.com>", "Chuanhong Guo <gch981213@gmail.com>"
This spi controller support single, dual, or quad mode transfer for SPI NOR flash. There should be only one spi slave device following generic spi bindings. It's not recommended to use this controller for devices other than SPI NOR flash due to limited transfer capability of this controller.
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):"mediatek,mt8173-nor","mediatek,mt8186-nor","mediatek,mt8192-nor"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"mediatek,mt2701-nor","mediatek,mt2712-nor","mediatek,mt7622-nor","mediatek,mt7623-nor","mediatek,mt7629-nor","mediatek,mt8195-nor"Item 2
Exact value (
const):"mediatek,mt8173-nor"
Rule 3
Array item rules (
items)Item 1
Item 2
Exact value (
const):"mediatek,mt8186-nor"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 2
Array item rules (items) #
Item 1
clock used for spi bus
Item 2
clock used for controller
Item 3
clock used for nor dma bus. this depends on hardware design, so this is optional.
Item 4
clock used for controller axi slave bus. this depends on hardware design, so it is optional.
clock-names — required here #
Minimum number of items (minItems): 2
Array item rules (items) #
Item 1
Exact value (
const):"spi"
Item 2
Exact value (
const):"sf"
Item 3
Exact value (
const):"axi"
Item 4
Exact value (
const):"axi_s"
Required in this object (required): "compatible", "reg", "clocks", "clock-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/mt8173-clk.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
nor_flash: spi@1100d000 {
compatible = "mediatek,mt8173-nor";
reg = <0 0x1100d000 0 0xe0>;
interrupts = <1>;
clocks = <&pericfg CLK_PERI_SPI>, <&topckgen CLK_TOP_SPINFI_IFR_SEL>,
<&pericfg CLK_PERI_NFI>;
clock-names = "spi", "sf", "axi";
#address-cells = <1>;
#size-cells = <0>;
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
SPI-NAND flash controller for MediaTek ARM SoCs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/mediatek,spi-mtk-snfi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chuanhong Guo <gch981213@gmail.com>"
The Mediatek SPI-NAND flash controller is an extended version of the Mediatek NAND flash controller. It can perform standard SPI instructions with one continuous write and one read for up-to 0xa0 bytes. It also supports typical SPI-NAND page cache operations in single, dual or quad IO mode with pipelined ECC encoding/decoding using the accompanying ECC engine. There should be only one spi slave device following generic spi bindings.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "mediatek,mt7622-snand", "mediatek,mt7629-snand", "mediatek,mt7986-snand"
reg — required here #
Array item rules (items) #
Item 1
core registers
interrupts — required here #
Array item rules (items) #
Item 1
NFI interrupt
clocks — required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 3
clock-names — required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 3
nand-ecc-engine — required here #
device-tree node of the accompanying ECC engine.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
mediatek,rx-latch-latency-ns — not listed as required here #
Data read latch latency, unit is nanoseconds.
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "nand-ecc-engine"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-controller.yaml#
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereAllowed values (
enum):"mediatek,mt7622-snand","mediatek,mt7629-snand"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
clock used for the controller
Item 2
clock used for the SPI bus
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"nfi_clk"Item 2
Exact value (
const):"pad_clk"
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereWhen the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
clock used for the controller
Item 2
clock used for the SPI bus
Item 3
clock used for the AHB bus
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"nfi_clk"Item 2
Exact value (
const):"pad_clk"Item 3
Exact value (
const):"nfi_hclk"
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/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/mt7622-clk.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
snfi: spi@1100d000 {
compatible = "mediatek,mt7622-snand";
reg = <0 0x1100d000 0 0x1000>;
interrupts = <GIC_SPI 96 IRQ_TYPE_LEVEL_LOW>;
clocks = <&pericfg CLK_PERI_NFI_PD>, <&pericfg CLK_PERI_SNFI_PD>;
clock-names = "nfi_clk", "pad_clk";
nand-ecc-engine = <&bch>;
#address-cells = <1>;
#size-cells = <0>;
flash@0 {
compatible = "spi-nand";
reg = <0>;
spi-tx-bus-width = <4>;
spi-rx-bus-width = <4>;
nand-ecc-engine = <&snfi>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
SPI Slave controller for MediaTek ARM SoCs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/mediatek,spi-slave-mt27xx.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Leilk Liu <leilk.liu@mediatek.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 #
Allowed values (enum): "mediatek,mt2712-spi-slave", "mediatek,mt8195-spi-slave"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"spi"
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/mt2712-clk.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
spi@10013000 {
compatible = "mediatek,mt2712-spi-slave";
reg = <0x10013000 0x100>;
interrupts = <GIC_SPI 283 IRQ_TYPE_LEVEL_LOW>;
clocks = <&infracfg CLK_INFRA_AO_SPI1>;
clock-names = "spi";
assigned-clocks = <&topckgen CLK_TOP_SPISLV_SEL>;
assigned-clock-parents = <&topckgen CLK_TOP_UNIVPLL1_D2>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Microchip FPGA {Q,}SPI Controllers
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/microchip,mpfs-spi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
SPI and QSPI controllers on Microchip PolarFire SoC and the "soft"/ fabric IP cores they are based on
Maintainers (maintainers): "Conor Dooley <conor.dooley@microchip.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"microchip,mpfs-qspi","microchip,pic64gx-qspi"Item 2
Exact value (
const):"microchip,coreqspi-rtl-v2"
Rule 2
Allowed values (
enum):"microchip,coreqspi-rtl-v2","microchip,corespi-rtl-v5","microchip,mpfs-spi"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"microchip,pic64gx-spi"Item 2
Exact value (
const):"microchip,mpfs-spi"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clock-names — not listed as required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
microchip,apb-datawidth — not listed as required here #
APB bus data width in bits.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 8, 16, 32
Default value (default): 8
microchip,frame-size — not listed as required here #
Number of bits per SPI frame, as configured in Libero. In Motorola and TI modes, this corresponds directly to the requested frame size. For NSC mode this is set to 9 + the required data frame size.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 4
Maximum value (maximum): 32
Default value (default): 8
microchip,protocol-configuration — not listed as required here #
CoreSPI protocol selection. Determines operating mode
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Allowed values (enum): "motorola", "ti", "nsc"
Default value (default): "motorola"
microchip,motorola-mode — not listed as required here #
Motorola SPI mode selection
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
Default value (default): 3
microchip,ssel-active — not listed as required here #
Keep SSEL asserted between frames when using the Motorola protocol. When present, the controller keeps SSEL active across contiguous transfers and deasserts only when the overall transfer completes.
Value type (type): "boolean"
Required in this object (required): "compatible", "reg", "interrupts", "clocks"
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)Exact value (
const):"microchip,mpfs-spi"When the condition matches (
then) #Properties and child nodes (
properties)
num-cs— not listed as required hereDefault value (
default):1
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"microchip,mpfs-spi"This rule must not match (
not)When the condition matches (
then) #Properties and child nodes (
properties)
num-cs— not listed as required hereMaximum value (
maximum):1
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"microchip,corespi-rtl-v5"When the condition matches (
then) #Properties and child nodes (
properties)
num-cs— not listed as required hereMinimum value (
minimum):1Maximum value (
maximum):8Default value (
default):8
fifo-depth— not listed as required hereMinimum value (
minimum):1Maximum value (
maximum):32Default value (
default):4When the condition does not match (
else) #Properties and child nodes (
properties)
microchip,apb-datawidth— not listed as required here
false— Not permitted by this property rule.
microchip,frame-size— not listed as required here
false— Not permitted by this property rule.
microchip,protocol-configuration— not listed as required here
false— Not permitted by this property rule.
microchip,motorola-mode— not listed as required here
false— Not permitted by this property rule.
microchip,ssel-active— 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/clock/microchip,mpfs-clock.h"
spi@20108000 {
compatible = "microchip,mpfs-spi";
reg = <0x20108000 0x1000>;
clocks = <&clkcfg CLK_SPI0>;
interrupt-parent = <&plic>;
interrupts = <54>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 25: FPGA QSPI
Line 26: FPGA CoreSPI
MikroTik RB4xx series SPI master
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/mikrotik,rb4xx-spi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Gabor Juhos <juhosg@openwrt.org>", "Bert Vermeulen <bert@biot.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 #
Exact value (const): "mikrotik,rb4xx-spi"
reg — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi: spi@1f000000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "mikrotik,rb4xx-spi";
reg = <0x1f000000 0x10>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Macronix SPI controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/mxicy,mx25f0a-spi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Miquel Raynal <miquel.raynal@bootlin.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 #
Exact value (const): "mxicy,mx25f0a-spi"
reg — required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 2
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"regs"
Item 2
Exact value (
const):"dirmap"
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 3
Maximum number of items (maxItems): 3
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"send_clk"
Item 2
Exact value (
const):"send_dly_clk"
Item 3
Exact value (
const):"ps_clk"
nand-ecc-engine — not listed as required here #
NAND ECC engine used by the SPI controller in order to perform on-the-fly correction when using a SPI-NAND memory.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Required in this object (required): "compatible", "reg", "reg-names", "clocks", "clock-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi@43c30000 {
compatible = "mxicy,mx25f0a-spi";
reg = <0x43c30000 0x10000>, <0xa0000000 0x20000000>;
reg-names = "regs", "dirmap";
clocks = <&clkwizard 0>, <&clkwizard 1>, <&clkc 18>;
clock-names = "send_clk", "send_dly_clk", "ps_clk";
#address-cells = <1>;
#size-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Freescale MX233/MX28 SSP/SPI
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/mxs-spi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Marek Vasut <marex@denx.de>"
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 #
Allowed values (enum): "fsl,imx23-spi", "fsl,imx28-spi"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Maximum number of items (maxItems): 1
dmas — required here #
Maximum number of items (maxItems): 1
dma-names — required here #
Exact value (const): "rx-tx"
clock-frequency — not listed as required here #
input clock frequency to the SPI block in Hz.
Default value (default): 160000000
Required in this object (required): "compatible", "reg", "interrupts", "dmas", "dma-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi@80010000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "fsl,imx28-spi";
reg = <0x80010000 0x2000>;
interrupts = <96>;
dmas = <&dma_apbh 0>;
dma-names = "rx-tx";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Nuvoton NPCM Peripheral SPI (PSPI) Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/nuvoton,npcm-pspi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Tomer Maimon <tmaimon77@gmail.com>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):spi-controller.yaml#
Nuvoton NPCM Peripheral Serial Peripheral Interface (PSPI) controller. Nuvoton NPCM7xx SOC supports two PSPI channels. Nuvoton NPCM8xx SOC support one PSPI channel.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "nuvoton,npcm750-pspi", "nuvoton,npcm845-pspi"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
PSPI reference clock.
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"clk_apb5"
resets — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "resets"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/nuvoton,npcm7xx-clock.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/reset/nuvoton,npcm7xx-reset.h>
#include "dt-bindings/gpio/gpio.h"
spi0: spi@f0200000 {
compatible = "nuvoton,npcm750-pspi";
reg = <0xf0200000 0x1000>;
pinctrl-names = "default";
pinctrl-0 = <&pspi1_pins>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clk NPCM7XX_CLK_APB5>;
clock-names = "clk_apb5";
resets = <&rstc NPCM7XX_RESET_IPSRST2 NPCM7XX_RESET_PSPI1>;
cs-gpios = <&gpio6 11 GPIO_ACTIVE_LOW>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Line 23: Poleg NPCM7XX
Line 24: Arbel NPCM8XX
Nuvoton WPCM450 Flash Interface Unit (FIU)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/nuvoton,wpcm450-fiu.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Jonathan Neuschäfer <j.neuschaefer@gmx.net>"
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 #
Exact value (const): "nuvoton,wpcm450-fiu"
reg — required here #
Array item rules (items) #
Item 1
FIU registers
Item 2
Memory-mapped flash contents
reg-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"control"
Item 2
Exact value (
const):"memory"
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
nuvoton,shm — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
a phandle to the SHM block (see ../arm/nuvoton,shm.yaml)
Required in this object (required): "compatible", "reg", "clocks"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi@c8000000 {
compatible = "nuvoton,wpcm450-fiu";
reg = <0xc8000000 0x1000>, <0xc0000000 0x4000000>;
#address-cells = <1>;
#size-cells = <0>;
reg-names = "control", "memory";
clocks = <&clk 0>;
nuvoton,shm = <&shm>;
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
NVIDIA Tegra114 SPI controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/nvidia,tegra114-spi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Thierry Reding <thierry.reding@gmail.com>", "Jon Hunter <jonathanh@nvidia.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"nvidia,tegra114-spi"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"nvidia,tegra210-spi","nvidia,tegra124-spi"Item 2
Exact value (
const):"nvidia,tegra114-spi"
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
SPI module clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"spi"
resets — required here #
Array item rules (items) #
Item 1
SPI module reset
reset-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"spi"
dmas — required here #
Array item rules (items) #
Item 1
DMA channel for the reception FIFO
Item 2
DMA channel for the transmission FIFO
dma-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"rx"
Item 2
Exact value (
const):"tx"
spi-max-frequency — not listed as required here #
Maximum SPI clocking speed of the controller in Hz.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):spi-controller.yaml
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "resets", "reset-names", "dmas", "dma-names"
Examples (examples) #
spi@7000d600 {
compatible = "nvidia,tegra114-spi";
reg = <0x7000d600 0x200>;
interrupts = <0 82 0x04>;
clocks = <&tegra_car 44>;
clock-names = "spi";
resets = <&tegra_car 44>;
reset-names = "spi";
dmas = <&apbdma 16>, <&apbdma 16>;
dma-names = "rx", "tx";
spi-max-frequency = <25000000>;
#address-cells = <1>;
#size-cells = <0>;
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <20000000>;
nvidia,rx-clk-tap-delay = <0>;
nvidia,tx-clk-tap-delay = <16>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
NVIDIA Tegra20 SFLASH controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/nvidia,tegra20-sflash.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Thierry Reding <thierry.reding@gmail.com>", "Jon Hunter <jonathanh@nvidia.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "nvidia,tegra20-sflash"
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
module clock
resets — required here #
Array item rules (items) #
Item 1
module reset
reset-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"spi"
dmas — required here #
Array item rules (items) #
Item 1
DMA channel used for reception
Item 2
DMA channel used for transmission
dma-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"rx"
Item 2
Exact value (
const):"tx"
spi-max-frequency — not listed as required here #
Maximum SPI clocking speed of the controller in Hz.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):spi-controller.yaml
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "resets", "reset-names", "dmas", "dma-names"
Examples (examples) #
#include <dt-bindings/clock/tegra20-car.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
spi@7000c380 {
compatible = "nvidia,tegra20-sflash";
reg = <0x7000c380 0x80>;
interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_HIGH>;
spi-max-frequency = <25000000>;
#address-cells = <1>;
#size-cells = <0>;
clocks = <&tegra_car TEGRA20_CLK_SPI>;
resets = <&tegra_car 43>;
reset-names = "spi";
dmas = <&apbdma 11>, <&apbdma 11>;
dma-names = "rx", "tx";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
NVIDIA Tegra20/30 SLINK controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/nvidia,tegra20-slink.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Thierry Reding <thierry.reding@gmail.com>", "Jon Hunter <jonathanh@nvidia.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "nvidia,tegra20-slink", "nvidia,tegra30-slink"
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
module clock
resets — required here #
Array item rules (items) #
Item 1
module reset
reset-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"spi"
dmas — required here #
Array item rules (items) #
Item 1
DMA channel used for reception
Item 2
DMA channel used for transmission
dma-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"rx"
Item 2
Exact value (
const):"tx"
operating-points-v2 — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
power-domains — not listed as required here #
Array item rules (items) #
Item 1
phandle to the core power domain
spi-max-frequency — not listed as required here #
Maximum SPI clocking speed of the controller in Hz.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):spi-controller.yaml
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "resets", "reset-names", "dmas", "dma-names"
Examples (examples) #
#include <dt-bindings/clock/tegra20-car.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
spi@7000d600 {
compatible = "nvidia,tegra20-slink";
reg = <0x7000d600 0x200>;
interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
spi-max-frequency = <25000000>;
#address-cells = <1>;
#size-cells = <0>;
clocks = <&tegra_car TEGRA20_CLK_SBC2>;
resets = <&tegra_car 44>;
reset-names = "spi";
dmas = <&apbdma 16>, <&apbdma 16>;
dma-names = "rx", "tx";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Peripheral properties for Tegra Quad SPI Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/nvidia,tegra210-quad-peripheral-props.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Thierry Reding <thierry.reding@gmail.com>", "Jonathan Hunter <jonathanh@nvidia.com>"
Properties and child nodes (properties) #
nvidia,tx-clk-tap-delay — not listed as required here #
Delays the clock going out to device with this tap value. Tap value varies based on platform design trace lengths from Tegra QSPI to corresponding slave device.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 31
nvidia,rx-clk-tap-delay — not listed as required here #
Delays the clock coming in from the device with this tap value. Tap value varies based on platform design trace lengths from Tegra QSPI to corresponding slave device.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 0
Maximum value (maximum): 255
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Tegra Quad SPI Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/nvidia,tegra210-quad.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Thierry Reding <thierry.reding@gmail.com>", "Jonathan Hunter <jonathanh@nvidia.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "nvidia,tegra210-qspi", "nvidia,tegra186-qspi", "nvidia,tegra194-qspi", "nvidia,tegra234-qspi", "nvidia,tegra241-qspi"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"qspi"
Item 2
Exact value (
const):"qspi_out"
clocks — required here #
Maximum number of items (maxItems): 2
resets — required here #
Maximum number of items (maxItems): 1
dmas — not listed as required here #
Maximum number of items (maxItems): 2
dma-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"rx"
Item 2
Exact value (
const):"tx"
iommus — not listed as required here #
Maximum number of items (maxItems): 1
Properties matching a name pattern (patternProperties) #
@[0-9a-f]+$ — name matches this regular expression #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Properties and child nodes (properties) #
spi-rx-bus-width — not listed as required here
Array item rules (items)
Item 1
spi-tx-bus-width — not listed as required here
Array item rules (items)
Item 1
Required in this object (required): "compatible", "reg", "interrupts", "clock-names", "clocks", "resets"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
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):"nvidia,tegra234-qspi"When the condition matches (
then) #Properties and child nodes (
properties)
iommus— not listed as required here
false— Not permitted by this property rule.
Examples (examples) #
#include <dt-bindings/clock/tegra210-car.h>
#include <dt-bindings/reset/tegra210-car.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
spi@70410000 {
compatible = "nvidia,tegra210-qspi";
reg = <0x70410000 0x1000>;
interrupts = <GIC_SPI 10 IRQ_TYPE_LEVEL_HIGH>;
#address-cells = <1>;
#size-cells = <0>;
clocks = <&tegra_car TEGRA210_CLK_QSPI>,
<&tegra_car TEGRA210_CLK_QSPI_PM>;
clock-names = "qspi", "qspi_out";
resets = <&tegra_car 211>;
dmas = <&apbdma 5>, <&apbdma 5>;
dma-names = "rx", "tx";
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <104000000>;
spi-tx-bus-width = <2>;
spi-rx-bus-width = <2>;
nvidia,tx-clk-tap-delay = <0>;
nvidia,rx-clk-tap-delay = <0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
NXP External Serial Peripheral Interface (xSPI)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/nxp,imx94-xspi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Haibo Chen <haibo.chen@nxp.com>", "Han Xu <han.xu@nxp.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Rule 2
Array item rules (
items)Item 1
Item 2
Exact value (
const):"nxp,imx94-xspi"
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):"base"
Item 2
Exact value (
const):"mmap"
interrupts — required here #
Array item rules (items) #
Item 1
interrupt for EENV0
Item 2
interrupt for EENV1
Item 3
interrupt for EENV2
Item 4
interrupt for EENV3
Item 5
interrupt for EENV4
clocks — required here #
Array item rules (items) #
Item 1
SPI serial clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"per"
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#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/arm-gic.h>
soc {
#address-cells = <2>;
#size-cells = <2>;
spi@42b90000 {
compatible = "nxp,imx94-xspi";
reg = <0x0 0x42b90000 0x0 0x50000>, <0x0 0x28000000 0x0 0x08000000>;
reg-names = "base", "mmap";
interrupts = <GIC_SPI 390 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 391 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 392 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 393 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 394 IRQ_TYPE_LEVEL_HIGH>;
#address-cells = <1>;
#size-cells = <0>;
clocks = <&scmi_1>;
clock-names = "per";
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <200000000>;
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)
NXP LPC3220 SPI controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/nxp,lpc3220-spi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "nxp,lpc3220-spi"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
dmas — not listed as required here #
Maximum number of items (maxItems): 1
dma-names — not listed as required here #
Exact value (const): "rx-tx"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):spi-controller.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "clocks"
Examples (examples) #
#include <dt-bindings/clock/lpc32xx-clock.h>
spi@20088000 {
compatible = "nxp,lpc3220-spi";
reg = <0x20088000 0x1000>;
clocks = <&clk LPC32XX_CLK_SPI1>;
dmas = <&dmamux 11 1 0>;
dma-names = "rx-tx";
#address-cells = <1>;
#size-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
NXP SC18IS602/SC18IS603 I2C to SPI bridge
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/nxp,sc18is.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "nxp,sc18is602", "nxp,sc18is602b", "nxp,sc18is603"
reg — required here #
Maximum number of items (maxItems): 1
clock-frequency — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 7372000
external oscillator clock frequency. The clock-frequency property is relevant and needed only if the chip has an external oscillator (SC18IS603).
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):spi-controller.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg"
Examples (examples) #
i2c {
#address-cells = <1>;
#size-cells = <0>;
spi@28 {
compatible = "nxp,sc18is603";
reg = <0x28>;
clock-frequency = <14744000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
SPI Controller on OMAP and K3 SoCs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/omap-spi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Aswath Govindraju <a-govindraju@ti.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
Array item rules (
items)Item 1
Item 2
Exact value (
const):"ti,omap4-mcspi"
Rule 2
Array item rules (
items)Item 1
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Maximum number of items (maxItems): 1
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
ti,spi-num-cs — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Number of chipselect supported by the instance.
Minimum value (minimum): 1
Maximum value (maximum): 4
ti,hwmods — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Must be "mcspi<n>", n being the instance number (1-based). This property is applicable only on legacy platforms mainly omap2/3 and ti81xx and should not be used on other platforms.
Deprecated (deprecated): true
ti,pindir-d0-out-d1-in — not listed as required here #
Select the D0 pin as output and D1 as input. The default is D0 as input and D1 as output.
Value type (type): "boolean"
dmas — not listed as required here #
List of DMA specifiers with the controller specific format as described in the generic DMA client binding. A tx and rx specifier is required for each chip select.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
dma-names — not listed as required here #
List of DMA request names. These strings correspond 1:1 with the DMA specifiers listed in dmas. The string names is to be "rxN" and "txN" for RX and TX requests, respectively. Where N is the chip select number.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 8
Required in this object (required): "compatible", "reg", "interrupts"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Condition (if) #
Properties and child nodes (
properties) #
compatible— not listed as required here #
When the condition matches (then) #
Properties and child nodes (
properties) #
ti,hwmods— not listed as required here #Array item rules (
items)Item 1
String pattern (
pattern):"^mcspi([1-9])$"
When the condition does not match (else) #
Properties and child nodes (
properties) #
ti,hwmods— not listed as required here #
false— Not permitted by this property rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/soc/ti,sci_pm_domain.h>
spi@2100000 {
compatible = "ti,am654-mcspi","ti,omap4-mcspi";
reg = <0x2100000 0x400>;
interrupts = <GIC_SPI 184 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&k3_clks 137 1>;
power-domains = <&k3_pds 137 TI_SCI_PD_EXCLUSIVE>;
#address-cells = <1>;
#size-cells = <0>;
dmas = <&main_udmap 0xc500>, <&main_udmap 0x4500>;
dma-names = "tx0", "rx0";
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Qualcomm Atheros AR934x/QCA95xx SoC SPI controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/qca,ar934x-spi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chuanhong Guo <gch981213@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 #
Exact value (const): "qca,ar934x-spi"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "clocks", "#address-cells", "#size-cells"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/ath79-clk.h>
spi: spi@1f000000 {
compatible = "qca,ar934x-spi";
reg = <0x1f000000 0x1c>;
clocks = <&pll ATH79_CLK_AHB>;
#address-cells = <1>;
#size-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
GENI based Qualcomm Universal Peripheral (QUP) Serial Peripheral Interface (SPI)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/qcom,spi-geni-qcom.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andy Gross <agross@kernel.org>", "Bjorn Andersson <bjorn.andersson@linaro.org>", "Krzysztof Kozlowski <krzk@kernel.org>"
The QUP v3 core is a GENI based AHB slave that provides a common data path (an output FIFO and an input FIFO) for serial peripheral interface (SPI) mini-core. SPI in master mode supports up to 50MHz, up to four chip selects, programmable data path from 4 bits to 32 bits and numerous protocol variants. SPI Controller nodes must be child of GENI based Qualcomm Universal Peripharal. Please refer GENI based QUP wrapper controller node bindings described in Documentation/devicetree/bindings/soc/qcom/qcom,geni-se.yaml.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-controller.yaml#
Rule 2 #
Shared schema rule (
$ref):/schemas/soc/qcom/qcom,se-common-props.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "qcom,geni-spi"
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Exact value (const): "se"
dmas — not listed as required here #
Maximum number of items (maxItems): 2
dma-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"tx"
Item 2
Exact value (
const):"rx"
interconnects — not listed as required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 3
interconnect-names — not listed as required here #
Minimum number of items (minItems): 2
Array item rules (items) #
Item 1
Exact value (
const):"qup-core"
Item 2
Exact value (
const):"qup-config"
Item 3
Exact value (
const):"qup-memory"
interrupts — required here #
Maximum number of items (maxItems): 1
operating-points-v2 — not listed as required here #
true — No constraints added by this property rule.
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
reg — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "clocks", "clock-names", "interrupts", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/qcom,gcc-sc7180.h>
#include <dt-bindings/interconnect/qcom,sc7180.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/qcom-rpmpd.h>
spi@880000 {
compatible = "qcom,geni-spi";
reg = <0x00880000 0x4000>;
clock-names = "se";
clocks = <&gcc GCC_QUPV3_WRAP0_S0_CLK>;
pinctrl-names = "default";
pinctrl-0 = <&qup_spi0_default>;
interrupts = <GIC_SPI 601 IRQ_TYPE_LEVEL_HIGH>;
#address-cells = <1>;
#size-cells = <0>;
power-domains = <&rpmhpd SC7180_CX>;
operating-points-v2 = <&qup_opp_table>;
interconnects = <&qup_virt MASTER_QUP_CORE_0 0 &qup_virt SLAVE_QUP_CORE_0 0>,
<&gem_noc MASTER_APPSS_PROC 0 &config_noc SLAVE_QUP_0 0>;
interconnect-names = "qup-core", "qup-config";
};
#include <dt-bindings/dma/qcom-gpi.h>
spi@884000 {
compatible = "qcom,geni-spi";
reg = <0x00884000 0x4000>;
clock-names = "se";
clocks = <&gcc GCC_QUPV3_WRAP0_S1_CLK>;
dmas = <&gpi_dma0 0 1 QCOM_GPI_SPI>,
<&gpi_dma0 1 1 QCOM_GPI_SPI>;
dma-names = "tx", "rx";
pinctrl-names = "default";
pinctrl-0 = <&qup_spi1_default>;
interrupts = <GIC_SPI 602 IRQ_TYPE_LEVEL_HIGH>;
#address-cells = <1>;
#size-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Qualcomm Quad Serial Peripheral Interface (QSPI)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/qcom,spi-qcom-qspi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Bjorn Andersson <bjorn.andersson@linaro.org>"
The QSPI controller allows SPI protocol communication in single, dual, or quad wire transmission modes for read/write access to slaves such as NOR flash.
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 #
Array item rules (items) #
Item 1
Allowed values (
enum):"qcom,sc7180-qspi","qcom,sc7280-qspi","qcom,sdm845-qspi"
Item 2
Exact value (
const):"qcom,qspi-v1"
reg — required here #
Maximum number of items (maxItems): 1
iommus — not listed as required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"iface"
Item 2
Exact value (
const):"core"
clocks — required here #
Array item rules (items) #
Item 1
AHB clock
Item 2
QSPI core clock
interconnects — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
interconnect-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"qspi-config"
Item 2
Exact value (
const):"qspi-memory"
operating-points-v2 — not listed as required here #
true — No constraints added by this property rule.
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts", "clock-names", "clocks"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/qcom,gcc-sdm845.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
soc: soc {
#address-cells = <2>;
#size-cells = <2>;
qspi: spi@88df000 {
compatible = "qcom,sdm845-qspi", "qcom,qspi-v1";
reg = <0 0x88df000 0 0x600>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
clock-names = "iface", "core";
clocks = <&gcc GCC_QSPI_CNOC_PERIPH_AHB_CLK>,
<&gcc GCC_QSPI_CORE_CLK>;
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <25000000>;
spi-tx-bus-width = <2>;
spi-rx-bus-width = <2>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Qualcomm QPIC NAND controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/qcom,spi-qpic-snand.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Md sadre Alam <quic_mdalam@quicinc.com>"
The QCOM QPIC-SPI-NAND flash controller is an extended version of the QCOM QPIC NAND flash controller. It can work both in serial and parallel mode. It supports typical SPI-NAND page cache operations in single, dual or quad IO mode with pipelined ECC encoding/decoding using the QPIC ECC HW engine.
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
Array item rules (
items)Item 1
Allowed values (
enum):"qcom,ipq5018-snand","qcom,ipq5332-snand","qcom,ipq5424-snand"Item 2
Exact value (
const):"qcom,ipq9574-snand"
Rule 2
Exact value (
const):"qcom,ipq9574-snand"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 3
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"core"
Item 2
Exact value (
const):"aon"
Item 3
Exact value (
const):"iom"
dmas — not listed as required here #
Array item rules (items) #
Item 1
tx DMA channel
Item 2
rx DMA channel
Item 3
cmd 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"
Item 3
Exact value (
const):"cmd"
Required in this object (required): "compatible", "reg", "clocks", "clock-names"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/qcom,ipq9574-gcc.h>
spi@79b0000 {
compatible = "qcom,ipq9574-snand";
reg = <0x1ac00000 0x800>;
clocks = <&gcc GCC_QPIC_CLK>,
<&gcc GCC_QPIC_AHB_CLK>,
<&gcc GCC_QPIC_IO_MACRO_CLK>;
clock-names = "core", "aon", "iom";
#address-cells = <1>;
#size-cells = <0>;
flash@0 {
compatible = "spi-nand";
reg = <0>;
#address-cells = <1>;
#size-cells = <1>;
nand-ecc-engine = <&qpic_nand>;
nand-ecc-strength = <4>;
nand-ecc-step-size = <512>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Qualcomm Universal Peripheral (QUP) Serial Peripheral Interface (SPI)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/qcom,spi-qup.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andy Gross <agross@kernel.org>", "Bjorn Andersson <bjorn.andersson@linaro.org>", "Krzysztof Kozlowski <krzk@kernel.org>"
The QUP core is an AHB slave that provides a common data path (an output FIFO and an input FIFO) for serial peripheral interface (SPI) mini-core. SPI in master mode supports up to 50MHz, up to four chip selects, programmable data path from 4 bits to 32 bits and numerous protocol variants.
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 #
Allowed values (enum): "qcom,spi-qup-v1.1.1", "qcom,spi-qup-v2.1.1", "qcom,spi-qup-v2.2.1"
clocks — required here #
Maximum number of items (maxItems): 2
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"core"
Item 2
Exact value (
const):"iface"
dmas — not listed as required here #
Maximum number of items (maxItems): 2
dma-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"tx"
Item 2
Exact value (
const):"rx"
interconnects — not listed as required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
operating-points-v2 — not listed as required here #
true — No constraints added by this property rule.
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
reg — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "clocks", "clock-names", "interrupts", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/qcom,gcc-msm8996.h>
#include <dt-bindings/interconnect/qcom,msm8996.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/qcom-rpmpd.h>
spi@7575000 {
compatible = "qcom,spi-qup-v2.2.1";
reg = <0x07575000 0x600>;
interrupts = <GIC_SPI 95 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&gcc GCC_BLSP1_QUP1_SPI_APPS_CLK>,
<&gcc GCC_BLSP1_AHB_CLK>;
clock-names = "core", "iface";
pinctrl-names = "default", "sleep";
pinctrl-0 = <&blsp1_spi1_default>;
pinctrl-1 = <&blsp1_spi1_sleep>;
dmas = <&blsp1_dma 12>, <&blsp1_dma 13>;
dma-names = "tx", "rx";
power-domains = <&rpmpd MSM8996_VDDCX>;
operating-points-v2 = <&spi_opp_table>;
interconnects = <&pnoc MASTER_BLSP_1 &bimc SLAVE_EBI_CH0>;
#address-cells = <1>;
#size-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 27: for 8660, 8960 and 8064
Line 28: for 8974 and later
Line 29: for 8974 v2 and later
Mediatek MT7621/MT7628 SPI controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/ralink,mt7621-spi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Sergio Paracuellos <sergio.paracuellos@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 #
Exact value (const): "ralink,mt7621-spi"
reg — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Maximum number of items (maxItems): 1
clock-names — not listed as required here #
Exact value (const): "spi"
resets — required here #
Maximum number of items (maxItems): 1
reset-names — not listed as required here #
Exact value (const): "spi"
Required in this object (required): "compatible", "reg", "resets", "#address-cells", "#size-cells"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/mt7621-clk.h>
#include <dt-bindings/reset/mt7621-reset.h>
spi@b00 {
compatible = "ralink,mt7621-spi";
reg = <0xb00 0x100>;
clocks = <&sysc MT7621_CLK_SPI>;
clock-names = "spi";
resets = <&sysc MT7621_RST_SPI>;
reset-names = "spi";
#address-cells = <1>;
#size-cells = <0>;
pinctrl-names = "default";
pinctrl-0 = <&spi_pins>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Realtek RTL838x/RTL839x SPI controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/realtek,rtl-spi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Bert Vermeulen <bert@biot.com>", "Birger Koblitz <mail@birger-koblitz.de>"
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): "realtek,rtl8380-spi", "realtek,rtl8382-spi", "realtek,rtl8391-spi", "realtek,rtl8392-spi", "realtek,rtl8393-spi"
reg — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi: spi@1200 {
compatible = "realtek,rtl8382-spi";
reg = <0x1200 0x100>;
#address-cells = <1>;
#size-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
SPI-NAND Flash Controller for Realtek RTL9300 SoCs
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/realtek,rtl9301-snand.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Chris Packham <chris.packham@alliedtelesis.co.nz>"
The Realtek RTL9300 SoCs have a built in SPI-NAND controller. It supports typical SPI-NAND page cache operations in single, dual or quad IO mode.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Allowed values (
enum):"realtek,rtl9302b-snand","realtek,rtl9302c-snand","realtek,rtl9303-snand"Item 2
Exact value (
const):"realtek,rtl9301-snand"
Rule 2
Exact value (
const):"realtek,rtl9301-snand"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts", "clocks"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-controller.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi@1a400 {
compatible = "realtek,rtl9302c-snand", "realtek,rtl9301-snand";
reg = <0x1a400 0x44>;
interrupt-parent = <&intc>;
interrupts = <19>;
clocks = <&lx_clk>;
#address-cells = <1>;
#size-cells = <0>;
flash@0 {
compatible = "spi-nand";
reg = <0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Renesas HSPI
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/renesas,hspi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Geert Uytterhoeven <geert+renesas@glider.be>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):spi-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Allowed values (
enum):"renesas,hspi-r8a7778","renesas,hspi-r8a7779"
Item 2
Exact value (
const):"renesas,hspi"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "#address-cells", "#size-cells"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/r8a7778-clock.h>
#include <dt-bindings/interrupt-controller/irq.h>
hspi0: spi@fffc7000 {
compatible = "renesas,hspi-r8a7778", "renesas,hspi";
reg = <0xfffc7000 0x18>;
interrupts = <0 63 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&mstp0_clks R8A7778_CLK_HSPI>;
power-domains = <&cpg_clocks>;
#address-cells = <1>;
#size-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Line 19: R-Car M1A
Line 20: R-Car H1
Renesas (Quad) Serial Peripheral Interface (RSPI/QSPI)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/renesas,rspi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Geert Uytterhoeven <geert+renesas@glider.be>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Item 2
Exact value (
const):"renesas,rspi"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,rspi-r7s72100","renesas,rspi-r7s9210","renesas,r9a07g043-rspi","renesas,r9a07g044-rspi","renesas,r9a07g054-rspi"Item 2
Exact value (
const):"renesas,rspi-rz"
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,qspi-r8a7742","renesas,qspi-r8a7743","renesas,qspi-r8a7744","renesas,qspi-r8a7745","renesas,qspi-r8a77470","renesas,qspi-r8a7790","renesas,qspi-r8a7791","renesas,qspi-r8a7792","renesas,qspi-r8a7793","renesas,qspi-r8a7794"Item 2
Exact value (
const):"renesas,qspi"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
A combined interrupt
Rule 2
Array item rules (
items)Item 1
Error interrupt (SPEI)
Item 2
Receive Interrupt (SPRI)
Item 3
Transmit Interrupt (SPTI)
interrupt-names — not listed as required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"mux"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"error"Item 2
Exact value (
const):"rx"Item 3
Exact value (
const):"tx"
clocks — required here #
Maximum number of items (maxItems): 1
power-domains — required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Maximum number of items (maxItems): 1
dmas — not listed as required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 4
Must contain a list of pairs of references to DMA specifiers, one for transmission, and one for reception.
dma-names — not listed as required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 4
Array item rules (items) #
num-cs — not listed as required here #
Total number of native chip selects.
Hardware limitations related to chip selects:
- When using GPIO chip selects, at least one native chip select must
be left unused, as it will be driven anyway.
Minimum value (minimum): 1
Maximum value (maximum): 2
Default value (default): 1
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "power-domains", "#address-cells", "#size-cells"
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)
interrupts— not listed as required hereMinimum number of items (
minItems):3
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"renesas,qspi","renesas,r9a07g043-rspi","renesas,r9a07g044-rspi","renesas,r9a07g054-rspi"When the condition matches (
then) #
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/r8a7791-cpg-mssr.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/r8a7791-sysc.h>
qspi: spi@e6b10000 {
compatible = "renesas,qspi-r8a7791", "renesas,qspi";
reg = <0xe6b10000 0x2c>;
interrupts = <GIC_SPI 184 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cpg CPG_MOD 917>;
dmas = <&dmac0 0x17>, <&dmac0 0x18>, <&dmac1 0x17>, <&dmac1 0x18>;
dma-names = "tx", "rx", "tx", "rx";
power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
resets = <&cpg 917>;
num-cs = <1>;
#address-cells = <1>;
#size-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 17: SH7757
Line 18: Legacy SH
Line 22: RZ/A1H
Line 23: RZ/A2
Line 24: RZ/G2UL and RZ/Five
Line 25: RZ/G2{L,LC}
Line 26: RZ/V2L
Line 31: RZ/G1H
Line 32: RZ/G1M
Line 33: RZ/G1N
Line 34: RZ/G1E
Line 35: RZ/G1C
Line 36: R-Car H2
Line 37: R-Car M2-W
Line 38: R-Car V2H
Line 39: R-Car M2-N
Line 40: R-Car E2
Line 41: R-Car Gen2 and RZ/G1
Renesas RZ/V2H(P) Renesas Serial Peripheral Interface (RSPI)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/renesas,rzv2h-rspi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Fabrizio Castro <fabrizio.castro.jz@renesas.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"renesas,r9a09g057-rspi","renesas,r9a09g077-rspi"
Rule 2
Array item rules (
items)Item 1
Exact value (
const):"renesas,r9a09g056-rspi"Item 2
Exact value (
const):"renesas,r9a09g057-rspi"
Rule 3
Array item rules (
items)Item 1
Exact value (
const):"renesas,r9a09g087-rspi"Item 2
Exact value (
const):"renesas,r9a09g077-rspi"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Array item rules (items) #
Item 1
Idle Interrupt
Item 2
Error Interrupt
Item 3
Communication End Interrupt
Item 4
Receive Buffer Full Interrupt
Item 5
Transmit Buffer Empty Interrupt
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"idle"
Item 2
Exact value (
const):"error"
Item 3
Exact value (
const):"end"
Item 4
Exact value (
const):"rx"
Item 5
Exact value (
const):"tx"
clocks — required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 3
clock-names — required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 3
resets — not listed as required here #
Maximum number of items (maxItems): 2
reset-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"presetn"
Item 2
Exact value (
const):"tresetn"
dmas — not listed as required here #
Maximum number of items (maxItems): 2
dma-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"rx"
Item 2
Exact value (
const):"tx"
power-domains — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts", "interrupt-names", "clocks", "clock-names", "power-domains", "#address-cells", "#size-cells"
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)
clocks— not listed as required hereMinimum number of items (
minItems):3
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"pclk"Item 2
Exact value (
const):"pclk_sfr"Item 3
Exact value (
const):"tclk"
Rule 3 #
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)
clocks— not listed as required hereMaximum number of items (
maxItems):2
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"pclk"Item 2
Exact value (
const):"pclkspi"
resets— not listed as required here
false— Not permitted by this property rule.
reset-names— 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/renesas-cpg-mssr.h>
spi@12800800 {
compatible = "renesas,r9a09g057-rspi";
reg = <0x12800800 0x400>;
interrupts = <GIC_SPI 111 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 113 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 504 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 505 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "idle", "error", "end", "rx", "tx";
clocks = <&cpg CPG_MOD 0x5a>,
<&cpg CPG_MOD 0x5b>,
<&cpg CPG_MOD 0x5c>;
clock-names = "pclk", "pclk_sfr", "tclk";
resets = <&cpg 0x7f>, <&cpg 0x80>;
reset-names = "presetn", "tresetn";
power-domains = <&cpg>;
#address-cells = <1>;
#size-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 16: RZ/V2H(P)
Line 17: RZ/T2H
Line 19: RZ/V2N
Line 22: RZ/N2H
Line 23: RZ/T2H
Renesas RZ/V2M Clocked Serial Interface (CSI)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/renesas,rzv2m-csi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Fabrizio Castro <fabrizio.castro.jz@renesas.com>", "Geert Uytterhoeven <geert+renesas@glider.be>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):spi-controller.yaml#
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "renesas,rzv2m-csi"
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
The clock used to generate the output clock (CSICLK)
Item 2
Internal clock to access the registers (PCLK)
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"csiclk"
Item 2
Exact value (
const):"pclk"
resets — required here #
Maximum number of items (maxItems): 1
power-domains — required here #
Maximum number of items (maxItems): 1
renesas,csi-no-ss — not listed as required here #
Value type (type): "boolean"
The CSI Slave Selection (SS) pin won't be used to enable transmission and reception. Only available when in target mode.
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "resets", "power-domains", "#address-cells", "#size-cells"
Property dependencies (dependencies) #
renesas,csi-no-ss — applies when this property is present #
Also requires: "spi-slave"
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/r9a09g011-cpg.h>
csi4: spi@a4020200 {
compatible = "renesas,rzv2m-csi";
reg = <0xa4020200 0x80>;
interrupts = <GIC_SPI 230 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cpg CPG_MOD R9A09G011_CSI4_CLK>,
<&cpg CPG_MOD R9A09G011_CPERI_GRPH_PCLK>;
clock-names = "csiclk", "pclk";
resets = <&cpg R9A09G011_CSI_GPH_PRESETN>;
power-domains = <&cpg>;
#address-cells = <1>;
#size-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Renesas MSIOF SPI / I2S controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/renesas,sh-msiof.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Geert Uytterhoeven <geert+renesas@glider.be>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
Exact value (
const):"renesas,msiof-sh73a0"Item 2
Exact value (
const):"renesas,sh-mobile-msiof"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,msiof-r8a7742","renesas,msiof-r8a7743","renesas,msiof-r8a7744","renesas,msiof-r8a7745","renesas,msiof-r8a77470","renesas,msiof-r8a7790","renesas,msiof-r8a7791","renesas,msiof-r8a7792","renesas,msiof-r8a7793","renesas,msiof-r8a7794"Item 2
Exact value (
const):"renesas,rcar-gen2-msiof"
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,msiof-r8a774a1","renesas,msiof-r8a774b1","renesas,msiof-r8a774c0","renesas,msiof-r8a774e1","renesas,msiof-r8a7795","renesas,msiof-r8a7796","renesas,msiof-r8a77961","renesas,msiof-r8a77965","renesas,msiof-r8a77970","renesas,msiof-r8a77980","renesas,msiof-r8a77990","renesas,msiof-r8a77995"Item 2
Exact value (
const):"renesas,rcar-gen3-msiof"
Rule 4
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,msiof-r8a779a0","renesas,msiof-r8a779f0","renesas,msiof-r8a779g0","renesas,msiof-r8a779h0"Item 2
Exact value (
const):"renesas,rcar-gen4-msiof"
Rule 5
Array item rules (
items)Item 1
Exact value (
const):"renesas,sh-msiof"
reg — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Exactly one of these rules must match (oneOf) #
Rule 1
Array item rules (
items)Item 1
CPU and DMA engine registers
Rule 2
Array item rules (
items)Item 1
CPU registers
Item 2
DMA engine registers
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
power-domains — required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Maximum number of items (maxItems): 1
num-cs — not listed as required here #
Total number of chip selects (default is 1).
Up to 3 native chip selects are supported:
0: MSIOF_SYNC
1: MSIOF_SS1
2: MSIOF_SS2
Hardware limitations related to chip selects:
- Native chip selects are always deasserted in between transfers
that are part of the same message. Use cs-gpios to work around
this.
- All slaves using native chip selects must use the same spi-cs-high
configuration. Use cs-gpios to work around this.
- When using GPIO chip selects, at least one native chip select must
be left unused, as it will be driven anyway.
Minimum value (minimum): 1
Maximum value (maximum): 3
Default value (default): 1
dmas — not listed as required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 4
dma-names — not listed as required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 4
Array item rules (items) #
renesas,dtdl — not listed as required here #
delay sync signal (setup) in transmit mode.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 50, 100, 150, 200
renesas,syncdl — not listed as required here #
delay sync signal (hold) in transmit mode
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 50, 100, 150, 200, 300
renesas,tx-fifo-size — not listed as required here #
Override the default TX fifo size. Unit is words. Ignored if 0.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 64
renesas,rx-fifo-size — not listed as required here #
Override the default RX fifo size. Unit is words. Ignored if 0.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 64
port — not listed as required here #
Shared schema rule ($ref): ../sound/audio-graph-port.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "power-domains"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #This rule must not match (
not)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,sh-mobile-msiof"When the condition matches (
then) #
Rule 2 #
Condition (
if) #This rule must not match (
not)When the condition matches (
then) #All of these rules must match (
allOf)Rule 1
Shared schema rule (
$ref):spi-controller.yaml#
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/r8a7791-cpg-mssr.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/r8a7791-sysc.h>
msiof0: spi@e6e20000 {
compatible = "renesas,msiof-r8a7791", "renesas,rcar-gen2-msiof";
reg = <0xe6e20000 0x0064>;
interrupts = <GIC_SPI 156 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cpg CPG_MOD 000>;
dmas = <&dmac0 0x51>, <&dmac0 0x52>;
dma-names = "tx", "rx";
power-domains = <&sysc R8A7791_PD_ALWAYS_ON>;
resets = <&cpg 0>;
#address-cells = <1>;
#size-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Line 16: SH-Mobile AG5
Line 17: generic SH-Mobile compatible
Line 18: device
Line 21: RZ/G1H
Line 22: RZ/G1M
Line 23: RZ/G1N
Line 24: RZ/G1E
Line 25: RZ/G1C
Line 26: R-Car H2
Line 27: R-Car M2-W
Line 28: R-Car V2H
Line 29: R-Car M2-N
Line 30: R-Car E2
Line 31: generic R-Car Gen2 and RZ/G1
Line 32: compatible device
Line 35: RZ/G2M
Line 36: RZ/G2N
Line 37: RZ/G2E
Line 38: RZ/G2H
Line 39: R-Car H3
Line 40: R-Car M3-W
Line 41: R-Car M3-W+
Line 42: R-Car M3-N
Line 43: R-Car V3M
Line 44: R-Car V3H
Line 45: R-Car E3
Line 46: R-Car D3
Line 47: generic R-Car Gen3 and RZ/G2
Line 48: compatible device
Line 51: R-Car V3U
Line 52: R-Car S4-8
Line 53: R-Car V4H
Line 54: R-Car V4M
Line 55: generic R-Car Gen4
Line 56: compatible device
Line 58: deprecated
Line 115: no bit delay
Line 116: 0.5-clock-cycle delay
Line 117: 1-clock-cycle delay
Line 118: 1.5-clock-cycle delay
Line 119: 2-clock-cycle delay
Line 125: no bit delay
Line 126: 0.5-clock-cycle delay
Line 127: 1-clock-cycle delay
Line 128: 1.5-clock-cycle delay
Line 129: 2-clock-cycle delay
Line 130: 3-clock-cycle delay
Line 133: deprecated for soctype-specific bindings
Line 140: deprecated for soctype-specific bindings
Line 146: for MSIOF-I2S
Line 159: additional "required""
Line 170: If it doesn't have "port" node, it is "MSIOF-SPI"
Rockchip Serial Flash Controller (SFC)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/rockchip-sfc.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Heiko Stuebner <heiko@sntech.de>", "Chris Morgan <macromorgan@hotmail.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 #
Exact value (const): "rockchip,sfc"
The rockchip sfc controller is a standalone IP with version register, and the driver can handle all the feature difference inside the IP depending on the version register.
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
Bus Clock
Item 2
Module Clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"clk_sfc"
Item 2
Exact value (
const):"hclk_sfc"
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
rockchip,sfc-no-dma — not listed as required here #
Disable DMA and utilize FIFO mode only
Value type (type): "boolean"
Properties matching a name pattern (patternProperties) #
^flash@[0-3]$ — name matches this regular expression #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Properties and child nodes (properties) #
reg — not listed as required here
Minimum value (minimum): 0
Maximum value (maximum): 3
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/px30-cru.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/px30-power.h>
sfc: spi@ff3a0000 {
compatible = "rockchip,sfc";
reg = <0xff3a0000 0x4000>;
interrupts = <GIC_SPI 56 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cru SCLK_SFC>, <&cru HCLK_SFC>;
clock-names = "clk_sfc", "hclk_sfc";
pinctrl-0 = <&sfc_clk &sfc_cs &sfc_bus2>;
pinctrl-names = "default";
power-domains = <&power PX30_PD_MMC_NAND>;
#address-cells = <1>;
#size-cells = <0>;
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <108000000>;
spi-rx-bus-width = <2>;
spi-tx-bus-width = <2>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Peripheral-specific properties for Samsung S3C/S5P/Exynos SoC SPI controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/samsung,spi-peripheral-props.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"
See spi-peripheral-props.yaml for more info.
Properties and child nodes (properties) #
controller-data — not listed as required here #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
samsung,spi-feedback-delay — not listed as required here
The sampling phase shift to be applied on the miso line (to account for any lag in the miso line). Valid values: - 0: No phase shift. - 1: 90 degree phase shift sampling. - 2: 180 degree phase shift sampling. - 3: 270 degree phase shift sampling.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3
Default value (default): 0
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Samsung S3C/S5P/Exynos SoC SPI controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/samsung,spi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Krzysztof Kozlowski <krzk@kernel.org>"
All the SPI controller nodes should be represented in the aliases node using the following format 'spi{n}' where n is a unique number for the alias.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"google,gs101-spi","samsung,s3c6410-spi","samsung,s5pv210-spi","samsung,exynos4210-spi","samsung,exynos5433-spi","samsung,exynos850-spi","samsung,exynosautov9-spi","tesla,fsd-spi"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"samsung,exynos8895-spi","samsung,exynosautov920-spi"Item 2
Exact value (
const):"samsung,exynos850-spi"
Rule 3
Exact value (
const):"samsung,exynos7-spi"Deprecated (
deprecated):true
clocks — required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 3
clock-names — required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 3
dmas — not listed as required here #
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 2
dma-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"tx"
Item 2
Exact value (
const):"rx"
interrupts — required here #
Maximum number of items (maxItems): 1
no-cs-readback — not listed as required here #
The CS line is disconnected, therefore the device should not operate based on CS signalling.
Value type (type): "boolean"
num-cs — not listed as required here #
Minimum value (minimum): 1
Maximum value (maximum): 4
Default value (default): 1
samsung,spi-src-clk — not listed as required here #
If the spi controller includes a internal clock mux to select the clock source for the spi bus clock, this property can be used to indicate the clock to be used for driving the spi bus clock. If not specified, the clock number 0 is used as default.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 0
reg — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "clocks", "clock-names", "interrupts", "reg"
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)Allowed values (
enum):"samsung,exynos5433-spi","samsung,exynosautov9-spi"When the condition matches (
then) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):3Maximum number of items (
maxItems):3
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"spi"Item 2
Allowed values (
enum):"spi_busclk0","spi_busclk1","spi_busclk2","spi_busclk3"Item 3
Exact value (
const):"spi_ioclk"When the condition does not match (
else) #Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):2Maximum number of items (
maxItems):2
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"spi"Item 2
Allowed values (
enum):"spi_busclk0","spi_busclk1","spi_busclk2","spi_busclk3"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/exynos5433.h>
#include <dt-bindings/clock/samsung,s2mps11.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/gpio/gpio.h>
spi@14d30000 {
compatible = "samsung,exynos5433-spi";
reg = <0x14d30000 0x100>;
interrupts = <GIC_SPI 433 IRQ_TYPE_LEVEL_HIGH>;
dmas = <&pdma0 11>, <&pdma0 10>;
dma-names = "tx", "rx";
#address-cells = <1>;
#size-cells = <0>;
clocks = <&cmu_peric CLK_PCLK_SPI1>,
<&cmu_peric CLK_SCLK_SPI1>,
<&cmu_peric CLK_SCLK_IOCLK_SPI1>;
clock-names = "spi",
"spi_busclk0",
"spi_ioclk";
samsung,spi-src-clk = <0>;
pinctrl-names = "default";
pinctrl-0 = <&spi1_bus>;
num-cs = <1>;
cs-gpios = <&gpd6 3 GPIO_ACTIVE_HIGH>;
audio-codec@0 {
compatible = "wlf,wm5110";
reg = <0x0>;
spi-max-frequency = <20000000>;
interrupt-parent = <&gpa0>;
interrupts = <4 IRQ_TYPE_NONE>;
clocks = <&pmu_system_controller 0>,
<&s2mps13_osc S2MPS11_CLK_BT>;
clock-names = "mclk1", "mclk2";
gpio-controller;
#gpio-cells = <2>;
interrupt-controller;
#interrupt-cells = <2>;
wlf,micd-detect-debounce = <300>;
wlf,micd-bias-start-time = <0x1>;
wlf,micd-rate = <0x7>;
wlf,micd-dbtime = <0x2>;
wlf,micd-force-micbias;
wlf,micd-configs = <0x0 1 0>;
wlf,hpdet-channel = <1>;
wlf,gpsw = <0x1>;
wlf,inmode = <2 0 2 0>;
wlf,reset = <&gpc0 7 GPIO_ACTIVE_HIGH>;
wlf,ldoena = <&gpf0 0 GPIO_ACTIVE_HIGH>;
/* core supplies */
AVDD-supply = <&ldo18_reg>;
DBVDD1-supply = <&ldo18_reg>;
CPVDD-supply = <&ldo18_reg>;
DBVDD2-supply = <&ldo18_reg>;
DBVDD3-supply = <&ldo18_reg>;
SPKVDDL-supply = <&ldo18_reg>;
SPKVDDR-supply = <&ldo18_reg>;
controller-data {
samsung,spi-feedback-delay = <0>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 22: for S5PV210 and S5PC110
Synopsys DesignWare AMBA 2.0 Synchronous Serial Interface
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/snps,dw-apb-ssi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Mark Brown <broonie@kernel.org>"
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)Allowed values (
enum):"mscc,ocelot-spi","mscc,jaguar2-spi"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):2
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"amd,pensando-elba-spi"When the condition matches (
then) #Required in this object (
required):"amd,pensando-elba-syscon"When the condition does not match (
else) #Properties and child nodes (
properties)
amd,pensando-elba-syscon— not listed as required here
false— Not permitted by this property rule.
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Generic DW SPI Controller
Allowed values (
enum):"snps,dw-apb-ssi","snps,dwc-ssi-1.01a"
Rule 2
Microchip Sparx5 SoC SPI Controller
Exact value (
const):"microchip,sparx5-spi"
Rule 3
Amazon Alpine SPI Controller
Exact value (
const):"amazon,alpine-dw-apb-ssi"
Rule 4
Vendor controllers which use snps,dw-apb-ssi as fallback
Array item rules (
items)Item 1
Allowed values (
enum):"mscc,ocelot-spi","mscc,jaguar2-spi","renesas,rzn1-spi","sophgo,sg2042-spi","thead,th1520-spi"Item 2
Exact value (
const):"snps,dw-apb-ssi"
Rule 5
Intel Keem Bay SPI Controller
Exact value (
const):"intel,keembay-ssi"
Rule 6
Intel Mount Evans Integrated Management Complex SPI Controller
Exact value (
const):"intel,mountevans-imc-ssi"
Rule 7
AMD Pensando Elba SoC SPI Controller
Exact value (
const):"amd,pensando-elba-spi"
Rule 8
Canaan Kendryte K210 SoS SPI Controller
Exact value (
const):"canaan,k210-spi"
Rule 9
Renesas RZ/N1 SPI Controller
Array item rules (
items)Item 1
Exact value (
const):"renesas,r9a06g032-spi"Item 2
Exact value (
const):"renesas,rzn1-spi"
reg — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
DW APB SSI controller memory mapped registers
Item 2
SPI MST region map or directly mapped SPI ROM
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
SPI Controller reference clock source
Item 2
APB interface clock source
clock-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"ssi_clk"
Item 2
Exact value (
const):"pclk"
resets — not listed as required here #
Maximum number of items (maxItems): 1
reset-names — not listed as required here #
Exact value (const): "spi"
reg-io-width — not listed as required here #
I/O register width (in bytes) implemented by this device
Default value (default): 4
num-cs — not listed as required here #
Default value (default): 4
Minimum value (minimum): 1
Maximum value (maximum): 16
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"
rx-sample-delay-ns — not listed as required here #
Default value (default): 0
Default value of the rx-sample-delay-ns property. This value will be used if the property is not explicitly defined for a SPI slave device.
SPI Rx sample delay offset, unit is nanoseconds. The delay from the default sample time before the actual sample of the rxd input signal occurs. The "rx_sample_delay" is an optional feature of the designware controller, and the upper limit is also subject to controller configuration.
amd,pensando-elba-syscon — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Block address to control SPI chip-selects. The Elba SoC system controller provides an interface to override the native DWC SSI CS control.
Properties matching a name pattern (patternProperties) #
@[0-9a-f]$ — name matches this regular expression #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Properties and child nodes (properties) #
reg — not listed as required here
Minimum value (minimum): 0
Maximum value (maximum): 15
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells", "clocks", "interrupts"
Examples (examples) #
spi@fff00000 {
compatible = "snps,dw-apb-ssi";
reg = <0xfff00000 0x1000>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = <0 154 4>;
clocks = <&spi_m_clk>;
num-cs = <2>;
cs-gpios = <&gpio0 13 0>,
<&gpio0 14 0>;
rx-sample-delay-ns = <3>;
flash@1 {
compatible = "spi-nand";
reg = <1>;
rx-sample-delay-ns = <7>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only
Line 67: RZ/N1D
Line 68: RZ/N1
Socionext F_OSPI controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/socionext,f-ospi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The Socionext F_OSPI is a controller used to interface with flash memories using the SPI communication interface.
Maintainers (maintainers): "Kunihiko Hayashi <hayashi.kunihiko@socionext.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 #
Exact value (const): "socionext,f-ospi"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
num-cs — not listed as required here #
Minimum value (minimum): 1
Maximum value (maximum): 4
Required in this object (required): "compatible", "reg", "clocks", "#address-cells", "#size-cells"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
ospi0: spi@80000000 {
compatible = "socionext,f-ospi";
reg = <0x80000000 0x1000>;
clocks = <&clks 0>;
num-cs = <1>;
#address-cells = <1>;
#size-cells = <0>;
flash@0 {
compatible = "spansion,s25fl128s", "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <50000000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Socionext SynQuacer HS-SPI Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/socionext,synquacer-spi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Masahisa Kojima <masahisa.kojima@linaro.org>", "Jassi Brar <jaswinder.singh@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 #
Exact value (const): "socionext,synquacer-spi"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
core clock
Item 2
rate clock
clock-names — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"iHCLK"
Item 2
Exact value (
const):"iPCLK"
interrupts — required here #
Array item rules (items) #
Item 1
Receive Interrupt
Item 2
Transmit Interrupt
Item 3
Fault Interrupt
socionext,use-rtm — not listed as required here #
Value type (type): "boolean"
Enable using "retimed clock" for RX
socionext,set-aces — not listed as required here #
Value type (type): "boolean"
Enable same active clock edges field to be set
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/interrupt-controller/arm-gic.h>
spi@ff110000 {
compatible = "socionext,synquacer-spi";
reg = <0xff110000 0x1000>;
interrupts = <GIC_SPI 160 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 161 IRQ_TYPE_LEVEL_HIGH>,
<GIC_SPI 162 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clk_hsspi>;
clock-names = "iHCLK";
socionext,use-rtm;
socionext,set-aces;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Socionext UniPhier SPI controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/socionext,uniphier-spi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
UniPhier SoCs have SCSSI which supports SPI single channel.
Maintainers (maintainers): "Kunihiko Hayashi <hayashi.kunihiko@socionext.com>", "Keiji Hayashibara <hayashibara.keiji@socionext.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 #
Exact value (const): "socionext,uniphier-scssi"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
resets — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "resets", "#address-cells", "#size-cells"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi0: spi@54006000 {
compatible = "socionext,uniphier-scssi";
reg = <0x54006000 0x100>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = <0 39 4>;
clocks = <&peri_clk 11>;
resets = <&peri_rst 11>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Cadence SPI controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/spi-cadence.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michal Simek <michal.simek@amd.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
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"xlnx,zynqmp-spi-r1p6","xlnx,versal-net-spi-r1p6","cix,sky1-spi-r1p6"Item 2
Exact value (
const):"cdns,spi-r1p6"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"ref_clk"
Item 2
Exact value (
const):"pclk"
clocks — required here #
Maximum number of items (maxItems): 2
num-cs — not listed as required here #
Number of chip selects used. If a decoder is used, this will be the number of chip selects after the decoder.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Minimum value (minimum): 1
Maximum value (maximum): 4
Default value (default): 4
is-decoded-cs — not listed as required here #
Flag to indicate whether decoder is used or not.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 0
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
label — not listed as required here #
Descriptive name of the SPI controller.
resets — not listed as required here #
Maximum number of items (maxItems): 1
reset-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"spi"
Required in this object (required): "compatible", "reg", "interrupts", "clock-names", "clocks"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi@e0007000 {
compatible = "xlnx,zynq-spi-r1p6";
clock-names = "ref_clk", "pclk";
clocks = <&clkc 26>, <&clkc 35>;
interrupt-parent = <&intc>;
interrupts = <0 49 4>;
num-cs = <4>;
is-decoded-cs = <0>;
reg = <0xe0007000 0x1000>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
SPI Controller Common Properties
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/spi-controller.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Mark Brown <broonie@kernel.org>"
SPI busses can be described with a node for the SPI controller device and a set of child nodes for each SPI slave on the bus. The system SPI controller may be described for use in SPI master mode or in SPI slave mode, but not for both at the same time.
Properties and child nodes (properties) #
$nodename — not listed as required here #
String pattern (pattern): "^spi(@.*|-([0-9]|[1-9][0-9]+))?$"
#address-cells — not listed as required here #
#size-cells — not listed as required here #
Exact value (const): 0
cs-gpios — not listed as required here #
GPIOs used as chip selects. If that property is used, the number of chip selects will be increased automatically with max(cs-gpios, hardware chip selects).
So if, for example, the controller has 4 CS lines, and the
cs-gpios looks like this
cs-gpios = <&gpio1 0 0>, <0>, <&gpio1 1 0>, <&gpio1 2 0>;
Then it should be configured so that num_chipselect = 4, with
the following mapping
cs0 : &gpio1 0 0
cs1 : native
cs2 : &gpio1 1 0
cs3 : &gpio1 2 0
The second flag of a gpio descriptor can be GPIO_ACTIVE_HIGH (0) or GPIO_ACTIVE_LOW(1). Legacy device trees often use 0.
There is a special rule set for combining the second flag of an cs-gpio with the optional spi-cs-high flag for SPI slaves.
Each table entry defines how the CS pin is to be physically driven (not considering potential gpio inversions by pinmux):
device node | cs-gpio | CS pin state active | Note ================+===============+=====================+===== spi-cs-high | - | H | - | - | L | spi-cs-high | ACTIVE_HIGH | H | - | ACTIVE_HIGH | L | 1 spi-cs-high | ACTIVE_LOW | H | 2 - | ACTIVE_LOW | L |
Notes:
1) Should print a warning about polarity inversion.
Here it would be wise to avoid and define the gpio as
ACTIVE_LOW.
2) Should print a warning about polarity inversion
because ACTIVE_LOW is overridden by spi-cs-high.
Should be generally avoided and be replaced by
spi-cs-high + ACTIVE_HIGH.
The simplest way to obtain an active-high CS signal is to configure the controller's cs-gpio property with the ACTIVE_HIGH flag and set the peripheral's spi-cs-high property. See example below for a better understanding.
fifo-depth — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Size of the RX and TX data FIFOs in bytes.
rx-fifo-depth — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Size of the RX data FIFO in bytes.
tx-fifo-depth — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Size of the TX data FIFO in bytes.
num-cs — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Total number of chip selects.
spi-slave — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
The SPI controller acts as a slave, instead of a master.
slave — not listed as required here #
Value type (type): "object"
Properties and child nodes (properties) #
compatible — required here
Compatible of the SPI device.
Required in this object (required): "compatible"
Properties matching a name pattern (patternProperties) #
@[0-9a-f]+$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): spi-peripheral-props.yaml
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Properties and child nodes (properties) #
spi-3wire — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
The device requires 3-wire mode.
spi-cpha — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
The device requires shifted clock phase (CPHA) mode.
spi-cpol — not listed as required here
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
The device requires inverse clock polarity (CPOL) mode.
Required in this object (required): "compatible", "reg"
Property dependencies (dependencies) #
rx-fifo-depth — applies when this property is present #
Also requires: "tx-fifo-depth"
tx-fifo-depth — applies when this property is present #
Also requires: "rx-fifo-depth"
All of these rules must match (allOf) #
Rule 1 #
Condition (
if) #This rule must not match (
not)When the condition matches (
then) #Properties and child nodes (
properties)
#address-cells— not listed as required hereExact value (
const):1When the condition does not match (
else) #Properties and child nodes (
properties)
#address-cells— not listed as required hereExact value (
const):0
Rule 2 #
This rule must not match (
not) #Required in this object (
required):"fifo-depth","rx-fifo-depth"
Rule 3 #
This rule must not match (
not) #Required in this object (
required):"fifo-depth","tx-fifo-depth"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Examples (examples) #
spi@80010000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "fsl,imx28-spi";
reg = <0x80010000 0x2000>;
interrupts = <96>;
dmas = <&dma_apbh 0>;
dma-names = "rx-tx";
display@0 {
compatible = "lg,lg4573";
spi-max-frequency = <1000000>;
reg = <0>;
};
sensor@1 {
compatible = "bosch,bme680";
spi-max-frequency = <100000>;
reg = <1>;
};
flash@2 {
compatible = "jedec,spi-nor";
spi-max-frequency = <50000000>;
reg = <2>, <3>;
stacked-memories = /bits/ 64 <0x10000000 0x10000000>;
};
};
#include <dt-bindings/gpio/gpio.h>
spi@20204000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "brcm,bcm2835-spi";
reg = <0x7e204000 0x1000>;
interrupts = <2 22>;
clocks = <&clk_spi>;
cs-gpios = <&gpio 8 GPIO_ACTIVE_HIGH>;
display@0 {
compatible = "lg,lg4573";
spi-max-frequency = <1000000>;
reg = <0>;
spi-cs-high;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Freescale Low Power SPI (LPSPI) for i.MX
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
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)
SPI-GPIO
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/spi-gpio.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Rob Herring <robh@kernel.org>"
This represents a group of 3-n GPIO lines used for bit-banged SPI on dedicated GPIO lines.
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 #
Exact value (const): "spi-gpio"
sck-gpios — required here #
GPIO spec for the SCK line to use
Maximum number of items (maxItems): 1
miso-gpios — not listed as required here #
GPIO spec for the MISO line to use
Maximum number of items (maxItems): 1
mosi-gpios — not listed as required here #
GPIO spec for the MOSI line to use
Maximum number of items (maxItems): 1
cs-gpios — not listed as required here #
GPIOs to use for chipselect lines. Not needed if num-chipselects = <0>.
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 1024
num-chipselects — required here #
Number of chipselect lines. Should be <0> if a single device with no chip select is connected.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
gpio-sck — not listed as required here #
false — Not permitted by this property rule.
gpio-miso — not listed as required here #
false — Not permitted by this property rule.
gpio-mosi — not listed as required here #
false — Not permitted by this property rule.
Required in this object (required): "compatible", "num-chipselects", "sck-gpios"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi {
compatible = "spi-gpio";
#address-cells = <0x1>;
#size-cells = <0x0>;
sck-gpios = <&gpio 95 0>;
miso-gpios = <&gpio 98 0>;
mosi-gpios = <&gpio 97 0>;
cs-gpios = <&gpio 125 0>;
num-chipselects = <1>;
/* clients */
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Line 46: Deprecated properties
Generic SPI Multiplexer
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/spi-mux.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
This binding describes a SPI bus multiplexer to route the SPI chip select signals. This can be used when you need more devices than the SPI controller has chip selects available. An example setup is shown in ASCII art; the actual setting of the multiplexer to a channel needs to be done by a specific SPI mux driver.
MOSI /--------------------------------+--------+--------+--------\
MISO |/------------------------------+|-------+|-------+|-------\|
SCL ||/----------------------------+||------+||------+||------\||
||| ||| ||| ||| |||
+------------+ ||| ||| ||| |||
| SoC ||| | +-+++-+ +-+++-+ +-+++-+ +-+++-+
| ||| | | dev | | dev | | dev | | dev |
| +--+++-+ | CS-X +------+\ +--+--+ +--+--+ +--+--+ +--+--+
| | SPI +-|-------+ Mux |\\ CS-0 | | | |
| +------+ | +--+---+\\\-------/ CS-1 | | |
| | | \\\----------------/ CS-2 | |
| +------+ | | \\-------------------------/ CS-3 |
| | ? +-|----------/ \----------------------------------/
| +------+ |
+------------+
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):/schemas/spi/spi-controller.yaml#
Rule 2 #
Shared schema rule (
$ref):/schemas/spi/spi-peripheral-props.yaml#
Maintainers (maintainers): "Chris Packham <chris.packham@alliedtelesis.co.nz>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "spi-mux"
mux-controls — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "mux-controls"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/gpio/gpio.h>
mux: mux-controller {
compatible = "gpio-mux";
#mux-control-cells = <0>;
mux-gpios = <&gpio0 3 GPIO_ACTIVE_HIGH>;
};
spi {
#address-cells = <1>;
#size-cells = <0>;
spi@0 {
compatible = "spi-mux";
reg = <0>;
#address-cells = <1>;
#size-cells = <0>;
spi-max-frequency = <100000000>;
mux-controls = <&mux>;
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <40000000>;
};
sensor@1 {
compatible = "bosch,bme680";
reg = <1>;
spi-max-frequency = <10000000>;
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
NXP Flex Serial Peripheral Interface (FSPI)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
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)
Peripheral-specific properties for a SPI bus.
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/spi-peripheral-props.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Many SPI controllers need to add properties to peripheral devices. They could be common properties like spi-max-frequency, spi-cs-high, etc. or they could be controller specific like delay in clock or data lines, etc. These properties need to be defined in the peripheral node because they are per-peripheral and there can be multiple peripherals attached to a controller. All those properties are listed here. The controller specific properties should go in their own separate schema that should be referenced from here.
Maintainers (maintainers): "Mark Brown <broonie@kernel.org>"
Properties and child nodes (properties) #
reg — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 256
Array item rules (items) #
Array item rules (
items)Item 1
Minimum value (
minimum):0Maximum value (
maximum):256
Chip select used by the device.
spi-cs-high — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
The device requires the chip select active high.
spi-lsb-first — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
The device requires the LSB first mode.
spi-max-frequency — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Maximum SPI clocking speed of the device in Hz.
spi-cs-setup-delay-ns — not listed as required here #
Delay in nanoseconds to be introduced by the controller after CS is asserted.
spi-cs-hold-delay-ns — not listed as required here #
Delay in nanoseconds to be introduced by the controller before CS is de-asserted.
spi-cs-inactive-delay-ns — not listed as required here #
Delay in nanoseconds to be introduced by the controller after CS is de-asserted.
spi-rx-bus-width — not listed as required here #
Bus width to the SPI bus used for read transfers. If 0 is provided, then no RX will be possible on this device. Some SPI peripherals and controllers may have multiple data lanes for receiving two or more words at the same time. If this is the case, each index in the array represents the lane on both the SPI peripheral and controller. Additional mapping properties may be needed if a lane is skipped on either side.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Array item rules (items) #
spi-rx-lane-map — not listed as required here #
Mapping of peripheral SDO lanes to controller SDI lanes. Each index in the array represents a peripheral SDO lane, and the value at that index represents the corresponding controller SDI lane.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Default value (default): 0, 1, 2, 3, 4, 5, 6, 7
spi-rx-delay-us — not listed as required here #
Delay, in microseconds, after a read transfer.
rx-sample-delay-ns — not listed as required here #
SPI Rx sample delay offset, unit is nanoseconds. The delay from the default sample time before the actual sample of the rxd input signal occurs.
spi-tx-bus-width — not listed as required here #
Bus width to the SPI bus used for write transfers. If 0 is provided, then no TX will be possible on this device. Some SPI peripherals and controllers may have multiple data lanes for transmitting two or more words at the same time. If this is the case, each index in the array represents the lane on both the SPI peripheral and controller. Additional mapping properties may be needed if a lane is skipped on either side.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Array item rules (items) #
spi-tx-lane-map — not listed as required here #
Mapping of peripheral SDI lanes to controller SDO lanes. Each index in the array represents a peripheral SDI lane, and the value at that index represents the corresponding controller SDO lane.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-array
Default value (default): 0, 1, 2, 3, 4, 5, 6, 7
spi-tx-delay-us — not listed as required here #
Delay, in microseconds, after a write transfer.
stacked-memories — not listed as required here #
Several SPI memories can be wired in stacked mode. This basically means that either a device features several chip selects, or that different devices must be seen as a single bigger chip. This basically doubles (or more) the total address space with only a single additional wire, while still needing to repeat the commands when crossing a chip boundary. The size of each chip should be provided as members of the array.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint64-array
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 4
parallel-memories — not listed as required here #
Several SPI memories can be wired in parallel mode. The devices are physically on a different buses but will always act synchronously as each data word is spread across the different memories (eg. even bits are stored in one memory, odd bits in the other). This basically doubles the address space and the throughput while greatly complexifying the wiring because as many busses as devices must be wired. The size of each chip should be provided as members of the array.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint64-array
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 4
st,spi-midi-ns — not listed as required here #
Deprecated (deprecated): true
Only for STM32H7, (Master Inter-Data Idleness) minimum time delay in nanoseconds inserted between two consecutive data frames.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):arm,pl022-peripheral-props.yaml#
Rule 2 #
Shared schema rule (
$ref):cdns,qspi-nor-peripheral-props.yaml#
Rule 3 #
Shared schema rule (
$ref):fsl,dspi-peripheral-props.yaml#
Rule 4 #
Shared schema rule (
$ref):samsung,spi-peripheral-props.yaml#
Rule 5 #
Shared schema rule (
$ref):nvidia,tegra210-quad-peripheral-props.yaml#
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 151: The controller specific properties go here.
ARM PL022 SPI controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/spi-pl022.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):spi-controller.yaml#
Rule 2 #
Shared schema rule (
$ref):/schemas/arm/primecell.yaml#
Automatic schema selection (select) #
Properties and child nodes (
properties) #
compatible— required here #Rule for matching array elements (
contains)Exact value (
const):"arm,pl022"
Properties and child nodes (properties) #
compatible — required here #
Array item rules (items) #
Item 1
Exact value (
const):"arm,pl022"
Item 2
Exact value (
const):"arm,primecell"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — not listed as required here #
Maximum number of items (maxItems): 2
clock-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"sspclk"
Item 2
Exact value (
const):"apb_pclk"
pl022,autosuspend-delay — not listed as required here #
delay in ms following transfer completion before the runtime power management system suspends the device. A setting of 0 indicates no delay and the device will be suspended immediately.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
pl022,rt — not listed as required here #
indicates the controller should run the message pump with realtime priority to minimise the transfer latency on the bus (boolean)
Value type (type): "boolean"
dmas — not listed as required here #
Two or more DMA channel specifiers following the convention outlined in bindings/dma/dma.txt
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 32
dma-names — not listed as required here #
There must be at least one channel named "tx" for transmit and named "rx" for receive.
Minimum number of items (minItems): 2
Maximum number of items (maxItems): 32
Array items beyond the listed positions (additionalItems) #
true
Allowed by this rule.
Array item rules (items) #
Item 1
Exact value (
const):"rx"
Item 2
Exact value (
const):"tx"
resets — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi@e0100000 {
compatible = "arm,pl022", "arm,primecell";
reg = <0xe0100000 0x1000>;
#address-cells = <1>;
#size-cells = <0>;
interrupts = <0 31 0x4>;
dmas = <&dma_controller 23 1>,
<&dma_controller 24 0>;
dma-names = "rx", "tx";
flash@1 {
compatible = "st,m25p80";
reg = <1>;
spi-max-frequency = <12000000>;
spi-cpol;
spi-cpha;
pl022,interface = <0>;
pl022,com-mode = <0x2>;
pl022,rx-level-trig = <0>;
pl022,tx-level-trig = <0>;
pl022,ctrl-len = <0x11>;
pl022,wait-state = <0>;
pl022,duplex = <0>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Line 16: We need a select here so we don't match all nodes with 'arm,primecell'
Rockchip SPI Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/spi-rockchip.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The Rockchip SPI controller is used to interface with various devices such as flash and display controllers using the SPI communication interface.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):spi-controller.yaml#
Maintainers (maintainers): "Heiko Stuebner <heiko@sntech.de>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Exact value (
const):"rockchip,rk3036-spi"
Rule 2
Exact value (
const):"rockchip,rk3066-spi"
Rule 3
Exact value (
const):"rockchip,rk3228-spi"
Rule 4
Exact value (
const):"rockchip,rv1108-spi"
Rule 5
Array item rules (
items)Item 1
Allowed values (
enum):"rockchip,px30-spi","rockchip,rk3128-spi","rockchip,rk3188-spi","rockchip,rk3288-spi","rockchip,rk3308-spi","rockchip,rk3328-spi","rockchip,rk3368-spi","rockchip,rk3399-spi","rockchip,rk3506-spi","rockchip,rk3528-spi","rockchip,rk3562-spi","rockchip,rk3568-spi","rockchip,rk3576-spi","rockchip,rk3588-spi","rockchip,rv1126-spi"Item 2
Exact value (
const):"rockchip,rk3066-spi"
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
transfer-clock
Item 2
peripheral clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"spiclk"
Item 2
Exact value (
const):"apb_pclk"
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"
rx-sample-delay-ns — not listed as required here #
Default value (default): 0
Nano seconds to delay after the SCLK edge before sampling Rx data (may need to be fine tuned for high capacitance lines). If not specified 0 will be used.
pinctrl-names — not listed as required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
Exact value (
const):"default"
Item 2
Exact value (
const):"sleep"
Names for the pin configuration(s); may be "default" or "sleep", where the "sleep" configuration may describe the state the pins should be in during system suspend.
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/rk3188-cru-common.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
spi0: spi@ff110000 {
compatible = "rockchip,rk3066-spi";
reg = <0xff110000 0x1000>;
interrupts = <GIC_SPI 44 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cru SCLK_SPI0>, <&cru PCLK_SPI0>;
clock-names = "spiclk", "apb_pclk";
dmas = <&pdma1 11>, <&pdma1 12>;
dma-names = "tx", "rx";
pinctrl-0 = <&spi1_pins>;
pinctrl-1 = <&spi1_sleep>;
pinctrl-names = "default", "sleep";
rx-sample-delay-ns = <10>;
#address-cells = <1>;
#size-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Line 19: Everything else is described in the common file
SG2044 SPI NOR controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/spi-sg2044-nor.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Longbin Li <looong.bin@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 #
Allowed values (enum): "sophgo,sg2042-spifmc-nor", "sophgo,sg2044-spifmc-nor"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
resets — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "clocks", "interrupts", "resets"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
spi@1000000 {
compatible = "sophgo,sg2044-spifmc-nor";
reg = <0x1000000 0x4000000>;
#address-cells = <1>;
#size-cells = <0>;
clocks = <&clk 0>;
interrupts = <37 IRQ_TYPE_LEVEL_HIGH>;
resets = <&rst 0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
SiFive SPI controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/spi-sifive.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Pragnesh Patel <pragnesh.patel@sifive.com>", "Paul Walmsley <paul.walmsley@sifive.com>", "Palmer Dabbelt <palmer@sifive.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 #
Array item rules (items) #
Item 1
Allowed values (
enum):"sifive,fu540-c000-spi","sifive,fu740-c000-spi"
Item 2
Exact value (
const):"sifive,spi0"
Should be "sifive,<chip>-spi" and "sifive,spi<version>". Supported compatible strings are - "sifive,fu540-c000-spi" and "sifive,fu740-c000-spi" for the SiFive SPI v0 as integrated onto the SiFive FU540 and FU740 chip resp, and "sifive,spi0" for the SiFive SPI v0 IP block with no chip integration tweaks. Please refer to sifive-blocks-ip-versioning.txt for details SPI RTL that corresponds to the IP block version numbers can be found here - https://github.com/sifive/sifive-blocks/tree/master/src/main/scala/devices/spi
reg — required here #
Minimum number of items (minItems): 1
Array item rules (items) #
Item 1
SPI registers region
Item 2
Memory mapped flash region
interrupts — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
Must reference the frequency given to the controller
sifive,fifo-depth — not listed as required here #
Depth of hardware queues; defaults to 8
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 8
sifive,max-bits-per-word — not listed as required here #
Maximum bits per word; defaults to 8
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3, 4, 5, 6, 7, 8
Default value (default): 8
Required in this object (required): "compatible", "reg", "interrupts", "clocks"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi: spi@10040000 {
compatible = "sifive,fu540-c000-spi", "sifive,spi0";
reg = <0x10040000 0x1000>, <0x20000000 0x10000000>;
interrupt-parent = <&plic>;
interrupts = <51>;
clocks = <&tlclk>;
#address-cells = <1>;
#size-cells = <0>;
sifive,fifo-depth = <8>;
sifive,max-bits-per-word = <8>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0
Sunplus sp7021 SPI controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/spi-sunplus-sp7021.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):spi-controller.yaml
Maintainers (maintainers): "Li-hao Kuo <lhjeff911@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "sunplus,sp7021-spi"
reg — required here #
Array item rules (items) #
Item 1
the SPI master registers
Item 2
the SPI slave registers
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"master"
Item 2
Exact value (
const):"slave"
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"dma_w"
Item 2
Exact value (
const):"master_risc"
Item 3
Exact value (
const):"slave_risc"
interrupts — required here #
Minimum number of items (minItems): 3
clocks — required here #
Maximum number of items (maxItems): 1
resets — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "interrupt-names", "clocks", "resets", "pinctrl-names", "pinctrl-0"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/interrupt-controller/irq.h>
spi@9c002d80 {
compatible = "sunplus,sp7021-spi";
reg = <0x9c002d80 0x80>, <0x9c002e00 0x80>;
reg-names = "master", "slave";
interrupt-parent = <&intc>;
interrupt-names = "dma_w",
"master_risc",
"slave_risc";
interrupts = <144 IRQ_TYPE_LEVEL_HIGH>,
<146 IRQ_TYPE_LEVEL_HIGH>,
<145 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clkc 0x32>;
resets = <&rstc 0x22>;
pinctrl-names = "default";
pinctrl-0 = <&pins_spi0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 2: Copyright (C) Sunplus Co., Ltd. 2021
Xilinx SPI controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/spi-xilinx.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michal Simek <michal.simek@amd.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 #
Allowed values (enum): "xlnx,xps-spi-2.00.a", "xlnx,xps-spi-2.00.b", "xlnx,axi-quad-spi-1.00.a"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
xlnx,num-ss-bits — not listed as required here #
Number of chip selects used.
Minimum value (minimum): 1
Maximum value (maximum): 32
xlnx,num-transfer-bits — not listed as required here #
Number of bits per transfer. This will be 8 if not specified.
Allowed values (enum): 8, 16, 32
Default value (default): 8
Required in this object (required): "compatible", "reg"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
spi0: spi@41e00000 {
compatible = "xlnx,xps-spi-2.00.a";
interrupt-parent = <&intc>;
interrupts = <0 31 1>;
reg = <0x41e00000 0x10000>;
xlnx,num-ss-bits = <0x1>;
xlnx,num-transfer-bits = <32>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Xilinx Zynq UltraScale+ MPSoC GQSPI controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/spi-zynqmp-qspi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Michal Simek <michal.simek@amd.com>"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "xlnx,versal-qspi-1.0", "xlnx,zynqmp-qspi-1.0"
reg — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
interrupts — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"ref_clk"
Item 2
Exact value (
const):"pclk"
clocks — required here #
Maximum number of items (maxItems): 2
iommus — not listed as required here #
Maximum number of items (maxItems): 1
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "interrupts", "clock-names", "clocks"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
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)Exact value (
const):"xlnx,zynqmp-qspi-1.0"When the condition matches (
then) #Properties and child nodes (
properties)
reg— not listed as required hereMinimum number of items (
minItems):2When the condition does not match (
else) #Properties and child nodes (
properties)
reg— not listed as required hereMaximum number of items (
maxItems):1
Examples (examples) #
soc {
#address-cells = <2>;
#size-cells = <2>;
qspi: spi@ff0f0000 {
compatible = "xlnx,zynqmp-qspi-1.0";
clocks = <&zynqmp_clk 53>, <&zynqmp_clk 82>;
clock-names = "ref_clk", "pclk";
interrupts = <0 15 4>;
interrupt-parent = <&gic>;
reg = <0x0 0xff0f0000 0x0 0x1000>,
<0x0 0xc0000000 0x0 0x8000000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Spreadtrum SC9860 SPI Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/sprd,sc9860-spi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Orson Zhai <orsonzhai@gmail.com>", "Baolin Wang <baolin.wang7@gmail.com>", "Chunyan Zhang <zhang.lyra@gmail.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "sprd,sc9860-spi"
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
SPI clock
Item 2
SPI source (parent) clock
Item 3
SPI module enable clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"spi"
Item 2
Exact value (
const):"source"
Item 3
Exact value (
const):"enable"
dmas — not listed as required here #
Maximum number of items (maxItems): 2
dma-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"rx_chn"
Item 2
Exact value (
const):"tx_chn"
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names"
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):spi-controller.yaml#
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/interrupt-controller/irq.h>
spi@70a00000 {
compatible = "sprd,sc9860-spi";
reg = <0x70a00000 0x1000>;
interrupts = <GIC_SPI 7 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clk_spi0>, <&ext_26m>, <&clk_ap_apb_gates 5>;
clock-names = "spi", "source", "enable";
dmas = <&apdma 11 11>, <&apdma 12 12>;
dma-names = "rx_chn", "tx_chn";
#address-cells = <1>;
#size-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
Spreadtrum ADI controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/sprd,spi-adi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Orson Zhai <orsonzhai@gmail.com>", "Baolin Wang <baolin.wang7@gmail.com>", "Chunyan Zhang <zhang.lyra@gmail.com>"
ADI is the abbreviation of Anolog-Digital interface, which is used to access analog chip (such as PMIC) from digital chip. ADI controller follows the SPI framework for its hardware implementation is alike to SPI bus and its timing is compatile to SPI timing.
ADI controller has 50 channels including 2 software read/write channels and 48 hardware channels to access analog chip. For 2 software read/write channels, users should set ADI registers to access analog chip. For hardware channels, we can configure them to allow other hardware components to use it independently, which means we can just link one analog chip address to one hardware channel, then users can access the mapped analog chip address by this hardware channel triggered by hardware components instead of ADI software channels.
Thus we introduce one property named "sprd,hw-channels" to configure hardware channels, the first value specifies the hardware channel id which is used to transfer data triggered by hardware automatically, and the second value specifies the analog chip address where user want to access by hardware components.
Since we have multi-subsystems will use unique ADI to access analog chip, when one system is reading/writing data by ADI software channels, that should be under one hardware spinlock protection to prevent other systems from reading/writing data by ADI software channels at the same time, or two parallel routine of setting ADI registers will make ADI controller registers chaos to lead incorrect results. Then we need one hardware spinlock to synchronize between the multiple subsystems.
The new version ADI controller supplies multiple master channels for different subsystem accessing, that means no need to add hardware spinlock to synchronize, thus change the hardware spinlock support to be optional to keep backward compatibility.
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 #
Allowed values (enum): "sprd,sc9860-adi", "sprd,sc9863-adi", "sprd,ums512-adi"
reg — required here #
Maximum number of items (maxItems): 1
hwlocks — not listed as required here #
Maximum number of items (maxItems): 1
hwlock-names — not listed as required here #
Exact value (const): "adi"
sprd,hw-channels — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32-matrix
A list of hardware channels
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 48
Array item rules (items) #
Array item rules (
items)Item 1
The hardware channel id which is used to transfer data triggered by hardware automatically, channel id 0-1 are for software use, 2-49 are hardware channels.
Minimum value (
minimum):2Maximum value (
maximum):49Item 2
The analog chip address where user want to access by hardware components.
Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
aon {
#address-cells = <2>;
#size-cells = <2>;
adi_bus: spi@40030000 {
compatible = "sprd,sc9860-adi";
reg = <0 0x40030000 0 0x10000>;
hwlocks = <&hwlock1 0>;
hwlock-names = "adi";
#address-cells = <1>;
#size-cells = <0>;
sprd,hw-channels = <30 0x8c20>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
STMicroelectronics SSC SPI Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/st,ssc-spi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The STMicroelectronics SSC SPI controller can be found on STi platforms and it used to communicate with external devices using the Serial Peripheral Interface.
Maintainers (maintainers): "Patrice Chotard <patrice.chotard@foss.st.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 #
Exact value (const): "st,comms-ssc4-spi"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
clock-names — required here #
Exact value (const): "ssc"
interrupts — required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts"
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/stih407-clks.h>
spi@9840000 {
compatible = "st,comms-ssc4-spi";
reg = <0x9840000 0x110>;
interrupts = <GIC_SPI 112 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&clk_s_c0_flexgen CLK_EXT2F_A9>;
clock-names = "ssc";
pinctrl-0 = <&pinctrl_spi0_default>;
pinctrl-names = "default";
#address-cells = <1>;
#size-cells = <0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
STMicroelectronics STM32 Quad Serial Peripheral Interface (QSPI)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/st,stm32-qspi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Christophe Kerello <christophe.kerello@foss.st.com>", "Patrice Chotard <patrice.chotard@foss.st.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 #
Exact value (const): "st,stm32f469-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):"qspi"
Item 2
Exact value (
const):"qspi_mm"
clocks — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
resets — not listed as 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"
access-controllers — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Required in this object (required): "compatible", "reg", "reg-names", "clocks", "interrupts"
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/stm32mp1-clks.h>
#include <dt-bindings/reset/stm32mp1-resets.h>
spi@58003000 {
compatible = "st,stm32f469-qspi";
reg = <0x58003000 0x1000>, <0x70000000 0x10000000>;
reg-names = "qspi", "qspi_mm";
interrupts = <GIC_SPI 92 IRQ_TYPE_LEVEL_HIGH>;
dmas = <&mdma1 22 0x10 0x100002 0x0 0x0>,
<&mdma1 22 0x10 0x100008 0x0 0x0>;
dma-names = "tx", "rx";
clocks = <&rcc QSPI_K>;
resets = <&rcc QSPI_R>;
#address-cells = <1>;
#size-cells = <0>;
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-rx-bus-width = <4>;
spi-max-frequency = <108000000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
STMicroelectronics STM32 SPI Controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/st,stm32-spi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The STM32 SPI controller is used to communicate with external devices using the Serial Peripheral Interface. It supports full-duplex, half-duplex and simplex synchronous serial communication with external devices. It supports from 4 to 32-bit data size.
Maintainers (maintainers): "Erwan Leray <erwan.leray@foss.st.com>", "Fabrice Gasnier <fabrice.gasnier@foss.st.com>"
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)Exact value (
const):"st,stm32f4-spi"When the condition matches (
then) #Properties and child nodes (
properties)
st,spi-midi-ns— not listed as required here
false— Not permitted by this property rule.
sram— not listed as required here
false— Not permitted by this property rule.
dmas— not listed as required hereMaximum number of items (
maxItems):2
dma-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"rx"Item 2
Exact value (
const):"tx"
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"st,stm32mp25-spi"When the condition matches (
then) #Properties and child nodes (
properties)
sram— not listed as required here
false— Not permitted by this property rule.
dmas— not listed as required hereMaximum number of items (
maxItems):2
dma-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"rx"Item 2
Exact value (
const):"tx"
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "st,stm32f4-spi", "st,stm32f7-spi", "st,stm32h7-spi", "st,stm32mp25-spi"
reg — required here #
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
resets — not listed as required here #
Maximum number of items (maxItems): 1
dmas — not listed as required here #
DMA specifiers for tx and rx channels. DMA fifo mode must be used. See the STM32 DMA bindings Documentation/devicetree/bindings/dma/stm32/st,*dma.yaml
Minimum number of items (minItems): 2
Array item rules (items) #
Item 1
rx DMA channel
Item 2
tx DMA channel
Item 3
rxm2m MDMA channel
dma-names — not listed as required here #
Minimum number of items (minItems): 2
Array item rules (items) #
Item 1
Exact value (
const):"rx"
Item 2
Exact value (
const):"tx"
Item 3
Exact value (
const):"rxm2m"
sram — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Phandles to a reserved SRAM region which is used as temporary storage memory between DMA and MDMA engines. The region should be defined as child node of the AHB SRAM node as per the generic bindings in Documentation/devicetree/bindings/sram/sram.yaml
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
access-controllers — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
Required in this object (required): "compatible", "reg", "clocks", "interrupts"
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/stm32mp1-clks.h>
#include <dt-bindings/reset/stm32mp1-resets.h>
spi@4000b000 {
#address-cells = <1>;
#size-cells = <0>;
compatible = "st,stm32h7-spi";
reg = <0x4000b000 0x400>;
interrupts = <GIC_SPI 36 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&rcc SPI2_K>;
resets = <&rcc SPI2_R>;
dmas = <&dmamux1 0 39 0x400 0x05>,
<&dmamux1 1 40 0x400 0x05>;
dma-names = "rx", "tx";
cs-gpios = <&gpioa 11 0>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
STMicroelectronics STM32 Octal Serial Peripheral Interface (OSPI)
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/st,stm32mp25-ospi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Patrice Chotard <patrice.chotard@foss.st.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 #
Exact value (const): "st,stm32mp25-ospi"
reg — required here #
Maximum number of items (maxItems): 1
memory-region — not listed as required here #
Memory region to be used for memory-map read access. In memory-mapped mode, read access are performed from the memory device using the direct mapping.
Maximum number of items (maxItems): 1
clocks — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Maximum number of items (maxItems): 1
resets — required here #
Array item rules (items) #
Item 1
phandle to OSPI block reset
Item 2
phandle to delay block reset
dmas — not listed as required here #
Maximum number of items (maxItems): 2
dma-names — not listed as required here #
Array item rules (items) #
Item 1
Exact value (
const):"tx"
Item 2
Exact value (
const):"rx"
st,syscfg-dlyb — required here #
configure OCTOSPI delay block.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Array item rules (items) #
Item 1
phandle to syscfg
Item 2
register offset within syscfg
access-controllers — not listed as required here #
phandle to the rifsc device to check access right and in some cases, an additional phandle to the rcc device for secure clock control.
Array item rules (items) #
Item 1
phandle to bus controller
Item 2
phandle to clock controller
Minimum number of items (minItems): 1
power-domains — not listed as required here #
Maximum number of items (maxItems): 1
Required in this object (required): "compatible", "reg", "clocks", "resets", "interrupts", "st,syscfg-dlyb"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/st,stm32mp25-rcc.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/reset/st,stm32mp25-rcc.h>
spi@40430000 {
compatible = "st,stm32mp25-ospi";
reg = <0x40430000 0x400>;
memory-region = <&mm_ospi1>;
interrupts = <GIC_SPI 163 IRQ_TYPE_LEVEL_HIGH>;
dmas = <&hpdma 2 0x62 0x00003121 0x0>,
<&hpdma 2 0x42 0x00003112 0x0>;
dma-names = "tx", "rx";
clocks = <&scmi_clk CK_SCMI_OSPI1>;
resets = <&scmi_reset RST_SCMI_OSPI1>, <&scmi_reset RST_SCMI_OSPI1DLL>;
access-controllers = <&rifsc 74>;
power-domains = <&CLUSTER_PD>;
st,syscfg-dlyb = <&syscfg 0x1000>;
#address-cells = <1>;
#size-cells = <0>;
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-rx-bus-width = <4>;
spi-max-frequency = <108000000>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
TI QSPI controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/ti,qspi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Kousik Sanagavarapu <five231003@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 #
Allowed values (enum): "ti,am4372-qspi", "ti,dra7xxx-qspi"
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 #
Maximum number of items (maxItems): 1
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"fck"
interrupts — required here #
Maximum number of items (maxItems): 1
num-cs — not listed as required here #
Minimum value (minimum): 1
Maximum value (maximum): 4
Default value (default): 1
ti,hwmods — not listed as required here #
Name of the hwmod associated to the QSPI. This is for legacy platforms only.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/string
Deprecated (deprecated): true
syscon-chipselects — not listed as required here #
Handle to system control region containing QSPI chipselect register and offset of that register.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array
Array item rules (items) #
Item 1
Array item rules (
items)Item 1
phandle to system control register
Item 2
register offset
spi-max-frequency — not listed as required here #
Maximum SPI clocking speed of the controller in Hz.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Required in this object (required): "compatible", "reg", "reg-names", "clocks", "clock-names", "interrupts"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/dra7.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
spi@4b300000 {
compatible = "ti,dra7xxx-qspi";
reg = <0x4b300000 0x100>,
<0x5c000000 0x4000000>;
reg-names = "qspi_base", "qspi_mmap";
syscon-chipselects = <&scm_conf 0x558>;
#address-cells = <1>;
#size-cells = <0>;
clocks = <&l4per2_clkctrl DRA7_L4PER2_QSPI_CLKCTRL 25>;
clock-names = "fck";
num-cs = <4>;
spi-max-frequency = <48000000>;
interrupts = <GIC_SPI 343 IRQ_TYPE_LEVEL_HIGH>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Xilinx Zynq QSPI controller
Peios Kernel / Hardware and drivers / Device-tree binding reference / Spi bindings
Schema identifier ($id): "http://devicetree.org/schemas/spi/xlnx,zynq-qspi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
The Xilinx Zynq QSPI controller is used to access multi-bit serial flash memory devices.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):spi-controller.yaml#
Maintainers (maintainers): "Michal Simek <michal.simek@amd.com>"
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "xlnx,zynq-qspi-1.0"
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
reference clock
Item 2
peripheral clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"ref_clk"
Item 2
Exact value (
const):"pclk"
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) #
spi@e000d000 {
compatible = "xlnx,zynq-qspi-1.0";
reg = <0xe000d000 0x1000>;
interrupt-parent = <&intc>;
interrupts = <0 19 4>;
clock-names = "ref_clk", "pclk";
clocks = <&clkc 10>, <&clkc 43>;
num-cs = <1>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 19: Everything else is described in the common file