treewide: remove redundant IS_ERR() before error code check
[linux/fpc-iii.git] / Documentation / devicetree / bindings / sound / ingenic,codec.yaml
blobeb4be86464bb4dfc14651bc528ff26bb15153e76
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/sound/ingenic,codec.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
7 title: Ingenic JZ47xx internal codec DT bindings
9 maintainers:
10   - Paul Cercueil <paul@crapouillou.net>
12 properties:
13   $nodename:
14     pattern: '^audio-codec@.*'
16   compatible:
17     oneOf:
18       - const: ingenic,jz4770-codec
19       - const: ingenic,jz4725b-codec
20       - const: ingenic,jz4740-codec
22   reg:
23     maxItems: 1
25   clocks:
26     maxItems: 1
28   clock-names:
29     items:
30       - const: aic
32   '#sound-dai-cells':
33     const: 0
35 additionalProperties: false
37 required:
38   - compatible
39   - reg
40   - clocks
41   - clock-names
42   - '#sound-dai-cells'
44 examples:
45   - |
46     #include <dt-bindings/clock/jz4740-cgu.h>
47     codec: audio-codec@10020080 {
48       compatible = "ingenic,jz4740-codec";
49       reg = <0x10020080 0x8>;
50       #sound-dai-cells = <0>;
51       clocks = <&cgu JZ4740_CLK_AIC>;
52       clock-names = "aic";
53     };
55 ...