Peios Learn
Documentation

Peios

Peios Peios Kernel Universal Directory Project

Developer Tools

Trail Acta Provium clackatoo CAF GCSL Pekit

Applications

Framewright

Standards and Conventions

Standards and Conventions Peios Specifications
Peios Kernel

Mmc bindings

Single-page view · as markdown

Allwinner A10 MMC Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

Schema identifier ($id): "http://devicetree.org/schemas/mmc/allwinner,sun4i-a10-mmc.yaml#"

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

All of these rules must match (allOf) #

Rule 1 #

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

Maintainers (maintainers): "Chen-Yu Tsai <wens@csie.org>", "Maxime Ripard <mripard@kernel.org>"

Properties and child nodes (properties) #

#address-cells — not listed as required here #

true — No constraints added by this property rule.

#size-cells — not listed as required here #

true — No constraints added by this property rule.

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "allwinner,sun4i-a10-mmc"

Rule 2

Exact value (const): "allwinner,sun5i-a13-mmc"

Rule 3

Exact value (const): "allwinner,sun7i-a20-mmc"

Rule 4

Exact value (const): "allwinner,sun8i-a83t-emmc"

Rule 5

Exact value (const): "allwinner,sun9i-a80-mmc"

Rule 6

Exact value (const): "allwinner,sun20i-d1-mmc"

Rule 7

Exact value (const): "allwinner,sun50i-a64-emmc"

Rule 8

Exact value (const): "allwinner,sun50i-a64-mmc"

Rule 9

Exact value (const): "allwinner,sun50i-a100-emmc"

Rule 10

Exact value (const): "allwinner,sun50i-a100-mmc"

Rule 11

Array item rules (items)

Item 1

Allowed values (enum): "allwinner,sun8i-a83t-mmc", "allwinner,suniv-f1c100s-mmc"

Item 2

Exact value (const): "allwinner,sun7i-a20-mmc"

Rule 12

Array item rules (items)

Item 1

Allowed values (enum): "allwinner,sun8i-r40-emmc", "allwinner,sun50i-h5-emmc", "allwinner,sun50i-h6-emmc"

Item 2

Exact value (const): "allwinner,sun50i-a64-emmc"

Rule 13

Array item rules (items)

Item 1

Allowed values (enum): "allwinner,sun8i-r40-mmc", "allwinner,sun50i-h5-mmc", "allwinner,sun50i-h6-mmc"

Item 2

Exact value (const): "allwinner,sun50i-a64-mmc"

Rule 14

Array item rules (items)

Item 1

Allowed values (enum): "allwinner,sun20i-d1-emmc", "allwinner,sun50i-h616-emmc", "allwinner,sun55i-a523-emmc"

Item 2

Exact value (const): "allwinner,sun50i-a100-emmc"

Rule 15

Array item rules (items)

Item 1

Exact value (const): "allwinner,sun50i-h616-mmc"

Item 2

Exact value (const): "allwinner,sun50i-a100-mmc"

Rule 16

Array item rules (items)

Item 1

Exact value (const): "allwinner,sun55i-a523-mmc"

Item 2

Exact value (const): "allwinner,sun20i-d1-mmc"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

Bus Clock

Item 2

Module Clock

Item 3

Output Clock

Item 4

Sample Clock

clock-names — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

Exact value (const): "ahb"

Item 2

Exact value (const): "mmc"

Item 3

Exact value (const): "output"

Item 4

Exact value (const): "sample"

resets — not listed as required here #

Maximum number of items (maxItems): 1

reset-names — not listed as required here #

Exact value (const): "ahb"

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

mmc0: mmc@1c0f000 {
    compatible = "allwinner,sun5i-a13-mmc";
    reg = <0x01c0f000 0x1000>;
    clocks = <&ahb_gates 8>, <&mmc0_clk>;
    clock-names = "ahb", "mmc";
    interrupts = <32>;
    bus-width = <4>;
    cd-gpios = <&pio 7 1 0>;
};

Source notes #

Annotations retained from the schema source

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

Amlogic SD / eMMC controller for S905/GXBB family SoCs

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

Schema identifier ($id): "http://devicetree.org/schemas/mmc/amlogic,meson-gx-mmc.yaml#"

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

The MMC 5.1 compliant host controller on Amlogic provides the interface for SD, eMMC and SDIO devices

Maintainers (maintainers): "Neil Armstrong <neil.armstrong@linaro.org>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "amlogic,meson-axg-mmc"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "amlogic,meson-gx-mmc"

Item 2

Exact value (const): "amlogic,meson-gxbb-mmc"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

mmc controller instance

Item 2

card detect

clocks — required here #

Maximum number of items (maxItems): 3

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "core"

Item 2

Exact value (const): "clkin0"

Item 3

Exact value (const): "clkin1"

resets — required here #

Maximum number of items (maxItems): 1

amlogic,dram-access-quirk — not listed as required here #

Value type (type): "boolean"

set when controller's internal DMA engine cannot access the DRAM memory, like on the G12A dedicated SDIO controller.

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
mmc@70000 {
    compatible = "amlogic,meson-gx-mmc", "amlogic,meson-gxbb-mmc";
    reg = <0x70000 0x2000>;
    interrupts = <GIC_SPI 216 IRQ_TYPE_EDGE_RISING>;
    clocks = <&clk_mmc>, <&xtal>, <&clk_div>;
    clock-names = "core", "clkin0", "clkin1";
    pinctrl-0 = <&emm_pins>;
    resets = <&reset_mmc>;
};

Source notes #

Annotations retained from the schema source

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

Amlogic Meson SDHC controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

Schema identifier ($id): "http://devicetree.org/schemas/mmc/amlogic,meson-mx-sdhc.yaml#"

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

All of these rules must match (allOf) #

Rule 1 #

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

Maintainers (maintainers): "Martin Blumenstingl <martin.blumenstingl@googlemail.com>"

The SDHC MMC host controller on Amlogic SoCs provides an eMMC and MMC card interface with 1/4/8-bit bus width. It supports eMMC spec 4.4x/4.5x including HS200 (up to 100MHz clock).

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "amlogic,meson8-sdhc", "amlogic,meson8b-sdhc", "amlogic,meson8m2-sdhc"

Item 2

Exact value (const): "amlogic,meson-mx-sdhc"

reg — required here #

Minimum number of items (minItems): 1

interrupts — required here #

Minimum number of items (minItems): 1

clocks — required here #

Minimum number of items (minItems): 5

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "clkin0"

Item 2

Exact value (const): "clkin1"

Item 3

Exact value (const): "clkin2"

Item 4

Exact value (const): "clkin3"

Item 5

Exact value (const): "pclk"

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

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

sdhc: mmc@8e00 {
  compatible = "amlogic,meson8-sdhc", "amlogic,meson-mx-sdhc";
  reg = <0x8e00 0x42>;
  interrupts = <GIC_SPI 78 IRQ_TYPE_EDGE_RISING>;
  clocks = <&xtal>,
           <&fclk_div4>,
           <&fclk_div3>,
           <&fclk_div5>,
           <&sdhc_pclk>;
  clock-names = "clkin0", "clkin1", "clkin2", "clkin3", "pclk";
};

Source notes #

Annotations retained from the schema source

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

Amlogic Meson6, Meson8 and Meson8b SDIO/MMC controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

Schema identifier ($id): "http://devicetree.org/schemas/mmc/amlogic,meson-mx-sdio.yaml#"

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

The highspeed MMC host controller on Amlogic SoCs provides an interface for MMC, SD, SDIO and SDHC types of memory cards.

Supported maximum speeds are the ones of the eMMC standard 4.41 as well as the speed of SD standard 2.0.

The hardware provides an internal "mux" which allows up to three slots to be controlled. Only one slot can be accessed at a time.

Maintainers (maintainers): "Neil Armstrong <neil.armstrong@linaro.org>"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "amlogic,meson8-sdio", "amlogic,meson8b-sdio"

Item 2

Exact value (const): "amlogic,meson-mx-sdio"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 2

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "core"

Item 2

Exact value (const): "clkin"

#address-cells — required here #

Exact value (const): 1

#size-cells — required here #

Exact value (const): 0

Properties matching a name pattern (patternProperties) #

slot@[0-2]$ — name matches this regular expression #

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

A node for each slot provided by the MMC controller

Properties and child nodes (properties) #

reg — not listed as required here

Allowed values (enum): 0, 1, 2

bus-width — not listed as required here

Allowed values (enum): 1, 4

Required in this object (required): "compatible"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

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

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
mmc@c1108c20 {
    compatible = "amlogic,meson8-sdio", "amlogic,meson-mx-sdio";
    reg = <0xc1108c20 0x20>;
    interrupts = <GIC_SPI 28 IRQ_TYPE_EDGE_RISING>;
    clocks = <&clk_core>, <&clk_in>;
    clock-names = "core", "clkin";
    #address-cells = <1>;
    #size-cells = <0>;

    slot@1 {
        compatible = "mmc-slot";
        reg = <1>;
        bus-width = <4>;
    };
};

Source notes #

Annotations retained from the schema source

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

Arasan SDHCI Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

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

Maintainers (maintainers): "Adrian Hunter <adrian.hunter@intel.com>"

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)

Exact value (const): "arasan,sdhci-5.1"

When the condition matches (then) #

Required in this object (required): "phys", "phy-names"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "xlnx,zynqmp-8.9a", "xlnx,versal-8.9a", "xlnx,versal-net-emmc"

When the condition matches (then) #

Properties and child nodes (properties)

clock-output-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): "clk_out_sd0"

Item 2

Exact value (const): "clk_in_sd0"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "clk_out_sd1"

Item 2

Exact value (const): "clk_in_sd1"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "renesas,rzn1-sdhci"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Minimum number of items (minItems): 2

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "arasan,sdhci-8.9a"

Rule 2

Exact value (const): "arasan,sdhci-4.9a"

Rule 3

Exact value (const): "arasan,sdhci-5.1"

Rule 4

Array item rules (items)

Item 1

Exact value (const): "renesas,r9a06g032-sdhci"

Item 2

Exact value (const): "renesas,rzn1-sdhci"

Item 3

Exact value (const): "arasan,sdhci-8.9a"

Rule 5

Array item rules (items)

Item 1

Exact value (const): "rockchip,rk3399-sdhci-5.1"

Item 2

Exact value (const): "arasan,sdhci-5.1"

For this device it is strongly suggested to include arasan,soc-ctl-syscon.

Rule 6

Array item rules (items)

Item 1

Exact value (const): "xlnx,zynqmp-8.9a"

Item 2

Exact value (const): "arasan,sdhci-8.9a"

For this device it is strongly suggested to include clock-output-names and '#clock-cells'.

Rule 7

Array item rules (items)

Item 1

Exact value (const): "xlnx,versal-8.9a"

Item 2

Exact value (const): "arasan,sdhci-8.9a"

For this device it is strongly suggested to include clock-output-names and '#clock-cells'.

Rule 8

Exact value (const): "xlnx,versal-net-emmc"

For this device it is strongly suggested to include clock-output-names and '#clock-cells'.

Rule 9

Array item rules (items)

Item 1

Exact value (const): "intel,lgm-sdhci-5.1-emmc"

Item 2

Exact value (const): "arasan,sdhci-5.1"

For this device it is strongly suggested to include arasan,soc-ctl-syscon.

Rule 10

Array item rules (items)

Item 1

Exact value (const): "intel,lgm-sdhci-5.1-sdxc"

Item 2

Exact value (const): "arasan,sdhci-5.1"

For this device it is strongly suggested to include arasan,soc-ctl-syscon.

Rule 11

Array item rules (items)

Item 1

Exact value (const): "intel,keembay-sdhci-5.1-emmc"

Item 2

Exact value (const): "arasan,sdhci-5.1"

For this device it is strongly suggested to include arasan,soc-ctl-syscon.

Rule 12

Exact value (const): "intel,keembay-sdhci-5.1-sd"

For this device it is strongly suggested to include arasan,soc-ctl-syscon.

Rule 13

Exact value (const): "intel,keembay-sdhci-5.1-sdio"

For this device it is strongly suggested to include arasan,soc-ctl-syscon.

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 3

clock-names — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

Exact value (const): "clk_xin"

Item 2

Exact value (const): "clk_ahb"

Item 3

Exact value (const): "gate"

interrupts — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

interrupt-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "int"

Item 2

Exact value (const): "wakeup"

phys — not listed as required here #

Maximum number of items (maxItems): 1

phy-names — not listed as required here #

Exact value (const): "phy_arasan"

resets — not listed as required here #

Maximum number of items (maxItems): 1

arasan,soc-ctl-syscon — not listed as required here #

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

A phandle to a syscon device (see ../mfd/syscon.txt) used to access core corecfg registers. Offsets of registers in this syscon are determined based on the main compatible string for the device.

clock-output-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

Name of the card clock which will be exposed by this device.

#clock-cells — not listed as required here #

Allowed values (enum): 0, 1

With this property in place we will export one or two clocks representing the Card Clock. These clocks are expected to be consumed by our PHY.

xlnx,fails-without-test-cd — not listed as required here #

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

When present, the controller doesn't work when the CD line is not connected properly, and the line is not connected properly. Test mode can be used to force the controller to function.

xlnx,int-clock-stable-broken — not listed as required here #

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

When present, the controller always reports that the internal clock is stable even when it is not.

xlnx,mio-bank — not listed as required here #

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

Allowed values (enum): 0, 1, 2

Default value (default): 0

The MIO bank number in which the command and data lines are configured.

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

Property dependencies (dependencies) #

#clock-cells — applies when this property is present #

Also requires: "clock-output-names"

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

mmc@e0100000 {
      compatible = "arasan,sdhci-8.9a";
      reg = <0xe0100000 0x1000>;
      clock-names = "clk_xin", "clk_ahb";
      clocks = <&clkc 21>, <&clkc 32>;
      interrupt-parent = <&gic>;
      interrupts = <0 24 4>;
};
mmc@e2800000 {
      compatible = "arasan,sdhci-5.1";
      reg = <0xe2800000 0x1000>;
      clock-names = "clk_xin", "clk_ahb";
      clocks = <&cru 8>, <&cru 18>;
      interrupt-parent = <&gic>;
      interrupts = <0 24 4>;
      phys = <&emmc_phy>;
      phy-names = "phy_arasan";
};
#include <dt-bindings/clock/rk3399-cru.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
mmc@fe330000 {
      compatible = "rockchip,rk3399-sdhci-5.1", "arasan,sdhci-5.1";
      reg = <0xfe330000 0x10000>;
      interrupts = <GIC_SPI 11 IRQ_TYPE_LEVEL_HIGH>;
      clocks = <&cru SCLK_EMMC>, <&cru ACLK_EMMC>;
      clock-names = "clk_xin", "clk_ahb";
      arasan,soc-ctl-syscon = <&grf>;
      assigned-clocks = <&cru SCLK_EMMC>;
      assigned-clock-rates = <200000000>;
      clock-output-names = "emmc_cardclock";
      phys = <&emmc_phy>;
      phy-names = "phy_arasan";
      #clock-cells = <0>;
};
mmc@ff160000 {
      compatible = "xlnx,zynqmp-8.9a", "arasan,sdhci-8.9a";
      interrupt-parent = <&gic>;
      interrupts = <0 48 4>;
      reg = <0xff160000 0x1000>;
      clocks = <&clk200>, <&clk200>, <&clk1200>;
      clock-names = "clk_xin", "clk_ahb", "gate";
      clock-output-names = "clk_out_sd0", "clk_in_sd0";
      #clock-cells = <1>;
      clk-phase-sd-hs = <63>, <72>;
};
mmc@f1040000 {
      compatible = "xlnx,versal-8.9a", "arasan,sdhci-8.9a";
      interrupt-parent = <&gic>;
      interrupts = <0 126 4>;
      reg = <0xf1040000 0x10000>;
      clocks = <&clk200>, <&clk200>, <&clk1200>;
      clock-names = "clk_xin", "clk_ahb", "gate";
      clock-output-names = "clk_out_sd0", "clk_in_sd0";
      #clock-cells = <1>;
      clk-phase-sd-hs = <132>, <60>;
};
#define LGM_CLK_EMMC5
#define LGM_CLK_NGI
#define LGM_GCLK_EMMC
mmc@ec700000 {
      compatible = "intel,lgm-sdhci-5.1-emmc", "arasan,sdhci-5.1";
      reg = <0xec700000 0x300>;
      interrupt-parent = <&ioapic1>;
      interrupts = <44 1>;
      clocks = <&cgu0 LGM_CLK_EMMC5>, <&cgu0 LGM_CLK_NGI>,
               <&cgu0 LGM_GCLK_EMMC>;
      clock-names = "clk_xin", "clk_ahb", "gate";
      clock-output-names = "emmc_cardclock";
      #clock-cells = <0>;
      phys = <&emmc_phy>;
      phy-names = "phy_arasan";
      arasan,soc-ctl-syscon = <&sysconf>;
};
#define LGM_CLK_SDIO
#define LGM_GCLK_SDXC
mmc@ec600000 {
      compatible = "intel,lgm-sdhci-5.1-sdxc", "arasan,sdhci-5.1";
      reg = <0xec600000 0x300>;
      interrupt-parent = <&ioapic1>;
      interrupts = <43 1>;
      clocks = <&cgu0 LGM_CLK_SDIO>, <&cgu0 LGM_CLK_NGI>,
               <&cgu0 LGM_GCLK_SDXC>;
      clock-names = "clk_xin", "clk_ahb", "gate";
      clock-output-names = "sdxc_cardclock";
      #clock-cells = <0>;
      phys = <&sdxc_phy>;
      phy-names = "phy_arasan";
      arasan,soc-ctl-syscon = <&sysconf>;
};
#define KEEM_BAY_PSS_AUX_EMMC
#define KEEM_BAY_PSS_EMMC
mmc@33000000 {
      compatible = "intel,keembay-sdhci-5.1-emmc", "arasan,sdhci-5.1";
      interrupts = <GIC_SPI 82 IRQ_TYPE_LEVEL_HIGH>;
      reg = <0x33000000 0x300>;
      clock-names = "clk_xin", "clk_ahb";
      clocks = <&scmi_clk KEEM_BAY_PSS_AUX_EMMC>,
               <&scmi_clk KEEM_BAY_PSS_EMMC>;
      phys = <&emmc_phy>;
      phy-names = "phy_arasan";
      assigned-clocks = <&scmi_clk KEEM_BAY_PSS_AUX_EMMC>;
      assigned-clock-rates = <200000000>;
      clock-output-names = "emmc_cardclock";
      #clock-cells = <0>;
      arasan,soc-ctl-syscon = <&mmc_phy_syscon>;
};
#define KEEM_BAY_PSS_AUX_SD0
#define KEEM_BAY_PSS_SD0
mmc@31000000 {
      compatible = "intel,keembay-sdhci-5.1-sd";
      interrupts = <GIC_SPI 83 IRQ_TYPE_LEVEL_HIGH>;
      reg = <0x31000000 0x300>;
      clock-names = "clk_xin", "clk_ahb";
      clocks = <&scmi_clk KEEM_BAY_PSS_AUX_SD0>,
               <&scmi_clk KEEM_BAY_PSS_SD0>;
      arasan,soc-ctl-syscon = <&sd0_phy_syscon>;
};

