Debian Codegraph @

Documentation/devicetree/bindings/sound/awinic,aw87390.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,aw87390.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Awinic Aw87390 Audio Amplifier
8
9 maintainers:
10 - Weidong Wang <[email protected]>
11
12 description:
13 The awinic aw87390 is specifically designed to improve
14 the musical output dynamic range, enhance the overall
15 sound quallity, which is a new high efficiency, low
16 noise, constant large volume, 6th Smart K audio amplifier.
17
18 properties:
19 compatible:
20 oneOf:
21 - enum:
22 - awinic,aw87390
23 - items:
24 - enum:
25 - anbernic,rgds-amp
26 - const: awinic,aw87391
27
28 reg:
29 maxItems: 1
30
31 "#sound-dai-cells":
32 const: 0
33
34 awinic,audio-channel:
35 description:
36 It is used to distinguish multiple PA devices, so that different
37 configurations can be loaded to different PA devices
38 $ref: /schemas/types.yaml#/definitions/uint32
39 minimum: 0
40 maximum: 7
41
42 required:
43 - compatible
44 - reg
45 - "#sound-dai-cells"
46
47 unevaluatedProperties: false
48
49 allOf:
50 - $ref: dai-common.yaml#
51 - if:
52 properties:
53 compatible:
54 contains:
55 enum:
56 - awinic,aw87390
57 then:
58 required:
59 - awinic,audio-channel
60
61 - if:
62 properties:
63 compatible:
64 contains:
65 enum:
66 - anbernic,rgds-amp
67 then:
68 properties:
69 vdd-supply: true
70
71 examples:
72 - |
73 i2c {
74 #address-cells = <1>;
75 #size-cells = <0>;
76 audio-codec@58 {
77 compatible = "awinic,aw87390";
78 reg = <0x58>;
79 #sound-dai-cells = <0>;
80 awinic,audio-channel = <0>;
81 };
82 };