1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 2%YAML 1.2 3--- 4$id: http://devicetree.org/schemas/sound/qcom,lpass-tx-macro.yaml# 5$schema: http://devicetree.org/meta-schemas/core.yaml# 6 7title: LPASS(Low Power Audio Subsystem) TX Macro audio codec 8 9maintainers: 10 - Srinivas Kandagatla <srinivas.kandagatla@linaro.org> 11 12allOf: 13 - $ref: dai-common.yaml# 14 15properties: 16 compatible: 17 enum: 18 - qcom,sc7280-lpass-tx-macro 19 - qcom,sm8250-lpass-tx-macro 20 - qcom,sm8450-lpass-tx-macro 21 - qcom,sc8280xp-lpass-tx-macro 22 23 reg: 24 maxItems: 1 25 26 "#sound-dai-cells": 27 const: 1 28 29 '#clock-cells': 30 const: 0 31 32 clocks: 33 maxItems: 5 34 35 clock-names: 36 oneOf: 37 - items: #for ADSP based platforms 38 - const: mclk 39 - const: npl 40 - const: macro 41 - const: dcodec 42 - const: fsgen 43 - items: #for ADSP bypass based platforms 44 - const: mclk 45 - const: npl 46 - const: fsgen 47 48 clock-output-names: 49 maxItems: 1 50 51 power-domains: 52 maxItems: 2 53 54 power-domain-names: 55 items: 56 - const: macro 57 - const: dcodec 58 59 qcom,dmic-sample-rate: 60 description: dmic sample rate 61 $ref: /schemas/types.yaml#/definitions/uint32 62 63required: 64 - compatible 65 - reg 66 - "#sound-dai-cells" 67 68unevaluatedProperties: false 69 70examples: 71 - | 72 #include <dt-bindings/sound/qcom,q6afe.h> 73 codec@3220000 { 74 compatible = "qcom,sm8250-lpass-tx-macro"; 75 reg = <0x3220000 0x1000>; 76 #sound-dai-cells = <1>; 77 #clock-cells = <0>; 78 clocks = <&aoncc 0>, 79 <&aoncc 1>, 80 <&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, 81 <&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, 82 <&vamacro>; 83 clock-names = "mclk", "npl", "macro", "dcodec", "fsgen"; 84 clock-output-names = "mclk"; 85 qcom,dmic-sample-rate = <600000>; 86 }; 87