Skip to content

Commit a78d9c3

Browse files
mohsRafiKomal-Bajaj
authored andcommitted
FROMLIST: ASoC: dt-bindings: qcom: Manage clock settings for ADSP solution
Manage clock settings for ADSP solution and document the clock properties on sc7280 lpass pincontrol node which is required for ADSP based solution. Co-developed-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com> Signed-off-by: Prasad Kumpatla <quic_pkumpatl@quicinc.com> Link: https://lore.kernel.org/linux-arm-msm/20250527111227.2318021-3-quic_pkumpatl@quicinc.com/ Signed-off-by: Mohammad Rafi Shaik <quic_mohs@quicinc.com>
1 parent 09c3a47 commit a78d9c3

3 files changed

Lines changed: 40 additions & 6 deletions

File tree

Documentation/devicetree/bindings/pinctrl/qcom,sc7280-lpass-lpi-pinctrl.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,16 @@ properties:
2020
reg:
2121
maxItems: 2
2222

23+
clocks:
24+
items:
25+
- description: LPASS Core voting clock
26+
- description: LPASS Audio voting clock
27+
28+
clock-names:
29+
items:
30+
- const: core
31+
- const: audio
32+
2333
patternProperties:
2434
"-state$":
2535
oneOf:

Documentation/devicetree/bindings/sound/qcom,lpass-va-macro.yaml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,16 @@ allOf:
7878
then:
7979
properties:
8080
clocks:
81-
maxItems: 1
81+
minItems: 1
82+
maxItems: 3
8283
clock-names:
83-
items:
84-
- const: mclk
84+
oneOf:
85+
- items: # for ADSP based platforms
86+
- const: mclk
87+
- const: macro
88+
- const: dcodec
89+
- items: # for ADSP bypass based platforms
90+
- const: mclk
8591

8692
- if:
8793
properties:

Documentation/devicetree/bindings/sound/qcom,lpass-wsa-macro.yaml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ properties:
3535
const: 0
3636

3737
clocks:
38-
minItems: 4
38+
minItems: 3
3939
maxItems: 6
4040

4141
clock-names:
42-
minItems: 4
42+
minItems: 3
4343
maxItems: 6
4444

4545
clock-output-names:
@@ -59,12 +59,30 @@ required:
5959

6060
allOf:
6161
- $ref: dai-common.yaml#
62-
6362
- if:
6463
properties:
6564
compatible:
6665
enum:
6766
- qcom,sc7280-lpass-wsa-macro
67+
then:
68+
properties:
69+
clock-names:
70+
oneOf:
71+
- items: # for ADSP based platforms
72+
- const: mclk
73+
- const: npl
74+
- const: macro
75+
- const: dcodec
76+
- const: fsgen
77+
- items: # for ADSP bypass based platforms
78+
- const: mclk
79+
- const: npl
80+
- const: fsgen
81+
82+
- if:
83+
properties:
84+
compatible:
85+
enum:
6886
- qcom,sm8250-lpass-wsa-macro
6987
- qcom,sm8450-lpass-wsa-macro
7088
- qcom,sc8280xp-lpass-wsa-macro

0 commit comments

Comments
 (0)