1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2# Copyright (C) Sunplus Ltd. Co. 2021
3%YAML 1.2
4---
5$id: http://devicetree.org/schemas/mmc/sunplus,mmc.yaml#
6$schema: http://devicetree.org/meta-schemas/core.yaml#
7
8title: Sunplus MMC Controller
9
10maintainers:
11  - Tony Huang <tonyhuang.sunplus@gmail.com>
12  - Li-hao Kuo <lhjeff911@gmail.com>
13
14allOf:
15  - $ref: "mmc-controller.yaml"
16
17properties:
18  compatible:
19    enum:
20      - sunplus,sp7021-mmc
21
22  reg:
23    maxItems: 1
24
25  interrupts:
26    maxItems: 1
27
28  clocks:
29    maxItems: 1
30
31  resets:
32    maxItems: 1
33
34required:
35  - compatible
36  - reg
37  - interrupts
38  - clocks
39  - resets
40
41unevaluatedProperties: false
42
43examples:
44  - |
45    #include <dt-bindings/interrupt-controller/irq.h>
46    #include <dt-bindings/interrupt-controller/arm-gic.h>
47    mmc0: mmc@9c003b00 {
48        compatible = "sunplus,sp7021-mmc";
49        reg = <0x9c003b00 0x180>;
50        interrupts = <20 IRQ_TYPE_LEVEL_HIGH>;
51        clocks = <&clkc 0x4e>;
52        resets = <&rstc 0x3e>;
53        bus-width = <8>;
54        max-frequency = <52000000>;
55        non-removable;
56        disable-wp;
57        cap-mmc-highspeed;
58        mmc-ddr-3_3v;
59        no-sdio;
60        no-sd;
61    };
62