MMC Card / eMMC Generic
Schema identifier ($id): "http://devicetree.org/schemas/mmc/mmc-card.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Ulf Hansson <ulf.hansson@linaro.org>"
This documents describes the devicetree bindings for a mmc-host controller child node describing a mmc-card / an eMMC.
It's possible to define a fixed partition table for an eMMC for the user partition, the 2 BOOT partition (boot1/2) and the 4 GP (gp1/2/3/4) if supported by the eMMC.
Properties and child nodes (properties) #
compatible — required here #
Exact value (const): "mmc-card"
reg — required here #
Exact value (const): 0
broken-hpi — not listed as required here #
Shared schema rule ($ref): /schemas/types.yaml#/definitions/flag
Use this to indicate that the mmc-card has a broken hpi implementation, and that hpi should not be used.
Properties matching a name pattern (patternProperties) #
^partitions(-boot[12]|-gp[14])?$ — name matches this regular expression #
Value type (type): "object"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
true
Allowed by this rule.
Properties and child nodes (properties) #
compatible — not listed as required here
Rule for matching array elements (contains)
Exact value (
const):"fixed-partitions"
Required in this object (required): "compatible", "reg"
Properties not matched by properties or patternProperties in this schema (additionalProperties) #
false
Not allowed by this rule.
Examples (examples) #
mmc {
#address-cells = <1>;
#size-cells = <0>;
card@0 {
compatible = "mmc-card";
reg = <0>;
broken-hpi;
partitions {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "kernel"; /* Kernel */
reg = <0x0 0x2000000>; /* 32 MB */
};
partition@2000000 {
label = "rootfs";
reg = <0x2000000 0x40000000>; /* 1GB */
};
};
partitions-boot1 {
compatible = "fixed-partitions";
#address-cells = <1>;
#size-cells = <1>;
partition@0 {
label = "bl";
reg = <0x0 0x2000000>; /* 32MB */
read-only;
};
};
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: GPL-2.0