xref: /linux/Documentation/devicetree/bindings/mmc/amlogic,meson-mx-sdhc.yaml (revision e5f31378862e5d0e879809bd50a84790ea14a0bc)
1*e5f31378SMartin Blumenstingl# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*e5f31378SMartin Blumenstingl%YAML 1.2
3*e5f31378SMartin Blumenstingl---
4*e5f31378SMartin Blumenstingl$id: http://devicetree.org/schemas/mmc/amlogic,meson-mx-sdhc.yaml#
5*e5f31378SMartin Blumenstingl$schema: http://devicetree.org/meta-schemas/core.yaml#
6*e5f31378SMartin Blumenstingl
7*e5f31378SMartin Blumenstingltitle: Amlogic Meson SDHC controller Device Tree Bindings
8*e5f31378SMartin Blumenstingl
9*e5f31378SMartin BlumenstinglallOf:
10*e5f31378SMartin Blumenstingl  - $ref: "mmc-controller.yaml"
11*e5f31378SMartin Blumenstingl
12*e5f31378SMartin Blumenstinglmaintainers:
13*e5f31378SMartin Blumenstingl  - Martin Blumenstingl <martin.blumenstingl@googlemail.com>
14*e5f31378SMartin Blumenstingl
15*e5f31378SMartin Blumenstingldescription: |
16*e5f31378SMartin Blumenstingl  The SDHC MMC host controller on Amlogic SoCs provides an eMMC and MMC
17*e5f31378SMartin Blumenstingl  card interface with 1/4/8-bit bus width.
18*e5f31378SMartin Blumenstingl  It supports eMMC spec 4.4x/4.5x including HS200 (up to 100MHz clock).
19*e5f31378SMartin Blumenstingl
20*e5f31378SMartin Blumenstinglproperties:
21*e5f31378SMartin Blumenstingl  compatible:
22*e5f31378SMartin Blumenstingl    items:
23*e5f31378SMartin Blumenstingl      - enum:
24*e5f31378SMartin Blumenstingl        - amlogic,meson8-sdhc
25*e5f31378SMartin Blumenstingl        - amlogic,meson8b-sdhc
26*e5f31378SMartin Blumenstingl        - amlogic,meson8m2-sdhc
27*e5f31378SMartin Blumenstingl      - const: amlogic,meson-mx-sdhc
28*e5f31378SMartin Blumenstingl
29*e5f31378SMartin Blumenstingl  reg:
30*e5f31378SMartin Blumenstingl    minItems: 1
31*e5f31378SMartin Blumenstingl
32*e5f31378SMartin Blumenstingl  interrupts:
33*e5f31378SMartin Blumenstingl    minItems: 1
34*e5f31378SMartin Blumenstingl
35*e5f31378SMartin Blumenstingl  clocks:
36*e5f31378SMartin Blumenstingl    minItems: 5
37*e5f31378SMartin Blumenstingl
38*e5f31378SMartin Blumenstingl  clock-names:
39*e5f31378SMartin Blumenstingl    items:
40*e5f31378SMartin Blumenstingl      - const: clkin0
41*e5f31378SMartin Blumenstingl      - const: clkin1
42*e5f31378SMartin Blumenstingl      - const: clkin2
43*e5f31378SMartin Blumenstingl      - const: clkin3
44*e5f31378SMartin Blumenstingl      - const: pclk
45*e5f31378SMartin Blumenstingl
46*e5f31378SMartin Blumenstinglrequired:
47*e5f31378SMartin Blumenstingl  - compatible
48*e5f31378SMartin Blumenstingl  - reg
49*e5f31378SMartin Blumenstingl  - interrupts
50*e5f31378SMartin Blumenstingl  - clocks
51*e5f31378SMartin Blumenstingl  - clock-names
52*e5f31378SMartin Blumenstingl
53*e5f31378SMartin Blumenstinglexamples:
54*e5f31378SMartin Blumenstingl  - |
55*e5f31378SMartin Blumenstingl    #include <dt-bindings/interrupt-controller/irq.h>
56*e5f31378SMartin Blumenstingl    #include <dt-bindings/interrupt-controller/arm-gic.h>
57*e5f31378SMartin Blumenstingl
58*e5f31378SMartin Blumenstingl    sdhc: mmc@8e00 {
59*e5f31378SMartin Blumenstingl      compatible = "amlogic,meson8-sdhc", "amlogic,meson-mx-sdhc";
60*e5f31378SMartin Blumenstingl      reg = <0x8e00 0x42>;
61*e5f31378SMartin Blumenstingl      interrupts = <GIC_SPI 78 IRQ_TYPE_EDGE_RISING>;
62*e5f31378SMartin Blumenstingl      clocks = <&xtal>,
63*e5f31378SMartin Blumenstingl               <&fclk_div4>,
64*e5f31378SMartin Blumenstingl               <&fclk_div3>,
65*e5f31378SMartin Blumenstingl               <&fclk_div5>,
66*e5f31378SMartin Blumenstingl               <&sdhc_pclk>;
67*e5f31378SMartin Blumenstingl      clock-names = "clkin0", "clkin1", "clkin2", "clkin3", "pclk";
68*e5f31378SMartin Blumenstingl    };
69