xref: /linux/Documentation/devicetree/bindings/sound/adi,max98363.yaml (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/sound/adi,max98363.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Analog Devices MAX98363 SoundWire Amplifier
8
9maintainers:
10  - Ryan Lee <ryans.lee@analog.com>
11
12description:
13  The MAX98363 is a SoundWire input Class D mono amplifier that
14  supports MIPI SoundWire v1.2-compatible digital interface for
15  audio and control data.
16  SoundWire peripheral device ID of MAX98363 is 0x3*019f836300
17  where * is the peripheral device unique ID decoded from pin.
18  It supports up to 10 peripheral devices(0x0 to 0x9).
19
20allOf:
21  - $ref: dai-common.yaml#
22
23properties:
24  compatible:
25    const: sdw3019f836300
26
27  reg:
28    maxItems: 1
29
30  '#sound-dai-cells':
31    const: 0
32
33required:
34  - compatible
35  - reg
36  - "#sound-dai-cells"
37
38unevaluatedProperties: false
39
40examples:
41  - |
42    soundwire@3250000 {
43        #address-cells = <2>;
44        #size-cells = <0>;
45        reg = <0x3250000 0x2000>;
46
47        speaker@0,0 {
48            compatible = "sdw3019f836300";
49            reg = <0 0>;
50            #sound-dai-cells = <0>;
51            sound-name-prefix = "Speaker Left";
52        };
53
54        speaker@0,1 {
55            compatible = "sdw3019f836300";
56            reg = <0 1>;
57            #sound-dai-cells = <0>;
58            sound-name-prefix = "Speaker Right";
59        };
60    };
61