Debian Codegraph @

Documentation/devicetree/bindings/sound/awinic,aw88395.yaml

raw symbols SCIP
1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/sound/awinic,aw88395.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Awinic AW88395 Smart Audio Amplifier
8
9 maintainers:
10 - Weidong Wang <[email protected]>
11
12 description:
13 The Awinic AW88395 is an I2S/TDM input, high efficiency
14 digital Smart K audio amplifier with an integrated 10.25V
15 smart boost convert.
16
17 properties:
18 compatible:
19 enum:
20 - awinic,aw88081
21 - awinic,aw88083
22 - awinic,aw88166
23 - awinic,aw88261
24 - awinic,aw88395
25 - awinic,aw88399
26
27 reg:
28 maxItems: 1
29
30 '#sound-dai-cells':
31 const: 0
32
33 reset-gpios:
34 maxItems: 1
35
36 dvdd-supply: true
37
38 firmware-name:
39 maxItems: 1
40 description: Name of the *_acf.bin file used for amplifier initialization
41
42 awinic,audio-channel:
43 description:
44 It is used to distinguish multiple PA devices, so that different
45 configurations can be loaded to different PA devices
46 $ref: /schemas/types.yaml#/definitions/uint32
47 minimum: 0
48 maximum: 7
49
50 awinic,sync-flag:
51 description:
52 Flag bit used to keep the phase synchronized in the case of multiple PA
53 $ref: /schemas/types.yaml#/definitions/flag
54
55 required:
56 - compatible
57 - reg
58 - '#sound-dai-cells'
59 - awinic,audio-channel
60
61 allOf:
62 - $ref: dai-common.yaml#
63 - if:
64 properties:
65 compatible:
66 contains:
67 enum:
68 - awinic,aw88081
69 - awinic,aw88083
70 - awinic,aw88261
71 then:
72 properties:
73 reset-gpios: false
74 - if:
75 properties:
76 compatible:
77 contains:
78 const: awinic,aw88261
79 then:
80 required:
81 - dvdd-supply
82 else:
83 properties:
84 dvdd-supply: false
85
86 unevaluatedProperties: false
87
88 examples:
89 - |
90 #include <dt-bindings/gpio/gpio.h>
91 i2c {
92 #address-cells = <1>;
93 #size-cells = <0>;
94 audio-codec@34 {
95 compatible = "awinic,aw88395";
96 reg = <0x34>;
97 #sound-dai-cells = <0>;
98 reset-gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
99 awinic,audio-channel = <0>;
100 awinic,sync-flag;
101 };
102 };