MMC Controller & Slots Common Properties

Schema identifier ($id): "http://devicetree.org/schemas/mmc/mmc-controller-common.yaml#"

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

Maintainers (maintainers): "Ulf Hansson <ulf.hansson@linaro.org>"

These properties are common to multiple MMC host controllers and the possible slots or ports for multi-slot controllers.

Properties and child nodes (properties) #

#address-cells — not listed as required here #

Exact value (const): 1

The cell is the SDIO function number if a function subnode is used.

#size-cells — not listed as required here #

Exact value (const): 0

broken-cd — not listed as required here #

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

There is no card detection available; polling must be used.

cd-gpios — not listed as required here #

Maximum number of items (maxItems): 1

The card detection will be done using the GPIO provided.

non-removable — not listed as required here #

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

Non-removable slot (like eMMC); assume always present.

wp-inverted — not listed as required here #

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

The Write Protect line polarity is inverted.

cd-inverted — not listed as required here #

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

The CD line polarity is inverted.

bus-width — not listed as required here #

Number of data lines.

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

Allowed values (enum): 1, 4, 8

Default value (default): 1

max-frequency — not listed as required here #

Maximum operating frequency of the bus:
  - for eMMC, the maximum supported frequency is 200MHz,
  - for SD/SDIO cards the SDR104 mode has a max supported
    frequency of 208MHz,
  - some mmc host controllers do support a max frequency up to
    384MHz.
So, lets keep the maximum supported value here.

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

Minimum value (minimum): 400000

Maximum value (maximum): 384000000

max-sd-hs-hz — not listed as required here #

Maximum frequency (in Hz) to be used for SD cards operating in High-Speed (HS) mode.

Minimum value (minimum): 400000

Maximum value (maximum): 50000000

Default value (default): 50000000

disable-wp — not listed as required here #

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

When set, no physical write-protect line is present. This property should only be specified when the controller has a dedicated write-protect detection logic. If a GPIO is always used for the write-protect detection logic, it is sufficient to not specify the wp-gpios property in the absence of a write-protect line. Not used in combination with eMMC or SDIO.

wp-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO to use for the write-protect detection.

cd-debounce-delay-ms — not listed as required here #

Set delay time before detecting card after card insert interrupt.

no-1-8-v — not listed as required here #

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

When specified, denotes that 1.8V card voltage is not supported on this system, even if the controller claims it.

cap-sd-highspeed — not listed as required here #

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

SD high-speed timing is supported.

cap-mmc-highspeed — not listed as required here #

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

MMC high-speed timing is supported.

sd-uhs-sdr12 — not listed as required here #

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

SD UHS SDR12 speed is supported.

sd-uhs-sdr25 — not listed as required here #

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

SD UHS SDR25 speed is supported.

sd-uhs-sdr50 — not listed as required here #

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

SD UHS SDR50 speed is supported.

sd-uhs-sdr104 — not listed as required here #

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

SD UHS SDR104 speed is supported.

sd-uhs-ddr50 — not listed as required here #

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

SD UHS DDR50 speed is supported.

cap-power-off-card — not listed as required here #

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

Powering off the card is safe.

cap-mmc-hw-reset — not listed as required here #

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

eMMC hardware reset is supported

cap-sdio-irq — not listed as required here #

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

enable SDIO IRQ signalling on this interface

full-pwr-cycle — not listed as required here #

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

Full power cycle of the card is supported.

full-pwr-cycle-in-suspend — not listed as required here #

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

Full power cycle of the card in suspend is supported.

mmc-ddr-1_2v — not listed as required here #

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

eMMC high-speed DDR mode (1.2V I/O) is supported.

mmc-ddr-1_8v — not listed as required here #

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

eMMC high-speed DDR mode (1.8V I/O) is supported.

mmc-ddr-3_3v — not listed as required here #

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

eMMC high-speed DDR mode (3.3V I/O) is supported.

mmc-hs200-1_2v — not listed as required here #

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

eMMC HS200 mode (1.2V I/O) is supported.

mmc-hs200-1_8v — not listed as required here #

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

eMMC HS200 mode (1.8V I/O) is supported.

mmc-hs400-1_2v — not listed as required here #

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

eMMC HS400 mode (1.2V I/O) is supported.

mmc-hs400-1_8v — not listed as required here #

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

eMMC HS400 mode (1.8V I/O) is supported.

mmc-hs400-enhanced-strobe — not listed as required here #

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

eMMC HS400 enhanced strobe mode is supported

no-mmc-hs400 — not listed as required here #

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

All eMMC HS400 modes are not supported.

dsr — not listed as required here #

Value the card Driver Stage Register (DSR) should be programmed with.

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

Minimum value (minimum): 0

Maximum value (maximum): 65535

