summaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings/sound/simple-audio-amplifier.yaml
blob: 5428ba9e23a60696dc5076163dd7f7309655fc67 (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
%YAML 1.2
---
$id: http://devicetree.org/schemas/sound/simple-audio-amplifier.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Simple Audio Amplifier

maintainers:
  - Jerome Brunet <jbrunet@baylibre.com>

allOf:
  - $ref: name-prefix.yaml#

properties:
  compatible:
    enum:
      - dioo,dio2125
      - simple-audio-amplifier

  enable-gpios:
    maxItems: 1

  VCC-supply:
    description: >
      power supply for the device

  sound-name-prefix: true

required:
  - compatible

additionalProperties: false

examples:
  - |
    #include <dt-bindings/gpio/meson8-gpio.h>

    analog-amplifier {
        compatible = "simple-audio-amplifier";
        VCC-supply = <&regulator>;
        enable-gpios = <&gpio GPIOH_3 0>;
    };

...