Source notes #

Annotations retained from the schema source

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

Line 54: generic Arasan SDHCI 8.9a PHY

Line 55: generic Arasan SDHCI 4.9a PHY

Line 56: generic Arasan SDHCI 5.1 PHY

Line 58: Renesas RZ/N1D SoC

Line 59: Renesas RZ/N1 family

Line 62: rk3399 eMMC PHY

Line 68: ZynqMP SDHCI 8.9a PHY

Line 74: Versal SDHCI 8.9a PHY

Line 79: Versal Net eMMC PHY

Line 84: Intel LGM eMMC PHY

Line 90: Intel LGM SDXC PHY

Line 96: Intel Keem Bay eMMC PHY

Line 101: Intel Keem Bay SD controller

Line 105: Intel Keem Bay SDIO controller

ARM PrimeCell MultiMedia Card Interface (MMCI) PL180 and PL181

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

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

Maintainers (maintainers): "Linus Walleij <linusw@kernel.org>", "Ulf Hansson <ulf.hansson@linaro.org>"

The ARM PrimeCells MMCI PL180 and PL181 provides an interface for reading and writing to MultiMedia and SD cards alike. Over the years vendors have use the VHDL code from ARM to create derivative MMC/SD/SDIO host controllers with very similar characteristics.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): /schemas/arm/primecell.yaml#

Rule 2 #

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

Automatic schema selection (select) #

Properties and child nodes (properties) #

compatible — required here #

Rule for matching array elements (contains)

Allowed values (enum): "arm,pl180", "arm,pl181", "arm,pl18x"

Required in this object (required): "compatible"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

The first version of the block, simply called PL180 and found in the ARM Integrator IM/PD1 logic module.

Array item rules (items)

Item 1

Exact value (const): "arm,pl180"

Item 2

Exact value (const): "arm,primecell"

Rule 2

The improved version of the block, found in the ARM Versatile and later reference designs. Further revisions exist but get detected at runtime by reading some magic numbers in the PrimeCell ID registers.

Array item rules (items)

Item 1

Exact value (const): "arm,pl181"

Item 2

Exact value (const): "arm,primecell"

Rule 3

Wildcard entry that will let the operating system inspect the PrimeCell ID registers to determine which hardware variant of PL180 or PL181 this is.

Array item rules (items)

Item 1

Exact value (const): "arm,pl18x"

Item 2

Exact value (const): "arm,primecell"

Rule 4

Entries for STMicroelectronics variant of PL18x.

Array item rules (items)

Item 1

Allowed values (enum): "st,stm32-sdmmc2", "st,stm32mp25-sdmmc2"

Item 2

Exact value (const): "arm,pl18x"

Item 3

Exact value (const): "arm,primecell"

clocks — not listed as required here #

One or two clocks, the "apb_pclk" and the "MCLK" which is the core block clock. The names are not compulsory.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

dmas — not listed as required here #

Maximum number of items (maxItems): 2

dma-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): "tx"

Item 2

Exact value (const): "rx"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "rx"

Item 2

Exact value (const): "tx"

access-controllers — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

power-domains — not listed as required here #

true — No constraints added by this property rule.

resets — not listed as required here #

Maximum number of items (maxItems): 1

reg — required here #

the MMIO memory window must be exactly 4KB (0x1000) and the layout should provide the PrimeCell ID registers so that the device can be discovered. On ST Micro variants, a second register window may be defined if a delay block is present and used for tuning.

interrupts — required here #

The first interrupt is the command interrupt and corresponds to the event at the end of a command. The second interrupt is the PIO (polled I/O) interrupt and occurs when the FIFO needs to be emptied as part of a bulk read from the card. Some variants have these two interrupts wired into the same line (logic OR) and in that case only one interrupt may be provided. The interrupt-names property is not used due to inconsistency of existing DTs regarding its content.

Deprecated (deprecated): false

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

st,sig-dir-dat0 — not listed as required here #

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

ST Micro-specific property, bus signal direction pins used for DAT[0].

st,sig-dir-dat2 — not listed as required here #

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

ST Micro-specific property, bus signal direction pins used for DAT[2].

st,sig-dir-dat31 — not listed as required here #

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

ST Micro-specific property, bus signal direction pins used for DAT[3] and DAT[1].

st,sig-dir-dat74 — not listed as required here #

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

ST Micro-specific property, bus signal direction pins used for DAT[7] and DAT[4].

st,sig-dir-cmd — not listed as required here #

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

ST Micro-specific property, CMD signal direction used for pin CMD.

st,sig-pin-fbclk — not listed as required here #

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

ST Micro-specific property, feedback clock FBCLK signal pin in use.

st,sig-dir — not listed as required here #

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

ST Micro-specific property, signal direction polarity used for pins CMD, DAT[0], DAT[1], DAT[2] and DAT[3].

st,neg-edge — not listed as required here #

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

ST Micro-specific property, data and command phase relation, generated on the sd clock falling edge.

st,use-ckin — not listed as required here #

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

ST Micro-specific property, use CKIN pin from an external driver to sample the receive data (for example with a voltage switch transceiver).

st,cmd-gpios — not listed as required here #

Maximum number of items (maxItems): 1

The GPIO matching the CMD pin.

st,ck-gpios — not listed as required here #

Maximum number of items (maxItems): 1

The GPIO matching the CK pin.

st,ckin-gpios — not listed as required here #

Maximum number of items (maxItems): 1

The GPIO matching the CKIN pin.

Property dependencies (dependencies) #

st,cmd-gpios — applies when this property is present #

Also requires: "st,use-ckin"

st,ck-gpios — applies when this property is present #

Also requires: "st,use-ckin"

st,ckin-gpios — applies when this property is present #

Also requires: "st,use-ckin"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

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

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/gpio/gpio.h>

mmc@5000 {
  compatible = "arm,pl180", "arm,primecell";
  reg = <0x5000 0x1000>;
  interrupts-extended = <&vic 22 &sic 1>;
  clocks = <&xtal24mhz>, <&pclk>;
  clock-names = "mclk", "apb_pclk";
};
#include <dt-bindings/interrupt-controller/irq.h>

mmc@80126000 {
  compatible = "arm,pl18x", "arm,primecell";
  reg = <0x80126000 0x1000>;
  interrupts = <0 60 IRQ_TYPE_LEVEL_HIGH>;
  dmas = <&dma 29 0 0x2>, <&dma 29 0 0x0>;
  dma-names = "rx", "tx";
  clocks = <&prcc_kclk 1 5>, <&prcc_pclk 1 5>;
  clock-names = "sdi", "apb_pclk";
  max-frequency = <100000000>;
  bus-width = <4>;
  cap-sd-highspeed;
  cap-mmc-highspeed;
  cd-gpios = <&gpio2 31 0x4>;
  st,sig-dir-dat0;
  st,sig-dir-dat2;
  st,sig-dir-cmd;
  st,sig-pin-fbclk;
  vmmc-supply = <&ab8500_ldo_aux3_reg>;
  vqmmc-supply = <&vmmci>;
};
mmc@101f6000 {
  compatible = "arm,pl18x", "arm,primecell";
  reg = <0x101f6000 0x1000>;
  clocks = <&sdiclk>, <&pclksdi>;
  clock-names = "mclk", "apb_pclk";
  interrupts = <22>;
  max-frequency = <400000>;
  bus-width = <4>;
  cap-mmc-highspeed;
  cap-sd-highspeed;
  full-pwr-cycle;
  st,sig-dir-dat0;
  st,sig-dir-dat2;
  st,sig-dir-dat31;
  st,sig-dir-cmd;
  st,sig-pin-fbclk;
  vmmc-supply = <&vmmc_regulator>;
};
mmc@52007000 {
  compatible = "arm,pl18x", "arm,primecell";
  arm,primecell-periphid = <0x10153180>;
  reg = <0x52007000 0x1000>;
  interrupts = <49>;
  clocks = <&rcc 0>;
  clock-names = "apb_pclk";
  resets = <&rcc 1>;
  cap-sd-highspeed;
  cap-mmc-highspeed;
  max-frequency = <120000000>;
};

Source notes #

Annotations retained from the schema source

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

Line 23: We need a select here so we don't match all nodes with 'arm,primecell'

ASPEED SD/SDIO/MMC Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

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

Maintainers (maintainers): "Andrew Jeffery <andrew@aj.id.au>", "Ryan Chen <ryanchen.aspeed@gmail.com>"

The ASPEED SD/SDIO/eMMC controller exposes two slots implementing the SDIO Host Specification v2.00, with 1 or 4 bit data buses, or an 8 bit data bus if only a single slot is enabled.

The two slots are supported by a common configuration area. As the SDHCIs for the slots are dependent on the common configuration area, they are described as child nodes.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "aspeed,ast2400-sd-controller", "aspeed,ast2500-sd-controller", "aspeed,ast2600-sd-controller"

reg — required here #

Maximum number of items (maxItems): 1

Common configuration registers

#address-cells — required here #

Exact value (const): 1

#size-cells — required here #

Exact value (const): 1

ranges — required here #

true — No constraints added by this property rule.

clocks — required here #

Maximum number of items (maxItems): 1

The SD/SDIO controller clock gate

Properties matching a name pattern (patternProperties) #

^sdhci@[0-9a-f]+$ — name matches this regular expression #

Value type (type): "object"

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Properties and child nodes (properties) #

compatible — required here

Allowed values (enum): "aspeed,ast2400-sdhci", "aspeed,ast2500-sdhci", "aspeed,ast2600-sdhci"

reg — required here

Maximum number of items (maxItems): 1

The SDHCI registers

clocks — required here

Maximum number of items (maxItems): 1

The SD bus clock

interrupts — required here

Maximum number of items (maxItems): 1

The SD interrupt shared between both slots

sdhci,auto-cmd12 — not listed as required here

Value type (type): "boolean"

Specifies that controller should use auto CMD12

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

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

false

Not allowed by this rule.

Required in this object (required): "compatible", "reg", "#address-cells", "#size-cells", "ranges", "clocks"

Examples (examples) #

#include <dt-bindings/clock/aspeed-clock.h>
sdc@1e740000 {
        compatible = "aspeed,ast2500-sd-controller";
        reg = <0x1e740000 0x100>;
        #address-cells = <1>;
        #size-cells = <1>;
        ranges = <0 0x1e740000 0x20000>;
        clocks = <&syscon ASPEED_CLK_GATE_SDCLK>;

        sdhci0: sdhci@100 {
                compatible = "aspeed,ast2500-sdhci";
                reg = <0x100 0x100>;
                interrupts = <26>;
                sdhci,auto-cmd12;
                clocks = <&syscon ASPEED_CLK_SDIO>;
        };

        sdhci1: sdhci@200 {
                compatible = "aspeed,ast2500-sdhci";
                reg = <0x200 0x100>;
                interrupts = <26>;
                sdhci,auto-cmd12;
                clocks = <&syscon ASPEED_CLK_SDIO>;
        };
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright 2019 IBM Corp.

Atmel High-Speed MultiMedia Card Interface (HSMCI)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

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

The Atmel HSMCI controller provides an interface for MMC, SD, and SDIO memory cards.

Maintainers (maintainers): "Nicolas Ferre <nicolas.ferre@microchip.com>", "Aubin Constans <aubin.constans@microchip.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "atmel,hsmci"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

dmas — not listed as required here #

Maximum number of items (maxItems): 1

dma-names — not listed as required here #

Exact value (const): "rxtx"

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Exact value (const): "mci_clk"

#address-cells — required here #

Exact value (const): 1

Used for slot IDs.

#size-cells — required here #

Exact value (const): 0

Properties matching a name pattern (patternProperties) #

slot@[0-2]$ — name matches this regular expression #

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

A slot node representing an MMC, SD, or SDIO slot.

Properties and child nodes (properties) #

reg — required here

Allowed values (enum): 0, 1

Required in this object (required): "reg", "bus-width"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

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

At least one of these rules must match (anyOf) #

Rule 1 #

Required in this object (required): "slot@0"

Rule 2 #

Required in this object (required): "slot@1"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/clock/at91.h>
mmc@f0008000 {
  compatible = "atmel,hsmci";
  reg = <0xf0008000 0x600>;
  interrupts = <12 IRQ_TYPE_LEVEL_HIGH>;
  clocks = <&mci0_clk>;
  clock-names = "mci_clk";
  #address-cells = <1>;
  #size-cells = <0>;

  slot@0 {
    reg = <0>;
    bus-width = <4>;
    cd-gpios = <&pioD 15 0>;
    cd-inverted;
  };

  slot@1 {
    reg = <1>;
    bus-width = <4>;
  };
};

Source notes #

Annotations retained from the schema source

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

Atmel SDHCI controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

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

Maintainers (maintainers): "Aubin Constans <aubin.constans@microchip.com>", "Nicolas Ferre <nicolas.ferre@microchip.com>"

Bindings for the SDHCI controller found in Atmel/Microchip SoCs.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "atmel,sama5d2-sdhci", "microchip,sam9x60-sdhci"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "microchip,sam9x7-sdhci", "microchip,sama7d65-sdhci", "microchip,sama7g5-sdhci"

Item 2

Exact value (const): "microchip,sam9x60-sdhci"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

hclock

Item 2

multclk

Item 3

baseclk

Minimum number of items (minItems): 2

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "hclock"

Item 2

Exact value (const): "multclk"

Item 3

Exact value (const): "baseclk"

Minimum number of items (minItems): 2

microchip,sdcal-inverted — not listed as required here #

Value type (type): "boolean"

When present, polarity on the SDCAL SoC pin is inverted. The default polarity for this signal is described in the datasheet. For instance on SAMA5D2, the pin is usually tied to the GND with a resistor and a capacitor (see "SDMMC I/O Calibration" chapter).

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

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)

Allowed values (enum): "atmel,sama5d2-sdhci"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 3

clock-names — not listed as required here

Minimum number of items (minItems): 3

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/clock/at91.h>
mmc@a0000000 {
    compatible = "atmel,sama5d2-sdhci";
    reg = <0xa0000000 0x300>;
    interrupts = <31 IRQ_TYPE_LEVEL_HIGH 0>;
    clocks = <&sdmmc0_hclk>, <&sdmmc0_gclk>, <&main>;
    clock-names = "hclock", "multclk", "baseclk";
    assigned-clocks = <&sdmmc0_gclk>;
    assigned-clock-rates = <480000000>;
};

Source notes #

Annotations retained from the schema source

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

Broadcom BCM2835 SDHOST controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

Schema identifier ($id): "http://devicetree.org/schemas/mmc/brcm,bcm2835-sdhost.yaml#"

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

Maintainers (maintainers): "Stefan Wahren <stefan.wahren@i2se.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "brcm,bcm2835-sdhost"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

dmas — not listed as required here #

Maximum number of items (maxItems): 1

dma-names — not listed as required here #

Exact value (const): "rx-tx"

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/bcm2835.h>

sdhost: mmc@7e202000 {
  compatible = "brcm,bcm2835-sdhost";
  reg = <0x7e202000 0x100>;
  interrupts = <2 24>;
  clocks = <&clocks BCM2835_CLOCK_VPU>;
  dmas = <&dma 13>;
  dma-names = "rx-tx";
  bus-width = <4>;
};

Source notes #

Annotations retained from the schema source

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

Broadcom IPROC SDHCI controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

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

Maintainers (maintainers): "Ray Jui <ray.jui@broadcom.com>", "Scott Branden <scott.branden@broadcom.com>", "Nicolas Saenz Julienne <nsaenz@kernel.org>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "brcm,bcm2835-sdhci", "brcm,bcm2711-emmc2", "brcm,sdhci-iproc-cygnus", "brcm,sdhci-iproc", "brcm,bcm7211a0-sdhci"

reg — required here #

Minimum number of items (minItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

Handle to core clock for the sdhci controller.

sdhci,auto-cmd12 — not listed as required here #

Value type (type): "boolean"

Specifies that controller should use auto CMD12

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/bcm-cygnus.h>

mmc@18041000 {
  compatible = "brcm,sdhci-iproc-cygnus";
  reg = <0x18041000 0x100>;
  interrupts = <GIC_SPI 108 IRQ_TYPE_LEVEL_HIGH>;
  clocks = <&lcpll0_clks BCM_CYGNUS_LCPLL0_SDIO_CLK>;
  bus-width = <4>;
  sdhci,auto-cmd12;
  no-1-8-v;
};

Source notes #

Annotations retained from the schema source

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

Broadcom Kona family SDHCI controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

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

Maintainers (maintainers): "Florian Fainelli <f.fainelli@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "brcm,kona-sdhci"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

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

mmc@3f1a0000 {
    compatible = "brcm,kona-sdhci";
    reg = <0x3f1a0000 0x10000>;
    clocks = <&master_ccu BCM281XX_MASTER_CCU_SDIO3>;
    interrupts = <GIC_SPI 74 IRQ_TYPE_LEVEL_HIGH>;
};

Source notes #

Annotations retained from the schema source

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

Broadcom BRCMSTB/BMIPS SDHCI Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

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

Maintainers (maintainers): "Al Cooper <alcooperx@gmail.com>", "Florian Fainelli <f.fainelli@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "brcm,bcm7216-sdhci"

Item 2

Exact value (const): "brcm,bcm7445-sdhci"

Item 3

Exact value (const): "brcm,sdhci-brcmstb"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "brcm,bcm2712-sdhci", "brcm,bcm72116-sdhci", "brcm,bcm74165b0-sdhci", "brcm,bcm7445-sdhci", "brcm,bcm7425-sdhci", "brcm,bcm74371-sdhci"

Item 2

Exact value (const): "brcm,sdhci-brcmstb"

reg — required here #

Maximum number of items (maxItems): 2

reg-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "host"

Item 2

Exact value (const): "cfg"

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

handle to core clock for the sdhci controller

Item 2

handle to improved 150Mhz clock for sdhci controller (Optional clock)

clock-names — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "sw_sdio"

Item 2

Exact value (const): "sdio_freq"

clock-frequency — not listed as required here #

Maximum operating frequency of sdio_freq sdhci controller clock

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

Minimum value (minimum): 100000000

Maximum value (maximum): 150000000

sdhci,auto-cmd12 — not listed as required here #

Value type (type): "boolean"

Specifies that controller should use auto CMD12

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)

