Tom Rini | 53633a8 | 2024-02-29 12:33:36 -0500 | [diff] [blame^] | 1 | # SPDX-License-Identifier: GPL-2.0 |
| 2 | %YAML 1.2 |
| 3 | --- |
| 4 | $id: http://devicetree.org/schemas/sound/simple-audio-amplifier.yaml# |
| 5 | $schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 | |
| 7 | title: Simple Audio Amplifier |
| 8 | |
| 9 | maintainers: |
| 10 | - Jerome Brunet <jbrunet@baylibre.com> |
| 11 | |
| 12 | allOf: |
| 13 | - $ref: dai-common.yaml# |
| 14 | |
| 15 | properties: |
| 16 | compatible: |
| 17 | enum: |
| 18 | - dioo,dio2125 |
| 19 | - simple-audio-amplifier |
| 20 | |
| 21 | enable-gpios: |
| 22 | maxItems: 1 |
| 23 | |
| 24 | VCC-supply: |
| 25 | description: > |
| 26 | power supply for the device |
| 27 | |
| 28 | sound-name-prefix: true |
| 29 | |
| 30 | required: |
| 31 | - compatible |
| 32 | |
| 33 | additionalProperties: false |
| 34 | |
| 35 | examples: |
| 36 | - | |
| 37 | #include <dt-bindings/gpio/meson8-gpio.h> |
| 38 | |
| 39 | analog-amplifier { |
| 40 | compatible = "simple-audio-amplifier"; |
| 41 | VCC-supply = <®ulator>; |
| 42 | enable-gpios = <&gpio GPIOH_3 0>; |
| 43 | }; |
| 44 | |
| 45 | ... |