xref: /linux/Documentation/devicetree/bindings/sound/sophgo,cv1800b-codecs.yaml (revision c17ee635fd3a482b2ad2bf5e269755c2eae5f25e)
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-codecs.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Sophgo CV1800B Internal ADC/DAC Codec
8
9maintainers:
10  - Anton D. Stavinskii <stavinsky@gmail.com>
11
12description:
13  Internal ADC and DAC audio codecs integrated in the Sophgo CV1800B SoC.
14  Codecs expose a single DAI and are intended to be connected
15  to an I2S/TDM controller via an ASoC machine driver.
16
17allOf:
18  - $ref: dai-common.yaml#
19
20properties:
21  compatible:
22    enum:
23      - sophgo,cv1800b-sound-adc
24      - sophgo,cv1800b-sound-dac
25
26  reg:
27    maxItems: 1
28
29  "#sound-dai-cells":
30    const: 0
31
32required:
33  - compatible
34  - reg
35  - "#sound-dai-cells"
36
37unevaluatedProperties: false
38
39examples:
40  - |
41    audio-codec@300a100 {
42      compatible = "sophgo,cv1800b-sound-adc";
43      reg = <0x0300a100 0x100>;
44      #sound-dai-cells = <0>;
45    };
46...
47