| 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-wsa-macro.yaml# |
| 5 |
$schema: http://devicetree.org/meta-schemas/core.yaml# |
| 6 |
|
| 7 |
title: LPASS(Low Power Audio Subsystem) VA Macro audio codec |
| 8 |
|
| 9 |
maintainers: |
| 10 |
- Srinivas Kandagatla <[email protected]> |
| 11 |
|
| 12 |
properties: |
| 13 |
compatible: |
| 14 |
oneOf: |
| 15 |
- enum: |
| 16 |
- qcom,sc7280-lpass-wsa-macro |
| 17 |
- qcom,sm8250-lpass-wsa-macro |
| 18 |
- qcom,sm8450-lpass-wsa-macro |
| 19 |
- qcom,sm8550-lpass-wsa-macro |
| 20 |
- qcom,sc8280xp-lpass-wsa-macro |
| 21 |
- items: |
| 22 |
- enum: |
| 23 |
- qcom,glymur-lpass-wsa-macro |
| 24 |
- qcom,kaanapali-lpass-wsa-macro |
| 25 |
- qcom,sm8650-lpass-wsa-macro |
| 26 |
- qcom,sm8750-lpass-wsa-macro |
| 27 |
- qcom,x1e80100-lpass-wsa-macro |
| 28 |
- const: qcom,sm8550-lpass-wsa-macro |
| 29 |
|
| 30 |
reg: |
| 31 |
maxItems: 1 |
| 32 |
|
| 33 |
"#sound-dai-cells": |
| 34 |
const: 1 |
| 35 |
|
| 36 |
'#clock-cells': |
| 37 |
const: 0 |
| 38 |
|
| 39 |
clocks: |
| 40 |
minItems: 4 |
| 41 |
maxItems: 6 |
| 42 |
|
| 43 |
clock-names: |
| 44 |
minItems: 4 |
| 45 |
maxItems: 6 |
| 46 |
|
| 47 |
clock-output-names: |
| 48 |
maxItems: 1 |
| 49 |
|
| 50 |
qcom,dmic-sample-rate: |
| 51 |
description: dmic sample rate |
| 52 |
$ref: /schemas/types.yaml#/definitions/uint32 |
| 53 |
|
| 54 |
vdd-micb-supply: |
| 55 |
description: phandle to voltage regulator of MIC Bias |
| 56 |
|
| 57 |
required: |
| 58 |
- compatible |
| 59 |
- reg |
| 60 |
- "#sound-dai-cells" |
| 61 |
|
| 62 |
allOf: |
| 63 |
- $ref: dai-common.yaml# |
| 64 |
|
| 65 |
- if: |
| 66 |
properties: |
| 67 |
compatible: |
| 68 |
enum: |
| 69 |
- qcom,sc7280-lpass-wsa-macro |
| 70 |
- qcom,sm8250-lpass-wsa-macro |
| 71 |
- qcom,sm8450-lpass-wsa-macro |
| 72 |
- qcom,sc8280xp-lpass-wsa-macro |
| 73 |
then: |
| 74 |
properties: |
| 75 |
clocks: |
| 76 |
minItems: 5 |
| 77 |
maxItems: 5 |
| 78 |
clock-names: |
| 79 |
items: |
| 80 |
- const: mclk |
| 81 |
- const: npl |
| 82 |
- const: macro |
| 83 |
- const: dcodec |
| 84 |
- const: fsgen |
| 85 |
|
| 86 |
- if: |
| 87 |
properties: |
| 88 |
compatible: |
| 89 |
contains: |
| 90 |
enum: |
| 91 |
- qcom,sm8550-lpass-wsa-macro |
| 92 |
then: |
| 93 |
properties: |
| 94 |
clocks: |
| 95 |
minItems: 4 |
| 96 |
maxItems: 4 |
| 97 |
clock-names: |
| 98 |
items: |
| 99 |
- const: mclk |
| 100 |
- const: macro |
| 101 |
- const: dcodec |
| 102 |
- const: fsgen |
| 103 |
|
| 104 |
unevaluatedProperties: false |
| 105 |
|
| 106 |
examples: |
| 107 |
- | |
| 108 |
#include <dt-bindings/clock/qcom,sm8250-lpass-aoncc.h> |
| 109 |
#include <dt-bindings/sound/qcom,q6afe.h> |
| 110 |
codec@3240000 { |
| 111 |
compatible = "qcom,sm8250-lpass-wsa-macro"; |
| 112 |
reg = <0x3240000 0x1000>; |
| 113 |
#sound-dai-cells = <1>; |
| 114 |
#clock-cells = <0>; |
| 115 |
clocks = <&audiocc 1>, |
| 116 |
<&audiocc 0>, |
| 117 |
<&q6afecc LPASS_HW_MACRO_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, |
| 118 |
<&q6afecc LPASS_HW_DCODEC_VOTE LPASS_CLK_ATTRIBUTE_COUPLE_NO>, |
| 119 |
<&vamacro>; |
| 120 |
clock-names = "mclk", "npl", "macro", "dcodec", "fsgen"; |
| 121 |
clock-output-names = "mclk"; |
| 122 |
}; |