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