Renesas Reduced Pin Count Interface (RPC-IF)
Schema identifier ($id): "http://devicetree.org/schemas/memory-controllers/renesas,rpc-if.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Sergei Shtylyov <sergei.shtylyov@gmail.com>"
Renesas RPC-IF allows a SPI flash or HyperFlash connected to the SoC to be accessed via the external address space read mode or the manual mode.
The flash chip itself should be represented by a subnode of the RPC-IF node. The flash interface is selected based on the "compatible" property of this subnode: - if it contains "jedec,spi-nor", then SPI is used; - if it contains "cfi-flash", then HyperFlash is used.
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):"renesas,r8a774a1-rpc-if","renesas,r8a774b1-rpc-if","renesas,r8a774c0-rpc-if","renesas,r8a774e1-rpc-if","renesas,r8a7795-rpc-if","renesas,r8a7796-rpc-if","renesas,r8a77961-rpc-if","renesas,r8a77965-rpc-if","renesas,r8a77970-rpc-if","renesas,r8a77980-rpc-if","renesas,r8a77990-rpc-if","renesas,r8a77995-rpc-if","renesas,r8a779a0-rpc-if"Item 2
Exact value (
const):"renesas,rcar-gen3-rpc-if"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,r8a779g0-rpc-if","renesas,r8a779h0-rpc-if"Item 2
Exact value (
const):"renesas,rcar-gen4-rpc-if"
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,r9a07g043-rpc-if","renesas,r9a07g044-rpc-if","renesas,r9a07g054-rpc-if"Item 2
Exact value (
const):"renesas,rzg2l-rpc-if"
reg — required here #
Array item rules (items) #
Item 1
RPC-IF registers
Item 2
direct mapping read mode area
Item 3
write buffer area
reg-names — required here #
Array item rules (items) #
Item 1
Exact value (
const):"regs"
Item 2
Exact value (
const):"dirmap"
Item 3
Exact value (
const):"wbuf"
clocks — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
interrupts — not listed as required here #
Maximum number of items (maxItems): 1
power-domains — required here #
Maximum number of items (maxItems): 1
resets — required here #
Maximum number of items (maxItems): 1
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)
Required in this object (required): "compatible", "reg", "reg-names", "clocks", "power-domains", "resets", "#address-cells", "#size-cells"
Condition (if) #
Properties and child nodes (
properties) #
compatible— not listed as required here #Rule for matching array elements (
contains)
When the condition matches (then) #
Properties and child nodes (
properties) #
clocks— not listed as required here #Array item rules (
items)Item 1
SPI Multi IO Register access clock (SPI_CLK2)
Item 2
SPI Multi IO Main clock (SPI_CLK).
When the condition does not match (else) #
Properties and child nodes (
properties) #
clocks— not listed as required here #Maximum number of items (
maxItems):1
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/renesas-cpg-mssr.h>
#include <dt-bindings/power/r8a77995-sysc.h>
spi@ee200000 {
compatible = "renesas,r8a77995-rpc-if", "renesas,rcar-gen3-rpc-if";
reg = <0xee200000 0x200>,
<0x08000000 0x4000000>,
<0xee208000 0x100>;
reg-names = "regs", "dirmap", "wbuf";
clocks = <&cpg CPG_MOD 917>;
power-domains = <&sysc R8A77995_PD_ALWAYS_ON>;
resets = <&cpg 917>;
#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 30: RZ/G2M
Line 31: RZ/G2N
Line 32: RZ/G2E
Line 33: RZ/G2H
Line 34: R-Car H3
Line 35: R-Car M3-W
Line 36: R-Car M3-W+
Line 37: R-Car M3-N
Line 38: R-Car V3M
Line 39: R-Car V3H
Line 40: R-Car E3
Line 41: R-Car D3
Line 42: R-Car V3U
Line 43: a generic R-Car gen3 or RZ/G2{E,H,M,N} device
Line 47: R-Car V4H
Line 48: R-Car V4M
Line 49: a generic R-Car gen4 device
Line 53: RZ/G2UL
Line 54: RZ/G2{L,LC}
Line 55: RZ/V2L