summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/sound/maxim,max9759.yaml
blob: a76ee6a635af9b276f1791d38f014d14706209c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/sound/maxim,max9759.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Maxim MAX9759 Speaker Amplifier

maintainers:
  - Otabek Nazrullaev <otabeknazrullaev1998@gmail.com>

properties:
  compatible:
    const: maxim,max9759

  shutdown-gpios:
    maxItems: 1
    description: the gpio connected to the shutdown pin

  mute-gpios:
    maxItems: 1
    description: the gpio connected to the mute pin

  gain-gpios:
    maxItems: 2
    description: the 2 gpios connected to the g1 and g2 pins

required:
  - compatible
  - shutdown-gpios
  - mute-gpios
  - gain-gpios

additionalProperties: false

examples:
  - |
    #include <dt-bindings/gpio/gpio.h>
    amplifier {
      compatible = "maxim,max9759";
      shutdown-gpios = <&gpio3 20 GPIO_ACTIVE_LOW>;
      mute-gpios = <&gpio3 19 GPIO_ACTIVE_LOW>;
      gain-gpios = <&gpio3 23 GPIO_ACTIVE_LOW>,
             <&gpio3 25 GPIO_ACTIVE_LOW>;
    };