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,cs42l51.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: CS42L51 audio codec DT bindings
8
9maintainers:
10  - Olivier Moysan <olivier.moysan@st.com>
11
12properties:
13  compatible:
14      const: cirrus,cs42l51
15
16  reg:
17    maxItems: 1
18
19  "#sound-dai-cells":
20    const: 0
21
22  clocks:
23    maxItems: 1
24
25  clock-names:
26    items:
27      - const: MCLK
28
29  reset-gpios:
30    maxItems: 1
31
32  VL-supply:
33    description: phandle to voltage regulator of digital interface section
34
35  VD-supply:
36    description: phandle to voltage regulator of digital internal section
37
38  VA-supply:
39    description: phandle to voltage regulator of analog internal section
40
41  VAHP-supply:
42    description: phandle to voltage regulator of headphone
43
44required:
45  - compatible
46  - reg
47  - "#sound-dai-cells"
48
49examples:
50  - |
51    #include <dt-bindings/gpio/gpio.h>
52    i2c {
53      #address-cells = <1>;
54      #size-cells = <0>;
55
56      cs42l51@4a {
57        compatible = "cirrus,cs42l51";
58        reg = <0x4a>;
59        #sound-dai-cells = <0>;
60        clocks = <&mclk_prov>;
61        clock-names = "MCLK";
62        VL-supply = <&reg_audio>;
63        VD-supply = <&reg_audio>;
64        VA-supply = <&reg_audio>;
65        VAHP-supply = <&reg_audio>;
66        reset-gpios = <&gpiog 9 GPIO_ACTIVE_LOW>;
67      };
68    };
69...
70