xref: /freebsd/sys/contrib/device-tree/Bindings/sound/qcom,lpass-va-macro.yaml (revision 8bab661a3316d8bd9b9fbd11a3b4371b91507bd2)
15def4c47SEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
25def4c47SEmmanuel Vadot%YAML 1.2
35def4c47SEmmanuel Vadot---
45def4c47SEmmanuel Vadot$id: http://devicetree.org/schemas/sound/qcom,lpass-va-macro.yaml#
55def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
65def4c47SEmmanuel Vadot
7*8bab661aSEmmanuel Vadottitle: LPASS(Low Power Audio Subsystem) VA Macro audio codec
85def4c47SEmmanuel Vadot
95def4c47SEmmanuel Vadotmaintainers:
105def4c47SEmmanuel Vadot  - Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
115def4c47SEmmanuel Vadot
12*8bab661aSEmmanuel VadotallOf:
13*8bab661aSEmmanuel Vadot  - $ref: dai-common.yaml#
14*8bab661aSEmmanuel Vadot
155def4c47SEmmanuel Vadotproperties:
165def4c47SEmmanuel Vadot  compatible:
178cc087a1SEmmanuel Vadot    enum:
188cc087a1SEmmanuel Vadot      - qcom,sc7280-lpass-va-macro
198cc087a1SEmmanuel Vadot      - qcom,sm8250-lpass-va-macro
207ef62cebSEmmanuel Vadot      - qcom,sm8450-lpass-va-macro
217ef62cebSEmmanuel Vadot      - qcom,sc8280xp-lpass-va-macro
225def4c47SEmmanuel Vadot
235def4c47SEmmanuel Vadot  reg:
245def4c47SEmmanuel Vadot    maxItems: 1
255def4c47SEmmanuel Vadot
265def4c47SEmmanuel Vadot  "#sound-dai-cells":
275def4c47SEmmanuel Vadot    const: 1
285def4c47SEmmanuel Vadot
295def4c47SEmmanuel Vadot  '#clock-cells':
305def4c47SEmmanuel Vadot    const: 0
315def4c47SEmmanuel Vadot
325def4c47SEmmanuel Vadot  clocks:
335def4c47SEmmanuel Vadot    maxItems: 3
345def4c47SEmmanuel Vadot
355def4c47SEmmanuel Vadot  clock-names:
36d5b0e70fSEmmanuel Vadot    oneOf:
37d5b0e70fSEmmanuel Vadot      - items:   #for ADSP based platforms
385def4c47SEmmanuel Vadot          - const: mclk
395def4c47SEmmanuel Vadot          - const: core
405def4c47SEmmanuel Vadot          - const: dcodec
41d5b0e70fSEmmanuel Vadot      - items:   #for ADSP bypass based platforms
42d5b0e70fSEmmanuel Vadot          - const: mclk
435def4c47SEmmanuel Vadot
445def4c47SEmmanuel Vadot  clock-output-names:
45*8bab661aSEmmanuel Vadot    maxItems: 1
465def4c47SEmmanuel Vadot
47c9ccf3a3SEmmanuel Vadot  power-domains:
48c9ccf3a3SEmmanuel Vadot    maxItems: 2
49c9ccf3a3SEmmanuel Vadot
50c9ccf3a3SEmmanuel Vadot  power-domain-names:
51c9ccf3a3SEmmanuel Vadot    items:
52c9ccf3a3SEmmanuel Vadot      - const: macro
53c9ccf3a3SEmmanuel Vadot      - const: dcodec
54c9ccf3a3SEmmanuel Vadot
555def4c47SEmmanuel Vadot  qcom,dmic-sample-rate:
565def4c47SEmmanuel Vadot    description: dmic sample rate
575def4c47SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
585def4c47SEmmanuel Vadot
595def4c47SEmmanuel Vadot  vdd-micb-supply:
605def4c47SEmmanuel Vadot    description: phandle to voltage regulator of MIC Bias
615def4c47SEmmanuel Vadot
625def4c47SEmmanuel Vadotrequired:
635def4c47SEmmanuel Vadot  - compatible
645def4c47SEmmanuel Vadot  - reg
655def4c47SEmmanuel Vadot  - "#sound-dai-cells"
665def4c47SEmmanuel Vadot
67*8bab661aSEmmanuel VadotunevaluatedProperties: false
685def4c47SEmmanuel Vadot
695def4c47SEmmanuel Vadotexamples:
705def4c47SEmmanuel Vadot  - |
715def4c47SEmmanuel Vadot    #include <dt-bindings/sound/qcom,q6afe.h>
725def4c47SEmmanuel Vadot    codec@3370000 {
735def4c47SEmmanuel Vadot      compatible = "qcom,sm8250-lpass-va-macro";
745def4c47SEmmanuel Vadot      reg = <0x3370000 0x1000>;
755def4c47SEmmanuel Vadot      #sound-dai-cells = <1>;
765def4c47SEmmanuel Vadot      #clock-cells = <0>;
775def4c47SEmmanuel Vadot      clocks = <&aoncc 0>,
785def4c47SEmmanuel Vadot               <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
795def4c47SEmmanuel Vadot               <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
805def4c47SEmmanuel Vadot      clock-names = "mclk", "core", "dcodec";
815def4c47SEmmanuel Vadot      clock-output-names = "fsgen";
825def4c47SEmmanuel Vadot      qcom,dmic-sample-rate = <600000>;
835def4c47SEmmanuel Vadot      vdd-micb-supply = <&vreg_s4a_1p8>;
845def4c47SEmmanuel Vadot    };
85