xref: /freebsd/sys/contrib/device-tree/Bindings/sound/awinic,aw88395.yaml (revision 84943d6f38e936ac3b7a3947ca26eeb27a39f938)
1cb7aa33aSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2cb7aa33aSEmmanuel Vadot%YAML 1.2
3cb7aa33aSEmmanuel Vadot---
4cb7aa33aSEmmanuel Vadot$id: http://devicetree.org/schemas/sound/awinic,aw88395.yaml#
5cb7aa33aSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6cb7aa33aSEmmanuel Vadot
7cb7aa33aSEmmanuel Vadottitle: Awinic AW88395 Smart Audio Amplifier
8cb7aa33aSEmmanuel Vadot
9cb7aa33aSEmmanuel Vadotmaintainers:
10cb7aa33aSEmmanuel Vadot  - Weidong Wang <wangweidong.a@awinic.com>
11cb7aa33aSEmmanuel Vadot
12cb7aa33aSEmmanuel Vadotdescription:
13cb7aa33aSEmmanuel Vadot  The Awinic AW88395 is an I2S/TDM input, high efficiency
14cb7aa33aSEmmanuel Vadot  digital Smart K audio amplifier with an integrated 10.25V
15cb7aa33aSEmmanuel Vadot  smart boost convert.
16cb7aa33aSEmmanuel Vadot
17cb7aa33aSEmmanuel Vadotproperties:
18cb7aa33aSEmmanuel Vadot  compatible:
19aa1a8ff2SEmmanuel Vadot    enum:
20aa1a8ff2SEmmanuel Vadot      - awinic,aw88395
21aa1a8ff2SEmmanuel Vadot      - awinic,aw88261
22*84943d6fSEmmanuel Vadot      - awinic,aw88399
23cb7aa33aSEmmanuel Vadot
24cb7aa33aSEmmanuel Vadot  reg:
25cb7aa33aSEmmanuel Vadot    maxItems: 1
26cb7aa33aSEmmanuel Vadot
27cb7aa33aSEmmanuel Vadot  '#sound-dai-cells':
28cb7aa33aSEmmanuel Vadot    const: 0
29cb7aa33aSEmmanuel Vadot
30cb7aa33aSEmmanuel Vadot  reset-gpios:
31cb7aa33aSEmmanuel Vadot    maxItems: 1
32cb7aa33aSEmmanuel Vadot
33*84943d6fSEmmanuel Vadot  awinic,audio-channel:
34*84943d6fSEmmanuel Vadot    description:
35*84943d6fSEmmanuel Vadot      It is used to distinguish multiple PA devices, so that different
36*84943d6fSEmmanuel Vadot      configurations can be loaded to different PA devices
37*84943d6fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
38*84943d6fSEmmanuel Vadot    minimum: 0
39*84943d6fSEmmanuel Vadot    maximum: 7
40*84943d6fSEmmanuel Vadot
41*84943d6fSEmmanuel Vadot  awinic,sync-flag:
42*84943d6fSEmmanuel Vadot    description:
43*84943d6fSEmmanuel Vadot      Flag bit used to keep the phase synchronized in the case of multiple PA
44*84943d6fSEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/flag
45*84943d6fSEmmanuel Vadot
46cb7aa33aSEmmanuel Vadotrequired:
47cb7aa33aSEmmanuel Vadot  - compatible
48cb7aa33aSEmmanuel Vadot  - reg
49cb7aa33aSEmmanuel Vadot  - '#sound-dai-cells'
50*84943d6fSEmmanuel Vadot  - awinic,audio-channel
51*84943d6fSEmmanuel Vadot
52*84943d6fSEmmanuel VadotallOf:
53*84943d6fSEmmanuel Vadot  - $ref: dai-common.yaml#
54*84943d6fSEmmanuel Vadot  - if:
55*84943d6fSEmmanuel Vadot      properties:
56*84943d6fSEmmanuel Vadot        compatible:
57*84943d6fSEmmanuel Vadot          contains:
58*84943d6fSEmmanuel Vadot            enum:
59*84943d6fSEmmanuel Vadot              - awinic,aw88261
60*84943d6fSEmmanuel Vadot    then:
61*84943d6fSEmmanuel Vadot      properties:
62*84943d6fSEmmanuel Vadot        reset-gpios: false
63cb7aa33aSEmmanuel Vadot
64cb7aa33aSEmmanuel VadotunevaluatedProperties: false
65cb7aa33aSEmmanuel Vadot
66cb7aa33aSEmmanuel Vadotexamples:
67cb7aa33aSEmmanuel Vadot  - |
68cb7aa33aSEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
69cb7aa33aSEmmanuel Vadot    i2c {
70cb7aa33aSEmmanuel Vadot        #address-cells = <1>;
71cb7aa33aSEmmanuel Vadot        #size-cells = <0>;
72cb7aa33aSEmmanuel Vadot        audio-codec@34 {
73cb7aa33aSEmmanuel Vadot            compatible = "awinic,aw88395";
74cb7aa33aSEmmanuel Vadot            reg = <0x34>;
75cb7aa33aSEmmanuel Vadot            #sound-dai-cells = <0>;
76cb7aa33aSEmmanuel Vadot            reset-gpios = <&gpio 10 GPIO_ACTIVE_LOW>;
77*84943d6fSEmmanuel Vadot            awinic,audio-channel = <0>;
78*84943d6fSEmmanuel Vadot            awinic,sync-flag;
79cb7aa33aSEmmanuel Vadot        };
80cb7aa33aSEmmanuel Vadot    };
81