xref: /linux/Documentation/devicetree/bindings/sound/loongson,ls2k1000-i2s.yaml (revision 7f71507851fc7764b36a3221839607d3a45c2025)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/sound/loongson,ls2k1000-i2s.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Loongson-2K1000 I2S controller
8
9maintainers:
10  - Binbin Zhou <zhoubinbin@loongson.cn>
11
12allOf:
13  - $ref: dai-common.yaml#
14
15properties:
16  compatible:
17    const: loongson,ls2k1000-i2s
18
19  reg:
20    items:
21      - description: Loongson I2S controller Registers.
22      - description: APB DMA config register for Loongson I2S controller.
23
24  interrupts:
25    maxItems: 1
26
27  clocks:
28    maxItems: 1
29
30  dmas:
31    maxItems: 2
32
33  dma-names:
34    items:
35      - const: tx
36      - const: rx
37
38  '#sound-dai-cells':
39    const: 0
40
41required:
42  - compatible
43  - reg
44  - interrupts
45  - clocks
46  - dmas
47  - dma-names
48  - '#sound-dai-cells'
49
50unevaluatedProperties: false
51
52examples:
53  - |
54    #include <dt-bindings/clock/loongson,ls2k-clk.h>
55    #include <dt-bindings/interrupt-controller/irq.h>
56
57    i2s@1fe2d000 {
58        compatible = "loongson,ls2k1000-i2s";
59        reg = <0x1fe2d000 0x14>,
60              <0x1fe00438 0x8>;
61        interrupt-parent = <&liointc0>;
62        interrupts = <5 IRQ_TYPE_LEVEL_HIGH>;
63        clocks = <&clk LOONGSON2_APB_CLK>;
64        dmas = <&apbdma2 0>, <&apbdma3 0>;
65        dma-names = "tx", "rx";
66        #sound-dai-cells = <0>;
67    };
68...
69