xref: /linux/Documentation/devicetree/bindings/sound/allwinner,sun8i-a33-codec.yaml (revision f401b2c9931a70317b6ac0d3e6020adc3a404cc0)
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    const: 0
16
17  compatible:
18    oneOf:
19      - items:
20          - const: allwinner,sun50i-a64-codec
21          - const: allwinner,sun8i-a33-codec
22      - const: allwinner,sun8i-a33-codec
23
24  reg:
25    maxItems: 1
26
27  interrupts:
28    maxItems: 1
29
30  clocks:
31    items:
32      - description: Bus Clock
33      - description: Module Clock
34
35  clock-names:
36    items:
37      - const: bus
38      - const: mod
39
40required:
41  - "#sound-dai-cells"
42  - compatible
43  - reg
44  - interrupts
45  - clocks
46  - clock-names
47
48additionalProperties: false
49
50examples:
51  - |
52    audio-codec@1c22e00 {
53      #sound-dai-cells = <0>;
54      compatible = "allwinner,sun8i-a33-codec";
55      reg = <0x01c22e00 0x400>;
56      interrupts = <0 29 4>;
57      clocks = <&ccu 47>, <&ccu 92>;
58      clock-names = "bus", "mod";
59    };
60
61...
62