xref: /openbmc/linux/Documentation/devicetree/bindings/sound/qcom,lpass-wsa-macro.yaml (revision 1ac731c529cd4d6adbce134754b51ff7d822b145)
1ccbd847fSSrinivas Kandagatla# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2ccbd847fSSrinivas Kandagatla%YAML 1.2
3ccbd847fSSrinivas Kandagatla---
4ccbd847fSSrinivas Kandagatla$id: http://devicetree.org/schemas/sound/qcom,lpass-wsa-macro.yaml#
5ccbd847fSSrinivas Kandagatla$schema: http://devicetree.org/meta-schemas/core.yaml#
6ccbd847fSSrinivas Kandagatla
7a612130cSKrzysztof Kozlowskititle: LPASS(Low Power Audio Subsystem) VA Macro audio codec
8ccbd847fSSrinivas Kandagatla
9ccbd847fSSrinivas Kandagatlamaintainers:
10ccbd847fSSrinivas Kandagatla  - Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
11ccbd847fSSrinivas Kandagatla
12ccbd847fSSrinivas Kandagatlaproperties:
13ccbd847fSSrinivas Kandagatla  compatible:
146e3b196eSSrinivasa Rao Mandadapu    enum:
156e3b196eSSrinivasa Rao Mandadapu      - qcom,sc7280-lpass-wsa-macro
166e3b196eSSrinivasa Rao Mandadapu      - qcom,sm8250-lpass-wsa-macro
17473d218bSSrinivas Kandagatla      - qcom,sm8450-lpass-wsa-macro
18*c1bda22bSKrzysztof Kozlowski      - qcom,sm8550-lpass-wsa-macro
19473d218bSSrinivas Kandagatla      - qcom,sc8280xp-lpass-wsa-macro
20ccbd847fSSrinivas Kandagatla
21ccbd847fSSrinivas Kandagatla  reg:
22ccbd847fSSrinivas Kandagatla    maxItems: 1
23ccbd847fSSrinivas Kandagatla
24ccbd847fSSrinivas Kandagatla  "#sound-dai-cells":
25ccbd847fSSrinivas Kandagatla    const: 1
26ccbd847fSSrinivas Kandagatla
27ccbd847fSSrinivas Kandagatla  '#clock-cells':
28ccbd847fSSrinivas Kandagatla    const: 0
29ccbd847fSSrinivas Kandagatla
30ccbd847fSSrinivas Kandagatla  clocks:
31*c1bda22bSKrzysztof Kozlowski    minItems: 4
3269568267SKrzysztof Kozlowski    maxItems: 6
33ccbd847fSSrinivas Kandagatla
34ccbd847fSSrinivas Kandagatla  clock-names:
35*c1bda22bSKrzysztof Kozlowski    minItems: 4
3669568267SKrzysztof Kozlowski    maxItems: 6
37ccbd847fSSrinivas Kandagatla
38ccbd847fSSrinivas Kandagatla  clock-output-names:
39bcdc73e1SKrzysztof Kozlowski    maxItems: 1
40ccbd847fSSrinivas Kandagatla
41ccbd847fSSrinivas Kandagatla  qcom,dmic-sample-rate:
42ccbd847fSSrinivas Kandagatla    description: dmic sample rate
43ccbd847fSSrinivas Kandagatla    $ref: /schemas/types.yaml#/definitions/uint32
44ccbd847fSSrinivas Kandagatla
45ccbd847fSSrinivas Kandagatla  vdd-micb-supply:
46ccbd847fSSrinivas Kandagatla    description: phandle to voltage regulator of MIC Bias
47ccbd847fSSrinivas Kandagatla
48ccbd847fSSrinivas Kandagatlarequired:
49ccbd847fSSrinivas Kandagatla  - compatible
50ccbd847fSSrinivas Kandagatla  - reg
51ccbd847fSSrinivas Kandagatla  - "#sound-dai-cells"
52ccbd847fSSrinivas Kandagatla
5369568267SKrzysztof KozlowskiallOf:
5469568267SKrzysztof Kozlowski  - $ref: dai-common.yaml#
5569568267SKrzysztof Kozlowski
5669568267SKrzysztof Kozlowski  - if:
5769568267SKrzysztof Kozlowski      properties:
5869568267SKrzysztof Kozlowski        compatible:
5969568267SKrzysztof Kozlowski          enum:
6069568267SKrzysztof Kozlowski            - qcom,sc7280-lpass-wsa-macro
6169568267SKrzysztof Kozlowski            - qcom,sm8450-lpass-wsa-macro
6269568267SKrzysztof Kozlowski            - qcom,sc8280xp-lpass-wsa-macro
6369568267SKrzysztof Kozlowski    then:
6469568267SKrzysztof Kozlowski      properties:
6569568267SKrzysztof Kozlowski        clocks:
66*c1bda22bSKrzysztof Kozlowski          minItems: 5
6769568267SKrzysztof Kozlowski          maxItems: 5
6869568267SKrzysztof Kozlowski        clock-names:
6969568267SKrzysztof Kozlowski          items:
7069568267SKrzysztof Kozlowski            - const: mclk
7169568267SKrzysztof Kozlowski            - const: npl
7269568267SKrzysztof Kozlowski            - const: macro
7369568267SKrzysztof Kozlowski            - const: dcodec
7469568267SKrzysztof Kozlowski            - const: fsgen
7569568267SKrzysztof Kozlowski
7669568267SKrzysztof Kozlowski  - if:
7769568267SKrzysztof Kozlowski      properties:
7869568267SKrzysztof Kozlowski        compatible:
7969568267SKrzysztof Kozlowski          enum:
8069568267SKrzysztof Kozlowski            - qcom,sm8250-lpass-wsa-macro
8169568267SKrzysztof Kozlowski    then:
8269568267SKrzysztof Kozlowski      properties:
8369568267SKrzysztof Kozlowski        clocks:
8469568267SKrzysztof Kozlowski          minItems: 6
8569568267SKrzysztof Kozlowski        clock-names:
8669568267SKrzysztof Kozlowski          items:
8769568267SKrzysztof Kozlowski            - const: mclk
8869568267SKrzysztof Kozlowski            - const: npl
8969568267SKrzysztof Kozlowski            - const: macro
9069568267SKrzysztof Kozlowski            - const: dcodec
9169568267SKrzysztof Kozlowski            - const: va
9269568267SKrzysztof Kozlowski            - const: fsgen
9369568267SKrzysztof Kozlowski
94*c1bda22bSKrzysztof Kozlowski  - if:
95*c1bda22bSKrzysztof Kozlowski      properties:
96*c1bda22bSKrzysztof Kozlowski        compatible:
97*c1bda22bSKrzysztof Kozlowski          enum:
98*c1bda22bSKrzysztof Kozlowski            - qcom,sm8550-lpass-wsa-macro
99*c1bda22bSKrzysztof Kozlowski    then:
100*c1bda22bSKrzysztof Kozlowski      properties:
101*c1bda22bSKrzysztof Kozlowski        clocks:
102*c1bda22bSKrzysztof Kozlowski          minItems: 4
103*c1bda22bSKrzysztof Kozlowski          maxItems: 4
104*c1bda22bSKrzysztof Kozlowski        clock-names:
105*c1bda22bSKrzysztof Kozlowski          items:
106*c1bda22bSKrzysztof Kozlowski            - const: mclk
107*c1bda22bSKrzysztof Kozlowski            - const: macro
108*c1bda22bSKrzysztof Kozlowski            - const: dcodec
109*c1bda22bSKrzysztof Kozlowski            - const: fsgen
110*c1bda22bSKrzysztof Kozlowski
11158ae9a2aSKrzysztof KozlowskiunevaluatedProperties: false
112ccbd847fSSrinivas Kandagatla
113ccbd847fSSrinivas Kandagatlaexamples:
114ccbd847fSSrinivas Kandagatla  - |
11569568267SKrzysztof Kozlowski    #include <dt-bindings/clock/qcom,sm8250-lpass-aoncc.h>
116ccbd847fSSrinivas Kandagatla    #include <dt-bindings/sound/qcom,q6afe.h>
117ccbd847fSSrinivas Kandagatla    codec@3240000 {
118ccbd847fSSrinivas Kandagatla      compatible = "qcom,sm8250-lpass-wsa-macro";
119ccbd847fSSrinivas Kandagatla      reg = <0x3240000 0x1000>;
120ccbd847fSSrinivas Kandagatla      #sound-dai-cells = <1>;
121ccbd847fSSrinivas Kandagatla      #clock-cells = <0>;
122ccbd847fSSrinivas Kandagatla      clocks = <&audiocc 1>,
123ccbd847fSSrinivas Kandagatla               <&audiocc 0>,
124ccbd847fSSrinivas Kandagatla               <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
125ccbd847fSSrinivas Kandagatla               <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
12669568267SKrzysztof Kozlowski               <&aoncc LPASS_CDC_VA_MCLK>,
127ccbd847fSSrinivas Kandagatla               <&vamacro>;
12869568267SKrzysztof Kozlowski      clock-names = "mclk", "npl", "macro", "dcodec", "va", "fsgen";
129ccbd847fSSrinivas Kandagatla      clock-output-names = "mclk";
130ccbd847fSSrinivas Kandagatla    };
131