File Index
Files and directories
Sign in
FILE

cirrus,cs42xx8.yaml

File preview with syntax highlighting.

linux-6.19.14/Documentation/devicetree/bindings/sound/cirrus,cs42xx8.yaml YAML
 1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
 2%YAML 1.2
 3---
 4$id: http://devicetree.org/schemas/sound/cirrus,cs42xx8.yaml#
 5$schema: http://devicetree.org/meta-schemas/core.yaml#
 6
 7title: Cirrus Logic CS42448/CS42888 audio CODEC
 8
 9maintainers:
10  - patches@opensource.cirrus.com
11
12allOf:
13  - $ref: dai-common.yaml#
14
15properties:
16  compatible:
17    enum:
18      - cirrus,cs42448
19      - cirrus,cs42888
20
21  reg:
22    maxItems: 1
23
24  clocks:
25    minItems: 1
26    maxItems: 2
27
28  clock-names:
29    const: mclk
30
31  VA-supply:
32    description: Analog power supply.
33
34  VD-supply:
35    description: Digital power supply.
36
37  VLC-supply:
38    description: Control port power supply
39
40  VLS-supply:
41    description: Serial port interface power supply.
42
43  reset-gpios:
44    description: This pin is connected to the chip's RESET pin.
45    maxItems: 1
46
47  port:
48    $ref: audio-graph-port.yaml#
49    unevaluatedProperties: false
50
51required:
52  - compatible
53  - reg
54  - clocks
55  - clock-names
56
57if:
58  properties:
59    compatible:
60      contains:
61        const: cirrus,cs42888
62then:
63  required:
64    - VA-supply
65    - VD-supply
66    - VLC-supply
67    - VLS-supply
68
69unevaluatedProperties: false
70
71examples:
72  - |
73    i2c {
74      #address-cells = <1>;
75      #size-cells = <0>;
76
77      codec@48 {
78          compatible = "cirrus,cs42888";
79          reg = <0x48>;
80          clocks = <&codec_mclk 0>;
81          clock-names = "mclk";
82          VA-supply = <&reg_audio>;
83          VD-supply = <&reg_audio>;
84          VLS-supply = <&reg_audio>;
85          VLC-supply = <&reg_audio>;
86          reset-gpios = <&gpio 1>;
87      };
88    };
~/ Read-only file preview.