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