Cadence SD/SDIO/eMMC Host Controller (SD4HC)

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

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

Maintainers (maintainers): "Masahiro Yamada <yamada.masahiro@socionext.com>"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "amd,pensando-elba-sd4hc", "microchip,mpfs-sd4hc", "microchip,pic64gx-sd4hc", "mobileye,eyeq-sd4hc", "socionext,uniphier-sd4hc"

Item 2

Exact value (const): "cdns,sd4hc"

reg — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Maximum number of items (maxItems): 1

cdns,phy-input-delay-sd-highspeed — not listed as required here #

Value of the delay in the input path for SD high-speed timing

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 31

cdns,phy-input-delay-legacy — not listed as required here #

Value of the delay in the input path for legacy timing

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 31

cdns,phy-input-delay-sd-uhs-sdr12 — not listed as required here #

Value of the delay in the input path for SD UHS SDR12 timing

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 31

cdns,phy-input-delay-sd-uhs-sdr25 — not listed as required here #

Value of the delay in the input path for SD UHS SDR25 timing

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 31

cdns,phy-input-delay-sd-uhs-sdr50 — not listed as required here #

Value of the delay in the input path for SD UHS SDR50 timing

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 31

cdns,phy-input-delay-sd-uhs-ddr50 — not listed as required here #

Value of the delay in the input path for SD UHS DDR50 timing

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 31

cdns,phy-input-delay-mmc-highspeed — not listed as required here #

Value of the delay in the input path for MMC high-speed timing

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 31

cdns,phy-input-delay-mmc-ddr — not listed as required here #

Value of the delay in the input path for eMMC high-speed DDR timing

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 31

cdns,phy-dll-delay-sdclk — not listed as required here #

Value of the delay introduced on the sdclk output for all modes except HS200, HS400 and HS400_ES.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 127

cdns,phy-dll-delay-sdclk-hsmmc — not listed as required here #

Value of the delay introduced on the sdclk output for HS200, HS400 and HS400_ES speed modes.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 127

cdns,phy-dll-delay-strobe — not listed as required here #

Value of the delay introduced on the dat_strobe input used in HS400 / HS400_ES speed modes.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Minimum value (minimum): 0

Maximum value (maximum): 127

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

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): sdhci-common.yaml

Rule 2 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "amd,pensando-elba-sd4hc"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Array item rules (items)

Item 1

Host controller registers

Item 2

Elba byte-lane enable register for writes

Required in this object (required): "resets"

When the condition does not match (else) #

Properties and child nodes (properties)

reg — not listed as required here

Maximum number of items (maxItems): 1

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

emmc: mmc@5a000000 {
    compatible = "socionext,uniphier-sd4hc", "cdns,sd4hc";
    reg = <0x5a000000 0x400>;
    interrupts = <0 78 4>;
    clocks = <&clk 4>;
    bus-width = <8>;
    mmc-ddr-1_8v;
    mmc-hs200-1_8v;
    mmc-hs400-1_8v;
    cdns,phy-dll-delay-sdclk = <0>;
};

Source notes #

Annotations retained from the schema source

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

Line 36: PHY DLL input delays:

Line 37: They are used to delay the data valid window, and align the window to

Line 38: sampling clock. The delay starts from 5ns (for delay parameter equal to 0)

Line 39: and it is increased by 2.5ns in each step.

Line 86: PHY DLL clock delays:

Line 87: Each delay property represents the fraction of the clock period.

Line 88: The approximate delay value will be

Line 89: (<delay property value>/128)*sdmclk_clock_period.

Edit this page