Freescale Enhanced Secure Digital Host Controller (eSDHC) for i.MX

Schema identifier ($id): "http://devicetree.org/schemas/mmc/fsl-imx-esdhc.yaml#"

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

Maintainers (maintainers): "Shawn Guo <shawnguo@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

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

The Enhanced Secure Digital Host Controller on Freescale i.MX family provides an interface for MMC, SD, and SDIO types of memory cards.

This file documents differences between the core properties described by mmc.txt and the properties used by the sdhci-esdhc-imx driver.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "fsl,imx25-esdhc", "fsl,imx35-esdhc", "fsl,imx51-esdhc", "fsl,imx53-esdhc", "fsl,imx6q-usdhc", "fsl,imx6sl-usdhc", "fsl,imx6sx-usdhc", "fsl,imx7d-usdhc", "fsl,imx7ulp-usdhc", "fsl,imx8mm-usdhc", "fsl,imxrt1050-usdhc", "nxp,s32g2-usdhc"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "fsl,imx50-esdhc"

Item 2

Exact value (const): "fsl,imx53-esdhc"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx6sll-usdhc", "fsl,imx6ull-usdhc", "fsl,imx6ul-usdhc"

Item 2

Exact value (const): "fsl,imx6sx-usdhc"

Rule 4

Array item rules (items)

Item 1

Exact value (const): "fsl,imx7d-usdhc"

Item 2

Exact value (const): "fsl,imx6sl-usdhc"

Rule 5

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx8mq-usdhc"

Item 2

Exact value (const): "fsl,imx7d-usdhc"

Rule 6

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx8mn-usdhc", "fsl,imx8mp-usdhc", "fsl,imx8ulp-usdhc", "fsl,imx93-usdhc", "fsl,imx94-usdhc", "fsl,imx95-usdhc"

Item 2

Exact value (const): "fsl,imx8mm-usdhc"

Rule 7

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx8dxl-usdhc", "fsl,imx8qm-usdhc"

Item 2

Exact value (const): "fsl,imx8qxp-usdhc"

Rule 8

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx8mm-usdhc", "fsl,imx8mn-usdhc", "fsl,imx8mp-usdhc", "fsl,imx8qm-usdhc", "fsl,imx8qxp-usdhc"

Item 2

Exact value (const): "fsl,imx7d-usdhc"

Deprecated (deprecated): true

Rule 9

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx8mn-usdhc", "fsl,imx8mp-usdhc"

Item 2

Exact value (const): "fsl,imx8mm-usdhc"

Item 3

Exact value (const): "fsl,imx7d-usdhc"

Deprecated (deprecated): true

Rule 10

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imx8dxl-usdhc", "fsl,imx8qm-usdhc"

Item 2

Exact value (const): "fsl,imx8qxp-usdhc"

Item 3

Exact value (const): "fsl,imx7d-usdhc"

Deprecated (deprecated): true

Rule 11

Array item rules (items)

Item 1

Allowed values (enum): "fsl,imxrt1170-usdhc"

Item 2

Exact value (const): "fsl,imxrt1050-usdhc"

Rule 12

Array item rules (items)

Item 1

Exact value (const): "nxp,s32g3-usdhc"

Item 2

Exact value (const): "nxp,s32g2-usdhc"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

fsl,wp-controller — not listed as required here #

boolean, if present, indicate to use controller internal write protection.

Value type (type): "boolean"

fsl,delay-line — not listed as required here #

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

Specify the number of delay cells for override mode. This is used to set the clock delay for DLL(Delay Line) on override mode to select a proper data sampling window in case the clock quality is not good because the signal path is too long on the board. Please refer to eSDHC/uSDHC chapter, DLL (Delay Line) section in RM for details.

Default value (default): 0

voltage-ranges — not listed as required here #

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

Specify the voltage range in case there are software transparent level shifters on the outputs of the controller. Two cells are required, first cell specifies minimum slot voltage (mV), second cell specifies maximum slot voltage (mV).

Array item rules (items) #

Array item rules (items)

Item 1

value for minimum slot voltage

Item 2

value for maximum slot voltage

Maximum number of items (maxItems): 1

fsl,tuning-start-tap — not listed as required here #

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

Specify the start delay cell point when send first CMD19 in tuning procedure.

Default value (default): 0

fsl,tuning-step — not listed as required here #

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

Specify the increasing delay cell steps in tuning procedure. The uSDHC use one delay cell as default increasing step to do tuning process. This property allows user to change the tuning step to more than one delay cell which is useful for some special boards or cards when the default tuning step can't find the proper delay window within limited tuning retries.

Default value (default): 0

fsl,strobe-dll-delay-target — not listed as required here #

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

Specify the strobe dll control slave delay target. This delay target programming host controller loopback read clock, and this property allows user to change the delay target for the strobe input read clock. If not use this property, driver default set the delay target to value 7. Only eMMC HS400 mode need to take care of this property.

Default value (default): 0

clocks — not listed as required here #

Maximum number of items (maxItems): 3

Handle clocks for the sdhc controller.

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "ipg"

Item 2

Exact value (const): "ahb"

Item 3

Exact value (const): "per"

iommus — not listed as required here #

Maximum number of items (maxItems): 1

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

pinctrl-names — not listed as required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Minimum number of items (minItems): 3

Array item rules (items)

Item 1

Exact value (const): "default"

Item 2

Exact value (const): "state_100mhz"

Item 3

Exact value (const): "state_200mhz"

Item 4

Exact value (const): "sleep"

Rule 2

Minimum number of items (minItems): 2

Array item rules (items)

Item 1

Exact value (const): "default"

Item 2

Exact value (const): "state_100mhz"

Item 3

Exact value (const): "sleep"

Rule 3

Minimum number of items (minItems): 1

Array item rules (items)

Item 1

Exact value (const): "default"

Item 2

Exact value (const): "sleep"

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

mmc@70004000 {
    compatible = "fsl,imx51-esdhc";
    reg = <0x70004000 0x4000>;
    interrupts = <1>;
    fsl,wp-controller;
};

mmc@70008000 {
    compatible = "fsl,imx51-esdhc";
    reg = <0x70008000 0x4000>;
    interrupts = <2>;
    cd-gpios = <&gpio1 6 0>; /* GPIO1_6 */
    wp-gpios = <&gpio1 5 0>; /* GPIO1_5 */
};

Source notes #

Annotations retained from the schema source

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

Edit this page