Atmel High-Speed MultiMedia Card Interface (HSMCI)

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)

Edit this page