clock-names — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "sdio_freq"

When the condition matches (then) #

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

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

mmc@84b0000 {
  compatible = "brcm,bcm7216-sdhci",
               "brcm,bcm7445-sdhci",
               "brcm,sdhci-brcmstb";
  reg = <0x84b0000 0x260>, <0x84b0300 0x200>;
  reg-names = "host", "cfg";
  sd-uhs-sdr50;
  sd-uhs-ddr50;
  sd-uhs-sdr104;
  sdhci,auto-cmd12;
  interrupts = <0x0 0x26 0x4>;
  clocks = <&scmi_clk 245>;
  clock-names = "sw_sdio";
};

mmc@84b1000 {
  compatible = "brcm,bcm7216-sdhci",
               "brcm,bcm7445-sdhci",
               "brcm,sdhci-brcmstb";
  reg = <0x84b1000 0x260>, <0x84b1300 0x200>;
  reg-names = "host", "cfg";
  mmc-ddr-1_8v;
  mmc-hs200-1_8v;
  mmc-hs400-1_8v;
  mmc-hs400-enhanced-strobe;
  supports-cqe;
  non-removable;
  bus-width = <0x8>;
  interrupts = <0x0 0x27 0x4>;
  clocks = <&scmi_clk 245>;
  clock-names = "sw_sdio";
};

Source notes #

Annotations retained from the schema source

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

Line 52: Optional clock

Cadence SD/SDIO/eMMC Host Controller (SD4HC)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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.

Freescale Enhanced Secure Digital Host Controller (eSDHC)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

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

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

Maintainers (maintainers): "Frank Li <Frank.Li@nxp.com>"

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "fsl,mpc8536-esdhc", "fsl,mpc8378-esdhc", "fsl,p2020-esdhc", "fsl,p4080-esdhc", "fsl,t1040-esdhc", "fsl,t4240-esdhc", "fsl,ls1012a-esdhc", "fsl,ls1021a-esdhc", "fsl,ls1028a-esdhc", "fsl,ls1088a-esdhc", "fsl,ls1043a-esdhc", "fsl,ls1046a-esdhc", "fsl,ls2080a-esdhc"

Item 2

Exact value (const): "fsl,esdhc"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

clock-frequency — not listed as required here #

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

specifies eSDHC base clock frequency.

sdhci,wp-inverted — not listed as required here #

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

Deprecated (deprecated): true

specifies that eSDHC controller reports inverted write-protect state; New devices should use the generic "wp-inverted" property.

sdhci,1-bit-only — not listed as required here #

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

Deprecated (deprecated): true

specifies that a controller can only handle 1-bit data transfers. New devices should use the generic "bus-width = <1>" property.

sdhci,auto-cmd12 — not listed as required here #

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

specifies that a controller can only handle auto CMD12.

voltage-ranges — not listed as required here #

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

Array item rules (items) #

Array item rules (items)

Item 1

specifies minimum slot voltage (mV).

Item 2

specifies maximum slot voltage (mV).

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 8

dma-coherent — not listed as required here #

true — No constraints added by this property rule.

little-endian — not listed as required here #

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

If the host controller is little-endian mode, specify this property. The default endian mode is big-endian.

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

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

mmc@2e000 {
    compatible = "fsl,mpc8378-esdhc", "fsl,esdhc";
    reg = <0x2e000 0x1000>;
    interrupts = <42 0x8>;
    interrupt-parent = <&ipic>;
    /* Filled in by U-Boot */
    clock-frequency = <100000000>;
    voltage-ranges = <3300 3300>;
};

Source notes #

Annotations retained from the schema source

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

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

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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)

Freescale Secure Digital Host Controller for i.MX2/3 series

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

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

Maintainers (maintainers): "Markus Pargmann <mpa@pengutronix.de>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "fsl,imx21-mmc"

Rule 2

Exact value (const): "fsl,imx31-mmc"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "fsl,imx27-mmc"

Item 2

Exact value (const): "fsl,imx21-mmc"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 2

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "ipg"

Item 2

Exact value (const): "per"

interrupts — required here #

Maximum number of items (maxItems): 1

dmas — not listed as required here #

Maximum number of items (maxItems): 1

dma-names — not listed as required here #

Exact value (const): "rx-tx"

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

mmc@10014000 {
    compatible = "fsl,imx27-mmc", "fsl,imx21-mmc";
    reg = <0x10014000 0x1000>;
    interrupts = <11>;
    clocks = <&clks 29>, <&clks 60>;
    clock-names = "ipg", "per";
    dmas = <&dma 7>;
    dma-names = "rx-tx";
    bus-width = <4>;
    cd-gpios = <&gpio3 29>;
};

Source notes #

Annotations retained from the schema source

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

Fujitsu/Socionext SDHCI controller (F_SDH30)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

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

Maintainers (maintainers): "Kunihiko Hayashi <hayashi.kunihiko@socionext.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "socionext,synquacer-sdhci"

Item 2

Exact value (const): "fujitsu,mb86s70-sdhci-3.0"

Rule 2

Allowed values (enum): "fujitsu,mb86s70-sdhci-3.0", "socionext,f-sdh30-e51-mmc"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 2

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "iface"

Item 2

Exact value (const): "core"

dma-coherent — not listed as required here #

true — No constraints added by this property rule.

interrupts — not listed as required here #

Maximum number of items (maxItems): 2

resets — not listed as required here #

Maximum number of items (maxItems): 1

fujitsu,cmd-dat-delay-select — not listed as required here #

Value type (type): "boolean"

Indicating that this host requires the CMD_DAT_DELAY control to be enabled

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

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

Examples (examples) #

sdhci1: mmc@36600000 {
    compatible = "fujitsu,mb86s70-sdhci-3.0";
    reg = <0x36600000 0x1000>;
    bus-width = <4>;
    vqmmc-supply = <&vccq_sdhci1>;
    clocks = <&clock 2 2 0>, <&clock 2 3 0>;
    clock-names = "iface", "core";
};

Source notes #

Annotations retained from the schema source

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

Hisilicon HiSTB SoCs specific extensions to the Synopsys DWMMC controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

Schema identifier ($id): "http://devicetree.org/schemas/mmc/hisilicon,hi3798cv200-dw-mshc.yaml#"

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

Maintainers (maintainers): "Yang Xiwen <forbidden405@outlook.com>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "hisilicon,hi3798cv200-dw-mshc", "hisilicon,hi3798mv200-dw-mshc"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

bus interface unit clock

Item 2

card interface unit clock

Item 3

card input sample phase clock

Item 4

controller output drive phase clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "ciu"

Item 2

Exact value (const): "biu"

Item 3

Exact value (const): "ciu-sample"

Item 4

Exact value (const): "ciu-drive"

hisilicon,sap-dll-reg — not listed as required here #

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

DWMMC core on Hi3798MV2x SoCs has a delay-locked-loop(DLL) attached to card data input path. It is integrated into CRG core on the SoC and has to be controlled during tuning.

Array item rules (items) #

Item 1

A phandle pointed to the CRG syscon node

Item 2

Sample DLL register offset in CRG address space

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

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): synopsys-dw-mshc-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): "hisilicon,hi3798mv200-dw-mshc"

When the condition matches (then) #

Required in this object (required): "hisilicon,sap-dll-reg"

When the condition does not match (else) #

Properties and child nodes (properties)

hisilicon,sap-dll-reg — not listed as required here

false — Not permitted by this property rule.

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

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

mmc@9830000 {
    compatible = "hisilicon,hi3798cv200-dw-mshc";
    reg = <0x9830000 0x10000>;
    interrupts = <GIC_SPI 35 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&crg HISTB_MMC_CIU_CLK>,
             <&crg HISTB_MMC_BIU_CLK>,
             <&crg HISTB_MMC_SAMPLE_CLK>,
             <&crg HISTB_MMC_DRV_CLK>;
    clock-names = "ciu", "biu", "ciu-sample", "ciu-drive";
    resets = <&crg 0xa0 4>;
    reset-names = "reset";
    pinctrl-names = "default";
    pinctrl-0 = <&emmc_pins_1 &emmc_pins_2
                 &emmc_pins_3 &emmc_pins_4>;
    fifo-depth = <256>;
    clock-frequency = <200000000>;
    cap-mmc-highspeed;
    mmc-ddr-1_8v;
    mmc-hs200-1_8v;
    non-removable;
    bus-width = <8>;
};

Source notes #

Annotations retained from the schema source

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

Ingenic SoCs MMC Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

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

Maintainers (maintainers): "Paul Cercueil <paul@crapouillou.net>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "ingenic,jz4740-mmc", "ingenic,jz4725b-mmc", "ingenic,jz4760-mmc", "ingenic,jz4775-mmc", "ingenic,jz4780-mmc", "ingenic,x1000-mmc"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "ingenic,jz4770-mmc"

Item 2

Exact value (const): "ingenic,jz4760-mmc"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

clock-names — required here #

Exact value (const): "mmc"

dmas — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

dma-names — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Exact value (const): "rx"

Item 2

Exact value (const): "tx"

Rule 2

Exact value (const): "tx-rx"

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/ingenic,jz4780-cgu.h>
#include <dt-bindings/dma/jz4780-dma.h>
mmc0: mmc@13450000 {
  compatible = "ingenic,jz4780-mmc";
  reg = <0x13450000 0x1000>;

  interrupt-parent = <&intc>;
  interrupts = <37>;

  clocks = <&cgu JZ4780_CLK_MSC0>;
  clock-names = "mmc";

  cap-sd-highspeed;
  cap-mmc-highspeed;
  cap-sdio-irq;
  dmas = <&dma JZ4780_DMA_MSC0_RX 0xffffffff>,
         <&dma JZ4780_DMA_MSC0_TX 0xffffffff>;
  dma-names = "rx", "tx";
};
#include <dt-bindings/clock/ingenic,jz4780-cgu.h>
#include <dt-bindings/dma/jz4780-dma.h>
/*
 * Alternative version of the example above,
 * but using one single DMA channel for both
 * TX and RX.
 */
mmc1: mmc@13460000 {
  compatible = "ingenic,jz4780-mmc";
  reg = <0x13460000 0x1000>;

  interrupt-parent = <&intc>;
  interrupts = <36>;

  clocks = <&cgu JZ4780_CLK_MSC1>;
  clock-names = "mmc";

  cap-sd-highspeed;
  cap-mmc-highspeed;
  cap-sdio-irq;
  dmas = <&dma JZ4780_DMA_MSC1_TX JZ4780_DMA_MSC1_RX 0xffffffff>;
  dma-names = "tx-rx";
};

Source notes #

Annotations retained from the schema source

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

LiteX LiteSDCard device

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

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

Maintainers (maintainers): "Gabriel Somlo <gsomlo@gmail.com>"

LiteSDCard is a small footprint, configurable SDCard core for FPGA based system on chips.

The hardware source is Open Source and can be found on at https://github.com/enjoy-digital/litesdcard/.

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "litex,mmc"

reg — required here #

Array item rules (items) #

Item 1

PHY registers

Item 2

CORE registers

Item 3

DMA Reader buffer

Item 4

DMA Writer buffer

Item 5

IRQ registers

Minimum number of items (minItems): 4

reg-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "phy"

Item 2

Exact value (const): "core"

Item 3

Exact value (const): "reader"

Item 4

Exact value (const): "writer"

Item 5

Exact value (const): "irq"

Minimum number of items (minItems): 4

clocks — required here #

Maximum number of items (maxItems): 1

Handle to reference clock.

vmmc-supply — required here #

Handle to fixed-voltage supply for the card power.

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "reg-names", "clocks", "vmmc-supply"

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

false

Not allowed by this rule.

Examples (examples) #

mmc: mmc@12005000 {
    compatible = "litex,mmc";
    reg = <0x12005000 0x100>,
          <0x12003800 0x100>,
          <0x12003000 0x100>,
          <0x12004800 0x100>,
          <0x12004000 0x100>;
    reg-names = "phy", "core", "reader", "writer", "irq";
    clocks = <&reference_clk>;
    vmmc-supply = <&vreg_mmc>;
    interrupts = <4>;
};

Source notes #

Annotations retained from the schema source

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

The SD/SDIO/eMMC host controller for Loongson-2K family SoCs

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

Schema identifier ($id): "http://devicetree.org/schemas/mmc/loongson,ls2k0500-mmc.yaml#"

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

The MMC host controller on the Loongson-2K0500/2K1000 (using an externally shared apbdma controller) provides the SD and SDIO device interfaces. The two MMC host controllers on the Loongson-2K2000 are similar, except that they use internal exclusive DMA. one controller provides the eMMC interface and the other provides the SD/SDIO interface.

Maintainers (maintainers): "Binbin Zhou <zhoubinbin@loongson.cn>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "loongson,ls2k0500-mmc", "loongson,ls2k1000-mmc", "loongson,ls2k2000-mmc"

reg — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Loongson-2K MMC controller registers.

Item 2

APB DMA config register for Loongson-2K MMC controller.

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

dmas — not listed as required here #

Maximum number of items (maxItems): 1

dma-names — not listed as required here #

Exact value (const): "rx-tx"

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Condition (if) #

Properties and child nodes (properties) #

compatible — not listed as required here #

Rule for matching array elements (contains)

Allowed values (enum): "loongson,ls2k0500-mmc", "loongson,ls2k1000-mmc"

When the condition matches (then) #

Properties and child nodes (properties) #

reg — not listed as required here #

Minimum number of items (minItems): 2

Required in this object (required): "dmas", "dma-names"

When the condition does not match (else) #

Properties and child nodes (properties) #

reg — not listed as required here #

Maximum number of items (maxItems): 1

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/clock/loongson,ls2k-clk.h>

mmc@1fe2c000 {
    compatible = "loongson,ls2k1000-mmc";
    reg = <0x1fe2c000 0x68>,
          <0x1fe00438 0x8>;
    interrupt-parent = <&liointc0>;
    interrupts = <31 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&clk LOONGSON2_APB_CLK>;
    dmas = <&apbdma1 0>;
    dma-names = "rx-tx";
    bus-width = <4>;
    cd-gpios = <&gpio0 22 GPIO_ACTIVE_LOW>;
};
#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/clock/loongson,ls2k-clk.h>

mmc@79990000 {
    compatible = "loongson,ls2k2000-mmc";
    reg = <0x79990000 0x1000>;
    interrupt-parent = <&pic>;
    interrupts = <51 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&clk LOONGSON2_EMMC_CLK>;
    bus-width = <8>;
    non-removable;
    cap-mmc-highspeed;
    mmc-hs200-1_8v;
    no-sd;
    no-sdio;
};

Source notes #

Annotations retained from the schema source

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

Marvell sdhci-dove controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

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

Maintainers (maintainers): "Adrian Hunter <adrian.hunter@intel.com>", "Ulf Hansson <ulf.hansson@linaro.org>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "marvell,dove-sdhci"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

clocks — not listed as required here #

Maximum number of items (maxItems): 1

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

sdio0: mmc@92000 {
  compatible = "marvell,dove-sdhci";
  reg = <0x92000 0x100>;
  interrupts = <35>;
  clocks = <&gate_clk 9>;
};

Source notes #

Annotations retained from the schema source

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

Marvell orion-sdio controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

Schema identifier ($id): "http://devicetree.org/schemas/mmc/marvell,orion-sdio.yaml#"

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

Maintainers (maintainers): "Nicolas Pitre <nico@fluxnic.net>", "Ulf Hansson <ulf.hansson@linaro.org>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "marvell,orion-sdio"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

mmc@d00d4000 {
  compatible = "marvell,orion-sdio";
  reg = <0xd00d4000 0x200>;
  interrupts = <54>;
  clocks = <&gateclk 17>;
};

Source notes #

Annotations retained from the schema source

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

Marvell Xenon SDHCI Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

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

This file documents differences between the core MMC properties described by mmc-controller.yaml and the properties used by the Xenon implementation.

Multiple SDHCs might be put into a single Xenon IP, to save size and cost. Each SDHC is independent and owns independent resources, such as register sets, clock and PHY.

Each SDHC should have an independent device tree node.

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

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "marvell,armada-cp110-sdhci", "marvell,armada-ap806-sdhci"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "marvell,armada-ap807-sdhci", "marvell,ac5-sdhci"

Item 2

Exact value (const): "marvell,armada-ap806-sdhci"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "marvell,armada-3700-sdhci"

Item 2

Exact value (const): "marvell,sdhci-xenon"

reg — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Xenon IP registers

Item 2

Armada 3700 SoC PHY PAD Voltage Control register

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

clock-names — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "core"

Item 2

Exact value (const): "axi"

dma-coherent — not listed as required here #

true — No constraints added by this property rule.

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

iommus — not listed as required here #

Maximum number of items (maxItems): 1

marvell,pad-type — not listed as required here #

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

Allowed values (enum): "sd", "fixed-1-8v"

Type of Armada 3700 SoC PHY PAD Voltage Controller register. If "sd" is selected, SoC PHY PAD is set as 3.3V at the beginning and is switched to 1.8V when later in higher speed mode. If "fixed-1-8v" is selected, SoC PHY PAD is fixed 1.8V, such as for eMMC.

marvell,xenon-sdhc-id — not listed as required here #

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

Minimum value (minimum): 0

Maximum value (maximum): 7

Indicate the corresponding bit index of current SDHC in SDHC System Operation Control Register Bit[7:0]. Set/clear the corresponding bit to enable/disable current SDHC.

marvell,xenon-phy-type — not listed as required here #

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

Allowed values (enum): "emmc 5.1 phy", "emmc 5.0 phy"

Xenon support multiple types of PHYs. To select eMMC 5.1 PHY, set: marvell,xenon-phy-type = "emmc 5.1 phy" eMMC 5.1 PHY is the default choice if this property is not provided. To select eMMC 5.0 PHY, set: marvell,xenon-phy-type = "emmc 5.0 phy"

All those types of PHYs can support eMMC, SD and SDIO. Please note that this property only presents the type of PHY. It doesn't stand for the entire SDHC type or property. For example, "emmc 5.1 phy" doesn't mean that this Xenon SDHC only supports eMMC 5.1.

marvell,xenon-phy-znr — not listed as required here #

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

Minimum value (minimum): 0

Maximum value (maximum): 31

Default value (default): 15

Set PHY ZNR value. Only available for eMMC PHY.

marvell,xenon-phy-zpr — not listed as required here #

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

Minimum value (minimum): 0

Maximum value (maximum): 31

Default value (default): 15

Set PHY ZPR value. Only available for eMMC PHY.

marvell,xenon-phy-nr-success-tun — not listed as required here #

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

Minimum value (minimum): 1

Maximum value (maximum): 7

Default value (default): 4

Set the number of required consecutive successful sampling points used to identify a valid sampling window, in tuning process.

