Documentation / devicetree / bindings / mmc / atmel,hsmci.yaml


Based on kernel version 6.15. Page generated on 2025-05-29 09:09 EST.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/mmc/atmel,hsmci.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Atmel High-Speed MultiMedia Card Interface (HSMCI)

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

maintainers:
  - Nicolas Ferre <nicolas.ferre@microchip.com>
  - Aubin Constans <aubin.constans@microchip.com>

allOf:
  - $ref: mmc-controller.yaml

properties:
  compatible:
    const: atmel,hsmci

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

  dmas:
    maxItems: 1

  dma-names:
    const: rxtx

  clocks:
    maxItems: 1

  clock-names:
    const: mci_clk
 
  "#address-cells":
    const: 1
    description: Used for slot IDs.
 
  "#size-cells":
    const: 0

patternProperties:
  "slot@[0-2]$":
    $ref: mmc-slot.yaml
    description: A slot node representing an MMC, SD, or SDIO slot.

    properties:
      reg:
        enum: [0, 1]

    required:
      - reg
      - bus-width

    unevaluatedProperties: false

required:
  - compatible
  - reg
  - interrupts
  - clocks
  - clock-names
  - "#address-cells"
  - "#size-cells"

anyOf:
  - required:
      - slot@0
  - required:
      - slot@1

unevaluatedProperties: false

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>;
      };
    };
...