xref: /linux/Documentation/devicetree/bindings/sound/ingenic,codec.yaml (revision 6599e683db1bf22fee74302c47e31b9a42a1c3d2)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/sound/ingenic,codec.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Ingenic JZ47xx internal codec
8
9maintainers:
10  - Paul Cercueil <paul@crapouillou.net>
11
12allOf:
13  - $ref: dai-common.yaml#
14
15properties:
16  $nodename:
17    pattern: '^audio-codec@.*'
18
19  compatible:
20    oneOf:
21      - enum:
22          - ingenic,jz4770-codec
23          - ingenic,jz4760-codec
24          - ingenic,jz4725b-codec
25          - ingenic,jz4740-codec
26      - items:
27          - const: ingenic,jz4760b-codec
28          - const: ingenic,jz4760-codec
29
30  reg:
31    maxItems: 1
32
33  clocks:
34    maxItems: 1
35
36  clock-names:
37    items:
38      - const: aic
39
40  '#sound-dai-cells':
41    const: 0
42
43unevaluatedProperties: false
44
45required:
46  - compatible
47  - reg
48  - clocks
49  - clock-names
50  - '#sound-dai-cells'
51
52examples:
53  - |
54    #include <dt-bindings/clock/ingenic,jz4740-cgu.h>
55    codec: audio-codec@10020080 {
56      compatible = "ingenic,jz4740-codec";
57      reg = <0x10020080 0x8>;
58      #sound-dai-cells = <0>;
59      clocks = <&cgu JZ4740_CLK_AIC>;
60      clock-names = "aic";
61    };
62
63...
64