Samsung SoC SDHCI Controller

Schema identifier ($id): "http://devicetree.org/schemas/mmc/samsung,s3c6410-sdhci.yaml#"

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

Maintainers (maintainers): "Jaehoon Chung <jh80.chung@samsung.com>", "Krzysztof Kozlowski <krzk@kernel.org>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "samsung,s3c6410-sdhci", "samsung,exynos4210-sdhci"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 5

clock-names — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

Exact value (const): "hsmmc"

Item 2

String pattern (pattern): "^mmc_busclk.[0-3]$"

Item 3

String pattern (pattern): "^mmc_busclk.[0-3]$"

Item 4

String pattern (pattern): "^mmc_busclk.[0-3]$"

Item 5

String pattern (pattern): "^mmc_busclk.[0-3]$"

interrupts — required here #

Maximum number of items (maxItems): 1

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

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "samsung,exynos4210-sdhci"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Maximum number of items (maxItems): 2

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "hsmmc"

Item 2

Exact value (const): "mmc_busclk.2"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/exynos4.h>
#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

mmc@12510000 {
    compatible = "samsung,exynos4210-sdhci";
    reg = <0x12510000 0x100>;
    interrupts = <GIC_SPI 73 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&clock CLK_SDMMC0>, <&clock CLK_SCLK_MMC0>;
    clock-names = "hsmmc", "mmc_busclk.2";
    bus-width = <4>;
    cd-gpios = <&gpx3 4 GPIO_ACTIVE_LOW>;
    pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_bus4 &sdhci2_cd>;
    pinctrl-names = "default";
    vmmc-supply = <&ldo21_reg>;
};

Source notes #

Annotations retained from the schema source

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

Edit this page