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,nau8822.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: NAU8822 audio CODEC
8
9description: |
10  24 bit stereo audio codec with speaker driver.
11  This device supports I2C/SPI.
12
13maintainers:
14  - David Lin <CTLIN0@nuvoton.com>
15
16properties:
17  compatible:
18    enum:
19      - nuvoton,nau8822
20
21  reg:
22    maxItems: 1
23
24  nuvoton,spk-btl:
25    description:
26      If set, configure the two loudspeaker outputs as a Bridge Tied Load output
27      to drive a high power external loudspeaker.
28    $ref: /schemas/types.yaml#/definitions/flag
29
30required:
31  - compatible
32  - reg
33
34additionalProperties: false
35
36examples:
37  - |
38    i2c {
39        #address-cells = <1>;
40        #size-cells = <0>;
41
42        codec@1a {
43            compatible = "nuvoton,nau8822";
44            reg = <0x1a>;
45        };
46    };
47