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,ssm2518.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Analog Devices SSM2518 audio amplifier
8
9maintainers:
10  - Lars-Peter Clausen <lars@metafoo.de>
11
12allOf:
13  - $ref: dai-common.yaml#
14
15properties:
16  compatible:
17    const: adi,ssm2518
18
19  reg:
20    maxItems: 1
21    description: |
22       I2C address of the device. This will either be 0x34 (ADDR pin low)
23       or 0x35 (ADDR pin high)
24
25  gpios:
26    maxItems: 1
27    description: |
28       GPIO connected to the nSD pin. If the property is not present
29       it is assumed that the nSD pin is hardwired to always on.
30
31required:
32  - compatible
33  - reg
34
35unevaluatedProperties: false
36
37examples:
38  - |
39   i2c {
40     #address-cells = <1>;
41     #size-cells = <0>;
42     codec@34 {
43       compatible = "adi,ssm2518";
44       reg = <0x34>;
45       gpios = <&gpio 5 0>;
46     };
47   };
48