xref: /freebsd/sys/contrib/device-tree/Bindings/sound/cirrus,cs42l51.yaml (revision f126890ac5386406dadf7c4cfa9566cbb56537c5)
1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2c66ec88fSEmmanuel Vadot%YAML 1.2
3c66ec88fSEmmanuel Vadot---
4c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/sound/cirrus,cs42l51.yaml#
5c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6c66ec88fSEmmanuel Vadot
78bab661aSEmmanuel Vadottitle: CS42L51 audio codec
8c66ec88fSEmmanuel Vadot
9c66ec88fSEmmanuel Vadotmaintainers:
108cc087a1SEmmanuel Vadot  - Olivier Moysan <olivier.moysan@foss.st.com>
11c66ec88fSEmmanuel Vadot
128bab661aSEmmanuel VadotallOf:
138bab661aSEmmanuel Vadot  - $ref: dai-common.yaml#
148bab661aSEmmanuel Vadot
15c66ec88fSEmmanuel Vadotproperties:
16c66ec88fSEmmanuel Vadot  compatible:
17c66ec88fSEmmanuel Vadot    const: cirrus,cs42l51
18c66ec88fSEmmanuel Vadot
19c66ec88fSEmmanuel Vadot  reg:
20c66ec88fSEmmanuel Vadot    maxItems: 1
21c66ec88fSEmmanuel Vadot
22c66ec88fSEmmanuel Vadot  "#sound-dai-cells":
23c66ec88fSEmmanuel Vadot    const: 0
24c66ec88fSEmmanuel Vadot
25c66ec88fSEmmanuel Vadot  clocks:
26c66ec88fSEmmanuel Vadot    maxItems: 1
27c66ec88fSEmmanuel Vadot
28c66ec88fSEmmanuel Vadot  clock-names:
29c66ec88fSEmmanuel Vadot    items:
30c66ec88fSEmmanuel Vadot      - const: MCLK
31c66ec88fSEmmanuel Vadot
32c66ec88fSEmmanuel Vadot  reset-gpios:
33c66ec88fSEmmanuel Vadot    maxItems: 1
34c66ec88fSEmmanuel Vadot
35c66ec88fSEmmanuel Vadot  VL-supply:
36c66ec88fSEmmanuel Vadot    description: phandle to voltage regulator of digital interface section
37c66ec88fSEmmanuel Vadot
38c66ec88fSEmmanuel Vadot  VD-supply:
39c66ec88fSEmmanuel Vadot    description: phandle to voltage regulator of digital internal section
40c66ec88fSEmmanuel Vadot
41c66ec88fSEmmanuel Vadot  VA-supply:
42c66ec88fSEmmanuel Vadot    description: phandle to voltage regulator of analog internal section
43c66ec88fSEmmanuel Vadot
44c66ec88fSEmmanuel Vadot  VAHP-supply:
45c66ec88fSEmmanuel Vadot    description: phandle to voltage regulator of headphone
46c66ec88fSEmmanuel Vadot
47*f126890aSEmmanuel Vadot  port:
48*f126890aSEmmanuel Vadot    $ref: audio-graph-port.yaml#
49*f126890aSEmmanuel Vadot    unevaluatedProperties: false
50*f126890aSEmmanuel Vadot
51c66ec88fSEmmanuel Vadotrequired:
52c66ec88fSEmmanuel Vadot  - compatible
53c66ec88fSEmmanuel Vadot  - reg
54c66ec88fSEmmanuel Vadot  - "#sound-dai-cells"
55c66ec88fSEmmanuel Vadot
568bab661aSEmmanuel VadotunevaluatedProperties: false
576be33864SEmmanuel Vadot
58c66ec88fSEmmanuel Vadotexamples:
59c66ec88fSEmmanuel Vadot  - |
60c66ec88fSEmmanuel Vadot    #include <dt-bindings/gpio/gpio.h>
61c66ec88fSEmmanuel Vadot    i2c {
62c66ec88fSEmmanuel Vadot      #address-cells = <1>;
63c66ec88fSEmmanuel Vadot      #size-cells = <0>;
64c66ec88fSEmmanuel Vadot
65c66ec88fSEmmanuel Vadot      cs42l51@4a {
66c66ec88fSEmmanuel Vadot        compatible = "cirrus,cs42l51";
67c66ec88fSEmmanuel Vadot        reg = <0x4a>;
68c66ec88fSEmmanuel Vadot        #sound-dai-cells = <0>;
69c66ec88fSEmmanuel Vadot        clocks = <&mclk_prov>;
70c66ec88fSEmmanuel Vadot        clock-names = "MCLK";
71c66ec88fSEmmanuel Vadot        VL-supply = <&reg_audio>;
72c66ec88fSEmmanuel Vadot        VD-supply = <&reg_audio>;
73c66ec88fSEmmanuel Vadot        VA-supply = <&reg_audio>;
74c66ec88fSEmmanuel Vadot        VAHP-supply = <&reg_audio>;
75c66ec88fSEmmanuel Vadot        reset-gpios = <&gpiog 9 GPIO_ACTIVE_LOW>;
76*f126890aSEmmanuel Vadot
77*f126890aSEmmanuel Vadot        /* assume audio-graph */
78*f126890aSEmmanuel Vadot        port {
79*f126890aSEmmanuel Vadot          cpu_endpoint: endpoint {
80*f126890aSEmmanuel Vadot            remote-endpoint = <&cpu_endpoint>;
81*f126890aSEmmanuel Vadot          };
82*f126890aSEmmanuel Vadot        };
83c66ec88fSEmmanuel Vadot      };
84c66ec88fSEmmanuel Vadot    };
85c66ec88fSEmmanuel Vadot...
86