xref: /freebsd/sys/contrib/device-tree/Bindings/sound/everest,es8375.yaml (revision ae5de77ed78ae54d86cead5604869212e8008e6b)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/sound/everest,es8375.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Everest ES8375 audio CODEC
8
9maintainers:
10  - Michael Zhang <zhangyi@everest-semi.com>
11
12allOf:
13  - $ref: dai-common.yaml#
14
15properties:
16  compatible:
17    const: everest,es8375
18
19  reg:
20    maxItems: 1
21
22  clocks:
23    items:
24      - description: clock for master clock (MCLK)
25
26  clock-names:
27    items:
28      - const: mclk
29
30  vdda-supply:
31    description:
32      Analogue power supply.
33
34  vddd-supply:
35    description:
36      Interface power supply.
37
38  everest,mclk-src:
39    $ref: /schemas/types.yaml#/definitions/uint8
40    description: |
41      Represents the MCLK/SCLK pair pins used as the internal clock.
42      0 represents selecting MCLK.
43      1 represents selecting SCLK.
44    enum: [0, 1]
45    default: 0
46
47  "#sound-dai-cells":
48    const: 0
49
50required:
51  - compatible
52  - reg
53  - "#sound-dai-cells"
54  - vdda-supply
55  - vddd-supply
56
57additionalProperties: false
58
59examples:
60  - |
61    i2c {
62      #address-cells = <1>;
63      #size-cells = <0>;
64      es8375: codec@18 {
65        compatible = "everest,es8375";
66        reg = <0x18>;
67        vdda-supply = <&vdd3v3>;
68        vddd-supply = <&vdd3v3>;
69        #sound-dai-cells = <0>;
70      };
71    };
72