xref: /freebsd/sys/contrib/device-tree/Bindings/mmc/ingenic,mmc.yaml (revision 19261079b74319502c6ffa1249920079f0f69a72)
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
7title: Ingenic SoCs MMC Controller DT bindings
8
9maintainers:
10  - Paul Cercueil <paul@crapouillou.net>
11
12allOf:
13  - $ref: mmc-controller.yaml#
14
15properties:
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
50required:
51  - compatible
52  - reg
53  - interrupts
54  - clocks
55  - clock-names
56  - dmas
57  - dma-names
58
59unevaluatedProperties: false
60
61examples:
62  - |
63    #include <dt-bindings/clock/jz4780-cgu.h>
64    #include <dt-bindings/dma/jz4780-dma.h>
65    mmc0: mmc@13450000 {
66      compatible = "ingenic,jz4780-mmc";
67      reg = <0x13450000 0x1000>;
68
69      interrupt-parent = <&intc>;
70      interrupts = <37>;
71
72      clocks = <&cgu JZ4780_CLK_MSC0>;
73      clock-names = "mmc";
74
75      cap-sd-highspeed;
76      cap-mmc-highspeed;
77      cap-sdio-irq;
78      dmas = <&dma JZ4780_DMA_MSC0_RX 0xffffffff>,
79             <&dma JZ4780_DMA_MSC0_TX 0xffffffff>;
80      dma-names = "rx", "tx";
81    };
82