Merge tag 'linux-kselftest-5.8-rc1' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / mmc / ingenic,mmc.yaml
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/mmc/ingenic,mmc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Ingenic SoCs MMC Controller DT bindings
8
9 maintainers:
10   - Paul Cercueil <paul@crapouillou.net>
11
12 allOf:
13   - $ref: mmc-controller.yaml#
14
15 properties:
16   compatible:
17     oneOf:
18       - enum:
19         - ingenic,jz4740-mmc
20         - ingenic,jz4725b-mmc
21         - ingenic,jz4760-mmc
22         - ingenic,jz4780-mmc
23         - ingenic,x1000-mmc
24       - items:
25         - const: ingenic,jz4770-mmc
26         - const: ingenic,jz4760-mmc
27
28   reg:
29     maxItems: 1
30
31   interrupts:
32     maxItems: 1
33
34   clocks:
35     maxItems: 1
36
37   clock-names:
38     const: mmc
39
40   dmas:
41     items:
42       - description: DMA controller phandle and request line for RX
43       - description: DMA controller phandle and request line for TX
44
45   dma-names:
46     items:
47       - const: rx
48       - const: tx
49
50 required:
51   - compatible
52   - reg
53   - interrupts
54   - clocks
55   - clock-names
56   - dmas
57   - dma-names
58
59 examples:
60   - |
61     #include <dt-bindings/clock/jz4780-cgu.h>
62     #include <dt-bindings/dma/jz4780-dma.h>
63     mmc0: mmc@13450000 {
64       compatible = "ingenic,jz4780-mmc";
65       reg = <0x13450000 0x1000>;
66
67       interrupt-parent = <&intc>;
68       interrupts = <37>;
69
70       clocks = <&cgu JZ4780_CLK_MSC0>;
71       clock-names = "mmc";
72
73       cap-sd-highspeed;
74       cap-mmc-highspeed;
75       cap-sdio-irq;
76       dmas = <&dma JZ4780_DMA_MSC0_RX 0xffffffff>,
77              <&dma JZ4780_DMA_MSC0_TX 0xffffffff>;
78       dma-names = "rx", "tx";
79     };