NVIDIA Tegra Secure Digital Host Controller

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

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

Maintainers (maintainers): "Thierry Reding <thierry.reding@gmail.com>", "Jon Hunter <jonathanh@nvidia.com>"

This controller on Tegra family SoCs provides an interface for MMC, SD, and SDIO types of memory cards.

This file documents differences between the core properties described by mmc-controller.yaml and the properties for the Tegra SDHCI controller.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "nvidia,tegra20-sdhci", "nvidia,tegra30-sdhci", "nvidia,tegra114-sdhci", "nvidia,tegra124-sdhci", "nvidia,tegra210-sdhci", "nvidia,tegra186-sdhci", "nvidia,tegra194-sdhci"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "nvidia,tegra132-sdhci"

Item 2

Exact value (const): "nvidia,tegra124-sdhci"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "nvidia,tegra194-sdhci", "nvidia,tegra234-sdhci"

Item 2

Exact value (const): "nvidia,tegra186-sdhci"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

assigned-clocks — not listed as required here #

true — No constraints added by this property rule.

assigned-clock-parents — not listed as required here #

true — No constraints added by this property rule.

assigned-clock-rates — not listed as required here #

true — No constraints added by this property rule.

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

clock-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

resets — required here #

Array item rules (items) #

Item 1

module reset

reset-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "sdhci"

power-gpios — not listed as required here #

specify GPIOs for power control

Maximum number of items (maxItems): 1

interconnects — not listed as required here #

Array item rules (items) #

Item 1

memory read client

Item 2

memory write client

interconnect-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "dma-mem"

Item 2

Exact value (const): "write"

iommus — not listed as required here #

Maximum number of items (maxItems): 1

operating-points-v2 — not listed as required here #

true — No constraints added by this property rule.

power-domains — not listed as required here #

Array item rules (items) #

Item 1

phandle to the core power domain

nvidia,default-tap — not listed as required here #

Specify the default inbound sampling clock trimmer value for non-tunable modes. The values are used for compensating trace length differences by adjusting the sampling point. The values are programmed to the Vendor Clock Control Register. Please refer to the reference manual of the SoC for correct values. The DQS trim values are only used on controllers which support HS400 timing. Only SDMMC4 on Tegra210 and Tegra186 supports HS400.

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

nvidia,default-trim — not listed as required here #

Specify the default outbound clock trimmer value.

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

nvidia,dqs-trim — not listed as required here #

Specify DQS trim value for HS400 timing.

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

nvidia,pad-autocal-pull-down-offset-1v8 — not listed as required here #

Specify drive strength calibration offsets for 1.8 V signaling modes.

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

nvidia,pad-autocal-pull-down-offset-1v8-timeout — not listed as required here #

Specify drive strength used as a fallback in case the automatic calibration times out on a 1.8 V signaling mode.

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

nvidia,pad-autocal-pull-down-offset-3v3 — not listed as required here #

Specify drive strength calibration offsets for 3.3 V signaling modes.

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

nvidia,pad-autocal-pull-down-offset-3v3-timeout — not listed as required here #

Specify drive strength used as a fallback in case the automatic calibration times out on a 3.3 V signaling mode.

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

nvidia,pad-autocal-pull-down-offset-sdr104 — not listed as required here #

Specify drive strength calibration offsets for SDR104 mode.

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

nvidia,pad-autocal-pull-down-offset-hs400 — not listed as required here #

Specify drive strength calibration offsets for HS400 mode.

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

nvidia,pad-autocal-pull-up-offset-1v8 — not listed as required here #

Specify drive strength calibration offsets for 1.8 V signaling modes.

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

nvidia,pad-autocal-pull-up-offset-1v8-timeout — not listed as required here #

Specify drive strength used as a fallback in case the automatic calibration times out on a 1.8 V signaling mode.

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

nvidia,pad-autocal-pull-up-offset-3v3 — not listed as required here #

Specify drive strength calibration offsets for 3.3 V signaling modes. The property values are drive codes which are programmed into the PD_OFFSET and PU_OFFSET sections of the SDHCI_TEGRA_AUTO_CAL_CONFIG register. A higher value corresponds to higher drive strength. Please refer to the reference manual of the SoC for correct values. The SDR104 and HS400 timing specific values are used in corresponding modes if specified.

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

nvidia,pad-autocal-pull-up-offset-3v3-timeout — not listed as required here #

Specify drive strength used as a fallback in case the automatic calibration times out on a 3.3 V signaling mode.

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

nvidia,pad-autocal-pull-up-offset-sdr104 — not listed as required here #

Specify drive strength calibration offsets for SDR104 mode.

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