marvell,xenon-phy-tun-step-divider — not listed as required here #

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

Default value (default): 64

Set the divider for calculating TUN_STEP.

marvell,xenon-phy-slow-mode — not listed as required here #

Value type (type): "boolean"

If this property is selected, transfers will bypass PHY. Only available when bus frequency lower than 55MHz in SDR mode. Disabled by default. Please only try this property if timing issues always occur with PHY enabled in eMMC HS SDR, SD SDR12, SD SDR25, SD Default Speed and HS mode and eMMC legacy speed mode.

marvell,xenon-tun-count — not listed as required here #

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

Default value (default): 9

Xenon SDHC SoC usually doesn't provide re-tuning counter in Capabilities Register 3 Bit[11:8]. This property provides the re-tuning counter.

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): "marvell,armada-3700-sdhci"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 2

Required in this object (required): "marvell,pad-type"

When the condition does not match (else) #

Properties and child nodes (properties)

reg — not listed as required here

Maximum number of items (maxItems): 1

marvell,pad-type — not listed as required here

false — Not permitted by this property rule.

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

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

mmc@aa0000 {
  compatible = "marvell,armada-ap807-sdhci", "marvell,armada-ap806-sdhci";
  reg = <0xaa0000 0x1000>;
  interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
  clocks = <&emmc_clk 0>, <&axi_clk 0>;
  clock-names = "core", "axi";
  bus-width = <4>;
  marvell,xenon-phy-slow-mode;
  marvell,xenon-tun-count = <11>;
  non-removable;
  no-sd;
  no-sdio;

  /* Vmmc and Vqmmc are both fixed */
};
// For SD/SDIO
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>

mmc@ab0000 {
  compatible = "marvell,armada-cp110-sdhci";
  reg = <0xab0000 0x1000>;
  interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
  vqmmc-supply = <&sd_vqmmc_regulator>;
  vmmc-supply = <&sd_vmmc_regulator>;
  clocks = <&sdclk 0>, <&axi_clk 0>;
  clock-names = "core", "axi";
  bus-width = <4>;
  marvell,xenon-tun-count = <9>;
};
// For eMMC with compatible "marvell,armada-3700-sdhci":
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>

mmc@aa0000 {
  compatible = "marvell,armada-3700-sdhci", "marvell,sdhci-xenon";
  reg = <0xaa0000 0x1000>,
        <0x17808 0x4>;
  interrupts = <GIC_SPI 13 IRQ_TYPE_LEVEL_HIGH>;
  clocks = <&emmcclk 0>;
  clock-names = "core";
  bus-width = <8>;
  mmc-ddr-1_8v;
  mmc-hs400-1_8v;
  non-removable;
  no-sd;
  no-sdio;

  /* Vmmc and Vqmmc are both fixed */

  marvell,pad-type = "fixed-1-8v";
};
// For SD/SDIO with compatible "marvell,armada-3700-sdhci":
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>

mmc@ab0000 {
  compatible = "marvell,armada-3700-sdhci", "marvell,sdhci-xenon";
  reg = <0xab0000 0x1000>,
        <0x17808 0x4>;
  interrupts = <GIC_SPI 55 IRQ_TYPE_LEVEL_HIGH>;
  vqmmc-supply = <&sd_regulator>;
  /* Vmmc is fixed */
  clocks = <&sdclk 0>;
  clock-names = "core";
  bus-width = <4>;

  marvell,pad-type = "sd";
};

Source notes #

Annotations retained from the schema source

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

Microchip Sparx5 Mobile Storage Host Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

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

All of these rules must match (allOf) #

Rule 1 #

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

Maintainers (maintainers): "Lars Povlsen <lars.povlsen@microchip.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "microchip,dw-sparx5-sdhci"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

Handle to "core" clock for the sdhci controller.

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "core"

microchip,clock-delay — not listed as required here #

Delay clock to card to meet setup time requirements. Each step increase by 1.25ns.

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

Minimum value (minimum): 1

Maximum value (maximum): 15

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "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>
#include <dt-bindings/clock/microchip,sparx5.h>
sdhci0: mmc@600800000 {
    compatible = "microchip,dw-sparx5-sdhci";
    reg = <0x00800000 0x1000>;
    pinctrl-0 = <&emmc_pins>;
    pinctrl-names = "default";
    clocks = <&clks CLK_ID_AUX1>;
    clock-names = "core";
    assigned-clocks = <&clks CLK_ID_AUX1>;
    assigned-clock-rates = <800000000>;
    interrupts = <GIC_SPI 4 IRQ_TYPE_LEVEL_HIGH>;
    bus-width = <8>;
    microchip,clock-delay = <10>;
};

Source notes #

Annotations retained from the schema source

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

Line 15: Everything else is described in the common file

Microchip PIC32 SDHI Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

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

The Microchip PIC32 family of microcontrollers (MCUs) includes models with Secure Digital Host Controller Interface (SDHCI) controllers, allowing them to interface with Secure Digital (SD) cards. This interface is used for reading, writing, and managing data on SD cards, enabling storage and data transfer capabilities in embedded systems.

All of these rules must match (allOf) #

Rule 1 #

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

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "microchip,pic32mzda-sdhci"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 2

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "base_clk"

Item 2

Exact value (const): "sys_clk"

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/clock/microchip,pic32-clock.h>
mmc@1f8ec000 {
    compatible = "microchip,pic32mzda-sdhci";
    reg = <0x1f8ec000 0x100>;
    interrupts = <191 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&rootclk REF4CLK>, <&rootclk PB5CLK>;
    clock-names = "base_clk", "sys_clk";
    bus-width = <4>;
    cap-sd-highspeed;
    pinctrl-names = "default";
    pinctrl-0 = <&pinctrl_sdhc1>;
};

Source notes #

Annotations retained from the schema source

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

MMC Card / eMMC Generic

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

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

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

This documents describes the devicetree bindings for a mmc-host controller child node describing a mmc-card / an eMMC.

It's possible to define a fixed partition table for an eMMC for the user partition, the 2 BOOT partition (boot1/2) and the 4 GP (gp1/2/3/4) if supported by the eMMC.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "mmc-card"

reg — required here #

Exact value (const): 0

broken-hpi — not listed as required here #

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

Use this to indicate that the mmc-card has a broken hpi implementation, and that hpi should not be used.

Properties matching a name pattern (patternProperties) #

^partitions(-boot[12]|-gp[14])?$ — name matches this regular expression #

Value type (type): "object"

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

true

Allowed by this rule.

Properties and child nodes (properties) #

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "fixed-partitions"

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

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

false

Not allowed by this rule.

Examples (examples) #

mmc {
    #address-cells = <1>;
    #size-cells = <0>;

    card@0 {
        compatible = "mmc-card";
        reg = <0>;
        broken-hpi;

        partitions {
            compatible = "fixed-partitions";

            #address-cells = <1>;
            #size-cells = <1>;

            partition@0 {
                label = "kernel"; /* Kernel */
                reg = <0x0 0x2000000>; /* 32 MB */
            };

            partition@2000000 {
                label = "rootfs";
                reg = <0x2000000 0x40000000>; /* 1GB */
            };
        };

        partitions-boot1 {
            compatible = "fixed-partitions";

            #address-cells = <1>;
            #size-cells = <1>;

            partition@0 {
                label = "bl";
                reg = <0x0 0x2000000>; /* 32MB */
                read-only;
            };
        };
    };
};

Source notes #

Annotations retained from the schema source

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

MMC Controller & Slots Common Properties

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

MMC Controller Common Properties

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

Schema identifier ($id): "http://devicetree.org/schemas/mmc/mmc-controller.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. Any host that requires the respective functionality should implement them using these definitions. It is possible to assign a fixed index mmcN to an MMC host controller (and the corresponding mmcblkN devices) by defining an alias in the /aliases device tree node.

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

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^mmc(@.*)?$"

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

true

Allowed by this rule.

Examples (examples) #

mmc3: mmc@1c12000 {
    #address-cells = <1>;
    #size-cells = <0>;
    reg = <0x1c12000 0x200>;
    pinctrl-names = "default";
    pinctrl-0 = <&mmc3_pins_a>;
    vmmc-supply = <&reg_vmmc3>;
    bus-width = <4>;
    non-removable;
    mmc-pwrseq = <&sdhci0_pwrseq>;

    brcmf: wifi@1 {
        reg = <1>;
        compatible = "brcm,bcm4329-fmac";
        interrupt-parent = <&pio>;
        interrupts = <10 8>;
        interrupt-names = "host-wake";
    };
};

Source notes #

Annotations retained from the schema source

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

Simple eMMC hardware reset provider

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

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

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

The purpose of this driver is to perform standard eMMC hw reset procedure, as described by Jedec 4.4 specification. This procedure is performed just after MMC core enabled power to the given mmc host (to fix possible issues if bootloader has left eMMC card in initialized or unknown state), and before performing complete system reboot (also in case of emergency reboot call). The latter is needed on boards, which doesn't have hardware reset logic connected to emmc card and (limited or broken) ROM bootloaders are unable to read second stage from the emmc card if the card is left in unknown or already initialized state.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "mmc-pwrseq-emmc"

reset-gpios — required here #

Minimum number of items (minItems): 1

contains a GPIO specifier. The reset GPIO is asserted and then deasserted to perform eMMC card reset. To perform reset procedure as described in Jedec 4.4 specification, the gpio line should be defined as GPIO_ACTIVE_LOW.

Required in this object (required): "compatible", "reset-gpios"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
pwrseq {
  compatible = "mmc-pwrseq-emmc";
  reset-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
};

Source notes #

Annotations retained from the schema source

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

Marvell SD8787 power sequence provider

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

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

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

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "mmc-pwrseq-sd8787", "mmc-pwrseq-wilc1000"

powerdown-gpios — required here #

Minimum number of items (minItems): 1

contains a power down GPIO specifier with the default active state

reset-gpios — required here #

Minimum number of items (minItems): 1

contains a reset GPIO specifier with the default active state

Required in this object (required): "compatible", "powerdown-gpios", "reset-gpios"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
pwrseq {
  compatible = "mmc-pwrseq-sd8787";
  powerdown-gpios = <&twl_gpio 0 GPIO_ACTIVE_LOW>;
  reset-gpios = <&twl_gpio 1 GPIO_ACTIVE_LOW>;
};

Source notes #

Annotations retained from the schema source

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

Simple MMC power sequence provider

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

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

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

The purpose of the simple MMC power sequence provider is to supports a set of common properties between various SOC designs. It thus enables us to use the same provider for several SOC designs.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "mmc-pwrseq-simple"

reset-gpios — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 32

contains a list of GPIO specifiers. The reset GPIOs are asserted at initialization and prior we start the power up procedure of the card. They will be de-asserted right after the power has been provided to the card.

clocks — not listed as required here #

Minimum number of items (minItems): 1

Handle for the entry in clock-names.

clock-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "ext_clock"

External clock provided to the card.

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

Delay in ms after powering the card and de-asserting the reset-gpios (if any).

power-off-delay-us — not listed as required here #

Delay in us after asserting the reset-gpios (if any) during power off of the card.

Required in this object (required): "compatible"

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
pwrseq {
  compatible = "mmc-pwrseq-simple";
  reset-gpios = <&gpio1 12 GPIO_ACTIVE_LOW>;
  clocks = <&clk_32768_ck>;
  clock-names = "ext_clock";
};

Source notes #

Annotations retained from the schema source

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

Line 23: Put some limit to avoid false warnings

MMC slot properties

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

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

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

These properties defines slot properties for MMC controlers that have multiple slots or ports provided by the same controller and sharing the same resources.

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

Properties and child nodes (properties) #

$nodename — not listed as required here #

String pattern (pattern): "^slot(@.*)?$"

compatible — not listed as required here #

Exact value (const): "mmc-slot"

reg — required here #

the slot (or "port") ID

Maximum number of items (maxItems): 1

Required in this object (required): "reg"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

mmc {
  #address-cells = <1>;
  #size-cells = <0>;
  slot@0 {
    compatible = "mmc-slot";
    reg = <0>;
    bus-width = <4>;
  };
};

Source notes #

Annotations retained from the schema source

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

MMC/SD/SDIO slot directly connected to a SPI bus

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

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

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

All of these rules must match (allOf) #

Rule 1 #

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

Rule 2 #

Shared schema rule ($ref): /schemas/spi/spi-peripheral-props.yaml

The extra properties used by an mmc connected via SPI.

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "mmc-spi-slot"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 1

voltage-ranges — not listed as required here #

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

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 in mV

Default value (default): 3200

Item 2

value for maximum slot voltage in mV

Default value (default): 3400

Maximum number of items (maxItems): 1

gpios — not listed as required here #

For historical reasons, this does not follow the generic mmc-controller binding.

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Card-Detect GPIO

Item 2

Write-Protect GPIO

Required in this object (required): "compatible", "reg", "spi-max-frequency"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>
spi {
  #address-cells = <1>;
  #size-cells = <0>;
  mmc@0 {
    compatible = "mmc-spi-slot";
    reg = <0>;
    gpios = <&gpio 14 GPIO_ACTIVE_LOW>, <&gpio 15 GPIO_ACTIVE_HIGH>;
    voltage-ranges = <3300 3300>;
    spi-max-frequency = <50000000>;
    interrupts = <42>;
    interrupt-parent = <&PIC>;
  };
};

Source notes #

Annotations retained from the schema source

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

MTK MSDC Storage Host Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

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

Maintainers (maintainers): "Chaotian Jing <chaotian.jing@mediatek.com>", "Wenbin Mei <wenbin.mei@mediatek.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "mediatek,mt2701-mmc", "mediatek,mt2712-mmc", "mediatek,mt6779-mmc", "mediatek,mt6795-mmc", "mediatek,mt7620-mmc", "mediatek,mt7622-mmc", "mediatek,mt7986-mmc", "mediatek,mt7988-mmc", "mediatek,mt8135-mmc", "mediatek,mt8173-mmc", "mediatek,mt8183-mmc", "mediatek,mt8196-mmc", "mediatek,mt8516-mmc"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "mediatek,mt7623-mmc"

Item 2

Exact value (const): "mediatek,mt2701-mmc"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "mediatek,mt6893-mmc", "mediatek,mt8186-mmc", "mediatek,mt8188-mmc", "mediatek,mt8192-mmc", "mediatek,mt8195-mmc", "mediatek,mt8365-mmc"

Item 2

Exact value (const): "mediatek,mt8183-mmc"

reg — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

base register (required).

Item 2

top base register (required for MT8183).

clocks — required here #

Should contain phandle for the clock feeding the MMC controller.

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 7

clock-names — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 7

interrupts — required here #

Should at least contain MSDC GIC interrupt. To support SDIO in-band wakeup, an extended interrupt is required and be configured as wakeup source irq.

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

interrupt-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "msdc"

Item 2

Exact value (const): "sdio_wakeup"

pinctrl-names — required here #

Should at least contain default and state_uhs. To support SDIO in-band wakeup, dat1 pin will be switched between GPIO mode and SDIO DAT1 mode, state_eint is mandatory in this scenario.

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

Exact value (const): "default"

Item 2

Exact value (const): "state_uhs"

Item 3

Exact value (const): "state_eint"

pinctrl-0 — required here #

should contain default/high speed pin ctrl.

Maximum number of items (maxItems): 1

pinctrl-1 — required here #

should contain uhs mode pin ctrl.

Maximum number of items (maxItems): 1

pinctrl-2 — not listed as required here #

should switch dat1 pin to GPIO mode.

Maximum number of items (maxItems): 1

hs400-ds-delay — not listed as required here #

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

HS400 DS delay setting.

Minimum value (minimum): 0

Maximum value (maximum): 4294967295

mediatek,hs200-cmd-int-delay — not listed as required here #

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

HS200 command internal delay setting. This field has total 32 stages. The value is an integer from 0 to 31.

Minimum value (minimum): 0

Maximum value (maximum): 31

mediatek,hs400-cmd-int-delay — not listed as required here #

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

HS400 command internal delay setting. This field has total 32 stages. The value is an integer from 0 to 31.

Minimum value (minimum): 0

Maximum value (maximum): 31

mediatek,hs400-cmd-resp-sel-rising — not listed as required here #

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

HS400 command response sample selection. If present, HS400 command responses are sampled on rising edges. If not present, HS400 command responses are sampled on falling edges.

mediatek,hs400-ds-dly3 — not listed as required here #

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

Gear of the third delay line for DS for input data latch in data pad macro, there are 32 stages from 0 to 31. For different corner IC, the time is different about one step, it is about 100ps. The value is confirmed by doing scan and calibration to find a best value with corner IC and it is valid only for HS400 mode.

Minimum value (minimum): 0

Maximum value (maximum): 31

mediatek,latch-ck — not listed as required here #

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

Some SoCs do not support enhance_rx, need set correct latch-ck to avoid data crc error caused by stop clock(fifo full) Valid range = [0:0x7]. if not present, default value is 0. applied to compatible "mediatek,mt2701-mmc".

Minimum value (minimum): 0

Maximum value (maximum): 7

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

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

Some SoCs need extend tuning step for better delay value to avoid CRC issue. If not present, default tuning step is 32. For eMMC and SD, this can yield satisfactory calibration results in most cases.

Allowed values (enum): 32, 64

Default value (default): 32

resets — not listed as required here #

Maximum number of items (maxItems): 1

reset-names — not listed as required here #

Exact value (const): "hrst"

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "pinctrl-names", "pinctrl-0", "pinctrl-1", "vmmc-supply", "vqmmc-supply"

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

Allowed values (enum): "mediatek,mt2701-mmc", "mediatek,mt6779-mmc", "mediatek,mt6795-mmc", "mediatek,mt7620-mmc", "mediatek,mt7622-mmc", "mediatek,mt7623-mmc", "mediatek,mt8135-mmc", "mediatek,mt8173-mmc", "mediatek,mt8183-mmc", "mediatek,mt8186-mmc", "mediatek,mt8188-mmc", "mediatek,mt8195-mmc", "mediatek,mt8196-mmc", "mediatek,mt8516-mmc"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 2

Array item rules (items)

Item 1

source clock

Item 2

HCLK which used for host

Item 3

independent source clock gate

clock-names — not listed as required here

Minimum number of items (minItems): 2

Array item rules (items)

Item 1

Exact value (const): "source"

Item 2

Exact value (const): "hclk"

Item 3

Exact value (const): "source_cg"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "mediatek,mt2712-mmc"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 3

Array item rules (items)

Item 1

source clock

Item 2

HCLK which used for host

Item 3

independent source clock gate

Item 4

bus clock used for internal register access (required for MSDC0/3).

clock-names — not listed as required here

Minimum number of items (minItems): 3

Array item rules (items)

Item 1

Exact value (const): "source"

Item 2

Exact value (const): "hclk"

Item 3

