1# SPDX-License-Identifier: GPL-2.0
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/sound/allwinner,sun8i-a33-codec.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Allwinner A33 Codec Device Tree Bindings
8
9maintainers:
10  - Chen-Yu Tsai <wens@csie.org>
11  - Maxime Ripard <mripard@kernel.org>
12
13properties:
14  "#sound-dai-cells":
15    minimum: 0
16    maximum: 1
17    description:
18      A value of 0 is deprecated. When used, it only allows access to
19      the ADC/DAC and AIF1 (the CPU DAI), not the other two AIFs/DAIs.
20
21  compatible:
22    oneOf:
23      - items:
24          - const: allwinner,sun50i-a64-codec
25          - const: allwinner,sun8i-a33-codec
26      - const: allwinner,sun8i-a33-codec
27
28  reg:
29    maxItems: 1
30
31  interrupts:
32    maxItems: 1
33
34  clocks:
35    items:
36      - description: Bus Clock
37      - description: Module Clock
38
39  clock-names:
40    items:
41      - const: bus
42      - const: mod
43
44required:
45  - "#sound-dai-cells"
46  - compatible
47  - reg
48  - interrupts
49  - clocks
50  - clock-names
51
52additionalProperties: false
53
54examples:
55  - |
56    audio-codec@1c22e00 {
57      #sound-dai-cells = <1>;
58      compatible = "allwinner,sun8i-a33-codec";
59      reg = <0x01c22e00 0x400>;
60      interrupts = <0 29 4>;
61      clocks = <&ccu 47>, <&ccu 92>;
62      clock-names = "bus", "mod";
63    };
64
65...
66