summaryrefslogtreecommitdiff
path: root/Documentation/devicetree/bindings/sound/everest,es71x4.yaml
blob: efe9f3fd3778ae7572713673f1a9cf79c49b092c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
%YAML 1.2
---
$id: http://devicetree.org/schemas/sound/everest,es71x4.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Everest ES7134/7144/7154 2 channels I2S analog to digital converter

maintainers:
  - Neil Armstrong <neil.armstrong@linaro.org>

properties:
  compatible:
    enum:
      - everest,es7134
      - everest,es7144
      - everest,es7154

  VDD-supply: true
  PVDD-supply: true

  '#sound-dai-cells':
    const: 0

required:
  - compatible
  - VDD-supply

allOf:
  - $ref: dai-common.yaml#
  - if:
      properties:
        compatible:
          contains:
            enum:
              - everest,es7134
              - everest,es7144
    then:
      properties:
        PVDD-supply: false

  - if:
      properties:
        compatible:
          contains:
            enum:
              - everest,es7154
    then:
      required:
        - PVDD-supply

unevaluatedProperties: false

examples:
  - |
    codec {
        compatible = "everest,es7134";
        #sound-dai-cells = <0>;
        VDD-supply = <&vdd_supply>;
    };

...