xref: /linux/Documentation/devicetree/bindings/mmc/allwinner,sun4i-a10-mmc.yaml (revision 95298d63c67673c654c08952672d016212b26054)
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      - items:
30          - const: allwinner,sun8i-a83t-mmc
31          - const: allwinner,sun7i-a20-mmc
32      - items:
33          - const: allwinner,sun8i-r40-emmc
34          - const: allwinner,sun50i-a64-emmc
35      - items:
36          - const: allwinner,sun8i-r40-mmc
37          - const: allwinner,sun50i-a64-mmc
38      - items:
39          - const: allwinner,sun50i-h5-emmc
40          - const: allwinner,sun50i-a64-emmc
41      - items:
42          - const: allwinner,sun50i-h5-mmc
43          - const: allwinner,sun50i-a64-mmc
44      - items:
45          - const: allwinner,sun50i-h6-emmc
46          - const: allwinner,sun50i-a64-emmc
47      - items:
48          - const: allwinner,sun50i-h6-mmc
49          - const: allwinner,sun50i-a64-mmc
50
51  reg:
52    maxItems: 1
53
54  interrupts:
55    maxItems: 1
56
57  clocks:
58    minItems: 2
59    maxItems: 4
60    items:
61      - description: Bus Clock
62      - description: Module Clock
63      - description: Output Clock
64      - description: Sample Clock
65
66  clock-names:
67    minItems: 2
68    maxItems: 4
69    items:
70      - const: ahb
71      - const: mmc
72      - const: output
73      - const: sample
74
75  resets:
76    maxItems: 1
77
78  reset-names:
79    const: ahb
80
81required:
82  - compatible
83  - reg
84  - interrupts
85  - clocks
86  - clock-names
87
88unevaluatedProperties: false
89
90examples:
91  - |
92    mmc0: mmc@1c0f000 {
93        compatible = "allwinner,sun5i-a13-mmc";
94        reg = <0x01c0f000 0x1000>;
95        clocks = <&ahb_gates 8>, <&mmc0_clk>;
96        clock-names = "ahb", "mmc";
97        interrupts = <32>;
98        bus-width = <4>;
99        cd-gpios = <&pio 7 1 0>;
100    };
101
102...
103