xref: /freebsd/sys/contrib/device-tree/Bindings/sound/nuvoton,nau8315.yaml (revision 2f7b0de1de4749e24608fc89a2db63e723c253d2)
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/sound/nuvoton,nau8315.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: NAU8315/NAU8318 Mono Class-D Amplifier
8
9maintainers:
10  - David Lin <CTLIN0@nuvoton.com>
11
12allOf:
13  - $ref: dai-common.yaml#
14
15properties:
16  compatible:
17    enum:
18      - nuvoton,nau8315
19      - nuvoton,nau8318
20
21  '#sound-dai-cells':
22    const: 0
23
24  enable-gpios:
25    maxItems: 1
26    description:
27      GPIO specifier for the chip's device enable input(EN) pin.
28      If this option is not specified then driver does not manage
29      the pin state (e.g. chip is always on).
30
31required:
32  - compatible
33
34unevaluatedProperties: false
35
36examples:
37  - |
38    #include <dt-bindings/gpio/gpio.h>
39
40    codec {
41        compatible = "nuvoton,nau8315";
42        #sound-dai-cells = <0>;
43        enable-gpios = <&gpio1 5 GPIO_ACTIVE_HIGH>;
44    };
45