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      - enum:
19          - ingenic,jz4770-codec
20          - ingenic,jz4760-codec
21          - ingenic,jz4725b-codec
22          - ingenic,jz4740-codec
23      - items:
24          - const: ingenic,jz4760b-codec
25          - const: ingenic,jz4760-codec
26
27  reg:
28    maxItems: 1
29
30  clocks:
31    maxItems: 1
32
33  clock-names:
34    items:
35      - const: aic
36
37  '#sound-dai-cells':
38    const: 0
39
40additionalProperties: false
41
42required:
43  - compatible
44  - reg
45  - clocks
46  - clock-names
47  - '#sound-dai-cells'
48
49examples:
50  - |
51    #include <dt-bindings/clock/ingenic,jz4740-cgu.h>
52    codec: audio-codec@10020080 {
53      compatible = "ingenic,jz4740-codec";
54      reg = <0x10020080 0x8>;
55      #sound-dai-cells = <0>;
56      clocks = <&cgu JZ4740_CLK_AIC>;
57      clock-names = "aic";
58    };
59
60...
61