xref: /freebsd/sys/contrib/device-tree/Bindings/sound/qcom,lpass-va-macro.yaml (revision 5def4c47d4bd90b209b9b4a4ba9faec15846d8fd)
1*5def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2*5def4c47SEmmanuel Vadot%YAML 1.2
3*5def4c47SEmmanuel Vadot---
4*5def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/sound/qcom,lpass-va-macro.yaml#
5*5def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
6*5def4c47SEmmanuel Vadot
7*5def4c47SEmmanuel Vadottitle: LPASS(Low Power Audio Subsystem) VA Macro audio codec DT bindings
8*5def4c47SEmmanuel Vadot
9*5def4c47SEmmanuel Vadotmaintainers:
10*5def4c47SEmmanuel Vadot  - Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
11*5def4c47SEmmanuel Vadot
12*5def4c47SEmmanuel Vadotproperties:
13*5def4c47SEmmanuel Vadot  compatible:
14*5def4c47SEmmanuel Vadot    const: qcom,sm8250-lpass-va-macro
15*5def4c47SEmmanuel Vadot
16*5def4c47SEmmanuel Vadot  reg:
17*5def4c47SEmmanuel Vadot    maxItems: 1
18*5def4c47SEmmanuel Vadot
19*5def4c47SEmmanuel Vadot  "#sound-dai-cells":
20*5def4c47SEmmanuel Vadot    const: 1
21*5def4c47SEmmanuel Vadot
22*5def4c47SEmmanuel Vadot  '#clock-cells':
23*5def4c47SEmmanuel Vadot    const: 0
24*5def4c47SEmmanuel Vadot
25*5def4c47SEmmanuel Vadot  clocks:
26*5def4c47SEmmanuel Vadot    maxItems: 3
27*5def4c47SEmmanuel Vadot
28*5def4c47SEmmanuel Vadot  clock-names:
29*5def4c47SEmmanuel Vadot    items:
30*5def4c47SEmmanuel Vadot      - const: mclk
31*5def4c47SEmmanuel Vadot      - const: core
32*5def4c47SEmmanuel Vadot      - const: dcodec
33*5def4c47SEmmanuel Vadot
34*5def4c47SEmmanuel Vadot  clock-output-names:
35*5def4c47SEmmanuel Vadot    items:
36*5def4c47SEmmanuel Vadot      - const: fsgen
37*5def4c47SEmmanuel Vadot
38*5def4c47SEmmanuel Vadot  qcom,dmic-sample-rate:
39*5def4c47SEmmanuel Vadot    description: dmic sample rate
40*5def4c47SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
41*5def4c47SEmmanuel Vadot
42*5def4c47SEmmanuel Vadot  vdd-micb-supply:
43*5def4c47SEmmanuel Vadot    description: phandle to voltage regulator of MIC Bias
44*5def4c47SEmmanuel Vadot
45*5def4c47SEmmanuel Vadotrequired:
46*5def4c47SEmmanuel Vadot  - compatible
47*5def4c47SEmmanuel Vadot  - reg
48*5def4c47SEmmanuel Vadot  - "#sound-dai-cells"
49*5def4c47SEmmanuel Vadot
50*5def4c47SEmmanuel VadotadditionalProperties: false
51*5def4c47SEmmanuel Vadot
52*5def4c47SEmmanuel Vadotexamples:
53*5def4c47SEmmanuel Vadot  - |
54*5def4c47SEmmanuel Vadot    #include <dt-bindings/sound/qcom,q6afe.h>
55*5def4c47SEmmanuel Vadot    codec@3370000 {
56*5def4c47SEmmanuel Vadot      compatible = "qcom,sm8250-lpass-va-macro";
57*5def4c47SEmmanuel Vadot      reg = <0x3370000 0x1000>;
58*5def4c47SEmmanuel Vadot      #sound-dai-cells = <1>;
59*5def4c47SEmmanuel Vadot      #clock-cells = <0>;
60*5def4c47SEmmanuel Vadot      clocks = <&aoncc 0>,
61*5def4c47SEmmanuel Vadot               <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
62*5def4c47SEmmanuel Vadot               <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
63*5def4c47SEmmanuel Vadot      clock-names = "mclk", "core", "dcodec";
64*5def4c47SEmmanuel Vadot      clock-output-names = "fsgen";
65*5def4c47SEmmanuel Vadot      qcom,dmic-sample-rate = <600000>;
66*5def4c47SEmmanuel Vadot      vdd-micb-supply = <&vreg_s4a_1p8>;
67*5def4c47SEmmanuel Vadot    };
68