summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/mmc/microchip,sdhci-pic32.yaml
blob: ca0ca7df9ee991d8402bc4c62b1235ef5db2e85f (plain)
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
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/mmc/microchip,sdhci-pic32.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Microchip PIC32 SDHI Controller

description:
  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.

allOf:
  - $ref: mmc-controller.yaml

maintainers:
  - Ulf Hansson <ulf.hansson@linaro.org>

properties:
  compatible:
    const: microchip,pic32mzda-sdhci

  reg:
    maxItems: 1

  interrupts:
    maxItems: 1

  clocks:
    maxItems: 2

  clock-names:
    items:
      - const: base_clk
      - const: sys_clk

required:
  - compatible
  - reg
  - interrupts
  - clocks
  - clock-names
  - pinctrl-names
  - pinctrl-0

unevaluatedProperties: false

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