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