Amlogic SD / eMMC controller for S905/GXBB family SoCs

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

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

The MMC 5.1 compliant host controller on Amlogic provides the interface for SD, eMMC and SDIO devices

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

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "amlogic,meson-axg-mmc"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "amlogic,meson-gx-mmc"

Item 2

Exact value (const): "amlogic,meson-gxbb-mmc"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

mmc controller instance

Item 2

card detect

clocks — required here #

Maximum number of items (maxItems): 3

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "core"

Item 2

Exact value (const): "clkin0"

Item 3

Exact value (const): "clkin1"

resets — required here #

Maximum number of items (maxItems): 1

amlogic,dram-access-quirk — not listed as required here #

Value type (type): "boolean"

set when controller's internal DMA engine cannot access the DRAM memory, like on the G12A dedicated SDIO controller.

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
mmc@70000 {
    compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
    reg = <0x70000 0x2000>;
    interrupts = <GIC_SPI 216 IRQ_TYPE_EDGE_RISING>;
    clocks = <&clk_mmc>, <&xtal>, <&clk_div>;
    clock-names = "core", "clkin0", "clkin1";
    pinctrl-0 = <&emm_pins>;
    resets = <&reset_mmc>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page