xref: /linux/Documentation/devicetree/bindings/sound/maxim,max9759.yaml (revision e7d759f31ca295d589f7420719c311870bb3166f)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/sound/maxim,max9759.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Maxim MAX9759 Speaker Amplifier
8
9maintainers:
10  - Otabek Nazrullaev <otabeknazrullaev1998@gmail.com>
11
12properties:
13  compatible:
14    const: maxim,max9759
15
16  shutdown-gpios:
17    maxItems: 1
18    description: the gpio connected to the shutdown pin
19
20  mute-gpios:
21    maxItems: 1
22    description: the gpio connected to the mute pin
23
24  gain-gpios:
25    maxItems: 2
26    description: the 2 gpios connected to the g1 and g2 pins
27
28required:
29  - compatible
30  - shutdown-gpios
31  - mute-gpios
32  - gain-gpios
33
34additionalProperties: false
35
36examples:
37  - |
38    #include <dt-bindings/gpio/gpio.h>
39    amplifier {
40      compatible = "maxim,max9759";
41      shutdown-gpios = <&gpio3 20 GPIO_ACTIVE_LOW>;
42      mute-gpios = <&gpio3 19 GPIO_ACTIVE_LOW>;
43      gain-gpios = <&gpio3 23 GPIO_ACTIVE_LOW>,
44             <&gpio3 25 GPIO_ACTIVE_LOW>;
45    };
46