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