xref: /freebsd/sys/contrib/device-tree/Bindings/mmc/spacemit,sdhci.yaml (revision ae5de77ed78ae54d86cead5604869212e8008e6b)
1*ae5de77eSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*ae5de77eSEmmanuel Vadot%YAML 1.2
3*ae5de77eSEmmanuel Vadot---
4*ae5de77eSEmmanuel Vadot$id: http://devicetree.org/schemas/mmc/spacemit,sdhci.yaml#
5*ae5de77eSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*ae5de77eSEmmanuel Vadot
7*ae5de77eSEmmanuel Vadottitle: SpacemiT SDHCI Controller
8*ae5de77eSEmmanuel Vadot
9*ae5de77eSEmmanuel Vadotmaintainers:
10*ae5de77eSEmmanuel Vadot  - Yixun Lan <dlan@gentoo.org>
11*ae5de77eSEmmanuel Vadot
12*ae5de77eSEmmanuel VadotallOf:
13*ae5de77eSEmmanuel Vadot  - $ref: mmc-controller.yaml#
14*ae5de77eSEmmanuel Vadot
15*ae5de77eSEmmanuel Vadotproperties:
16*ae5de77eSEmmanuel Vadot  compatible:
17*ae5de77eSEmmanuel Vadot    const: spacemit,k1-sdhci
18*ae5de77eSEmmanuel Vadot
19*ae5de77eSEmmanuel Vadot  reg:
20*ae5de77eSEmmanuel Vadot    maxItems: 1
21*ae5de77eSEmmanuel Vadot
22*ae5de77eSEmmanuel Vadot  interrupts:
23*ae5de77eSEmmanuel Vadot    maxItems: 1
24*ae5de77eSEmmanuel Vadot
25*ae5de77eSEmmanuel Vadot  clocks:
26*ae5de77eSEmmanuel Vadot    items:
27*ae5de77eSEmmanuel Vadot      - description: core clock, used by internal controller
28*ae5de77eSEmmanuel Vadot      - description: io clock, output for SD, SDIO, eMMC device
29*ae5de77eSEmmanuel Vadot
30*ae5de77eSEmmanuel Vadot  clock-names:
31*ae5de77eSEmmanuel Vadot    items:
32*ae5de77eSEmmanuel Vadot      - const: core
33*ae5de77eSEmmanuel Vadot      - const: io
34*ae5de77eSEmmanuel Vadot
35*ae5de77eSEmmanuel Vadotrequired:
36*ae5de77eSEmmanuel Vadot  - compatible
37*ae5de77eSEmmanuel Vadot  - reg
38*ae5de77eSEmmanuel Vadot  - interrupts
39*ae5de77eSEmmanuel Vadot  - clocks
40*ae5de77eSEmmanuel Vadot  - clock-names
41*ae5de77eSEmmanuel Vadot
42*ae5de77eSEmmanuel VadotunevaluatedProperties: false
43*ae5de77eSEmmanuel Vadot
44*ae5de77eSEmmanuel Vadotexamples:
45*ae5de77eSEmmanuel Vadot  - |
46*ae5de77eSEmmanuel Vadot    mmc@d4281000 {
47*ae5de77eSEmmanuel Vadot      compatible = "spacemit,k1-sdhci";
48*ae5de77eSEmmanuel Vadot      reg = <0xd4281000 0x200>;
49*ae5de77eSEmmanuel Vadot      interrupts = <101>;
50*ae5de77eSEmmanuel Vadot      interrupt-parent = <&plic>;
51*ae5de77eSEmmanuel Vadot      clocks = <&clk_apmu 10>, <&clk_apmu 13>;
52*ae5de77eSEmmanuel Vadot      clock-names = "core", "io";
53*ae5de77eSEmmanuel Vadot    };
54