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 DT bindings
8
9maintainers:
10  - Paul Cercueil <paul@crapouillou.net>
11
12properties:
13  $nodename:
14    pattern: '^audio-codec@.*'
15
16  compatible:
17    oneOf:
18      - const: ingenic,jz4770-codec
19      - const: ingenic,jz4725b-codec
20      - const: ingenic,jz4740-codec
21
22  reg:
23    maxItems: 1
24
25  clocks:
26    maxItems: 1
27
28  clock-names:
29    items:
30      - const: aic
31
32  '#sound-dai-cells':
33    const: 0
34
35additionalProperties: false
36
37required:
38  - compatible
39  - reg
40  - clocks
41  - clock-names
42  - '#sound-dai-cells'
43
44examples:
45  - |
46    #include <dt-bindings/clock/jz4740-cgu.h>
47    codec: audio-codec@10020080 {
48      compatible = "ingenic,jz4740-codec";
49      reg = <0x10020080 0x8>;
50      #sound-dai-cells = <0>;
51      clocks = <&cgu JZ4740_CLK_AIC>;
52      clock-names = "aic";
53    };
54
55...
56