StarFive Designware Mobile Storage Host Controller

Schema identifier ($id): "http://devicetree.org/schemas/mmc/starfive,jh7110-mmc.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

StarFive uses the Synopsys designware mobile storage host controller to interface a SoC with storage medium such as eMMC or SD/MMC cards.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): synopsys-dw-mshc-common.yaml#

Maintainers (maintainers): "William Qiu <william.qiu@starfivetech.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "starfive,jh7110-mmc"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

biu clock

Item 2

ciu clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "biu"

Item 2

Exact value (const): "ciu"

interrupts — required here #

Maximum number of items (maxItems): 1

starfive,sysreg — not listed as required here #

Shared schema rule ($ref): /schemas/types.yaml#/definitions/phandle-array

Array item rules (items) #

Item 1

Array item rules (items)

Item 1

phandle to System Register Controller syscon node

Item 2

offset of SYS_SYSCONSAIF__SYSCFG register for MMC controller

Item 3

shift of SYS_SYSCONSAIF__SYSCFG register for MMC controller

Item 4

mask of SYS_SYSCONSAIF__SYSCFG register for MMC controller

Should be four parameters, the phandle to System Register Controller syscon node and the offset/shift/mask of SYS_SYSCONSAIF__SYSCFG register for MMC controller.

Required in this object (required): "compatible", "reg", "clocks", "clock-names", "interrupts"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

mmc@16010000 {
    compatible = "starfive,jh7110-mmc";
    reg = <0x16010000 0x10000>;
    clocks = <&syscrg 91>,
             <&syscrg 93>;
    clock-names = "biu","ciu";
    resets = <&syscrg 64>;
    reset-names = "reset";
    interrupts = <74>;
    fifo-depth = <32>;
    fifo-watermark-aligned;
    data-addr = <0>;
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause

Edit this page