xref: /linux/Documentation/devicetree/bindings/sound/qcom,lpass-va-macro.yaml (revision a612130ca1a650b0ba3599fc3199143eb9e7060d)
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
7*a612130cSKrzysztof Kozlowskititle: LPASS(Low Power Audio Subsystem) VA Macro audio codec
867d99b23SSrinivas Kandagatla
967d99b23SSrinivas Kandagatlamaintainers:
1067d99b23SSrinivas Kandagatla  - Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
1167d99b23SSrinivas Kandagatla
1258ae9a2aSKrzysztof KozlowskiallOf:
1358ae9a2aSKrzysztof Kozlowski  - $ref: dai-common.yaml#
1458ae9a2aSKrzysztof Kozlowski
1567d99b23SSrinivas Kandagatlaproperties:
1667d99b23SSrinivas Kandagatla  compatible:
176e3b196eSSrinivasa Rao Mandadapu    enum:
186e3b196eSSrinivasa Rao Mandadapu      - qcom,sc7280-lpass-va-macro
196e3b196eSSrinivasa Rao Mandadapu      - qcom,sm8250-lpass-va-macro
20473d218bSSrinivas Kandagatla      - qcom,sm8450-lpass-va-macro
21473d218bSSrinivas Kandagatla      - qcom,sc8280xp-lpass-va-macro
2267d99b23SSrinivas Kandagatla
2367d99b23SSrinivas Kandagatla  reg:
2467d99b23SSrinivas Kandagatla    maxItems: 1
2567d99b23SSrinivas Kandagatla
2667d99b23SSrinivas Kandagatla  "#sound-dai-cells":
2767d99b23SSrinivas Kandagatla    const: 1
2867d99b23SSrinivas Kandagatla
2967d99b23SSrinivas Kandagatla  '#clock-cells':
3067d99b23SSrinivas Kandagatla    const: 0
3167d99b23SSrinivas Kandagatla
3267d99b23SSrinivas Kandagatla  clocks:
3367d99b23SSrinivas Kandagatla    maxItems: 3
3467d99b23SSrinivas Kandagatla
3567d99b23SSrinivas Kandagatla  clock-names:
36852fda58SSrinivasa Rao Mandadapu    oneOf:
37852fda58SSrinivasa Rao Mandadapu      - items:   #for ADSP based platforms
3867d99b23SSrinivas Kandagatla          - const: mclk
3967d99b23SSrinivas Kandagatla          - const: core
4067d99b23SSrinivas Kandagatla          - const: dcodec
41852fda58SSrinivasa Rao Mandadapu      - items:   #for ADSP bypass based platforms
42852fda58SSrinivasa Rao Mandadapu          - const: mclk
4367d99b23SSrinivas Kandagatla
4467d99b23SSrinivas Kandagatla  clock-output-names:
45bcdc73e1SKrzysztof Kozlowski    maxItems: 1
4667d99b23SSrinivas Kandagatla
476619c7d4SSrinivasa Rao Mandadapu  power-domains:
486619c7d4SSrinivasa Rao Mandadapu    maxItems: 2
496619c7d4SSrinivasa Rao Mandadapu
506619c7d4SSrinivasa Rao Mandadapu  power-domain-names:
516619c7d4SSrinivasa Rao Mandadapu    items:
526619c7d4SSrinivasa Rao Mandadapu      - const: macro
536619c7d4SSrinivasa Rao Mandadapu      - const: dcodec
546619c7d4SSrinivasa Rao Mandadapu
5567d99b23SSrinivas Kandagatla  qcom,dmic-sample-rate:
5667d99b23SSrinivas Kandagatla    description: dmic sample rate
5767d99b23SSrinivas Kandagatla    $ref: /schemas/types.yaml#/definitions/uint32
5867d99b23SSrinivas Kandagatla
5967d99b23SSrinivas Kandagatla  vdd-micb-supply:
6067d99b23SSrinivas Kandagatla    description: phandle to voltage regulator of MIC Bias
6167d99b23SSrinivas Kandagatla
6267d99b23SSrinivas Kandagatlarequired:
6367d99b23SSrinivas Kandagatla  - compatible
6467d99b23SSrinivas Kandagatla  - reg
6567d99b23SSrinivas Kandagatla  - "#sound-dai-cells"
6667d99b23SSrinivas Kandagatla
6758ae9a2aSKrzysztof KozlowskiunevaluatedProperties: false
6867d99b23SSrinivas Kandagatla
6967d99b23SSrinivas Kandagatlaexamples:
7067d99b23SSrinivas Kandagatla  - |
7167d99b23SSrinivas Kandagatla    #include <dt-bindings/sound/qcom,q6afe.h>
7267d99b23SSrinivas Kandagatla    codec@3370000 {
7367d99b23SSrinivas Kandagatla      compatible = "qcom,sm8250-lpass-va-macro";
7467d99b23SSrinivas Kandagatla      reg = <0x3370000 0x1000>;
7567d99b23SSrinivas Kandagatla      #sound-dai-cells = <1>;
7667d99b23SSrinivas Kandagatla      #clock-cells = <0>;
7767d99b23SSrinivas Kandagatla      clocks = <&aoncc 0>,
7867d99b23SSrinivas Kandagatla               <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
7967d99b23SSrinivas Kandagatla               <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
8067d99b23SSrinivas Kandagatla      clock-names = "mclk", "core", "dcodec";
8167d99b23SSrinivas Kandagatla      clock-output-names = "fsgen";
8267d99b23SSrinivas Kandagatla      qcom,dmic-sample-rate = <600000>;
8367d99b23SSrinivas Kandagatla      vdd-micb-supply = <&vreg_s4a_1p8>;
8467d99b23SSrinivas Kandagatla    };
85