xref: /linux/Documentation/devicetree/bindings/sound/qcom,lpass-va-macro.yaml (revision 25768de50b1f2dbb6ea44bd5148a87fe2c9c3688)
167d99b23SSrinivas Kandagatla# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
267d99b23SSrinivas Kandagatla%YAML 1.2
367d99b23SSrinivas Kandagatla---
467d99b23SSrinivas Kandagatla$id: http://devicetree.org/schemas/sound/qcom,lpass-va-macro.yaml#
567d99b23SSrinivas Kandagatla$schema: http://devicetree.org/meta-schemas/core.yaml#
667d99b23SSrinivas Kandagatla
7a612130cSKrzysztof Kozlowskititle: LPASS(Low Power Audio Subsystem) VA Macro audio codec
867d99b23SSrinivas Kandagatla
967d99b23SSrinivas Kandagatlamaintainers:
1067d99b23SSrinivas Kandagatla  - Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
1167d99b23SSrinivas Kandagatla
1267d99b23SSrinivas Kandagatlaproperties:
1367d99b23SSrinivas Kandagatla  compatible:
14f243ef74SKrzysztof Kozlowski    oneOf:
15f243ef74SKrzysztof Kozlowski      - enum:
166e3b196eSSrinivasa Rao Mandadapu          - qcom,sc7280-lpass-va-macro
176e3b196eSSrinivasa Rao Mandadapu          - qcom,sm8250-lpass-va-macro
18473d218bSSrinivas Kandagatla          - qcom,sm8450-lpass-va-macro
19f769fcefSKrzysztof Kozlowski          - qcom,sm8550-lpass-va-macro
20473d218bSSrinivas Kandagatla          - qcom,sc8280xp-lpass-va-macro
21f243ef74SKrzysztof Kozlowski      - items:
22f990306aSKrzysztof Kozlowski          - enum:
23f990306aSKrzysztof Kozlowski              - qcom,sm8650-lpass-va-macro
24*6a646e6dSKrzysztof Kozlowski              - qcom,sm8750-lpass-va-macro
25f990306aSKrzysztof Kozlowski              - qcom,x1e80100-lpass-va-macro
26f243ef74SKrzysztof Kozlowski          - const: qcom,sm8550-lpass-va-macro
2767d99b23SSrinivas Kandagatla
2867d99b23SSrinivas Kandagatla  reg:
2967d99b23SSrinivas Kandagatla    maxItems: 1
3067d99b23SSrinivas Kandagatla
3167d99b23SSrinivas Kandagatla  "#sound-dai-cells":
3267d99b23SSrinivas Kandagatla    const: 1
3367d99b23SSrinivas Kandagatla
3467d99b23SSrinivas Kandagatla  '#clock-cells':
3567d99b23SSrinivas Kandagatla    const: 0
3667d99b23SSrinivas Kandagatla
3767d99b23SSrinivas Kandagatla  clocks:
38cfad8170SKrzysztof Kozlowski    minItems: 1
39cfad8170SKrzysztof Kozlowski    maxItems: 4
4067d99b23SSrinivas Kandagatla
4167d99b23SSrinivas Kandagatla  clock-names:
42cfad8170SKrzysztof Kozlowski    minItems: 1
43cfad8170SKrzysztof Kozlowski    maxItems: 4
4467d99b23SSrinivas Kandagatla
4567d99b23SSrinivas Kandagatla  clock-output-names:
46bcdc73e1SKrzysztof Kozlowski    maxItems: 1
4767d99b23SSrinivas Kandagatla
486619c7d4SSrinivasa Rao Mandadapu  power-domains:
496619c7d4SSrinivasa Rao Mandadapu    maxItems: 2
506619c7d4SSrinivasa Rao Mandadapu
516619c7d4SSrinivasa Rao Mandadapu  power-domain-names:
526619c7d4SSrinivasa Rao Mandadapu    items:
536619c7d4SSrinivasa Rao Mandadapu      - const: macro
546619c7d4SSrinivasa Rao Mandadapu      - const: dcodec
556619c7d4SSrinivasa Rao Mandadapu
5667d99b23SSrinivas Kandagatla  qcom,dmic-sample-rate:
5767d99b23SSrinivas Kandagatla    description: dmic sample rate
5867d99b23SSrinivas Kandagatla    $ref: /schemas/types.yaml#/definitions/uint32
5967d99b23SSrinivas Kandagatla
6067d99b23SSrinivas Kandagatla  vdd-micb-supply:
6167d99b23SSrinivas Kandagatla    description: phandle to voltage regulator of MIC Bias
6267d99b23SSrinivas Kandagatla
6367d99b23SSrinivas Kandagatlarequired:
6467d99b23SSrinivas Kandagatla  - compatible
6567d99b23SSrinivas Kandagatla  - reg
6667d99b23SSrinivas Kandagatla  - "#sound-dai-cells"
67cfad8170SKrzysztof Kozlowski  - clock-names
68cfad8170SKrzysztof Kozlowski  - clocks
69cfad8170SKrzysztof Kozlowski
70cfad8170SKrzysztof KozlowskiallOf:
71cfad8170SKrzysztof Kozlowski  - $ref: dai-common.yaml#
72cfad8170SKrzysztof Kozlowski
73cfad8170SKrzysztof Kozlowski  - if:
74cfad8170SKrzysztof Kozlowski      properties:
75cfad8170SKrzysztof Kozlowski        compatible:
76cfad8170SKrzysztof Kozlowski          contains:
77cfad8170SKrzysztof Kozlowski            const: qcom,sc7280-lpass-va-macro
78cfad8170SKrzysztof Kozlowski    then:
79cfad8170SKrzysztof Kozlowski      properties:
80cfad8170SKrzysztof Kozlowski        clocks:
81cfad8170SKrzysztof Kozlowski          maxItems: 1
82cfad8170SKrzysztof Kozlowski        clock-names:
83cfad8170SKrzysztof Kozlowski          items:
84cfad8170SKrzysztof Kozlowski            - const: mclk
85cfad8170SKrzysztof Kozlowski
86cfad8170SKrzysztof Kozlowski  - if:
87cfad8170SKrzysztof Kozlowski      properties:
88cfad8170SKrzysztof Kozlowski        compatible:
89cfad8170SKrzysztof Kozlowski          contains:
90cfad8170SKrzysztof Kozlowski            const: qcom,sm8250-lpass-va-macro
91cfad8170SKrzysztof Kozlowski    then:
92cfad8170SKrzysztof Kozlowski      properties:
93cfad8170SKrzysztof Kozlowski        clocks:
94cfad8170SKrzysztof Kozlowski          minItems: 3
95cfad8170SKrzysztof Kozlowski          maxItems: 3
96cfad8170SKrzysztof Kozlowski        clock-names:
97cfad8170SKrzysztof Kozlowski          items:
98cfad8170SKrzysztof Kozlowski            - const: mclk
99cfad8170SKrzysztof Kozlowski            - const: macro
100cfad8170SKrzysztof Kozlowski            - const: dcodec
101cfad8170SKrzysztof Kozlowski
102cfad8170SKrzysztof Kozlowski  - if:
103cfad8170SKrzysztof Kozlowski      properties:
104cfad8170SKrzysztof Kozlowski        compatible:
105cfad8170SKrzysztof Kozlowski          contains:
106cfad8170SKrzysztof Kozlowski            enum:
107cfad8170SKrzysztof Kozlowski              - qcom,sc8280xp-lpass-va-macro
108cfad8170SKrzysztof Kozlowski              - qcom,sm8450-lpass-va-macro
109cfad8170SKrzysztof Kozlowski    then:
110cfad8170SKrzysztof Kozlowski      properties:
111cfad8170SKrzysztof Kozlowski        clocks:
112cfad8170SKrzysztof Kozlowski          minItems: 4
113cfad8170SKrzysztof Kozlowski          maxItems: 4
114cfad8170SKrzysztof Kozlowski        clock-names:
115cfad8170SKrzysztof Kozlowski          items:
116cfad8170SKrzysztof Kozlowski            - const: mclk
117cfad8170SKrzysztof Kozlowski            - const: macro
118cfad8170SKrzysztof Kozlowski            - const: dcodec
119cfad8170SKrzysztof Kozlowski            - const: npl
12067d99b23SSrinivas Kandagatla
121f769fcefSKrzysztof Kozlowski  - if:
122f769fcefSKrzysztof Kozlowski      properties:
123f769fcefSKrzysztof Kozlowski        compatible:
124f769fcefSKrzysztof Kozlowski          contains:
125f769fcefSKrzysztof Kozlowski            enum:
126f769fcefSKrzysztof Kozlowski              - qcom,sm8550-lpass-va-macro
127f769fcefSKrzysztof Kozlowski    then:
128f769fcefSKrzysztof Kozlowski      properties:
129f769fcefSKrzysztof Kozlowski        clocks:
130f769fcefSKrzysztof Kozlowski          minItems: 3
131f769fcefSKrzysztof Kozlowski          maxItems: 3
132f769fcefSKrzysztof Kozlowski        clock-names:
133f769fcefSKrzysztof Kozlowski          items:
134f769fcefSKrzysztof Kozlowski            - const: mclk
135f769fcefSKrzysztof Kozlowski            - const: macro
136f769fcefSKrzysztof Kozlowski            - const: dcodec
137f769fcefSKrzysztof Kozlowski
13858ae9a2aSKrzysztof KozlowskiunevaluatedProperties: false
13967d99b23SSrinivas Kandagatla
14067d99b23SSrinivas Kandagatlaexamples:
14167d99b23SSrinivas Kandagatla  - |
14267d99b23SSrinivas Kandagatla    #include <dt-bindings/sound/qcom,q6afe.h>
14367d99b23SSrinivas Kandagatla    codec@3370000 {
14467d99b23SSrinivas Kandagatla      compatible = "qcom,sm8250-lpass-va-macro";
14567d99b23SSrinivas Kandagatla      reg = <0x3370000 0x1000>;
14667d99b23SSrinivas Kandagatla      #sound-dai-cells = <1>;
14767d99b23SSrinivas Kandagatla      #clock-cells = <0>;
14867d99b23SSrinivas Kandagatla      clocks = <&aoncc 0>,
14967d99b23SSrinivas Kandagatla               <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
15067d99b23SSrinivas Kandagatla               <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
1517a354989SSrinivasa Rao Mandadapu      clock-names = "mclk", "macro", "dcodec";
15267d99b23SSrinivas Kandagatla      clock-output-names = "fsgen";
15367d99b23SSrinivas Kandagatla      qcom,dmic-sample-rate = <600000>;
15467d99b23SSrinivas Kandagatla      vdd-micb-supply = <&vreg_s4a_1p8>;
15567d99b23SSrinivas Kandagatla    };
156