Exact value (const): "source_cg"

Item 4

Exact value (const): "bus_clk"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "mediatek,mt7986-mmc", "mediatek,mt7988-mmc", "mediatek,mt8183-mmc", "mediatek,mt8196-mmc"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 2

When the condition does not match (else) #

Properties and child nodes (properties)

reg — not listed as required here

Maximum number of items (maxItems): 1

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "mediatek,mt7986-mmc"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 3

Array item rules (items)

Item 1

source clock

Item 2

HCLK which used for host

Item 3

independent source clock gate

Item 4

bus clock used for internal register access (required for MSDC0/3).

Item 5

msdc subsys clock gate

clock-names — not listed as required here

Minimum number of items (minItems): 3

Array item rules (items)

Item 1

Exact value (const): "source"

Item 2

Exact value (const): "hclk"

Item 3

Exact value (const): "source_cg"

Item 4

Exact value (const): "bus_clk"

Item 5

Exact value (const): "sys_cg"

Rule 6 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "mediatek,mt7988-mmc"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

source clock

Item 2

HCLK which used for host

Item 3

Advanced eXtensible Interface

Item 4

Advanced High-performance Bus clock

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "source"

Item 2

Exact value (const): "hclk"

Item 3

Exact value (const): "axi_cg"

Item 4

Exact value (const): "ahb_cg"

Rule 7 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Allowed values (enum): "mediatek,mt6893-mmc", "mediatek,mt8186-mmc", "mediatek,mt8188-mmc", "mediatek,mt8195-mmc"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

source clock

Item 2

HCLK which used for host

Item 3

independent source clock gate

Item 4

crypto clock used for data encrypt/decrypt (optional)

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "source"

Item 2

Exact value (const): "hclk"

Item 3

Exact value (const): "source_cg"

Item 4

Exact value (const): "crypto"

Rule 8 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "mediatek,mt8192-mmc"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

source clock

Item 2

HCLK which used for host

Item 3

independent source clock gate

Item 4

msdc subsys clock gate

Item 5

peripheral bus clock gate

Item 6

AXI bus clock gate

Item 7

AHB bus clock gate

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "source"

Item 2

Exact value (const): "hclk"

Item 3

Exact value (const): "source_cg"

Item 4

Exact value (const): "sys_cg"

Item 5

Exact value (const): "pclk_cg"

Item 6

Exact value (const): "axi_cg"

Item 7

Exact value (const): "ahb_cg"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/mt8173-clk.h>
mmc0: mmc@11230000 {
    compatible = "mediatek,mt8173-mmc";
    reg = <0x11230000 0x1000>;
    interrupts = <GIC_SPI 39 IRQ_TYPE_LEVEL_LOW>;
    vmmc-supply = <&mt6397_vemc_3v3_reg>;
    vqmmc-supply = <&mt6397_vio18_reg>;
    clocks = <&pericfg CLK_PERI_MSDC30_0>,
             <&topckgen CLK_TOP_MSDC50_0_H_SEL>;
    clock-names = "source", "hclk";
    pinctrl-names = "default", "state_uhs";
    pinctrl-0 = <&mmc0_pins_default>;
    pinctrl-1 = <&mmc0_pins_uhs>;
    assigned-clocks = <&topckgen CLK_TOP_MSDC50_0_SEL>;
    assigned-clock-parents = <&topckgen CLK_TOP_MSDCPLL_D2>;
    hs400-ds-delay = <0x14015>;
    mediatek,hs200-cmd-int-delay = <26>;
    mediatek,hs400-cmd-int-delay = <14>;
    mediatek,hs400-cmd-resp-sel-rising;
};

mmc3: mmc@11260000 {
    compatible = "mediatek,mt8173-mmc";
    reg = <0x11260000 0x1000>;
    clock-names = "source", "hclk";
    clocks = <&pericfg CLK_PERI_MSDC30_3>,
             <&topckgen CLK_TOP_MSDC50_2_H_SEL>;
    interrupt-names = "msdc", "sdio_wakeup";
    interrupts-extended = <&gic GIC_SPI 74 IRQ_TYPE_LEVEL_LOW 0>,
                 <&pio 23 IRQ_TYPE_LEVEL_LOW>;
    pinctrl-names = "default", "state_uhs", "state_eint";
    pinctrl-0 = <&mmc2_pins_default>;
    pinctrl-1 = <&mmc2_pins_uhs>;
    pinctrl-2 = <&mmc2_pins_eint>;
    bus-width = <4>;
    max-frequency = <200000000>;
    cap-sd-highspeed;
    sd-uhs-sdr104;
    keep-power-in-suspend;
    wakeup-source;
    cap-sdio-irq;
    no-mmc;
    no-sd;
    non-removable;
    vmmc-supply = <&sdio_fixed_3v3>;
    vqmmc-supply = <&mt6397_vgp3_reg>;
    mmc-pwrseq = <&wifi_pwrseq>;
};

Source notes #

Annotations retained from the schema source

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

Freescale MXS MMC controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

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

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

The Freescale MXS Synchronous Serial Ports (SSP) can act as a MMC controller to support MMC, SD, and SDIO types of memory cards.

This file documents differences between the core properties in mmc.txt and the properties used by the mxsmmc driver.

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "fsl,imx23-mmc", "fsl,imx28-mmc"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

dmas — required here #

Maximum number of items (maxItems): 1

dma-names — required here #

Exact value (const): "rx-tx"

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

mmc@80010000 {
    compatible = "fsl,imx28-mmc";
    reg = <0x80010000 2000>;
    interrupts = <96>;
    clocks = <&clks 46>;
    dmas = <&dma_apbh 0>;
    dma-names = "rx-tx";
    bus-width = <8>;
};

Source notes #

Annotations retained from the schema source

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

NPCM SDHCI Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

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

Maintainers (maintainers): "Tomer Maimon <tmaimon77@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "nuvoton,npcm750-sdhci", "nuvoton,npcm845-sdhci"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

mmc@f0840000 {
  compatible = "nuvoton,npcm750-sdhci";
  reg = <0xf0840000 0x200>;
  interrupts = <0 27 4>;
  clocks = <&clk 4>;
};

Source notes #

Annotations retained from the schema source

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

Nuvoton MA35D1 SD/SDIO/MMC Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

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

Maintainers (maintainers): "Shan-Chun Hung <shanchun1218@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "nuvoton,ma35d1-sdhci"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

pinctrl-names — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "default"

Item 2

Exact value (const): "state_uhs"

pinctrl-0 — required here #

Should contain default/high speed pin ctrl.

Maximum number of items (maxItems): 1

pinctrl-1 — not listed as required here #

Should contain uhs mode pin ctrl.

Maximum number of items (maxItems): 1

resets — required here #

Maximum number of items (maxItems): 1

nuvoton,sys — required here #

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

phandle to access GCR (Global Control Register) registers.

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "pinctrl-names", "pinctrl-0", "resets", "nuvoton,sys"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/nuvoton,ma35d1-clk.h>
#include <dt-bindings/reset/nuvoton,ma35d1-reset.h>

soc {
    #address-cells = <2>;
    #size-cells = <2>;
    mmc@40190000 {
        compatible = "nuvoton,ma35d1-sdhci";
        reg = <0x0 0x40190000 0x0 0x2000>;
        interrupts = <GIC_SPI 31 IRQ_TYPE_LEVEL_HIGH>;
        clocks = <&clk SDH1_GATE>;
        pinctrl-names = "default", "state_uhs";
        pinctrl-0 = <&pinctrl_sdhci1>;
        pinctrl-1 = <&pinctrl_sdhci1_uhs>;
        resets = <&sys MA35D1_RESET_SDH1>;
        nuvoton,sys = <&sys>;
        vqmmc-supply = <&sdhci1_vqmmc_regulator>;
        bus-width = <8>;
        max-frequency = <200000000>;
    };
};

Source notes #

Annotations retained from the schema source

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

NVIDIA Tegra Secure Digital Host Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

Actions Semi Owl SoCs SD/MMC/SDIO controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

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

All of these rules must match (allOf) #

Rule 1 #

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

Maintainers (maintainers): "Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "actions,owl-mmc"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "actions,s500-mmc", "actions,s700-mmc"

Item 2

Exact value (const): "actions,owl-mmc"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 1

resets — required here #

Maximum number of items (maxItems): 1

dmas — required here #

Maximum number of items (maxItems): 1

dma-names — required here #

Exact value (const): "mmc"

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

mmc0: mmc@e0330000 {
    compatible = "actions,owl-mmc";
    reg = <0xe0330000 0x4000>;
    interrupts = <0 42 4>;
    clocks = <&cmu 56>;
    resets = <&cmu 23>;
    dmas = <&dma 2>;
    dma-names = "mmc";
    bus-width = <4>;
};

Source notes #

Annotations retained from the schema source

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

Renesas Multi Media Card Interface (MMCIF) Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

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

Maintainers (maintainers): "Wolfram Sang <wsa+renesas@sang-engineering.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Array item rules (items) #

Item 1

Allowed values (enum): "renesas,mmcif-r7s72100", "renesas,mmcif-r8a73a4", "renesas,mmcif-r8a7740", "renesas,mmcif-r8a7742", "renesas,mmcif-r8a7743", "renesas,mmcif-r8a7744", "renesas,mmcif-r8a7745", "renesas,mmcif-r8a7778", "renesas,mmcif-r8a7790", "renesas,mmcif-r8a7791", "renesas,mmcif-r8a7793", "renesas,mmcif-r8a7794", "renesas,mmcif-sh73a0"

Item 2

Exact value (const): "renesas,sh-mmcif"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

true — No constraints added by this property rule.

clocks — required here #

Maximum number of items (maxItems): 1

power-domains — required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Maximum number of items (maxItems): 1

dmas — not listed as required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 4

Must contain a list of pairs of references to DMA specifiers, one for transmission, and one for reception.

dma-names — not listed as required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 4

Array item rules (items) #

Allowed values (enum): "tx", "rx"

max-frequency — not listed as required here #

true — No constraints added by this property rule.

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

Condition (if) #

Properties and child nodes (properties) #

compatible — not listed as required here #

Rule for matching array elements (contains)

Exact value (const): "renesas,mmcif-r7s72100"

When the condition matches (then) #

Properties and child nodes (properties) #

interrupts — not listed as required here #

Array item rules (items)

Item 1

Error interrupt

Item 2

Normal operation interrupt

Item 3

Card detection interrupt

When the condition does not match (else) #

Condition (if) #

Properties and child nodes (properties) #

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "renesas,mmcif-r8a7740", "renesas,mmcif-sh73a0"

When the condition matches (then) #

Properties and child nodes (properties) #

interrupts — not listed as required here

Array item rules (items)

Item 1

Error interrupt

Item 2

Normal operation interrupt

When the condition does not match (else) #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "renesas,mmcif-r8a73a4", "renesas,mmcif-r8a7778"

When the condition matches (then) #

Properties and child nodes (properties)

interrupts — not listed as required here

Maximum number of items (maxItems): 1

When the condition does not match (else) #

Properties and child nodes (properties)

interrupts — not listed as required here

Maximum number of items (maxItems): 1

Required in this object (required): "resets"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/r8a7790-cpg-mssr.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/r8a7790-sysc.h>

mmcif0: mmc@ee200000 {
        compatible = "renesas,mmcif-r8a7790", "renesas,sh-mmcif";
        reg = <0xee200000 0x80>;
        interrupts = <GIC_SPI 169 IRQ_TYPE_LEVEL_HIGH>;
        clocks = <&cpg CPG_MOD 315>;
        power-domains = <&sysc R8A7790_PD_ALWAYS_ON>;
        resets = <&cpg 315>;
        dmas = <&dmac0 0xd1>, <&dmac0 0xd2>, <&dmac1 0xd1>, <&dmac1 0xd2>;
        dma-names = "tx", "rx", "tx", "rx";
        max-frequency = <97500000>;
};

Source notes #

Annotations retained from the schema source

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

Line 19: RZ/A1H

Line 20: R-Mobile APE6

Line 21: R-Mobile A1

Line 22: RZ/G1H

Line 23: RZ/G1M

Line 24: RZ/G1N

Line 25: RZ/G1E

Line 26: R-Car M1A

Line 27: R-Car H2

Line 28: R-Car M2-W

Line 29: R-Car M2-N

Line 30: R-Car E2

Line 31: SH-Mobile AG5

Renesas SDHI SD/MMC controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

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

Maintainers (maintainers): "Wolfram Sang <wsa+renesas@sang-engineering.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "renesas,sdhi-mmc-r8a77470", "renesas,sdhi-r7s72100", "renesas,sdhi-r7s9210", "renesas,sdhi-r8a73a4", "renesas,sdhi-r8a7740", "renesas,sdhi-r9a09g057", "renesas,sdhi-sh73a0"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "renesas,sdhi-r8a7778", "renesas,sdhi-r8a7779"

Item 2

Exact value (const): "renesas,rcar-gen1-sdhi"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "renesas,sdhi-r8a7742", "renesas,sdhi-r8a7743", "renesas,sdhi-r8a7744", "renesas,sdhi-r8a7745", "renesas,sdhi-r8a77470", "renesas,sdhi-r8a7790", "renesas,sdhi-r8a7791", "renesas,sdhi-r8a7792", "renesas,sdhi-r8a7793", "renesas,sdhi-r8a7794"

Item 2

Exact value (const): "renesas,rcar-gen2-sdhi"

Rule 4

Array item rules (items)

Item 1

Allowed values (enum): "renesas,sdhi-r8a774a1", "renesas,sdhi-r8a774b1", "renesas,sdhi-r8a774c0", "renesas,sdhi-r8a774e1", "renesas,sdhi-r8a7795", "renesas,sdhi-r8a7796", "renesas,sdhi-r8a77961", "renesas,sdhi-r8a77965", "renesas,sdhi-r8a77970", "renesas,sdhi-r8a77980", "renesas,sdhi-r8a77990", "renesas,sdhi-r8a77995"

Item 2

Exact value (const): "renesas,rcar-gen3-sdhi"

Rule 5

Array item rules (items)

Item 1

Allowed values (enum): "renesas,sdhi-r8a779a0", "renesas,sdhi-r8a779f0", "renesas,sdhi-r8a779g0", "renesas,sdhi-r8a779h0"

Item 2

Exact value (const): "renesas,rcar-gen4-sdhi"

Rule 6

Array item rules (items)

Item 1

Allowed values (enum): "renesas,sdhi-r9a07g043", "renesas,sdhi-r9a07g044", "renesas,sdhi-r9a07g054", "renesas,sdhi-r9a08g045", "renesas,sdhi-r9a09g011"

Item 2

Exact value (const): "renesas,rzg2l-sdhi"

Rule 7

Array item rules (items)

Item 1

Allowed values (enum): "renesas,sdhi-r9a09g047", "renesas,sdhi-r9a09g056", "renesas,sdhi-r9a09g077", "renesas,sdhi-r9a09g087"

Item 2

Exact value (const): "renesas,sdhi-r9a09g057"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

clock-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

dmas — not listed as required here #

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 4

dma-names — not listed as required here #

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 4

Array item rules (items) #

Allowed values (enum): "tx", "rx"

iommus — not listed as required here #

Maximum number of items (maxItems): 1

power-domains — required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Maximum number of items (maxItems): 1

pinctrl-0 — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

pinctrl-1 — not listed as required here #

Maximum number of items (maxItems): 1

pinctrl-names — not listed as required here #

true — No constraints added by this property rule.

max-frequency — not listed as required here #

true — No constraints added by this property rule.

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): "renesas,sdhi-r9a09g077", "renesas,sdhi-r9a09g087"

When the condition matches (then) #

Properties and child nodes (properties)

resets — not listed as required here

false — Not permitted by this property rule.

clocks — not listed as required here

Array item rules (items)

Item 1

ACLK, IMCLK, SDHI channel bus and main clocks.

Item 2

CLK_HS, SDHI channel High speed clock.

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "aclk"

Item 2

Exact value (const): "clkh"

When the condition does not match (else) #

Condition (if)

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "renesas,sdhi-r9a09g057", "renesas,rzg2l-sdhi"

When the condition matches (then)

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

IMCLK, SDHI channel main clock1.

Item 2

CLK_HS, SDHI channel High speed clock which operates 4 times that of SDHI channel main clock1.

Item 3

IMCLK2, SDHI channel main clock2. When this clock is turned off, external SD card detection cannot be detected.

Item 4

ACLK, SDHI channel bus clock.

clock-names — required here

Array item rules (items)

Item 1

Exact value (const): "core"

Item 2

Exact value (const): "clkh"

Item 3

Exact value (const): "cd"

Item 4

Exact value (const): "aclk"

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

When the condition does not match (else)

Condition (if)

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "renesas,rcar-gen2-sdhi", "renesas,rcar-gen3-sdhi", "renesas,rcar-gen4-sdhi"

When the condition matches (then)

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

clock-names — not listed as required here

Minimum number of items (minItems): 1

Items must be unique (uniqueItems): true

Array item rules (items)

Item 1

Exact value (const): "core"

Item 2

Allowed values (enum): "clkh", "cd"

Item 3

Exact value (const): "cd"

When the condition does not match (else)

Properties and child nodes (properties)

clocks — not listed as 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

Array item rules (items)

Item 1

Exact value (const): "core"

Item 2

Exact value (const): "cd"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "renesas,sdhi-mmc-r8a77470"

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): "state_uhs"

When the condition does not match (else) #

Properties and child nodes (properties)

pinctrl-names — not listed as required here

Minimum number of items (minItems): 1

Array item rules (items)

Item 1

Exact value (const): "default"

Item 2

Exact value (const): "state_uhs"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Allowed values (enum): "renesas,sdhi-r7s72100", "renesas,sdhi-r7s9210"

When the condition matches (then) #

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

The internal card detection logic that exists in these controllers is sectioned off to be run by a separate second clock source to allow the main core clock to be turned off to save power.

Rule 5 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "renesas,sdhi-r9a09g057"

When the condition matches (then) #

Properties and child nodes (properties)

vqmmc-regulator — not listed as required here

Value type (type): "object"

VQMMC SD regulator

Shared schema rule ($ref): /schemas/regulator/regulator.yaml#

Properties not evaluated by applicable rules (unevaluatedProperties)

false

Not allowed by this rule.

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/r8a7790-cpg-mssr.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/power/r8a7790-sysc.h>

sdhi0: mmc@ee100000 {
    compatible = "renesas,sdhi-r8a7790", "renesas,rcar-gen2-sdhi";
    reg = <0xee100000 0x328>;
    interrupts = <GIC_SPI 165 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&cpg CPG_MOD 314>;
    dmas = <&dmac0 0xcd>, <&dmac0 0xce>, <&dmac1 0xcd>, <&dmac1 0xce>;
    dma-names = "tx", "rx", "tx", "rx";
    max-frequency = <195000000>;
    power-domains = <&sysc R8A7790_PD_ALWAYS_ON>;
    resets = <&cpg 314>;
};

