Renesas SDHI SD/MMC controller
Schema identifier ($id): "http://devicetree.org/schemas/mmc/renesas,sdhi.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Wolfram Sang <wsa+renesas@sang-engineering.com>"
Properties and child nodes (properties) #
compatible — required here #
Exactly one of these rules must match (oneOf) #
Rule 1
Allowed values (
enum):"renesas,sdhi-mmc-r8a77470","renesas,sdhi-r7s72100","renesas,sdhi-r7s9210","renesas,sdhi-r8a73a4","renesas,sdhi-r8a7740","renesas,sdhi-r9a09g057","renesas,sdhi-sh73a0"
Rule 2
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,sdhi-r8a7778","renesas,sdhi-r8a7779"Item 2
Exact value (
const):"renesas,rcar-gen1-sdhi"
Rule 3
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,sdhi-r8a7742","renesas,sdhi-r8a7743","renesas,sdhi-r8a7744","renesas,sdhi-r8a7745","renesas,sdhi-r8a77470","renesas,sdhi-r8a7790","renesas,sdhi-r8a7791","renesas,sdhi-r8a7792","renesas,sdhi-r8a7793","renesas,sdhi-r8a7794"Item 2
Exact value (
const):"renesas,rcar-gen2-sdhi"
Rule 4
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,sdhi-r8a774a1","renesas,sdhi-r8a774b1","renesas,sdhi-r8a774c0","renesas,sdhi-r8a774e1","renesas,sdhi-r8a7795","renesas,sdhi-r8a7796","renesas,sdhi-r8a77961","renesas,sdhi-r8a77965","renesas,sdhi-r8a77970","renesas,sdhi-r8a77980","renesas,sdhi-r8a77990","renesas,sdhi-r8a77995"Item 2
Exact value (
const):"renesas,rcar-gen3-sdhi"
Rule 5
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,sdhi-r8a779a0","renesas,sdhi-r8a779f0","renesas,sdhi-r8a779g0","renesas,sdhi-r8a779h0"Item 2
Exact value (
const):"renesas,rcar-gen4-sdhi"
Rule 6
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,sdhi-r9a07g043","renesas,sdhi-r9a07g044","renesas,sdhi-r9a07g054","renesas,sdhi-r9a08g045","renesas,sdhi-r9a09g011"Item 2
Exact value (
const):"renesas,rzg2l-sdhi"
Rule 7
Array item rules (
items)Item 1
Allowed values (
enum):"renesas,sdhi-r9a09g047","renesas,sdhi-r9a09g056","renesas,sdhi-r9a09g077","renesas,sdhi-r9a09g087"Item 2
Exact value (
const):"renesas,sdhi-r9a09g057"
reg — required here #
Maximum number of items (maxItems): 1
interrupts — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 3
clocks — required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
clock-names — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 4
dmas — not listed as required here #
Minimum number of items (minItems): 4
Maximum number of items (maxItems): 4
dma-names — not listed as required here #
Minimum number of items (minItems): 4
Maximum number of items (maxItems): 4
Array item rules (items) #
iommus — not listed as 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
pinctrl-0 — not listed as required here #
Minimum number of items (minItems): 1
Maximum number of items (maxItems): 2
pinctrl-1 — not listed as required here #
Maximum number of items (maxItems): 1
pinctrl-names — not listed as required here #
true — No constraints added by this property rule.
max-frequency — not listed as required here #
true — No constraints added by this property rule.
All of these rules must match (allOf) #
Rule 1 #
Shared schema rule (
$ref):mmc-controller.yaml
Rule 2 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"renesas,sdhi-r9a09g077","renesas,sdhi-r9a09g087"When the condition matches (
then) #Properties and child nodes (
properties)
resets— not listed as required here
false— Not permitted by this property rule.
clocks— not listed as required hereArray item rules (
items)Item 1
ACLK, IMCLK, SDHI channel bus and main clocks.
Item 2
CLK_HS, SDHI channel High speed clock.
clock-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"aclk"Item 2
Exact value (
const):"clkh"When the condition does not match (
else) #Condition (
if)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"renesas,sdhi-r9a09g057","renesas,rzg2l-sdhi"When the condition matches (
then)Properties and child nodes (
properties)
clocks— not listed as required hereArray item rules (
items)Item 1
IMCLK, SDHI channel main clock1.
Item 2
CLK_HS, SDHI channel High speed clock which operates 4 times that of SDHI channel main clock1.
Item 3
IMCLK2, SDHI channel main clock2. When this clock is turned off, external SD card detection cannot be detected.
Item 4
ACLK, SDHI channel bus clock.
clock-names— required hereArray item rules (
items)Item 1
Exact value (
const):"core"Item 2
Exact value (
const):"clkh"Item 3
Exact value (
const):"cd"Item 4
Exact value (
const):"aclk"When the condition does not match (
else)Condition (
if)Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"renesas,rcar-gen2-sdhi","renesas,rcar-gen3-sdhi","renesas,rcar-gen4-sdhi"When the condition matches (
then)Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):1Maximum number of items (
maxItems):3
clock-names— not listed as required hereMinimum number of items (
minItems):1Items must be unique (
uniqueItems):trueArray item rules (
items)Item 1
Exact value (
const):"core"Item 2
Item 3
Exact value (
const):"cd"When the condition does not match (
else)Properties and child nodes (
properties)
clocks— not listed as required hereMinimum number of items (
minItems):1Maximum number of items (
maxItems):2
clock-names— not listed as required hereMinimum number of items (
minItems):1Array item rules (
items)Item 1
Exact value (
const):"core"Item 2
Exact value (
const):"cd"
Rule 3 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,sdhi-mmc-r8a77470"When the condition matches (
then) #Properties and child nodes (
properties)
pinctrl-names— not listed as required hereArray item rules (
items)Item 1
Exact value (
const):"state_uhs"When the condition does not match (
else) #Properties and child nodes (
properties)
pinctrl-names— not listed as required hereMinimum number of items (
minItems):1Array item rules (
items)Item 1
Exact value (
const):"default"Item 2
Exact value (
const):"state_uhs"
Rule 4 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Allowed values (
enum):"renesas,sdhi-r7s72100","renesas,sdhi-r7s9210"When the condition matches (
then) #Required in this object (
required):"clock-names"The internal card detection logic that exists in these controllers is sectioned off to be run by a separate second clock source to allow the main core clock to be turned off to save power.
Rule 5 #
Condition (
if) #Properties and child nodes (
properties)
compatible— not listed as required hereRule for matching array elements (
contains)Exact value (
const):"renesas,sdhi-r9a09g057"When the condition matches (
then) #Properties and child nodes (
properties)
vqmmc-regulator— not listed as required hereValue type (
type):"object"VQMMC SD regulator
Shared schema rule (
$ref):/schemas/regulator/regulator.yaml#Properties not evaluated by applicable rules (
unevaluatedProperties)
falseNot allowed by this rule.
Required in this object (required): "compatible", "reg", "interrupts", "clocks", "power-domains"
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Examples (examples) #
#include <dt-bindings/clock/r8a7790-cpg-mssr.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/r8a7790-sysc.h>
sdhi0: mmc@ee100000 {
compatible = "renesas,sdhi-r8a7790", "renesas,rcar-gen2-sdhi";
reg = <0xee100000 0x328>;
interrupts = <GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cpg CPG_MOD 314>;
dmas = <&dmac0 0xcd>, <&dmac0 0xce>, <&dmac1 0xcd>, <&dmac1 0xce>;
dma-names = "tx", "rx", "tx", "rx";
max-frequency = <195000000>;
power-domains = <&sysc R8A7790_PD_ALWAYS_ON>;
resets = <&cpg 314>;
};
sdhi1: mmc@ee120000 {
compatible = "renesas,sdhi-r8a7790", "renesas,rcar-gen2-sdhi";
reg = <0xee120000 0x328>;
interrupts = <GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cpg CPG_MOD 313>;
dmas = <&dmac0 0xc9>, <&dmac0 0xca>, <&dmac1 0xc9>, <&dmac1 0xca>;
dma-names = "tx", "rx", "tx", "rx";
max-frequency = <195000000>;
power-domains = <&sysc R8A7790_PD_ALWAYS_ON>;
resets = <&cpg 313>;
};
sdhi2: mmc@ee140000 {
compatible = "renesas,sdhi-r8a7790", "renesas,rcar-gen2-sdhi";
reg = <0xee140000 0x100>;
interrupts = <GIC_SPI 167 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cpg CPG_MOD 312>;
dmas = <&dmac0 0xc1>, <&dmac0 0xc2>, <&dmac1 0xc1>, <&dmac1 0xc2>;
dma-names = "tx", "rx", "tx", "rx";
max-frequency = <97500000>;
power-domains = <&sysc R8A7790_PD_ALWAYS_ON>;
resets = <&cpg 312>;
};
sdhi3: mmc@ee160000 {
compatible = "renesas,sdhi-r8a7790", "renesas,rcar-gen2-sdhi";
reg = <0xee160000 0x100>;
interrupts = <GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>;
clocks = <&cpg CPG_MOD 311>;
dmas = <&dmac0 0xd3>, <&dmac0 0xd4>, <&dmac1 0xd3>, <&dmac1 0xd4>;
dma-names = "tx", "rx", "tx", "rx";
max-frequency = <97500000>;
power-domains = <&sysc R8A7790_PD_ALWAYS_ON>;
resets = <&cpg 311>;
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
Line 16: RZ/G1C
Line 17: RZ/A1H
Line 18: SH-Mobile AG5
Line 19: R-Mobile APE6
Line 20: R-Mobile A1
Line 21: RZ/V2H(P)
Line 22: R-Mobile APE6
Line 25: R-Car M1
Line 26: R-Car H1
Line 27: R-Car Gen1
Line 30: RZ/G1H
Line 31: RZ/G1M
Line 32: RZ/G1N
Line 33: RZ/G1E
Line 34: RZ/G1C
Line 35: R-Car H2
Line 36: R-Car M2-W
Line 37: R-Car V2H
Line 38: R-Car M2-N
Line 39: R-Car E2
Line 40: R-Car Gen2 and RZ/G1
Line 43: RZ/G2M
Line 44: RZ/G2N
Line 45: RZ/G2E
Line 46: RZ/G2H
Line 47: R-Car H3
Line 48: R-Car M3-W
Line 49: R-Car M3-W+
Line 50: R-Car M3-N
Line 51: R-Car V3M
Line 52: R-Car V3H
Line 53: R-Car E3
Line 54: R-Car D3
Line 55: R-Car Gen3 or RZ/G2
Line 58: R-Car V3U
Line 59: R-Car S4-8
Line 60: R-Car V4H
Line 61: R-Car V4M
Line 62: R-Car Gen4
Line 65: RZ/G2UL and RZ/Five
Line 66: RZ/G2{L,LC}
Line 67: RZ/V2L
Line 68: RZ/G3S
Line 69: RZ/V2M
Line 73: RZ/G3E
Line 74: RZ/V2N
Line 75: RZ/T2H
Line 76: RZ/N2H
Line 77: RZ/V2H(P)