xref: /freebsd/sys/contrib/device-tree/Bindings/sound/qcom,lpass-va-macro.yaml (revision 8d13bc63c0e1d50bc9e47ac1f26329c999bfecf0)
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
78bab661aSEmmanuel Vadottitle: LPASS(Low Power Audio Subsystem) VA Macro audio codec
85def4c47SEmmanuel Vadot
95def4c47SEmmanuel Vadotmaintainers:
105def4c47SEmmanuel Vadot  - Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
115def4c47SEmmanuel Vadot
125def4c47SEmmanuel Vadotproperties:
135def4c47SEmmanuel Vadot  compatible:
14*8d13bc63SEmmanuel Vadot    oneOf:
15*8d13bc63SEmmanuel Vadot      - enum:
168cc087a1SEmmanuel Vadot          - qcom,sc7280-lpass-va-macro
178cc087a1SEmmanuel Vadot          - qcom,sm8250-lpass-va-macro
187ef62cebSEmmanuel Vadot          - qcom,sm8450-lpass-va-macro
19fac71e4eSEmmanuel Vadot          - qcom,sm8550-lpass-va-macro
207ef62cebSEmmanuel Vadot          - qcom,sc8280xp-lpass-va-macro
21*8d13bc63SEmmanuel Vadot      - items:
22*8d13bc63SEmmanuel Vadot          - enum:
23*8d13bc63SEmmanuel Vadot              - qcom,sm8650-lpass-va-macro
24*8d13bc63SEmmanuel Vadot              - qcom,x1e80100-lpass-va-macro
25*8d13bc63SEmmanuel Vadot          - const: qcom,sm8550-lpass-va-macro
265def4c47SEmmanuel Vadot
275def4c47SEmmanuel Vadot  reg:
285def4c47SEmmanuel Vadot    maxItems: 1
295def4c47SEmmanuel Vadot
305def4c47SEmmanuel Vadot  "#sound-dai-cells":
315def4c47SEmmanuel Vadot    const: 1
325def4c47SEmmanuel Vadot
335def4c47SEmmanuel Vadot  '#clock-cells':
345def4c47SEmmanuel Vadot    const: 0
355def4c47SEmmanuel Vadot
365def4c47SEmmanuel Vadot  clocks:
37fac71e4eSEmmanuel Vadot    minItems: 1
38fac71e4eSEmmanuel Vadot    maxItems: 4
395def4c47SEmmanuel Vadot
405def4c47SEmmanuel Vadot  clock-names:
41fac71e4eSEmmanuel Vadot    minItems: 1
42fac71e4eSEmmanuel Vadot    maxItems: 4
435def4c47SEmmanuel Vadot
445def4c47SEmmanuel Vadot  clock-output-names:
458bab661aSEmmanuel 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"
66fac71e4eSEmmanuel Vadot  - clock-names
67fac71e4eSEmmanuel Vadot  - clocks
68fac71e4eSEmmanuel Vadot
69fac71e4eSEmmanuel VadotallOf:
70fac71e4eSEmmanuel Vadot  - $ref: dai-common.yaml#
71fac71e4eSEmmanuel Vadot
72fac71e4eSEmmanuel Vadot  - if:
73fac71e4eSEmmanuel Vadot      properties:
74fac71e4eSEmmanuel Vadot        compatible:
75fac71e4eSEmmanuel Vadot          contains:
76fac71e4eSEmmanuel Vadot            const: qcom,sc7280-lpass-va-macro
77fac71e4eSEmmanuel Vadot    then:
78fac71e4eSEmmanuel Vadot      properties:
79fac71e4eSEmmanuel Vadot        clocks:
80fac71e4eSEmmanuel Vadot          maxItems: 1
81fac71e4eSEmmanuel Vadot        clock-names:
82fac71e4eSEmmanuel Vadot          items:
83fac71e4eSEmmanuel Vadot            - const: mclk
84fac71e4eSEmmanuel Vadot
85fac71e4eSEmmanuel Vadot  - if:
86fac71e4eSEmmanuel Vadot      properties:
87fac71e4eSEmmanuel Vadot        compatible:
88fac71e4eSEmmanuel Vadot          contains:
89fac71e4eSEmmanuel Vadot            const: qcom,sm8250-lpass-va-macro
90fac71e4eSEmmanuel Vadot    then:
91fac71e4eSEmmanuel Vadot      properties:
92fac71e4eSEmmanuel Vadot        clocks:
93fac71e4eSEmmanuel Vadot          minItems: 3
94fac71e4eSEmmanuel Vadot          maxItems: 3
95fac71e4eSEmmanuel Vadot        clock-names:
96fac71e4eSEmmanuel Vadot          items:
97fac71e4eSEmmanuel Vadot            - const: mclk
98fac71e4eSEmmanuel Vadot            - const: macro
99fac71e4eSEmmanuel Vadot            - const: dcodec
100fac71e4eSEmmanuel Vadot
101fac71e4eSEmmanuel Vadot  - if:
102fac71e4eSEmmanuel Vadot      properties:
103fac71e4eSEmmanuel Vadot        compatible:
104fac71e4eSEmmanuel Vadot          contains:
105fac71e4eSEmmanuel Vadot            enum:
106fac71e4eSEmmanuel Vadot              - qcom,sc8280xp-lpass-va-macro
107fac71e4eSEmmanuel Vadot              - qcom,sm8450-lpass-va-macro
108fac71e4eSEmmanuel Vadot    then:
109fac71e4eSEmmanuel Vadot      properties:
110fac71e4eSEmmanuel Vadot        clocks:
111fac71e4eSEmmanuel Vadot          minItems: 4
112fac71e4eSEmmanuel Vadot          maxItems: 4
113fac71e4eSEmmanuel Vadot        clock-names:
114fac71e4eSEmmanuel Vadot          items:
115fac71e4eSEmmanuel Vadot            - const: mclk
116fac71e4eSEmmanuel Vadot            - const: macro
117fac71e4eSEmmanuel Vadot            - const: dcodec
118fac71e4eSEmmanuel Vadot            - const: npl
119fac71e4eSEmmanuel Vadot
120fac71e4eSEmmanuel Vadot  - if:
121fac71e4eSEmmanuel Vadot      properties:
122fac71e4eSEmmanuel Vadot        compatible:
123fac71e4eSEmmanuel Vadot          contains:
124fac71e4eSEmmanuel Vadot            enum:
125fac71e4eSEmmanuel Vadot              - qcom,sm8550-lpass-va-macro
126fac71e4eSEmmanuel Vadot    then:
127fac71e4eSEmmanuel Vadot      properties:
128fac71e4eSEmmanuel Vadot        clocks:
129fac71e4eSEmmanuel Vadot          minItems: 3
130fac71e4eSEmmanuel Vadot          maxItems: 3
131fac71e4eSEmmanuel Vadot        clock-names:
132fac71e4eSEmmanuel Vadot          items:
133fac71e4eSEmmanuel Vadot            - const: mclk
134fac71e4eSEmmanuel Vadot            - const: macro
135fac71e4eSEmmanuel Vadot            - const: dcodec
1365def4c47SEmmanuel Vadot
1378bab661aSEmmanuel VadotunevaluatedProperties: false
1385def4c47SEmmanuel Vadot
1395def4c47SEmmanuel Vadotexamples:
1405def4c47SEmmanuel Vadot  - |
1415def4c47SEmmanuel Vadot    #include <dt-bindings/sound/qcom,q6afe.h>
1425def4c47SEmmanuel Vadot    codec@3370000 {
1435def4c47SEmmanuel Vadot      compatible = "qcom,sm8250-lpass-va-macro";
1445def4c47SEmmanuel Vadot      reg = <0x3370000 0x1000>;
1455def4c47SEmmanuel Vadot      #sound-dai-cells = <1>;
1465def4c47SEmmanuel Vadot      #clock-cells = <0>;
1475def4c47SEmmanuel Vadot      clocks = <&aoncc 0>,
1485def4c47SEmmanuel Vadot               <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
1495def4c47SEmmanuel Vadot               <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>;
150cb7aa33aSEmmanuel Vadot      clock-names = "mclk", "macro", "dcodec";
1515def4c47SEmmanuel Vadot      clock-output-names = "fsgen";
1525def4c47SEmmanuel Vadot      qcom,dmic-sample-rate = <600000>;
1535def4c47SEmmanuel Vadot      vdd-micb-supply = <&vreg_s4a_1p8>;
1545def4c47SEmmanuel Vadot    };
155