xref: /freebsd/sys/contrib/device-tree/Bindings/sound/qcom,lpass-rx-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-rx-macro.yaml#
55def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
65def4c47SEmmanuel Vadot
7*8bab661aSEmmanuel Vadottitle: LPASS(Low Power Audio Subsystem) RX 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-rx-macro
198cc087a1SEmmanuel Vadot      - qcom,sm8250-lpass-rx-macro
207ef62cebSEmmanuel Vadot      - qcom,sm8450-lpass-rx-macro
217ef62cebSEmmanuel Vadot      - qcom,sc8280xp-lpass-rx-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: 5
345def4c47SEmmanuel Vadot
355def4c47SEmmanuel Vadot  clock-names:
36d5b0e70fSEmmanuel Vadot    oneOf:
37d5b0e70fSEmmanuel Vadot      - items:   #for ADSP based platforms
385def4c47SEmmanuel Vadot          - const: mclk
395def4c47SEmmanuel Vadot          - const: npl
405def4c47SEmmanuel Vadot          - const: macro
415def4c47SEmmanuel Vadot          - const: dcodec
425def4c47SEmmanuel Vadot          - const: fsgen
43d5b0e70fSEmmanuel Vadot      - items:   #for ADSP bypass based platforms
44d5b0e70fSEmmanuel Vadot          - const: mclk
45d5b0e70fSEmmanuel Vadot          - const: npl
46d5b0e70fSEmmanuel Vadot          - const: fsgen
475def4c47SEmmanuel Vadot
485def4c47SEmmanuel Vadot  clock-output-names:
49*8bab661aSEmmanuel Vadot    maxItems: 1
505def4c47SEmmanuel Vadot
51c9ccf3a3SEmmanuel Vadot  power-domains:
52c9ccf3a3SEmmanuel Vadot    maxItems: 2
53c9ccf3a3SEmmanuel Vadot
54c9ccf3a3SEmmanuel Vadot  power-domain-names:
55c9ccf3a3SEmmanuel Vadot    items:
56c9ccf3a3SEmmanuel Vadot      - const: macro
57c9ccf3a3SEmmanuel Vadot      - const: dcodec
58c9ccf3a3SEmmanuel Vadot
595def4c47SEmmanuel Vadotrequired:
605def4c47SEmmanuel Vadot  - compatible
615def4c47SEmmanuel Vadot  - reg
625def4c47SEmmanuel Vadot  - "#sound-dai-cells"
635def4c47SEmmanuel Vadot
64*8bab661aSEmmanuel VadotunevaluatedProperties: false
655def4c47SEmmanuel Vadot
665def4c47SEmmanuel Vadotexamples:
675def4c47SEmmanuel Vadot  - |
685def4c47SEmmanuel Vadot    #include <dt-bindings/sound/qcom,q6afe.h>
695def4c47SEmmanuel Vadot    codec@3200000 {
705def4c47SEmmanuel Vadot      compatible = "qcom,sm8250-lpass-rx-macro";
715def4c47SEmmanuel Vadot      reg = <0x3200000 0x1000>;
725def4c47SEmmanuel Vadot      #sound-dai-cells = <1>;
735def4c47SEmmanuel Vadot      #clock-cells = <0>;
745def4c47SEmmanuel Vadot      clocks = <&audiocc 0>,
755def4c47SEmmanuel Vadot               <&audiocc 1>,
765def4c47SEmmanuel Vadot               <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
775def4c47SEmmanuel Vadot               <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
785def4c47SEmmanuel Vadot               <&vamacro>;
795def4c47SEmmanuel Vadot      clock-names = "mclk", "npl", "macro", "dcodec", "fsgen";
805def4c47SEmmanuel Vadot      clock-output-names = "mclk";
815def4c47SEmmanuel Vadot    };
82