no-sdio — not listed as required here #

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

Controller is limited to send SDIO commands during initialization.

no-sd — not listed as required here #

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

Controller is limited to send SD commands during initialization.

no-mmc — not listed as required here #

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

Controller is limited to send MMC commands during initialization.

fixed-emmc-driver-type — not listed as required here #

For non-removable eMMC, enforce this driver type. The value is the driver type as specified in the eMMC specification (table 206 in spec version 5.1)

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

Minimum value (minimum): 0

Maximum value (maximum): 4

post-power-on-delay-ms — not listed as required here #

It was invented for MMC pwrseq-simple which could be referred to mmc-pwrseq-simple.yaml. But now it\'s reused as a tunable delay waiting for I/O signalling and card power supply to be stable, regardless of whether pwrseq-simple is used. Default to 10ms if not available.

Default value (default): 10

supports-cqe — not listed as required here #

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

The presence of this property indicates that the corresponding MMC host controller supports HW command queue feature.

disable-cqe-dcmd — not listed as required here #

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

The presence of this property indicates that the MMC controller\'s command queue engine (CQE) does not support direct commands (DCMDs).

keep-power-in-suspend — not listed as required here #

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

SDIO only. Preserves card power during a suspend/resume cycle.

wakeup-source — not listed as required here #

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

SDIO only. Enables wake up of host system on SDIO IRQ assertion.

vmmc-supply — not listed as required here #

Supply for the card power

vqmmc-supply — not listed as required here #

Supply for the bus IO line power, such as a level shifter. If the level shifter is controlled by a GPIO line, this shall be modeled as a "regulator-fixed" with a GPIO line for switching the level shifter on/off.

mmc-pwrseq — not listed as required here #

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

System-on-Chip designs may specify a specific MMC power sequence. To successfully detect an (e)MMC/SD/SDIO card, that power sequence must be maintained while initializing the card.

Properties matching a name pattern (patternProperties) #

^.*@[0-9]+$ — name matches this regular expression #

Value type (type): "object"

On embedded systems the cards connected to a host may need additional properties. These can be specified in subnodes to the host controller node. The subnodes are identified by the standard \'reg\' property. Which information exactly can be specified depends on the bindings for the SDIO function driver for the subnode, as specified by the compatible string.

Properties and child nodes (properties) #

compatible — not listed as required here

Name of SDIO function following generic names recommended practice

reg — required here

Array item rules (items)

Item 1

Minimum value (minimum): 0

Maximum value (maximum): 7

Must contain the SDIO function number of the function this subnode describes. A value of 0 denotes the memory SD function, values from 1 to 7 denote the SDIO functions.

Required in this object (required): "reg"

^clk-phase-(legacy|sd-hs|mmc-(hs|hs[24]00|ddr52)|uhs-(sdr(12|25|50|104)|ddr50))$ — name matches this regular expression #

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

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

Array item rules (items) #

Minimum value (minimum): 0

Maximum value (maximum): 359

Set the clock (phase) delays which are to be configured in the controller while switching to particular speed mode. These values are in pair of degrees.

Property dependencies (dependencies) #

cd-debounce-delay-ms — applies when this property is present #

Also requires: "cd-gpios"

fixed-emmc-driver-type — applies when this property is present #

Also requires: "non-removable"

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

true

Allowed by this rule.

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: GPL-2.0

Line 25: Card Detection.

Line 26: If none of these properties are supplied, the host native card

Line 27: detect will be used. Only one of them should be provided.

Line 44: *NOTE* on CD and WP polarity. To use common for all SD/MMC host

Line 45: controllers line polarity properties, we have to fix the meaning

Line 46: of the "normal" and "inverted" line levels. We choose to follow

Line 47: the SDHCI standard, which specifies both those lines as "active

Line 48: low." Therefore, using the "cd-inverted" property means, that the

Line 49: CD line is active high, i.e. it is high, when a card is

Line 50: inserted. Similar logic applies to the "wp-inverted" property.

Line 51:

Line 52: CD and WP lines can be implemented on the hardware in one of two

Line 53: ways: as GPIOs, specified in cd-gpios and wp-gpios properties, or

Line 54: as dedicated pins. Polarity of dedicated pins can be specified,

Line 55: using *-inverted properties. GPIO polarity can also be specified

Line 56: using the GPIO_ACTIVE_LOW flag. This creates an ambiguity in the

Line 57: latter case. We choose to use the XOR logic for GPIO CD and WP

Line 58: lines. This means, the two properties are "superimposed," for

Line 59: example leaving the GPIO_ACTIVE_LOW flag clear and specifying the

Line 60: respective *-inverted property results in a

Line 61: double-inversion and actually means the "normal" line polarity is

Line 62: in effect.

Line 73: Other properties

Edit this page