WIP FPC-III support
[linux/fpc-iii.git] / Documentation / devicetree / bindings / sound / cirrus,cs42l51.yaml
blob0d87e2c86a4261d650fe7250edf91115d617a191
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#
7 title: CS42L51 audio codec DT bindings
9 maintainers:
10   - Olivier Moysan <olivier.moysan@st.com>
12 properties:
13   compatible:
14     const: cirrus,cs42l51
16   reg:
17     maxItems: 1
19   "#sound-dai-cells":
20     const: 0
22   clocks:
23     maxItems: 1
25   clock-names:
26     items:
27       - const: MCLK
29   reset-gpios:
30     maxItems: 1
32   VL-supply:
33     description: phandle to voltage regulator of digital interface section
35   VD-supply:
36     description: phandle to voltage regulator of digital internal section
38   VA-supply:
39     description: phandle to voltage regulator of analog internal section
41   VAHP-supply:
42     description: phandle to voltage regulator of headphone
44 required:
45   - compatible
46   - reg
47   - "#sound-dai-cells"
49 additionalProperties: false
51 examples:
52   - |
53     #include <dt-bindings/gpio/gpio.h>
54     i2c {
55       #address-cells = <1>;
56       #size-cells = <0>;
58       cs42l51@4a {
59         compatible = "cirrus,cs42l51";
60         reg = <0x4a>;
61         #sound-dai-cells = <0>;
62         clocks = <&mclk_prov>;
63         clock-names = "MCLK";
64         VL-supply = <&reg_audio>;
65         VD-supply = <&reg_audio>;
66         VA-supply = <&reg_audio>;
67         VAHP-supply = <&reg_audio>;
68         reset-gpios = <&gpiog 9 GPIO_ACTIVE_LOW>;
69       };
70     };
71 ...