sdhi1: mmc@ee120000 {
    compatible = "renesas,sdhi-r8a7790", "renesas,rcar-gen2-sdhi";
    reg = <0xee120000 0x328>;
    interrupts = <GIC_SPI 166 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&cpg CPG_MOD 313>;
    dmas = <&dmac0 0xc9>, <&dmac0 0xca>, <&dmac1 0xc9>, <&dmac1 0xca>;
    dma-names = "tx", "rx", "tx", "rx";
    max-frequency = <195000000>;
    power-domains = <&sysc R8A7790_PD_ALWAYS_ON>;
    resets = <&cpg 313>;
};

sdhi2: mmc@ee140000 {
    compatible = "renesas,sdhi-r8a7790", "renesas,rcar-gen2-sdhi";
    reg = <0xee140000 0x100>;
    interrupts = <GIC_SPI 167 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&cpg CPG_MOD 312>;
    dmas = <&dmac0 0xc1>, <&dmac0 0xc2>, <&dmac1 0xc1>, <&dmac1 0xc2>;
    dma-names = "tx", "rx", "tx", "rx";
    max-frequency = <97500000>;
    power-domains = <&sysc R8A7790_PD_ALWAYS_ON>;
    resets = <&cpg 312>;
};

sdhi3: mmc@ee160000 {
    compatible = "renesas,sdhi-r8a7790", "renesas,rcar-gen2-sdhi";
    reg = <0xee160000 0x100>;
    interrupts = <GIC_SPI 168 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&cpg CPG_MOD 311>;
    dmas = <&dmac0 0xd3>, <&dmac0 0xd4>, <&dmac1 0xd3>, <&dmac1 0xd4>;
    dma-names = "tx", "rx", "tx", "rx";
    max-frequency = <97500000>;
    power-domains = <&sysc R8A7790_PD_ALWAYS_ON>;
    resets = <&cpg 311>;
};

Source notes #

Annotations retained from the schema source

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

Line 16: RZ/G1C

Line 17: RZ/A1H

Line 18: SH-Mobile AG5

Line 19: R-Mobile APE6

Line 20: R-Mobile A1

Line 21: RZ/V2H(P)

Line 22: R-Mobile APE6

Line 25: R-Car M1

Line 26: R-Car H1

Line 27: R-Car Gen1

Line 30: RZ/G1H

Line 31: RZ/G1M

Line 32: RZ/G1N

Line 33: RZ/G1E

Line 34: RZ/G1C

Line 35: R-Car H2

Line 36: R-Car M2-W

Line 37: R-Car V2H

Line 38: R-Car M2-N

Line 39: R-Car E2

Line 40: R-Car Gen2 and RZ/G1

Line 43: RZ/G2M

Line 44: RZ/G2N

Line 45: RZ/G2E

Line 46: RZ/G2H

Line 47: R-Car H3

Line 48: R-Car M3-W

Line 49: R-Car M3-W+

Line 50: R-Car M3-N

Line 51: R-Car V3M

Line 52: R-Car V3H

Line 53: R-Car E3

Line 54: R-Car D3

Line 55: R-Car Gen3 or RZ/G2

Line 58: R-Car V3U

Line 59: R-Car S4-8

Line 60: R-Car V4H

Line 61: R-Car V4M

Line 62: R-Car Gen4

Line 65: RZ/G2UL and RZ/Five

Line 66: RZ/G2{L,LC}

Line 67: RZ/V2L

Line 68: RZ/G3S

Line 69: RZ/V2M

Line 73: RZ/G3E

Line 74: RZ/V2N

Line 75: RZ/T2H

Line 76: RZ/N2H

Line 77: RZ/V2H(P)

Rockchip designware mobile storage host controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

Schema identifier ($id): "http://devicetree.org/schemas/mmc/rockchip-dw-mshc.yaml#"

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

Rockchip uses the Synopsys designware mobile storage host controller to interface a SoC with storage medium such as eMMC or SD/MMC cards. This file documents the combined properties for the core Synopsys dw mshc controller that are not already included in the synopsys-dw-mshc-common.yaml file and the Rockchip specific extensions.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): synopsys-dw-mshc-common.yaml#

Maintainers (maintainers): "Heiko Stuebner <heiko@sntech.de>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "rockchip,rk2928-dw-mshc"

Rule 2

Exact value (const): "rockchip,rk3288-dw-mshc"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "rockchip,px30-dw-mshc", "rockchip,rk1808-dw-mshc", "rockchip,rk3036-dw-mshc", "rockchip,rk3128-dw-mshc", "rockchip,rk3228-dw-mshc", "rockchip,rk3308-dw-mshc", "rockchip,rk3328-dw-mshc", "rockchip,rk3368-dw-mshc", "rockchip,rk3399-dw-mshc", "rockchip,rk3506-dw-mshc", "rockchip,rk3528-dw-mshc", "rockchip,rk3562-dw-mshc", "rockchip,rk3568-dw-mshc", "rockchip,rk3588-dw-mshc", "rockchip,rv1108-dw-mshc", "rockchip,rv1126-dw-mshc"

Item 2

Exact value (const): "rockchip,rk3288-dw-mshc"

Rule 4

Exact value (const): "rockchip,rk3576-dw-mshc"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 4

Handle to "biu" and "ciu" clocks for the bus interface unit clock and the card interface unit clock. If "ciu-drive" and "ciu-sample" are specified in clock-names, it should also contain handles to these clocks.

clock-names — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

Exact value (const): "biu"

Item 2

Exact value (const): "ciu"

Item 3

Exact value (const): "ciu-drive"

Item 4

Exact value (const): "ciu-sample"

Apart from the clock-names "biu" and "ciu" two more clocks "ciu-drive" and "ciu-sample" are supported. They are used to control the clock phases, "ciu-sample" is required for tuning high speed modes.

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

rockchip,default-sample-phase — not listed as required here #

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

Minimum value (minimum): 0

Maximum value (maximum): 360

Default value (default): 0

The default phase to set "ciu-sample" at probing, low speeds or in case where all phases work at tuning time. If not specified 0 deg will be used.

rockchip,desired-num-phases — not listed as required here #

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

Minimum value (minimum): 0

Maximum value (maximum): 360

Default value (default): 360

The desired number of times that the host execute tuning when needed. If not specified, the host will do tuning for 360 times, namely tuning for each degree.

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/rk3288-cru.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>
sdmmc: mmc@ff0c0000 {
  compatible = "rockchip,rk3288-dw-mshc";
  reg = <0xff0c0000 0x4000>;
  interrupts = <GIC_SPI 32 IRQ_TYPE_LEVEL_HIGH>;
  clocks = <&cru HCLK_SDMMC>, <&cru SCLK_SDMMC>,
           <&cru SCLK_SDMMC_DRV>, <&cru SCLK_SDMMC_SAMPLE>;
  clock-names = "biu", "ciu", "ciu-drive", "ciu-sample";
  resets = <&cru SRST_MMC0>;
  reset-names = "reset";
  fifo-depth = <0x100>;
  max-frequency = <150000000>;
};

Source notes #

Annotations retained from the schema source

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

Line 22: Everything else is described in the common file

Line 26: for Rockchip RK2928 and before RK3288

Line 28: for Rockchip RK3288

Line 49: for Rockchip RK3576 with phase tuning inside the controller

Samsung Exynos SoC specific extensions to the Synopsys Designware Mobile Storage Host Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

Schema identifier ($id): "http://devicetree.org/schemas/mmc/samsung,exynos-dw-mshc.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 #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "axis,artpec8-dw-mshc", "samsung,exynos4210-dw-mshc", "samsung,exynos4412-dw-mshc", "samsung,exynos5250-dw-mshc", "samsung,exynos5420-dw-mshc", "samsung,exynos5420-dw-mshc-smu", "samsung,exynos7-dw-mshc", "samsung,exynos7-dw-mshc-smu", "samsung,exynos7870-dw-mshc", "samsung,exynos7870-dw-mshc-smu"

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "samsung,exynos5433-dw-mshc-smu", "samsung,exynos7885-dw-mshc-smu", "samsung,exynos850-dw-mshc-smu", "samsung,exynos8890-dw-mshc-smu", "samsung,exynos8895-dw-mshc-smu"

Item 2

Exact value (const): "samsung,exynos7-dw-mshc-smu"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 2

Handle to "biu" and "ciu" clocks for the bus interface unit clock and the card interface unit clock.

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "biu"

Item 2

Exact value (const): "ciu"

samsung,dw-mshc-ciu-div — not listed as required here #

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

Minimum value (minimum): 0

Maximum value (maximum): 7

The divider value for the card interface unit (ciu) clock.

samsung,dw-mshc-ddr-timing — required here #

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

Array item rules (items) #

Item 1

CIU clock phase shift value for tx mode

Minimum value (minimum): 0

Maximum value (maximum): 7

Item 2

CIU clock phase shift value for rx mode

Minimum value (minimum): 0

Maximum value (maximum): 7

The value of CUI clock phase shift value in transmit mode and CIU clock phase shift value in receive mode for double data rate mode operation. See also samsung,dw-mshc-hs400-timing property.

samsung,dw-mshc-hs400-timing — not listed as required here #

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

Array item rules (items) #

Item 1

CIU clock phase shift value for tx mode

Minimum value (minimum): 0

Maximum value (maximum): 7

Item 2

CIU clock phase shift value for rx mode

Minimum value (minimum): 0

Maximum value (maximum): 7

The value of CIU TX and RX clock phase shift value for HS400 mode
operation.
Valid values for SDR and DDR CIU clock timing::
  - valid value for tx phase shift and rx phase shift is 0 to 7.
  - when CIU clock divider value is set to 3, all possible 8 phase shift
    values can be used.
  - if CIU clock divider value is 0 (that is divide by 1), both tx and rx
    phase shift clocks should be 0.
If missing, values from samsung,dw-mshc-ddr-timing property are used.

samsung,dw-mshc-sdr-timing — required here #

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

Array item rules (items) #

Item 1

CIU clock phase shift value for tx mode

Minimum value (minimum): 0

Maximum value (maximum): 7

Item 2

CIU clock phase shift value for rx mode

Minimum value (minimum): 0

Maximum value (maximum): 7

The value of CIU clock phase shift value in transmit mode and CIU clock phase shift value in receive mode for single data rate mode operation. See also samsung,dw-mshc-hs400-timing property.

samsung,read-strobe-delay — not listed as required here #

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

RCLK (Data strobe) delay to control HS400 mode (Latency value for delay line in Read path). If missing, default from hardware is used.

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "samsung,dw-mshc-ddr-timing", "samsung,dw-mshc-sdr-timing"

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): synopsys-dw-mshc-common.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,exynos5250-dw-mshc", "samsung,exynos5420-dw-mshc", "samsung,exynos7-dw-mshc", "samsung,exynos7-dw-mshc-smu", "axis,artpec8-dw-mshc"

When the condition matches (then) #

Required in this object (required): "samsung,dw-mshc-ciu-div"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

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

mmc@12220000 {
    compatible = "samsung,exynos5420-dw-mshc";
    interrupts = <GIC_SPI 77 IRQ_TYPE_LEVEL_HIGH>;
    #address-cells = <1>;
    #size-cells = <0>;
    reg = <0x12220000 0x1000>;
    clocks = <&clock CLK_MMC2>, <&clock CLK_SCLK_MMC2>;
    clock-names = "biu", "ciu";
    fifo-depth = <0x40>;
    card-detect-delay = <200>;
    samsung,dw-mshc-ciu-div = <3>;
    samsung,dw-mshc-sdr-timing = <0 4>;
    samsung,dw-mshc-ddr-timing = <0 2>;
    pinctrl-names = "default";
    pinctrl-0 = <&sd2_clk &sd2_cmd &sd2_cd &sd2_wp &sd2_bus1 &sd2_bus4>;
    bus-width = <4>;
    cap-sd-highspeed;
    max-frequency = <200000000>;
    vmmc-supply = <&ldo19_reg>;
    vqmmc-supply = <&ldo13_reg>;
    sd-uhs-sdr50;
    sd-uhs-sdr104;
    sd-uhs-ddr50;
};

Source notes #

Annotations retained from the schema source

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

Samsung SoC SDHCI Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

TI AM654 MMC Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

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

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

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "ti,am62-sdhci", "ti,am64-sdhci-4bit", "ti,am64-sdhci-8bit", "ti,am654-sdhci-5.1", "ti,j721e-sdhci-4bit", "ti,j721e-sdhci-8bit"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "ti,j7200-sdhci-8bit"

Item 2

Exact value (const): "ti,j721e-sdhci-8bit"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "ti,j7200-sdhci-4bit"

Item 2

Exact value (const): "ti,j721e-sdhci-4bit"

reg — required here #

Maximum number of items (maxItems): 2

interrupts — required here #

Maximum number of items (maxItems): 1

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

Handles to input clocks

clock-names — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "clk_ahb"

Item 2

Exact value (const): "clk_xin"

dma-coherent — not listed as required here #

true — No constraints added by this property rule.

ti,otap-del-sel-legacy — required here #

Output tap delay for SD/MMC legacy timing

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

Minimum value (minimum): 0

Maximum value (maximum): 15

ti,otap-del-sel-mmc-hs — not listed as required here #

Output tap delay for MMC high speed timing

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

Minimum value (minimum): 0

Maximum value (maximum): 15

ti,otap-del-sel-sd-hs — not listed as required here #

Output tap delay for SD high speed timing

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

Minimum value (minimum): 0

Maximum value (maximum): 15

ti,otap-del-sel-sdr12 — not listed as required here #

Output tap delay for SD UHS SDR12 timing

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

Minimum value (minimum): 0

Maximum value (maximum): 15

ti,otap-del-sel-sdr25 — not listed as required here #

Output tap delay for SD UHS SDR25 timing

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

Minimum value (minimum): 0

Maximum value (maximum): 15

ti,otap-del-sel-sdr50 — not listed as required here #

Output tap delay for SD UHS SDR50 timing

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

Minimum value (minimum): 0

Maximum value (maximum): 15

ti,otap-del-sel-sdr104 — not listed as required here #

Output tap delay for SD UHS SDR104 timing

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

Minimum value (minimum): 0

Maximum value (maximum): 15

ti,otap-del-sel-ddr50 — not listed as required here #

Output tap delay for SD UHS DDR50 timing

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

Minimum value (minimum): 0

Maximum value (maximum): 15

ti,otap-del-sel-ddr52 — not listed as required here #

Output tap delay for eMMC DDR52 timing

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

Minimum value (minimum): 0

Maximum value (maximum): 15

ti,otap-del-sel-hs200 — not listed as required here #

Output tap delay for eMMC HS200 timing

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

Minimum value (minimum): 0

Maximum value (maximum): 15

ti,otap-del-sel-hs400 — not listed as required here #

Output tap delay for eMMC HS400 timing

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

Minimum value (minimum): 0

Maximum value (maximum): 15

ti,itap-del-sel-legacy — not listed as required here #

Input tap delay for SD/MMC legacy timing

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

Minimum value (minimum): 0

Maximum value (maximum): 31

ti,itap-del-sel-mmc-hs — not listed as required here #

Input tap delay for MMC high speed timing

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

Minimum value (minimum): 0

Maximum value (maximum): 31

ti,itap-del-sel-sd-hs — not listed as required here #

Input tap delay for SD high speed timing

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

Minimum value (minimum): 0

Maximum value (maximum): 31

ti,itap-del-sel-sdr12 — not listed as required here #

Input tap delay for SD UHS SDR12 timing

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

Minimum value (minimum): 0

Maximum value (maximum): 31

ti,itap-del-sel-sdr25 — not listed as required here #

Input tap delay for SD UHS SDR25 timing

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

Minimum value (minimum): 0

Maximum value (maximum): 31

ti,itap-del-sel-ddr50 — not listed as required here #

Input tap delay for MMC DDR50 timing

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

Minimum value (minimum): 0

Maximum value (maximum): 31

ti,itap-del-sel-ddr52 — not listed as required here #

Input tap delay for MMC DDR52 timing

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

Minimum value (minimum): 0

Maximum value (maximum): 31

ti,trm-icp — not listed as required here #

DLL trim select

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

Minimum value (minimum): 0

Maximum value (maximum): 15

ti,driver-strength-ohm — not listed as required here #

DLL drive strength in ohms

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

Allowed values (enum): 33, 40, 50, 66, 100

ti,strobe-sel — not listed as required here #

strobe select delay for HS400 speed mode.

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

ti,clkbuf-sel — not listed as required here #

Clock Delay Buffer Select

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

ti,fails-without-test-cd — not listed as required here #

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

When present, indicates that the CD line is not connected and the controller is required to be forced into Test mode to set the TESTCD bit.

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "clock-names", "ti,otap-del-sel-legacy"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

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

