Debian Codegraph @

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

raw
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 awinic,audio-channel:
39 description:
40 It is used to distinguish multiple PA devices, so that different
41 configurations can be loaded to different PA devices
42 $ref: /schemas/types.yaml#/definitions/uint32
43 minimum: 0
44 maximum: 7
45
46 awinic,sync-flag:
47 description:
48 Flag bit used to keep the phase synchronized in the case of multiple PA
49 $ref: /schemas/types.yaml#/definitions/flag
50
51 required:
52 - compatible
53 - reg
54 - '#sound-dai-cells'
55 - awinic,audio-channel
56
57 allOf:
58 - $ref: dai-common.yaml#
59 - if:
60 properties:
61 compatible:
62 contains:
63 enum:
64 - awinic,aw88081
65 - awinic,aw88083
66 - awinic,aw88261
67 then:
68 properties:
69 reset-gpios: false
70 - if:
71 properties:
72 compatible:
73 contains:
74 const: awinic,aw88261
75 then:
76 required:
77 - dvdd-supply
78 else:
79 properties:
80 dvdd-supply: false
81
82 unevaluatedProperties: false
83
84 examples:
85 - |
86 #include <dt-bindings/gpio/gpio.h>
87 i2c {
88 #address-cells = <1>;
89 #size-cells = <0>;
90 audio-codec@34 {
91 compatible = "awinic,aw88395";
92 reg = <0x34>;
93 #sound-dai-cells = <0>;
94 reset-gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
95 awinic,audio-channel = <0>;
96 awinic,sync-flag;
97 };
98 };