]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - Bindings/sound/allwinner,sun8i-a33-codec.yaml
Import devicetree files from Linux 5.4
[FreeBSD/FreeBSD.git] / Bindings / sound / allwinner,sun8i-a33-codec.yaml
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
7 title: Allwinner A33 Codec Device Tree Bindings
8
9 maintainers:
10   - Chen-Yu Tsai <wens@csie.org>
11   - Maxime Ripard <maxime.ripard@bootlin.com>
12
13 properties:
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
36 required:
37   - "#sound-dai-cells"
38   - compatible
39   - reg
40   - interrupts
41   - clocks
42   - clock-names
43
44 additionalProperties: false
45
46 examples:
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 ...