bus {
    #address-cells = <2>;
    #size-cells = <2>;

    mmc0: mmc@4f80000 {
        compatible = "ti,am654-sdhci-5.1";
        reg = <0x0 0x4f80000 0x0 0x260>, <0x0 0x4f90000 0x0 0x134>;
        power-domains = <&k3_pds 47>;
        clocks = <&k3_clks 47 0>, <&k3_clks 47 1>;
        clock-names = "clk_ahb", "clk_xin";
        interrupts = <GIC_SPI 136 IRQ_TYPE_LEVEL_HIGH>;
        sdhci-caps-mask = <0x80000007 0x0>;
        mmc-ddr-1_8v;
        ti,otap-del-sel-legacy = <0x0>;
        ti,otap-del-sel-mmc-hs = <0x0>;
        ti,otap-del-sel-ddr52 = <0x5>;
        ti,otap-del-sel-hs200 = <0x5>;
        ti,otap-del-sel-hs400 = <0x0>;
        ti,itap-del-sel-legacy = <0x10>;
        ti,itap-del-sel-mmc-hs = <0xa>;
        ti,itap-del-sel-ddr52 = <0x3>;
        ti,trm-icp = <0x8>;
    };
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright (C) 2020 Texas Instruments Incorporated - http://www.ti.com/

Line 55: PHY output tap delays:

Line 56: Used to delay the data valid window and align it to the sampling clock.

Line 57: Binding needs to be provided for each supported speed mode otherwise the

Line 58: corresponding mode will be disabled.

Line 126: PHY input tap delays:

Line 127: Used to delay the data valid window and align it to the sampling clock for

Line 128: modes that don't support tuning

SDHCI Controller Common Properties

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

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

Maintainers (maintainers): "Adrian Hunter <adrian.hunter@intel.com>"

Common properties present on Secure Digital Host Controller Interface (SDHCI) devices.

Properties and child nodes (properties) #

sdhci-caps — not listed as required here #

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

Additionally present SDHCI capabilities - values for SDHCI_CAPABILITIES and SDHCI_CAPABILITIES_1 registers.

sdhci-caps-mask — not listed as required here #

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

Masked SDHCI capabilities to remove from SDHCI_CAPABILITIES and SDHCI_CAPABILITIES_1 registers.

All of these rules must match (allOf) #

Rule 1 #

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

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 OR BSD-2-Clause

Qualcomm SDHCI controller (sdhci-msm)

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

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

Maintainers (maintainers): "Bjorn Andersson <andersson@kernel.org>", "Konrad Dybcio <konradybcio@kernel.org>"

Secure Digital Host Controller Interface (SDHCI) present on Qualcomm SOCs supports SD/MMC/SDIO devices.

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Allowed values (enum): "qcom,sdhci-msm-v4"

Deprecated (deprecated): true

Rule 2

Array item rules (items)

Item 1

Allowed values (enum): "qcom,apq8084-sdhci", "qcom,ipq4019-sdhci", "qcom,ipq8074-sdhci", "qcom,msm8226-sdhci", "qcom,msm8953-sdhci", "qcom,msm8974-sdhci", "qcom,msm8976-sdhci", "qcom,msm8916-sdhci", "qcom,msm8992-sdhci", "qcom,msm8994-sdhci", "qcom,msm8996-sdhci", "qcom,msm8998-sdhci"

Item 2

Exact value (const): "qcom,sdhci-msm-v4"

Rule 3

Array item rules (items)

Item 1

Allowed values (enum): "qcom,ipq5018-sdhci", "qcom,ipq5332-sdhci", "qcom,ipq5424-sdhci", "qcom,ipq6018-sdhci", "qcom,ipq9574-sdhci", "qcom,kaanapali-sdhci", "qcom,milos-sdhci", "qcom,qcm2290-sdhci", "qcom,qcs404-sdhci", "qcom,qcs615-sdhci", "qcom,qcs8300-sdhci", "qcom,qdu1000-sdhci", "qcom,sa8775p-sdhci", "qcom,sar2130p-sdhci", "qcom,sc7180-sdhci", "qcom,sc7280-sdhci", "qcom,sc8280xp-sdhci", "qcom,sdm630-sdhci", "qcom,sdm670-sdhci", "qcom,sdm845-sdhci", "qcom,sdx55-sdhci", "qcom,sdx65-sdhci", "qcom,sdx75-sdhci", "qcom,sm6115-sdhci", "qcom,sm6125-sdhci", "qcom,sm6350-sdhci", "qcom,sm6375-sdhci", "qcom,sm7150-sdhci", "qcom,sm8150-sdhci", "qcom,sm8250-sdhci", "qcom,sm8350-sdhci", "qcom,sm8450-sdhci", "qcom,sm8550-sdhci", "qcom,sm8650-sdhci", "qcom,sm8750-sdhci", "qcom,x1e80100-sdhci"

Item 2

Exact value (const): "qcom,sdhci-msm-v5"

reg — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

reg-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 4

clocks — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

Main peripheral bus clock, PCLK/HCLK - AHB Bus clock

Item 2

SDC MMC clock, MCLK

Item 3

TCXO clock

Item 4

clock for Inline Crypto Engine

Item 5

SDCC bus voter clock

Item 6

reference clock for RCLK delay calibration

Item 7

sleep clock for RCLK delay calibration

clock-names — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

Exact value (const): "iface"

Item 2

Exact value (const): "core"

Item 3

Exact value (const): "xo"

Item 4

Allowed values (enum): "ice", "bus", "cal", "sleep"

Item 5

Allowed values (enum): "ice", "bus", "cal", "sleep"

Item 6

Allowed values (enum): "ice", "bus", "cal", "sleep"

Item 7

Allowed values (enum): "ice", "bus", "cal", "sleep"

dma-coherent — not listed as required here #

true — No constraints added by this property rule.

interrupts — required here #

Maximum number of items (maxItems): 2

interrupt-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "hc_irq"

Item 2

Exact value (const): "pwr_irq"

pinctrl-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "default"

Item 2

Exact value (const): "sleep"

pinctrl-0 — not listed as required here #

Should specify pin control groups used for this controller.

pinctrl-1 — not listed as required here #

Should specify sleep pin control groups used for this controller.

resets — not listed as required here #

Maximum number of items (maxItems): 1

qcom,ddr-config — not listed as required here #

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

platform specific settings for DDR_CONFIG reg.

qcom,dll-config — not listed as required here #

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

platform specific settings for DLL_CONFIG reg.

iommus — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 8

phandle to apps_smmu node with sid mask.

interconnects — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

data path, sdhc to ddr

Item 2

config path, cpu to sdhc

interconnect-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "sdhc-ddr"

Item 2

Exact value (const): "cpu-sdhc"

power-domains — not listed as required here #

A phandle to sdhci power domain node

Maximum number of items (maxItems): 1

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

true — No constraints added by this property rule.

Properties matching a name pattern (patternProperties) #

^opp-table(-[a-z0-9]+)?$ — name matches this regular expression #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Exact value (const): "operating-points-v2"

When the condition matches (then) #

Properties matching a name pattern (patternProperties)

^opp-?[0-9]+$ — name matches this regular expression

Required in this object (required): "required-opps"

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

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)

Allowed values (enum): "qcom,sdhci-msm-v4"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 2

Array item rules (items)

Item 1

Host controller register map

Item 2

SD Core register map

Item 3

CQE register map

Item 4

Inline Crypto Engine register map

reg-names — not listed as required here

Minimum number of items (minItems): 2

Array item rules (items)

Item 1

Exact value (const): "hc"

Item 2

Exact value (const): "core"

Item 3

Exact value (const): "cqhci"

Item 4

Exact value (const): "ice"

When the condition does not match (else) #

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 1

Array item rules (items)

Item 1

Host controller register map

Item 2

CQE register map

Item 3

Inline Crypto Engine register map

reg-names — not listed as required here

Minimum number of items (minItems): 1

Array item rules (items)

Item 1

Exact value (const): "hc"

Item 2

Exact value (const): "cqhci"

Item 3

Exact value (const): "ice"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/clock/qcom,gcc-sm8250.h>
#include <dt-bindings/clock/qcom,rpmh.h>
#include <dt-bindings/power/qcom,rpmhpd.h>

sdhc_2: mmc@8804000 {
  compatible = "qcom,sm8250-sdhci", "qcom,sdhci-msm-v5";
  reg = <0 0x08804000 0 0x1000>;

  interrupts = <GIC_SPI 204 IRQ_TYPE_LEVEL_HIGH>,
               <GIC_SPI 222 IRQ_TYPE_LEVEL_HIGH>;
  interrupt-names = "hc_irq", "pwr_irq";

  clocks = <&gcc GCC_SDCC2_AHB_CLK>,
           <&gcc GCC_SDCC2_APPS_CLK>,
           <&rpmhcc RPMH_CXO_CLK>;
  clock-names = "iface", "core", "xo";
  iommus = <&apps_smmu 0x4a0 0x0>;
  qcom,dll-config = <0x0007642c>;
  qcom,ddr-config = <0x80040868>;
  power-domains = <&rpmhpd RPMHPD_CX>;

  operating-points-v2 = <&sdhc2_opp_table>;

  sdhc2_opp_table: opp-table {
    compatible = "operating-points-v2";

    opp-19200000 {
      opp-hz = /bits/ 64 <19200000>;
      required-opps = <&rpmhpd_opp_min_svs>;
    };

    opp-50000000 {
      opp-hz = /bits/ 64 <50000000>;
      required-opps = <&rpmhpd_opp_low_svs>;
    };

    opp-100000000 {
      opp-hz = /bits/ 64 <100000000>;
      required-opps = <&rpmhpd_opp_svs>;
    };

    opp-202000000 {
      opp-hz = /bits/ 64 <202000000>;
      required-opps = <&rpmhpd_opp_svs_l1>;
    };
  };
};

Source notes #

Annotations retained from the schema source

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

Line 37: for sdcc versions less than 5.0

Line 76: for sdcc version 5.0

Marvell PXA SDHCI v1/v2/v3

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

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

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

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)

Exact value (const): "marvell,armada-380-sdhci"

When the condition matches (then) #

Properties and child nodes (properties)

reg — not listed as required here

Minimum number of items (minItems): 3

reg-names — required here

Minimum number of items (minItems): 3

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

When the condition does not match (else) #

Properties and child nodes (properties)

reg — not listed as required here

Maximum number of items (maxItems): 1

reg-names — not listed as required here

Maximum number of items (maxItems): 1

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "mrvl,pxav1-mmc"

When the condition matches (then) #

Properties and child nodes (properties)

pinctrl-names — not listed as required here

Optional for supporting PXA168 SDIO IRQ errata to switch CMD pin between SDIO CMD and GPIO mode.

Array item rules (items)

Item 1

Exact value (const): "default"

Item 2

Exact value (const): "state_cmd_gpio"

Minimum number of items (minItems): 1

pinctrl-1 — not listed as required here

Should switch CMD pin to GPIO mode as a high output.

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "mrvl,pxav3-mmc"

When the condition matches (then) #

Properties and child nodes (properties)

pinctrl-names — not listed as required here

Optional for increasing stability of the controller at fast bus clocks.

Array item rules (items)

Item 1

Exact value (const): "default"

Item 2

Exact value (const): "state_uhs"

Minimum number of items (minItems): 1

pinctrl-1 — not listed as required here

Should switch the drive strength of the data pins to high.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "mrvl,pxav1-mmc", "mrvl,pxav2-mmc", "mrvl,pxav3-mmc", "marvell,armada-380-sdhci"

reg — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

reg-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "sdhci"

Item 2

Exact value (const): "mbus"

Item 3

Exact value (const): "conf-sdio3"

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 2

clock-names — required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "io"

Item 2

Exact value (const): "core"

pinctrl-names — not listed as required here #

true — No constraints added by this property rule.

pinctrl-0 — not listed as required here #

Should contain default pinctrl.

pinctrl-1 — not listed as required here #

true — No constraints added by this property rule.

mrvl,clk-delay-cycles — not listed as required here #

Specify a number of cycles to delay for tuning.

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

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/berlin2.h>
mmc@d4280800 {
    compatible = "mrvl,pxav3-mmc";
    reg = <0xd4280800 0x800>;
    bus-width = <8>;
    interrupts = <27>;
    clocks = <&chip CLKID_SDIO1XIN>, <&chip CLKID_SDIO1>;
    clock-names = "io", "core";
    non-removable;
    mrvl,clk-delay-cycles = <31>;
};
mmc@d8000 {
    compatible = "marvell,armada-380-sdhci";
    reg-names = "sdhci", "mbus", "conf-sdio3";
    reg = <0xd8000 0x1000>,
          <0xdc000 0x100>,
          <0x18454 0x4>;
    interrupts = <0 25 0x4>;
    clocks = <&gateclk 17>;
    clock-names = "io";
    mrvl,clk-delay-cycles = <0x1F>;
};

Source notes #

Annotations retained from the schema source

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

Synopsys Designware Mobile Storage Host Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

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

Maintainers (maintainers): "Ulf Hansson <ulf.hansson@linaro.org>", "Jisheng Zhang <Jisheng.Zhang@synaptics.com>"

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Array item rules (items)

Item 1

Allowed values (enum): "rockchip,rk3528-dwcmshc", "rockchip,rk3562-dwcmshc", "rockchip,rk3576-dwcmshc"

Item 2

Exact value (const): "rockchip,rk3588-dwcmshc"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "sophgo,sg2044-dwcmshc"

Item 2

Exact value (const): "sophgo,sg2042-dwcmshc"

Rule 3

Allowed values (enum): "rockchip,rk3568-dwcmshc", "rockchip,rk3588-dwcmshc", "snps,dwcmshc-sdhci", "sophgo,cv1800b-dwcmshc", "sophgo,sg2002-dwcmshc", "sophgo,sg2042-dwcmshc", "thead,th1520-dwcmshc", "eswin,eic7700-dwcmshc"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 5

clock-names — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 5

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

resets — not listed as required here #

Maximum number of items (maxItems): 5

reset-names — not listed as required here #

Maximum number of items (maxItems): 5

rockchip,txclk-tapnum — not listed as required here #

Specify the number of delay for tx sampling.

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

eswin,hsp-sp-csr — not listed as required here #

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

Array item rules (items) #

Item 1

Array item rules (items)

Item 1

Phandle to HSP(High-Speed Peripheral) device

Item 2

Offset of the stability status register for internal clock.

Item 3

Offset of the stability register for host regulator voltage.

HSP CSR is to control and get status of different high-speed peripherals (such as Ethernet, USB, SATA, etc.) via register, which can tune board-level's parameters of PHY, etc.

eswin,drive-impedance-ohms — not listed as required here #

Specifies the drive impedance in Ohm.

Allowed values (enum): 33, 40, 50, 66, 100

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)

Exact value (const): "sophgo,sg2042-dwcmshc"

When the condition matches (then) #

Properties and child nodes (properties)

clocks — not listed as required here

Array item rules (items)

Item 1

core clock

Item 2

bus clock

Item 3

timer clock

clock-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "core"

Item 2

Exact value (const): "bus"

Item 3

Exact value (const): "timer"

When the condition does not match (else) #

Properties and child nodes (properties)

clocks — not listed as required here

Minimum number of items (minItems): 1

Array item rules (items)

Item 1

core clock

Item 2

bus clock for optional

Item 3

axi clock for rockchip specified

Item 4

block clock for rockchip specified

Item 5

timer clock for rockchip specified

clock-names — not listed as required here

Minimum number of items (minItems): 1

Array item rules (items)

Item 1

Exact value (const): "core"

Item 2

Exact value (const): "bus"

Item 3

Exact value (const): "axi"

Item 4

Exact value (const): "block"

Item 5

Exact value (const): "timer"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "eswin,eic7700-dwcmshc"

When the condition matches (then) #

Properties and child nodes (properties)

resets — not listed as required here

Minimum number of items (minItems): 4

Maximum number of items (maxItems): 4

reset-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "axi"

Item 2

Exact value (const): "phy"

Item 3

Exact value (const): "prstn"

Item 4

Exact value (const): "txrx"

Required in this object (required): "eswin,hsp-sp-csr", "eswin,drive-impedance-ohms"

When the condition does not match (else) #

Properties and child nodes (properties)

resets — not listed as required here

Maximum number of items (maxItems): 5

reset-names — not listed as required here

Array item rules (items)

Item 1

Exact value (const): "core"

Item 2

Exact value (const): "bus"

Item 3

Exact value (const): "axi"

Item 4

Exact value (const): "block"

Item 5

Exact value (const): "timer"

Rule 4 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "rockchip,rk3576-dwcmshc"

When the condition matches (then) #

Required in this object (required): "power-domains"

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

mmc@fe310000 {
  compatible = "rockchip,rk3568-dwcmshc";
  reg = <0xfe310000 0x10000>;
  interrupts = <0 25 0x4>;
  clocks = <&cru 17>, <&cru 18>, <&cru 19>, <&cru 20>, <&cru 21>;
  clock-names = "core", "bus", "axi", "block", "timer";
  bus-width = <8>;
  #address-cells = <1>;
  #size-cells = <0>;
};
mmc@aa0000 {
  compatible = "snps,dwcmshc-sdhci";
  reg = <0xaa000 0x1000>;
  interrupts = <0 25 0x4>;
  clocks = <&cru 17>, <&cru 18>;
  clock-names = "core", "bus";
  bus-width = <8>;
  #address-cells = <1>;
  #size-cells = <0>;
};

Source notes #

Annotations retained from the schema source

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

SOCIONEXT Milbeaut SDHCI controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

Schema identifier ($id): "http://devicetree.org/schemas/mmc/socionext,milbeaut-m10v-sdhci-3.0.yaml#"

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

Maintainers (maintainers): "Taichi Sugaya <sugaya.taichi@socionext.com>", "Takao Orito <orito.takao@socionext.com>"

The SOCIONEXT Milbeaut SDHCI controller is a specialized SD Host Controller found in some of Socionext's Milbeaut image processing SoCs. It features a dedicated "bridge controller." This bridge controller implements special functions like reset control, clock management for various SDR modes (SDR12, SDR25, SDR50) and physical pin property settings.

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "socionext,milbeaut-m10v-sdhci-3.0"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 2

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "core"

Item 2

Exact value (const): "iface"

fujitsu,cmd-dat-delay-select — not listed as required here #

Its presence indicates that the controller requires a specific command and data line delay selection mechanism for proper operation, particularly when dealing with high-speed SD/eMMC modes.

Value type (type): "boolean"

voltage-ranges — not listed as required here #

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

Array item rules (items) #

Array item rules (items)

Item 1

minimum slot voltage (mV).

Item 2

maximum slot voltage (mV).

Maximum number of items (maxItems): 1

Required in this object (required): "compatible", "reg", "interrupts", "clocks", "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@1b010000 {
    compatible = "socionext,milbeaut-m10v-sdhci-3.0";
    reg = <0x1b010000 0x10000>;
    interrupts = <GIC_SPI 265 IRQ_TYPE_LEVEL_HIGH>;
    voltage-ranges = <3300 3300>;
    bus-width = <4>;
    clocks = <&clk 7>, <&ahb_clk>;
    clock-names = "core", "iface";
    cap-sdio-irq;
    fujitsu,cmd-dat-delay-select;
};

Source notes #

Annotations retained from the schema source

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

UniPhier SD/SDIO/eMMC controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

Schema identifier ($id): "http://devicetree.org/schemas/mmc/socionext,uniphier-sd.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 #

version 2.91, 3.1, 3.1.1, respectively

Allowed values (enum): "socionext,uniphier-sd-v2.91", "socionext,uniphier-sd-v3.1", "socionext,uniphier-sd-v3.1.1"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

dmas — not listed as required here #

Maximum number of items (maxItems): 1

dma-names — not listed as required here #

Exact value (const): "rx-tx"

reset-names — required here #

There are three reset signals at maximum
  host:   mandatory for all variants
  bridge: exist only for version 2.91
  hw:     optional. exist if eMMC hw reset line is available

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "host"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "host"

Item 2

Exact value (const): "bridge"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "host"

Item 2

Exact value (const): "hw"

Rule 4

Array item rules (items)

Item 1

Exact value (const): "host"

Item 2

Exact value (const): "bridge"

Item 3

Exact value (const): "hw"

resets — required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 3

socionext,syscon-uhs-mode — not listed as required here #

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

Array item rules (items) #

Item 1

Array item rules (items)

Item 1

phandle to syscon that configures UHS mode

Item 2

ID of SD instance

A phandle to syscon with one argument that configures UHS mode. The argument is the ID of SD instance.

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)

