Debian Codegraph @

Documentation/devicetree/bindings/sound/cirrus,cs42l84.yaml

raw
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,cs42l84.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Cirrus Logic CS42L84 audio CODEC
8
9 maintainers:
10 - Martin PoviĊĦer <[email protected]>
11
12 description: |
13 The CS42L84 is a headphone jack codec made by Cirrus Logic and embedded
14 in personal computers sold by Apple. It was first seen in 2021 Macbook
15 Pro models. It has stereo DAC for playback, mono ADC for capture, and
16 is somewhat similar to CS42L42 but with a different regmap.
17
18 properties:
19 compatible:
20 enum:
21 - cirrus,cs42l84
22
23 reg:
24 maxItems: 1
25
26 reset-gpios:
27 maxItems: 1
28
29 interrupts:
30 maxItems: 1
31
32 '#sound-dai-cells':
33 const: 0
34
35 required:
36 - compatible
37 - reg
38
39 additionalProperties: false
40
41 examples:
42 - |
43 #include <dt-bindings/gpio/gpio.h>
44 #include <dt-bindings/interrupt-controller/irq.h>
45 i2c {
46 #address-cells = <1>;
47 #size-cells = <0>;
48
49 jack_codec: codec@4b {
50 compatible = "cirrus,cs42l84";
51 reg = <0x4b>;
52 reset-gpios = <&pinctrl_nub 4 GPIO_ACTIVE_LOW>;
53 interrupts-extended = <&pinctrl_ap 180 IRQ_TYPE_LEVEL_LOW>;
54 #sound-dai-cells = <0>;
55 };
56 };