Renesas (Quad) Serial Peripheral Interface (RSPI/QSPI)
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