Debian Codegraph @

Documentation/devicetree/bindings/sound/sophgo,cv1800b-i2s.yaml

raw
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/sound/sophgo,cv1800b-i2s.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Sophgo CV1800B I2S/TDM controller
8
9 maintainers:
10 - Anton D. Stavinskii <[email protected]>
11
12 description: I2S/TDM controller found in CV1800B / Sophgo SG2002/SG2000 SoCs.
13
14 allOf:
15 - $ref: dai-common.yaml#
16
17 properties:
18 compatible:
19 const: sophgo,cv1800b-i2s
20
21 reg:
22 maxItems: 1
23
24 "#sound-dai-cells":
25 const: 0
26
27 clocks:
28 maxItems: 2
29
30 clock-names:
31 items:
32 - const: i2s
33 - const: mclk
34
35 dmas:
36 minItems: 1
37 maxItems: 2
38
39 dma-names:
40 minItems: 1
41 items:
42 - enum: [rx, tx]
43 - const: tx
44
45 required:
46 - compatible
47 - reg
48 - clocks
49 - clock-names
50 - "#sound-dai-cells"
51
52 unevaluatedProperties: false
53
54 examples:
55 - |
56 #include <dt-bindings/clock/sophgo,cv1800.h>
57
58 i2s@4110000 {
59 compatible = "sophgo,cv1800b-i2s";
60 reg = <0x04110000 0x10000>;
61 clocks = <&clk CLK_APB_I2S1>, <&clk CLK_SDMA_AUD1>;
62 clock-names = "i2s", "mclk";
63 dmas = <&dmamux 2 1>, <&dmamux 3 1>;
64 dma-names = "rx", "tx";
65 #sound-dai-cells = <0>;
66 };
67 ...