ASPEED SD/SDIO/MMC Controller
Schema identifier ($id): "http://devicetree.org/schemas/mmc/aspeed,sdhci.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Andrew Jeffery <andrew@aj.id.au>", "Ryan Chen <ryanchen.aspeed@gmail.com>"
The ASPEED SD/SDIO/eMMC controller exposes two slots implementing the SDIO Host Specification v2.00, with 1 or 4 bit data buses, or an 8 bit data bus if only a single slot is enabled.
The two slots are supported by a common configuration area. As the SDHCIs for the slots are dependent on the common configuration area, they are described as child nodes.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "aspeed,ast2400-sd-controller", "aspeed,ast2500-sd-controller", "aspeed,ast2600-sd-controller"
reg — required here #
Maximum number of items (maxItems): 1
Common configuration registers
#address-cells — required here #
Exact value (const): 1
#size-cells — required here #
Exact value (const): 1
ranges — required here #
true — No constraints added by this property rule.
clocks — required here #
Maximum number of items (maxItems): 1
The SD/SDIO controller clock gate
Properties matching a name pattern (patternProperties) #
^sdhci@[0-9a-f]+$ — name matches this regular expression #
Value type (type): "object"
Shared schema rule ($ref): sdhci-common.yaml
Properties not evaluated by applicable rules (unevaluatedProperties) #
false
Not allowed by this rule.
Properties and child nodes (properties) #
compatible — required here
Allowed values (enum): "aspeed,ast2400-sdhci", "aspeed,ast2500-sdhci", "aspeed,ast2600-sdhci"
reg — required here
Maximum number of items (maxItems): 1
The SDHCI registers
clocks — required here
Maximum number of items (maxItems): 1
The SD bus clock
interrupts — required here
Maximum number of items (maxItems): 1
The SD interrupt shared between both slots
sdhci,auto-cmd12 — not listed as required here
Value type (type): "boolean"
Specifies that controller should use auto CMD12
Required in this object (required): "compatible", "reg", "clocks", "interrupts"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells", "ranges", "clocks"
Examples (examples) #
#include <dt-bindings/clock/aspeed-clock.h>
sdc@1e740000 {
compatible = "aspeed,ast2500-sd-controller";
reg = <0x1e740000 0x100>;
#address-cells = <1>;
#size-cells = <1>;
ranges = <0 0x1e740000 0x20000>;
clocks = <&syscon ASPEED_CLK_GATE_SDCLK>;
sdhci0: sdhci@100 {
compatible = "aspeed,ast2500-sdhci";
reg = <0x100 0x100>;
interrupts = <26>;
sdhci,auto-cmd12;
clocks = <&syscon ASPEED_CLK_SDIO>;
};
sdhci1: sdhci@200 {
compatible = "aspeed,ast2500-sdhci";
reg = <0x200 0x100>;
interrupts = <26>;
sdhci,auto-cmd12;
clocks = <&syscon ASPEED_CLK_SDIO>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0-or-later
Line 2: Copyright 2019 IBM Corp.