xref: /linux/Documentation/devicetree/bindings/sound/nuvoton,nau8822.yaml (revision a1c613ae4c322ddd58d5a8539dbfba2a0380a8c0)
176fa6279SEmanuele Ghidoli# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
276fa6279SEmanuele Ghidoli%YAML 1.2
376fa6279SEmanuele Ghidoli---
476fa6279SEmanuele Ghidoli$id: http://devicetree.org/schemas/sound/nuvoton,nau8822.yaml#
576fa6279SEmanuele Ghidoli$schema: http://devicetree.org/meta-schemas/core.yaml#
676fa6279SEmanuele Ghidoli
776fa6279SEmanuele Ghidolititle: NAU8822 audio CODEC
876fa6279SEmanuele Ghidoli
976fa6279SEmanuele Ghidolidescription: |
1076fa6279SEmanuele Ghidoli  24 bit stereo audio codec with speaker driver.
1176fa6279SEmanuele Ghidoli  This device supports I2C/SPI.
1276fa6279SEmanuele Ghidoli
1376fa6279SEmanuele Ghidolimaintainers:
1476fa6279SEmanuele Ghidoli  - David Lin <CTLIN0@nuvoton.com>
1576fa6279SEmanuele Ghidoli
1676fa6279SEmanuele Ghidoliproperties:
1776fa6279SEmanuele Ghidoli  compatible:
1876fa6279SEmanuele Ghidoli    enum:
1976fa6279SEmanuele Ghidoli      - nuvoton,nau8822
2076fa6279SEmanuele Ghidoli
2176fa6279SEmanuele Ghidoli  reg:
2276fa6279SEmanuele Ghidoli    maxItems: 1
2376fa6279SEmanuele Ghidoli
24e8c213caSFrancesco Dolcini  "#sound-dai-cells":
25e8c213caSFrancesco Dolcini    const: 0
26e8c213caSFrancesco Dolcini
27*c214131fSFrancesco Dolcini  clocks:
28*c214131fSFrancesco Dolcini    maxItems: 1
29*c214131fSFrancesco Dolcini
30*c214131fSFrancesco Dolcini  clock-names:
31*c214131fSFrancesco Dolcini    const: mclk
32*c214131fSFrancesco Dolcini
33af20f01eSEmanuele Ghidoli  nuvoton,spk-btl:
34af20f01eSEmanuele Ghidoli    description:
35af20f01eSEmanuele Ghidoli      If set, configure the two loudspeaker outputs as a Bridge Tied Load output
36af20f01eSEmanuele Ghidoli      to drive a high power external loudspeaker.
37af20f01eSEmanuele Ghidoli    $ref: /schemas/types.yaml#/definitions/flag
38af20f01eSEmanuele Ghidoli
3976fa6279SEmanuele Ghidolirequired:
4076fa6279SEmanuele Ghidoli  - compatible
4176fa6279SEmanuele Ghidoli  - reg
4276fa6279SEmanuele Ghidoli
43e8c213caSFrancesco DolciniallOf:
44e8c213caSFrancesco Dolcini  - $ref: dai-common.yaml#
45e8c213caSFrancesco Dolcini
4676fa6279SEmanuele GhidoliadditionalProperties: false
4776fa6279SEmanuele Ghidoli
4876fa6279SEmanuele Ghidoliexamples:
4976fa6279SEmanuele Ghidoli  - |
5076fa6279SEmanuele Ghidoli    i2c {
5176fa6279SEmanuele Ghidoli        #address-cells = <1>;
5276fa6279SEmanuele Ghidoli        #size-cells = <0>;
5376fa6279SEmanuele Ghidoli
5476fa6279SEmanuele Ghidoli        codec@1a {
5576fa6279SEmanuele Ghidoli            compatible = "nuvoton,nau8822";
5676fa6279SEmanuele Ghidoli            reg = <0x1a>;
5776fa6279SEmanuele Ghidoli        };
5876fa6279SEmanuele Ghidoli    };
59