nvidia,pad-autocal-pull-up-offset-hs400 — not listed as required here #

Specify drive strength calibration offsets for HS400 mode.

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

nvidia,only-1-8v — not listed as required here #

The presence of this property indicates that the controller operates at a 1.8 V fixed I/O voltage.

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

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "resets", "reset-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): "nvidia,tegra20-sdhci", "nvidia,tegra30-sdhci", "nvidia,tegra114-sdhci", "nvidia,tegra124-sdhci"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

module clock

When the condition does not match (else) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

module clock

Item 2

timeout clock

clock-names — required here

Array item rules (items)

Item 1

Exact value (const): "sdhci"

Item 2

Exact value (const): "tmclk"

Required in this object (required): "clock-names"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "nvidia,tegra210-sdhci"

When the condition matches (then) #

Properties and child nodes (properties)

pinctrl-names — not listed as required here

Exactly one of these rules must match (oneOf)

Rule 1

Array item rules (items)

Item 1

Exact value (const): "sdmmc-3v3"

pad configuration for 3.3 V

Item 2

Exact value (const): "sdmmc-1v8"

pad configuration for 1.8 V

Item 3

Exact value (const): "sdmmc-3v3-drv"

pull-up/down configuration for 3.3 V

Item 4

Exact value (const): "sdmmc-1v8-drv"

pull-up/down configuration for 1.8 V

Rule 2

Array item rules (items)

Item 1

Exact value (const): "sdmmc-3v3-drv"

pull-up/down configuration for 3.3 V

Item 2

Exact value (const): "sdmmc-1v8-drv"

pull-up/down configuration for 1.8 V

Rule 3

Array item rules (items)

Item 1

Exact value (const): "sdmmc-1v8-drv"

pull-up/down configuration for 1.8 V

Required in this object (required): "clock-names"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "nvidia,tegra186-sdhci", "nvidia,tegra194-sdhci"

When the condition matches (then) #

Properties and child nodes (properties)

pinctrl-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "sdmmc-3v3"

pad configuration for 3.3 V

Item 2

Exact value (const): "sdmmc-1v8"

pad configuration for 1.8 V

Required in this object (required): "clock-names"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

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

mmc@c8000200 {
    compatible = "nvidia,tegra20-sdhci";
    reg = <0xc8000200 0x200>;
    interrupts = <47>;
    clocks = <&tegra_car 14>;
    resets = <&tegra_car 14>;
    reset-names = "sdhci";
    cd-gpios = <&gpio 69 0>; /* gpio PI5 */
    wp-gpios = <&gpio 57 0>; /* gpio PH1 */
    power-gpios = <&gpio 155 0>; /* gpio PT3 */
    bus-width = <8>;
};
#include <dt-bindings/clock/tegra210-car.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>

mmc@700b0000 {
    compatible = "nvidia,tegra210-sdhci";
    reg = <0x700b0000 0x200>;
    interrupts = <GIC_SPI 14 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&tegra_car TEGRA210_CLK_SDMMC1>,
             <&tegra_car TEGRA210_CLK_SDMMC_LEGACY>;
    clock-names = "sdhci", "tmclk";
    resets = <&tegra_car 14>;
    reset-names = "sdhci";
    pinctrl-names = "sdmmc-3v3", "sdmmc-1v8",
                    "sdmmc-3v3-drv", "sdmmc-1v8-drv";
    pinctrl-0 = <&sdmmc1_3v3>;
    pinctrl-1 = <&sdmmc1_1v8>;
    pinctrl-2 = <&sdmmc1_3v3_drv>;
    pinctrl-3 = <&sdmmc1_1v8_drv>;
    nvidia,pad-autocal-pull-up-offset-3v3 = <0x00>;
    nvidia,pad-autocal-pull-down-offset-3v3 = <0x7d>;
    nvidia,pad-autocal-pull-up-offset-1v8 = <0x7b>;
    nvidia,pad-autocal-pull-down-offset-1v8 = <0x7b>;
    nvidia,default-tap = <0x2>;
    nvidia,default-trim = <0x4>;
    assigned-clocks = <&tegra_car TEGRA210_CLK_SDMMC4>,
                      <&tegra_car TEGRA210_CLK_PLL_C4_OUT0>,
                      <&tegra_car TEGRA210_CLK_PLL_C4>;
    assigned-clock-parents = <&tegra_car TEGRA210_CLK_PLL_C4_OUT0>;
    assigned-clock-rates = <200000000>, <1000000000>, <1000000000>;
};

Source notes #

Annotations retained from the schema source

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

Line 79: read

Edit this page