summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/sound/awinic,aw87390.yaml
blob: ba9d8767c5d597e5680302bc756878665582d350 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/sound/awinic,aw87390.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Awinic Aw87390 Audio Amplifier

maintainers:
  - Weidong Wang <wangweidong.a@awinic.com>

description:
  The awinic aw87390 is specifically designed to improve
  the musical output dynamic range, enhance the overall
  sound quallity, which is a new high efficiency, low
  noise, constant large volume, 6th Smart K audio amplifier.

allOf:
  - $ref: dai-common.yaml#

properties:
  compatible:
    const: awinic,aw87390

  reg:
    maxItems: 1

  "#sound-dai-cells":
    const: 0

  awinic,audio-channel:
    description:
      It is used to distinguish multiple PA devices, so that different
      configurations can be loaded to different PA devices
    $ref: /schemas/types.yaml#/definitions/uint32
    minimum: 0
    maximum: 7

required:
  - compatible
  - reg
  - "#sound-dai-cells"
  - awinic,audio-channel

unevaluatedProperties: false

examples:
  - |
    i2c {
        #address-cells = <1>;
        #size-cells = <0>;
        audio-codec@58 {
            compatible = "awinic,aw87390";
            reg = <0x58>;
            #sound-dai-cells = <0>;
            awinic,audio-channel = <0>;
        };
    };