Exact value (const): "socionext,uniphier-sd-v2.91"

When the condition matches (then) #

Properties and child nodes (properties)

reset-names — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "bridge"

When the condition does not match (else) #

Properties and child nodes (properties)

reset-names — not listed as required here

This rule must not match (not)

Rule for matching array elements (contains)

Exact value (const): "bridge"

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

sd: mmc@5a400000 {
    compatible = "socionext,uniphier-sd-v2.91";
    reg = <0x5a400000 0x200>;
    interrupts = <0 76 4>;
    pinctrl-names = "default", "uhs";
    pinctrl-0 = <&pinctrl_sd>;
    pinctrl-1 = <&pinctrl_sd_uhs>;
    clocks = <&mio_clk 0>;
    reset-names = "host", "bridge";
    resets = <&mio_rst 0>, <&mio_rst 3>;
    dma-names = "rx-tx";
    dmas = <&dmac 4>;
    bus-width = <4>;
    cap-sd-highspeed;
    sd-uhs-sdr12;
    sd-uhs-sdr25;
    sd-uhs-sdr50;
};

Source notes #

Annotations retained from the schema source

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

SpacemiT SDHCI Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

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

Maintainers (maintainers): "Yixun Lan <dlan@gentoo.org>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "spacemit,k1-sdhci"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

core clock, used by internal controller

Item 2

io clock, output for SD, SDIO, eMMC device

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "core"

Item 2

Exact value (const): "io"

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

mmc@d4281000 {
  compatible = "spacemit,k1-sdhci";
  reg = <0xd4281000 0x200>;
  interrupts = <101>;
  interrupt-parent = <&plic>;
  clocks = <&clk_apmu 10>, <&clk_apmu 13>;
  clock-names = "core", "io";
};

Source notes #

Annotations retained from the schema source

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

Spreadtrum SDHCI controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

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

Maintainers (maintainers): "Orson Zhai <orsonzhai@gmail.com>", "Baolin Wang <baolin.wang7@gmail.com>", "Chunyan Zhang <zhang.lyra@gmail.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "sprd,sdhci-r11"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

SDIO source clock

Item 2

gate clock for enabling/disabling the device

Item 3

gate clock controlling the device for some special platforms (optional)

clock-names — required here #

Minimum number of items (minItems): 2

Array item rules (items) #

Item 1

Exact value (const): "sdio"

Item 2

Exact value (const): "enable"

Item 3

Exact value (const): "2x_enable"

pinctrl-0 — not listed as required here #

default/high speed pin control

Maximum number of items (maxItems): 1

pinctrl-1 — not listed as required here #

UHS mode pin control

Maximum number of items (maxItems): 1

pinctrl-names — not listed as required here #

Minimum number of items (minItems): 1

Array item rules (items) #

Item 1

Exact value (const): "default"

Item 2

Exact value (const): "state_uhs"

Properties matching a name pattern (patternProperties) #

^sprd,phy-delay-(legacy|mmc-(ddr52|highspeed|hs[24]00|hs400es)|sd-(highspeed|uhs-sdr(50|104)))$ — name matches this regular expression #

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

Array item rules (items) #

Item 1

clock data write line delay value

Item 2

clock read command line delay value

Item 3

clock read data positive edge delay value

Item 4

clock read data negative edge delay value

PHY DLL delays are used to delay the data valid window, and align the window to the sampling clock. Each cell's delay value unit is cycle of the PHY clock.

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

All of these rules must match (allOf) #

Rule 1 #

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/clock/sprd,sc9860-clk.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
#include <dt-bindings/interrupt-controller/irq.h>

mmc@50430000 {
  compatible = "sprd,sdhci-r11";
  reg = <0x50430000 0x1000>;
  interrupts = <GIC_SPI 41 IRQ_TYPE_LEVEL_HIGH>;

  clocks = <&aon_prediv CLK_EMMC_2X>,
           <&apahb_gate CLK_EMMC_EB>,
           <&aon_gate CLK_EMMC_2X_EN>;
  clock-names = "sdio", "enable", "2x_enable";

  pinctrl-0 = <&sd0_pins_default>;
  pinctrl-1 = <&sd0_pins_uhs>;
  pinctrl-names = "default", "state_uhs";

  bus-width = <8>;
  cap-mmc-hw-reset;
  mmc-hs400-enhanced-strobe;
  mmc-hs400-1_8v;
  mmc-hs200-1_8v;
  mmc-ddr-1_8v;
  non-removable;
  no-sdio;
  no-sd;

  sprd,phy-delay-mmc-ddr52 = <0x3f 0x75 0x14 0x14>;
  sprd,phy-delay-mmc-hs200 = <0x0 0x8c 0x8c 0x8c>;
  sprd,phy-delay-mmc-hs400 = <0x44 0x7f 0x2e 0x2e>;
  sprd,phy-delay-mmc-hs400es = <0x3f 0x3f 0x2e 0x2e>;
};

Source notes #

Annotations retained from the schema source

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

StarFive Designware Mobile Storage Host Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

Schema identifier ($id): "http://devicetree.org/schemas/mmc/starfive,jh7110-mmc.yaml#"

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

StarFive uses the Synopsys designware mobile storage host controller to interface a SoC with storage medium such as eMMC or SD/MMC cards.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): synopsys-dw-mshc-common.yaml#

Maintainers (maintainers): "William Qiu <william.qiu@starfivetech.com>"

Properties and child nodes (properties) #

compatible — required here #

Exact value (const): "starfive,jh7110-mmc"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Array item rules (items) #

Item 1

biu clock

Item 2

ciu clock

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "biu"

Item 2

Exact value (const): "ciu"

interrupts — required here #

Maximum number of items (maxItems): 1

starfive,sysreg — not listed as required here #

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

Array item rules (items) #

Item 1

Array item rules (items)

Item 1

phandle to System Register Controller syscon node

Item 2

offset of SYS_SYSCONSAIF__SYSCFG register for MMC controller

Item 3

shift of SYS_SYSCONSAIF__SYSCFG register for MMC controller

Item 4

mask of SYS_SYSCONSAIF__SYSCFG register for MMC controller

Should be four parameters, the phandle to System Register Controller syscon node and the offset/shift/mask of SYS_SYSCONSAIF__SYSCFG register for MMC controller.

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

mmc@16010000 {
    compatible = "starfive,jh7110-mmc";
    reg = <0x16010000 0x10000>;
    clocks = <&syscrg 91>,
             <&syscrg 93>;
    clock-names = "biu","ciu";
    resets = <&syscrg 64>;
    reset-names = "reset";
    interrupts = <74>;
    fifo-depth = <32>;
    fifo-watermark-aligned;
    data-addr = <0>;
};

Source notes #

Annotations retained from the schema source

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

Sunplus MMC Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

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

Maintainers (maintainers): "Tony Huang <tonyhuang.sunplus@gmail.com>", "Li-hao Kuo <lhjeff911@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "sunplus,sp7021-mmc"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

resets — required here #

Maximum number of items (maxItems): 1

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
#include <dt-bindings/interrupt-controller/arm-gic.h>
mmc0: mmc@9c003b00 {
    compatible = "sunplus,sp7021-mmc";
    reg = <0x9c003b00 0x180>;
    interrupts = <20 IRQ_TYPE_LEVEL_HIGH>;
    clocks = <&clkc 0x4e>;
    resets = <&rstc 0x3e>;
    bus-width = <8>;
    max-frequency = <52000000>;
    non-removable;
    disable-wp;
    cap-mmc-highspeed;
    mmc-ddr-3_3v;
    no-sdio;
    no-sd;
};

Source notes #

Annotations retained from the schema source

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

Line 2: Copyright (C) Sunplus Ltd. Co. 2021

Synopsys Designware Mobile Storage Host Controller Common Properties

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

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

All of these rules must match (allOf) #

Rule 1 #

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

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

Properties and child nodes (properties) #

resets — not listed as required here #

Maximum number of items (maxItems): 1

reset-names — not listed as required here #

Exact value (const): "reset"

clock-frequency — not listed as required here #

Should be the frequency (in Hz) of the ciu clock. If this is specified and the ciu clock is specified then we'll try to set the ciu clock to this at probe time.

fifo-depth — not listed as required here #

The maximum size of the tx/rx fifo's. If this property is not specified, the default value of the fifo size is determined from the controller registers.

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

card-detect-delay — not listed as required here #

Delay in milli-seconds before detecting card after card insert event. The default value is 0.

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

Default value (default): 0

data-addr — not listed as required here #

Override fifo address with value provided by DT. The default FIFO reg offset is assumed as 0x100 (version < 0x240A) and 0x200(version >= 0x240A) by driver. If the controller does not follow this rule, please use this property to set fifo address in device tree.

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

fifo-watermark-aligned — not listed as required here #

Data done irq is expected if data length is less than watermark in PIO mode. But fifo watermark is requested to be aligned with data length in some SoC so that TX/RX irq can be generated with data done irq. Add this watermark quirk to mark this requirement and force fifo watermark setting accordingly.

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

dmas — not listed as required here #

Maximum number of items (maxItems): 1

dma-names — not listed as required here #

Exact value (const): "rx-tx"

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 15: Everything else is described in the common file

Synopsys Designware Mobile Storage Host Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

Schema identifier ($id): "http://devicetree.org/schemas/mmc/synopsys-dw-mshc.yaml#"

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

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

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "altr,socfpga-dw-mshc", "img,pistachio-dw-mshc", "snps,dw-mshc"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Minimum number of items (minItems): 2

Maximum number of items (maxItems): 2

Handle to "biu" and "ciu" clocks for the bus interface unit clock and the card interface unit clock.

clock-names — required here #

Array item rules (items) #

Item 1

Exact value (const): "biu"

Item 2

Exact value (const): "ciu"

iommus — not listed as required here #

Maximum number of items (maxItems): 1

altr,sysmgr-syscon — not listed as required here #

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

Array item rules (items) #

Item 1

Array item rules (items)

Item 1

phandle to the sysmgr node

Item 2

register offset that controls the SDMMC clock phase

Item 3

register shift for the smplsel(drive in) setting

This property is optional. Contains the phandle to System Manager block that contains the SDMMC clock-phase control register. The first value is the pointer to the sysmgr, the 2nd value is the register offset for the SDMMC clock phase register, and the 3rd value is the bit shift for the smplsel(drive in) setting.

All of these rules must match (allOf) #

Rule 1 #

Shared schema rule ($ref): synopsys-dw-mshc-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): "altr,socfpga-dw-mshc"

When the condition matches (then) #

Properties and child nodes (properties)

altr,sysmgr-syscon — not listed as required here

true — No constraints added by this property rule.

When the condition does not match (else) #

Properties and child nodes (properties)

iommus — not listed as required here

false — Not permitted by this property rule.

altr,sysmgr-syscon — not listed as required here

false — Not permitted by this property rule.

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

mmc@12200000 {
  compatible = "snps,dw-mshc";
  reg = <0x12200000 0x1000>;
  interrupts = <0 75 0>;
  clocks = <&clock 351>, <&clock 132>;
  clock-names = "biu", "ciu";
  dmas = <&pdma 12>;
  dma-names = "rx-tx";
  resets = <&rst 20>;
  reset-names = "reset";
  vmmc-supply = <&buck8>;
  #address-cells = <1>;
  #size-cells = <0>;
  broken-cd;
  bus-width = <8>;
  cap-mmc-highspeed;
  cap-sd-highspeed;
  card-detect-delay = <200>;
  max-frequency = <200000000>;
  clock-frequency = <400000000>;
  data-addr = <0x200>;
  fifo-depth = <0x80>;
  fifo-watermark-aligned;
};

Source notes #

Annotations retained from the schema source

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

Line 12: Everything else is described in the common file

TI Highspeed MMC host controller for DaVinci

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

Schema identifier ($id): "http://devicetree.org/schemas/mmc/ti,da830-mmc.yaml#"

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

The Highspeed MMC Host Controller on TI DaVinci family provides an interface for MMC, SD and SDIO types of memory cards.

All of these rules must match (allOf) #

Rule 1 #

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

Maintainers (maintainers): "Kishon Vijay Abraham I <kishon@kernel.org>"

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ti,da830-mmc", "ti,dm355-mmc"

reg — required here #

Maximum number of items (maxItems): 1

clocks — not listed as required here #

Maximum number of items (maxItems): 1

interrupts — not listed as required here #

Maximum number of items (maxItems): 2

dmas — not listed as required here #

Maximum number of items (maxItems): 2

dma-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "rx"

Item 2

Exact value (const): "tx"

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/interrupt-controller/irq.h>
mmc@1c40000 {
    compatible = "ti,da830-mmc";
    reg = <0x40000 0x1000>;
    interrupts = <16 IRQ_TYPE_LEVEL_HIGH>,
                 <17 IRQ_TYPE_LEVEL_HIGH>;
    bus-width = <4>;
    max-frequency = <50000000>;
    dmas = <&edma 16>, <&edma 17>;
    dma-names = "rx", "tx";
};

Source notes #

Annotations retained from the schema source

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

TI OMAP SDHCI Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

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

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

Maintainers (maintainers): "Kishon Vijay Abraham I <kishon@ti.com>"

For UHS devices which require tuning, the device tree should have a cpu_thermal node which maps to the appropriate thermal zone. This is used to get the temperature of the zone during tuning.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "ti,omap2430-sdhci", "ti,omap3-sdhci", "ti,omap4-sdhci", "ti,omap5-sdhci", "ti,dra7-sdhci", "ti,k2g-sdhci", "ti,am335-sdhci", "ti,am437-sdhci"

reg — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Maximum number of items (maxItems): 1

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): "fck"

Item 2

Exact value (const): "mmchsdb_fck"

dmas — not listed as required here #

Maximum number of items (maxItems): 2

dma-names — not listed as required here #

Array item rules (items) #

Item 1

Exact value (const): "tx"

Item 2

Exact value (const): "rx"

pinctrl-names — not listed as required here #

Minimum number of items (minItems): 1

Maximum number of items (maxItems): 14

Array item rules (items) #

Allowed values (enum): "default", "default-rev11", "hs", "sdr12", "sdr12-rev11", "sdr25", "sdr25-rev11", "sdr50", "ddr50-rev11", "sdr104-rev11", "ddr50", "sdr104", "ddr_1_8v-rev11", "ddr_1_8v", "ddr_3_3v", "hs-rev11", "hs200_1_8v-rev11", "hs200_1_8v", "sleep"

pinctrl-0 — not listed as required here #

Maximum number of items (maxItems): 1

pinctrl-1 — not listed as required here #

Maximum number of items (maxItems): 1

pinctrl-2 — not listed as required here #

Maximum number of items (maxItems): 1

pinctrl-3 — not listed as required here #

Maximum number of items (maxItems): 1

pinctrl-4 — not listed as required here #

Maximum number of items (maxItems): 1

pinctrl-5 — not listed as required here #

Maximum number of items (maxItems): 1

pinctrl-6 — not listed as required here #

Maximum number of items (maxItems): 1

pinctrl-7 — not listed as required here #

Maximum number of items (maxItems): 1

pinctrl-8 — not listed as required here #

Maximum number of items (maxItems): 1

power-domains — not listed as required here #

Maximum number of items (maxItems): 1

pbias-supply — not listed as required here #

It is used to specify the voltage regulator that provides the bias voltage for certain analog or I/O pads.

ti,non-removable — not listed as required here #

It indicates that a component is not meant to be easily removed or replaced by the user, such as an embedded battery or a non-removable storage slot like eMMC.

Value type (type): "boolean"

Deprecated (deprecated): true

clock-frequency — not listed as required here #

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

It represents the speed at which a clock signal associated with a device or bus operates, measured in Hertz (Hz). This value is crucial for configuring hardware components that require a specific clock speed.

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

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)

Allowed values (enum): "ti,dra7-sdhci", "ti,k2g-sdhci"

When the condition matches (then) #

Required in this object (required): "max-frequency"

Rule 3 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "ti,k2g-sdhci"

When the condition matches (then) #

Required in this object (required): "clocks", "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@4809c000 {
    compatible = "ti,dra7-sdhci";
    reg = <0x4809c000 0x400>;
    interrupts = <GIC_SPI 64 IRQ_TYPE_LEVEL_HIGH>;
    max-frequency = <192000000>;
    sdhci-caps-mask = <0x0 0x400000>;
    bus-width = <4>;
    vmmc-supply = <&vmmc>; /* phandle to regulator node */
    dmas = <&sdma 61>, <&sdma 62>;
    dma-names = "tx", "rx";
};

Source notes #

Annotations retained from the schema source

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

WonderMedia SoC SDHCI Controller

Peios Kernel / Hardware and drivers / Device-tree binding reference / Mmc bindings

Schema identifier ($id): "http://devicetree.org/schemas/mmc/wm,wm8505-sdhc.yaml#"

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

Maintainers (maintainers): "Alexey Charkov <alchark@gmail.com>"

All of these rules must match (allOf) #

Rule 1 #

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

Properties and child nodes (properties) #

compatible — required here #

Exactly one of these rules must match (oneOf) #

Rule 1

Exact value (const): "wm,wm8505-sdhc"

Rule 2

Array item rules (items)

Item 1

Exact value (const): "wm,wm8650-sdhc"

Item 2

Exact value (const): "wm,wm8505-sdhc"

Rule 3

Array item rules (items)

Item 1

Exact value (const): "wm,wm8750-sdhc"

Item 2

Exact value (const): "wm,wm8505-sdhc"

Rule 4

Array item rules (items)

Item 1

Exact value (const): "wm,wm8850-sdhc"

Item 2

Exact value (const): "wm,wm8505-sdhc"

reg — required here #

Maximum number of items (maxItems): 1

clocks — required here #

Maximum number of items (maxItems): 1

interrupts — required here #

Array item rules (items) #

Item 1

SDMMC controller interrupt

Item 2

SDMMC controller DMA interrupt

sdon-inverted — not listed as required here #

Value type (type): "boolean"

All chips before (not including) WM8505 rev. A2 treated their "clock stop" bit (register offset 0x08 a.k.a. SDMMC_BUSMODE, bit 0x10) as "set 1 to disable SD clock", while all the later versions treated it as "set 0 to disable SD clock". Set this property for later versions of wm,wm8505-sdhc. On wm,wm8650-sdhc and later this property is implied and does not need to be set explicitly

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

Properties not evaluated by applicable rules (unevaluatedProperties) #

false

Not allowed by this rule.

Examples (examples) #

mmc@d800a000 {
    compatible = "wm,wm8505-sdhc";
    reg = <0xd800a000 0x1000>;
    interrupts = <20>, <21>;
    clocks = <&sdhc>;
    bus-width = <4>;
    sdon-inverted;
};

Source notes #

Annotations retained from the schema source

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

Peios Learn — documentation for Peios software.

Built with Trail.