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    items:
68      - description: Bus Clock
69      - description: Module Clock
70      - description: Output Clock
71      - description: Sample Clock
72
73  clock-names:
74    minItems: 2
75    items:
76      - const: ahb
77      - const: mmc
78      - const: output
79      - const: sample
80
81  resets:
82    maxItems: 1
83
84  reset-names:
85    const: ahb
86
87required:
88  - compatible
89  - reg
90  - interrupts
91  - clocks
92  - clock-names
93
94unevaluatedProperties: false
95
96examples:
97  - |
98    mmc0: mmc@1c0f000 {
99        compatible = "allwinner,sun5i-a13-mmc";
100        reg = <0x01c0f000 0x1000>;
101        clocks = <&ahb_gates 8>, <&mmc0_clk>;
102        clock-names = "ahb", "mmc";
103        interrupts = <32>;
104        bus-width = <4>;
105        cd-gpios = <&pio 7 1 0>;
106    };
107
108...
109