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