xref: /freebsd/sys/contrib/device-tree/Bindings/sound/qcom,lpass-tx-macro.yaml (revision 8cc087a1eee9ec1ca9f7ac1e63ad51bdb5a682eb)
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-tx-macro.yaml#
55def4c47SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
65def4c47SEmmanuel Vadot
75def4c47SEmmanuel Vadottitle: LPASS(Low Power Audio Subsystem) TX Macro audio codec DT bindings
85def4c47SEmmanuel Vadot
95def4c47SEmmanuel Vadotmaintainers:
105def4c47SEmmanuel Vadot  - Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
115def4c47SEmmanuel Vadot
125def4c47SEmmanuel Vadotproperties:
135def4c47SEmmanuel Vadot  compatible:
14*8cc087a1SEmmanuel Vadot    enum:
15*8cc087a1SEmmanuel Vadot      - qcom,sc7280-lpass-tx-macro
16*8cc087a1SEmmanuel Vadot      - qcom,sm8250-lpass-tx-macro
175def4c47SEmmanuel Vadot
185def4c47SEmmanuel Vadot  reg:
195def4c47SEmmanuel Vadot    maxItems: 1
205def4c47SEmmanuel Vadot
215def4c47SEmmanuel Vadot  "#sound-dai-cells":
225def4c47SEmmanuel Vadot    const: 1
235def4c47SEmmanuel Vadot
245def4c47SEmmanuel Vadot  '#clock-cells':
255def4c47SEmmanuel Vadot    const: 0
265def4c47SEmmanuel Vadot
275def4c47SEmmanuel Vadot  clocks:
285def4c47SEmmanuel Vadot    maxItems: 5
295def4c47SEmmanuel Vadot
305def4c47SEmmanuel Vadot  clock-names:
315def4c47SEmmanuel Vadot    items:
325def4c47SEmmanuel Vadot      - const: mclk
335def4c47SEmmanuel Vadot      - const: npl
345def4c47SEmmanuel Vadot      - const: macro
355def4c47SEmmanuel Vadot      - const: dcodec
365def4c47SEmmanuel Vadot      - const: fsgen
375def4c47SEmmanuel Vadot
385def4c47SEmmanuel Vadot  clock-output-names:
395def4c47SEmmanuel Vadot    items:
405def4c47SEmmanuel Vadot      - const: mclk
415def4c47SEmmanuel Vadot
425def4c47SEmmanuel Vadot  qcom,dmic-sample-rate:
435def4c47SEmmanuel Vadot    description: dmic sample rate
445def4c47SEmmanuel Vadot    $ref: /schemas/types.yaml#/definitions/uint32
455def4c47SEmmanuel Vadot
465def4c47SEmmanuel Vadotrequired:
475def4c47SEmmanuel Vadot  - compatible
485def4c47SEmmanuel Vadot  - reg
495def4c47SEmmanuel Vadot  - "#sound-dai-cells"
505def4c47SEmmanuel Vadot
515def4c47SEmmanuel VadotadditionalProperties: false
525def4c47SEmmanuel Vadot
535def4c47SEmmanuel Vadotexamples:
545def4c47SEmmanuel Vadot  - |
555def4c47SEmmanuel Vadot    #include <dt-bindings/sound/qcom,q6afe.h>
565def4c47SEmmanuel Vadot    codec@3220000 {
575def4c47SEmmanuel Vadot      compatible = "qcom,sm8250-lpass-tx-macro";
585def4c47SEmmanuel Vadot      reg = <0x3220000 0x1000>;
595def4c47SEmmanuel Vadot      #sound-dai-cells = <1>;
605def4c47SEmmanuel Vadot      #clock-cells = <0>;
615def4c47SEmmanuel Vadot      clocks = <&aoncc 0>,
625def4c47SEmmanuel Vadot               <&aoncc 1>,
635def4c47SEmmanuel Vadot               <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
645def4c47SEmmanuel Vadot               <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>,
655def4c47SEmmanuel Vadot               <&vamacro>;
665def4c47SEmmanuel Vadot      clock-names = "mclk", "npl", "macro", "dcodec", "fsgen";
675def4c47SEmmanuel Vadot      clock-output-names = "mclk";
685def4c47SEmmanuel Vadot      qcom,dmic-sample-rate = <600000>;
695def4c47SEmmanuel Vadot    };
70