Amlogic Meson6, Meson8 and Meson8b SDIO/MMC controller

Schema identifier ($id): "http://devicetree.org/schemas/mmc/amlogic,meson-mx-sdio.yaml#"

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

The highspeed MMC host controller on Amlogic SoCs provides an interface for MMC, SD, SDIO and SDHC types of memory cards.

Supported maximum speeds are the ones of the eMMC standard 4.41 as well as the speed of SD standard 2.0.

The hardware provides an internal "mux" which allows up to three slots to be controlled. Only one slot can be accessed at a time.

Maintainers (maintainers): "Neil Armstrong <neil.armstrong@linaro.org>"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "amlogic,meson8-sdio", "amlogic,meson8b-sdio"

Item 2

Exact value (const): "amlogic,meson-mx-sdio"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 2

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "core"

Item 2

Exact value (const): "clkin"

#address-cells — required here #

Exact value (const): 1

#size-cells — required here #

Exact value (const): 0

Properties matching a name pattern (patternProperties) #

slot@[0-2]$ — name matches this regular expression #

Shared schema rule ($ref): mmc-slot.yaml#

A node for each slot provided by the MMC controller

Properties and child nodes (properties) #

reg — not listed as required here

Allowed values (enum): 0, 1, 2

bus-width — not listed as required here

Allowed values (enum): 1, 4

Required in this object (required): "compatible"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

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

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
mmc@c1108c20 {
    compatible = "amlogic,meson8-sdio", "amlogic,meson-mx-sdio";
    reg = <0xc1108c20 0x20>;
    interrupts = <GIC_SPI 28 IRQ_TYPE_EDGE_RISING>;
    clocks = <&clk_core>, <&clk_in>;
    clock-names = "core", "clkin";
    #address-cells = <1>;
    #size-cells = <0>;

    slot@1 {
        compatible = "mmc-slot";
        reg = <1>;
        bus-width = <4>;
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page