Skip to content

Commit eadadb9

Browse files
TravMuravandersson
authored andcommitted
dt-bindings: remoteproc: qcom: sc7180-pas: Add ADSP compatible
SC7180 has an ADSP remoteproc. Add it's compatible to the bindings and refactor the schema conditionals to fit the ADSP. Signed-off-by: Nikita Travkin <nikita@trvn.ru> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20230907-sc7180-adsp-rproc-v3-1-6515c3fbe0a3@trvn.ru Signed-off-by: Bjorn Andersson <andersson@kernel.org>
1 parent 796a35f commit eadadb9

File tree

1 file changed

+56
-25
lines changed

1 file changed

+56
-25
lines changed

Documentation/devicetree/bindings/remoteproc/qcom,sc7180-pas.yaml

Lines changed: 56 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ description:
1616
properties:
1717
compatible:
1818
enum:
19+
- qcom,sc7180-adsp-pas
1920
- qcom,sc7180-mpss-pas
2021
- qcom,sc7280-mpss-pas
2122

@@ -30,26 +31,6 @@ properties:
3031
items:
3132
- const: xo
3233

33-
interrupts:
34-
minItems: 6
35-
36-
interrupt-names:
37-
minItems: 6
38-
39-
power-domains:
40-
minItems: 2
41-
items:
42-
- description: CX power domain
43-
- description: MX power domain
44-
- description: MSS power domain
45-
46-
power-domain-names:
47-
minItems: 2
48-
items:
49-
- const: cx
50-
- const: mx
51-
- const: mss
52-
5334
memory-region:
5435
maxItems: 1
5536
description: Reference to the reserved-memory for the Hexagon core
@@ -71,6 +52,40 @@ required:
7152

7253
allOf:
7354
- $ref: /schemas/remoteproc/qcom,pas-common.yaml#
55+
- if:
56+
properties:
57+
compatible:
58+
enum:
59+
- qcom,sc7180-adsp-pas
60+
then:
61+
properties:
62+
interrupts:
63+
maxItems: 5
64+
interrupt-names:
65+
maxItems: 5
66+
else:
67+
properties:
68+
interrupts:
69+
minItems: 6
70+
interrupt-names:
71+
minItems: 6
72+
73+
- if:
74+
properties:
75+
compatible:
76+
enum:
77+
- qcom,sc7180-adsp-pas
78+
then:
79+
properties:
80+
power-domains:
81+
items:
82+
- description: LCX power domain
83+
- description: LMX power domain
84+
power-domain-names:
85+
items:
86+
- const: lcx
87+
- const: lmx
88+
7489
- if:
7590
properties:
7691
compatible:
@@ -79,15 +94,31 @@ allOf:
7994
then:
8095
properties:
8196
power-domains:
82-
minItems: 3
97+
items:
98+
- description: CX power domain
99+
- description: MX power domain
100+
- description: MSS power domain
83101
power-domain-names:
84-
minItems: 3
85-
else:
102+
items:
103+
- const: cx
104+
- const: mx
105+
- const: mss
106+
107+
- if:
108+
properties:
109+
compatible:
110+
enum:
111+
- qcom,sc7280-mpss-pas
112+
then:
86113
properties:
87114
power-domains:
88-
maxItems: 2
115+
items:
116+
- description: CX power domain
117+
- description: MX power domain
89118
power-domain-names:
90-
maxItems: 2
119+
items:
120+
- const: cx
121+
- const: mx
91122

92123
unevaluatedProperties: false
93124

0 commit comments

Comments
 (0)