xref: /linux/Documentation/devicetree/bindings/sound/allwinner,sun50i-h6-dmic.yaml (revision 3a38ef2b3cb6b63c105247b5ea4a9cf600e673f0)
1# SPDX-License-Identifier: (GPL-2.0+ OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/sound/allwinner,sun50i-h6-dmic.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Allwinner H6 DMIC
8
9maintainers:
10  - Ban Tao <fengzheng923@gmail.com>
11
12properties:
13  compatible:
14    const: allwinner,sun50i-h6-dmic
15
16  "#sound-dai-cells":
17    const: 0
18
19  reg:
20    maxItems: 1
21
22  interrupts:
23    maxItems: 1
24
25  clocks:
26    items:
27      - description: Bus Clock
28      - description: Module Clock
29
30  clock-names:
31    items:
32      - const: bus
33      - const: mod
34
35  dmas:
36    items:
37      - description: RX DMA Channel
38
39  dma-names:
40    items:
41      - const: rx
42
43  resets:
44    maxItems: 1
45
46required:
47  - "#sound-dai-cells"
48  - compatible
49  - reg
50  - interrupts
51  - clocks
52  - clock-names
53  - dmas
54  - dma-names
55  - resets
56
57additionalProperties: false
58
59examples:
60  - |
61    #include <dt-bindings/interrupt-controller/arm-gic.h>
62    #include <dt-bindings/interrupt-controller/irq.h>
63
64    #include <dt-bindings/clock/sun50i-h6-ccu.h>
65    #include <dt-bindings/reset/sun50i-h6-ccu.h>
66
67    dmic: dmic@5095000 {
68      #sound-dai-cells = <0>;
69      compatible = "allwinner,sun50i-h6-dmic";
70      reg = <0x05095000 0x400>;
71      interrupts = <GIC_SPI 22 IRQ_TYPE_LEVEL_HIGH>;
72      clocks = <&ccu CLK_BUS_DMIC>, <&ccu CLK_DMIC>;
73      clock-names = "bus", "mod";
74      dmas = <&dma 7>;
75      dma-names = "rx";
76      resets = <&ccu RST_BUS_DMIC>;
77    };
78
79...
80