]> git.ipfire.org Git - thirdparty/u-boot.git/blob - Bindings/sound/maxim,max9759.yaml
Squashed 'dts/upstream/' content from commit aaba2d45dc2a
[thirdparty/u-boot.git] / Bindings / sound / maxim,max9759.yaml
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
7 title: Maxim MAX9759 Speaker Amplifier
8
9 maintainers:
10 - Otabek Nazrullaev <otabeknazrullaev1998@gmail.com>
11
12 properties:
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
28 required:
29 - compatible
30 - shutdown-gpios
31 - mute-gpios
32 - gain-gpios
33
34 additionalProperties: false
35
36 examples:
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 };