Renesas MSIOF SPI / I2S controller

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) #

Allowed values (enum): "tx", "rx"

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 here

Rule for matching array elements (contains)

Exact value (const): "renesas,sh-mobile-msiof"

When the condition matches (then) #

Required in this object (required): "resets"

Rule 2 #

Condition (if) #

This rule must not match (not)

Required in this object (required): "port"

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"

Edit this page