xref: /linux/Documentation/devicetree/bindings/sound/awinic,aw88395.yaml (revision 7f71507851fc7764b36a3221839607d3a45c2025)
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
7title: Awinic AW88395 Smart Audio Amplifier
8
9maintainers:
10  - Weidong Wang <wangweidong.a@awinic.com>
11
12description:
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
17properties:
18  compatible:
19    enum:
20      - awinic,aw88081
21      - awinic,aw88261
22      - awinic,aw88395
23      - awinic,aw88399
24
25  reg:
26    maxItems: 1
27
28  '#sound-dai-cells':
29    const: 0
30
31  reset-gpios:
32    maxItems: 1
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  awinic,sync-flag:
43    description:
44      Flag bit used to keep the phase synchronized in the case of multiple PA
45    $ref: /schemas/types.yaml#/definitions/flag
46
47required:
48  - compatible
49  - reg
50  - '#sound-dai-cells'
51  - awinic,audio-channel
52
53allOf:
54  - $ref: dai-common.yaml#
55  - if:
56      properties:
57        compatible:
58          contains:
59            enum:
60              - awinic,aw88081
61              - awinic,aw88261
62    then:
63      properties:
64        reset-gpios: false
65
66unevaluatedProperties: false
67
68examples:
69  - |
70    #include <dt-bindings/gpio/gpio.h>
71    i2c {
72        #address-cells = <1>;
73        #size-cells = <0>;
74        audio-codec@34 {
75            compatible = "awinic,aw88395";
76            reg = <0x34>;
77            #sound-dai-cells = <0>;
78            reset-gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
79            awinic,audio-channel = <0>;
80            awinic,sync-flag;
81        };
82    };
83