xref: /linux/Documentation/devicetree/bindings/sound/realtek,rt5631.yaml (revision 6e7fd890f1d6ac83805409e9c346240de2705584)
1# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/sound/realtek,rt5631.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: ALC5631/RT5631 audio CODEC
8
9maintainers:
10  - Animesh Agarwal <animeshagarwal28@gmail.com>
11
12description: |
13  This device supports I2C only.
14
15  Pins on the device (for linking into audio routes):
16      * SPK_OUT_R_P
17      * SPK_OUT_R_N
18      * SPK_OUT_L_P
19      * SPK_OUT_L_N
20      * HP_OUT_L
21      * HP_OUT_R
22      * AUX_OUT2_LP
23      * AUX_OUT2_RN
24      * AUX_OUT1_LP
25      * AUX_OUT1_RN
26      * AUX_IN_L_JD
27      * AUX_IN_R_JD
28      * MONO_IN_P
29      * MONO_IN_N
30      * MIC1_P
31      * MIC1_N
32      * MIC2_P
33      * MIC2_N
34      * MONO_OUT_P
35      * MONO_OUT_N
36      * MICBIAS1
37      * MICBIAS2
38
39properties:
40  compatible:
41    enum:
42      - realtek,alc5631
43      - realtek,rt5631
44
45  reg:
46    maxItems: 1
47
48  port:
49    $ref: audio-graph-port.yaml#
50    unevaluatedProperties: false
51
52required:
53  - compatible
54  - reg
55
56additionalProperties: false
57
58examples:
59  - |
60    i2c {
61        #address-cells = <1>;
62        #size-cells = <0>;
63        codec@1a {
64            compatible = "realtek,alc5631";
65            reg = <0x1a>;
66        };
67    };
68