Renesas Expanded Serial Peripheral Interface (xSPI)
Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/renesas,rzg3e-xspi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Biju Das <biju.das.jz@bp.renesas.com>"
Renesas xSPI allows a SPI flash connected to the SoC to be accessed via the memory-mapping or the manual command mode.
The flash chip itself should be represented by a subnode of the XSPI node. The flash interface is selected based on the "compatible" property of this subnode: - "jedec,spi-nor";
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):"renesas,r9a09g047-xspi"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,r9a09g056-xspi","renesas,r9a09g057-xspi"Item 2
Exact value (
const):"renesas,r9a09g047-xspi"
reg — required here #
Array item rules (items) #
Item 1
xSPI registers
Item 2
direct mapping area
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"regs"
Item 2
Exact value (
const):"dirmap"
interrupts — required here #
Array item rules (items) #
Item 1
Interrupt pulse signal by factors excluding errors
Item 2
Interrupt pulse signal by error factors
interrupt-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"pulse"
Item 2
Exact value (
const):"err_pulse"
clocks — required here #
Array item rules (items) #
Item 1
AHB clock
Item 2
AXI clock
Item 3
SPI clock
Item 4
Double speed SPI clock
clock-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"ahb"
Item 2
Exact value (
const):"axi"
Item 3
Exact value (
const):"spi"
Item 4
Exact value (
const):"spix2"
power-domains — required here #
Maximum number of items (maxItems): 1
resets — required here #
Array item rules (items) #
Item 1
Hardware reset
Item 2
AXI reset
reset-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"hresetn"
Item 2
Exact value (
const):"aresetn"
renesas,xspi-cs-addr-sys — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle
Phandle to the system controller (sys) that allows to configure xSPI CS0 and CS1 addresses.
Properties matching a name pattern (patternProperties) #
flash@[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) #
compatible — not listed as required here
Rule for matching array elements (contains)
Exact value (
const):"jedec,spi-nor"
Required in this object (required): "compatible", "reg", "reg-names", "interrupts", "interrupt-names", "clocks", "clock-names", "power-domains", "resets", "reset-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/arm-gic.h>
#include <dt-bindings/clock/renesas,r9a09g047-cpg.h>
spi@11030000 {
compatible = "renesas,r9a09g047-xspi";
reg = <0x11030000 0x10000>, <0x20000000 0x10000000>;
reg-names = "regs", "dirmap";
interrupts = <GIC_SPI 228 IRQ_TYPE_EDGE_RISING>,
<GIC_SPI 229 IRQ_TYPE_EDGE_RISING>;
interrupt-names = "pulse", "err_pulse";
clocks = <&cpg CPG_MOD 0x9f>, <&cpg CPG_MOD 0xa0>,
<&cpg CPG_CORE 9>, <&cpg CPG_MOD 0xa1>;
clock-names = "ahb", "axi", "spi", "spix2";
power-domains = <&cpg>;
resets = <&cpg 0xa3>, <&cpg 0xa4>;
reset-names = "hresetn", "aresetn";
#address-cells = <1>;
#size-cells = <0>;
flash@0 {
compatible = "jedec,spi-nor";
reg = <0>;
spi-max-frequency = <40000000>;
spi-tx-bus-width = <1>;
spi-rx-bus-width = <1>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 27: RZ/G3E
Line 31: RZ/V2N
Line 32: RZ/V2H(P)