treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / Documentation / devicetree / bindings / sound / allwinner,sun8i-a33-codec.yaml
blob55d28268d2f4ff5c0860b02609185311b42b90ce
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#
7 title: Allwinner A33 Codec Device Tree Bindings
9 maintainers:
10   - Chen-Yu Tsai <wens@csie.org>
11   - Maxime Ripard <mripard@kernel.org>
13 properties:
14   "#sound-dai-cells":
15     const: 0
17   compatible:
18     const: allwinner,sun8i-a33-codec
20   reg:
21     maxItems: 1
23   interrupts:
24     maxItems: 1
26   clocks:
27     items:
28       - description: Bus Clock
29       - description: Module Clock
31   clock-names:
32     items:
33       - const: bus
34       - const: mod
36 required:
37   - "#sound-dai-cells"
38   - compatible
39   - reg
40   - interrupts
41   - clocks
42   - clock-names
44 additionalProperties: false
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     };
57 ...