xref: /freebsd/sys/contrib/device-tree/Bindings/sound/ingenic,codec.yaml (revision 8bab661a3316d8bd9b9fbd11a3b4371b91507bd2)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/sound/ingenic,codec.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
7*8bab661aSEmmanuel Vadottitle: Ingenic JZ47xx internal codec
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
10c66ec88fSEmmanuel Vadot  - Paul Cercueil <paul@crapouillou.net>
11c66ec88fSEmmanuel Vadot
12*8bab661aSEmmanuel VadotallOf:
13*8bab661aSEmmanuel Vadot  - $ref: dai-common.yaml#
14*8bab661aSEmmanuel Vadot
15c66ec88fSEmmanuel Vadotproperties:
16c66ec88fSEmmanuel Vadot  $nodename:
17c66ec88fSEmmanuel Vadot    pattern: '^audio-codec@.*'
18c66ec88fSEmmanuel Vadot
19c66ec88fSEmmanuel Vadot  compatible:
20c66ec88fSEmmanuel Vadot    oneOf:
215def4c47SEmmanuel Vadot      - enum:
225def4c47SEmmanuel Vadot          - ingenic,jz4770-codec
235def4c47SEmmanuel Vadot          - ingenic,jz4760-codec
245def4c47SEmmanuel Vadot          - ingenic,jz4725b-codec
255def4c47SEmmanuel Vadot          - ingenic,jz4740-codec
265def4c47SEmmanuel Vadot      - items:
275def4c47SEmmanuel Vadot          - const: ingenic,jz4760b-codec
285def4c47SEmmanuel Vadot          - const: ingenic,jz4760-codec
29c66ec88fSEmmanuel Vadot
30c66ec88fSEmmanuel Vadot  reg:
31c66ec88fSEmmanuel Vadot    maxItems: 1
32c66ec88fSEmmanuel Vadot
33c66ec88fSEmmanuel Vadot  clocks:
34c66ec88fSEmmanuel Vadot    maxItems: 1
35c66ec88fSEmmanuel Vadot
36c66ec88fSEmmanuel Vadot  clock-names:
37c66ec88fSEmmanuel Vadot    items:
38c66ec88fSEmmanuel Vadot      - const: aic
39c66ec88fSEmmanuel Vadot
40c66ec88fSEmmanuel Vadot  '#sound-dai-cells':
41c66ec88fSEmmanuel Vadot    const: 0
42c66ec88fSEmmanuel Vadot
43*8bab661aSEmmanuel VadotunevaluatedProperties: false
44c66ec88fSEmmanuel Vadot
45c66ec88fSEmmanuel Vadotrequired:
46c66ec88fSEmmanuel Vadot  - compatible
47c66ec88fSEmmanuel Vadot  - reg
48c66ec88fSEmmanuel Vadot  - clocks
49c66ec88fSEmmanuel Vadot  - clock-names
50c66ec88fSEmmanuel Vadot  - '#sound-dai-cells'
51c66ec88fSEmmanuel Vadot
52c66ec88fSEmmanuel Vadotexamples:
53c66ec88fSEmmanuel Vadot  - |
548cc087a1SEmmanuel Vadot    #include <dt-bindings/clock/ingenic,jz4740-cgu.h>
55c66ec88fSEmmanuel Vadot    codec: audio-codec@10020080 {
56c66ec88fSEmmanuel Vadot      compatible = "ingenic,jz4740-codec";
57c66ec88fSEmmanuel Vadot      reg = <0x10020080 0x8>;
58c66ec88fSEmmanuel Vadot      #sound-dai-cells = <0>;
59c66ec88fSEmmanuel Vadot      clocks = <&cgu JZ4740_CLK_AIC>;
60c66ec88fSEmmanuel Vadot      clock-names = "aic";
61c66ec88fSEmmanuel Vadot    };
62c66ec88fSEmmanuel Vadot
63c66ec88fSEmmanuel Vadot...
64