Renesas RZ/V2H(P) Renesas Serial Peripheral Interface (RSPI)

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 here

Rule for matching array elements (contains)

Allowed values (enum): "renesas,r9a09g057-rspi"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 3

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "pclk"

Item 2

Exact value (const): "pclk_sfr"

Item 3

Exact value (const): "tclk"

Required in this object (required): "resets", "reset-names"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "renesas,r9a09g077-rspi"

When the condition matches (then) #

Properties and child nodes (properties)

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): "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

Edit this page