1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/mmc/allwinner,sun4i-a10-mmc.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Allwinner A10 MMC Controller Device Tree Bindings
8
9allOf:
10  - $ref: "mmc-controller.yaml"
11
12maintainers:
13  - Chen-Yu Tsai <wens@csie.org>
14  - Maxime Ripard <mripard@kernel.org>
15
16properties:
17  "#address-cells": true
18  "#size-cells": true
19
20  compatible:
21    oneOf:
22      - const: allwinner,sun4i-a10-mmc
23      - const: allwinner,sun5i-a13-mmc
24      - const: allwinner,sun7i-a20-mmc
25      - const: allwinner,sun8i-a83t-emmc
26      - const: allwinner,sun9i-a80-mmc
27      - const: allwinner,sun50i-a64-emmc
28      - const: allwinner,sun50i-a64-mmc
29      - const: allwinner,sun50i-a100-emmc
30      - const: allwinner,sun50i-a100-mmc
31      - items:
32          - const: allwinner,sun8i-a83t-mmc
33          - const: allwinner,sun7i-a20-mmc
34      - items:
35          - const: allwinner,sun8i-r40-emmc
36          - const: allwinner,sun50i-a64-emmc
37      - items:
38          - const: allwinner,sun8i-r40-mmc
39          - const: allwinner,sun50i-a64-mmc
40      - items:
41          - const: allwinner,sun50i-h5-emmc
42          - const: allwinner,sun50i-a64-emmc
43      - items:
44          - const: allwinner,sun50i-h5-mmc
45          - const: allwinner,sun50i-a64-mmc
46      - items:
47          - const: allwinner,sun50i-h6-emmc
48          - const: allwinner,sun50i-a64-emmc
49      - items:
50          - const: allwinner,sun50i-h6-mmc
51          - const: allwinner,sun50i-a64-mmc
52      - items:
53          - const: allwinner,sun50i-h616-emmc
54          - const: allwinner,sun50i-a100-emmc
55      - items:
56          - const: allwinner,sun50i-h616-mmc
57          - const: allwinner,sun50i-a100-mmc
58
59  reg:
60    maxItems: 1
61
62  interrupts:
63    maxItems: 1
64
65  clocks:
66    minItems: 2
67    maxItems: 4
68    items:
69      - description: Bus Clock
70      - description: Module Clock
71      - description: Output Clock
72      - description: Sample Clock
73
74  clock-names:
75    minItems: 2
76    maxItems: 4
77    items:
78      - const: ahb
79      - const: mmc
80      - const: output
81      - const: sample
82
83  resets:
84    maxItems: 1
85
86  reset-names:
87    const: ahb
88
89required:
90  - compatible
91  - reg
92  - interrupts
93  - clocks
94  - clock-names
95
96unevaluatedProperties: false
97
98examples:
99  - |
100    mmc0: mmc@1c0f000 {
101        compatible = "allwinner,sun5i-a13-mmc";
102        reg = <0x01c0f000 0x1000>;
103        clocks = <&ahb_gates 8>, <&mmc0_clk>;
104        clock-names = "ahb", "mmc";
105        interrupts = <32>;
106        bus-width = <4>;
107        cd-gpios = <&pio 7 1 0>;
108    };
109
110...
111