Skip to content

Commit 14198a0

Browse files
mlehtimaandersson
authored andcommitted
dt-bindings: remoteproc: qcom,wcnss-pil: Add support for single power-domain platforms
Support platforms such as MSM8226 and MSM8974 with only one power rail (CX) modelled as power domain while MX and PX are regulators. [luca: reword commit message, expand based on feedback from Stephan Gerhold] Signed-off-by: Matti Lehtimäki <[email protected]> Signed-off-by: Luca Weiss <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Andersson <[email protected]>
1 parent df9e510 commit 14198a0

File tree

1 file changed

+36
-9
lines changed

1 file changed

+36
-9
lines changed

Documentation/devicetree/bindings/remoteproc/qcom,wcnss-pil.yaml

Lines changed: 36 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,11 @@ properties:
6969
CX regulator to be held on behalf of the booting of the WCNSS core.
7070

7171
power-domains:
72+
minItems: 1
7273
maxItems: 2
7374

7475
power-domain-names:
76+
minItems: 1
7577
items:
7678
- const: cx
7779
- const: mx
@@ -187,22 +189,43 @@ allOf:
187189
- qcom,pronto-v1-pil
188190
- qcom,pronto-v2-pil
189191
then:
190-
properties:
191-
vddmx-supply:
192-
deprecated: true
193-
description: Deprecated for qcom,pronto-v1/2-pil
194-
195-
vddcx-supply:
196-
deprecated: true
197-
description: Deprecated for qcom,pronto-v1/2-pil
198-
192+
# CX and MX must be present either as power domains or regulators
199193
oneOf:
194+
# Both CX and MX represented as power domains
200195
- required:
201196
- power-domains
202197
- power-domain-names
198+
properties:
199+
power-domains:
200+
minItems: 2
201+
power-domain-names:
202+
minItems: 2
203+
vddmx-supply: false
204+
vddcx-supply: false
205+
# CX represented as power domain, MX as regulator
206+
- required:
207+
- power-domains
208+
- power-domain-names
209+
- vddmx-supply
210+
properties:
211+
power-domains:
212+
maxItems: 1
213+
power-domain-names:
214+
maxItems: 1
215+
vddcx-supply: false
216+
# Both CX and MX represented as regulators
203217
- required:
204218
- vddmx-supply
205219
- vddcx-supply
220+
properties:
221+
power-domains: false
222+
power-domain-names: false
223+
vddmx-supply:
224+
deprecated: true
225+
description: Deprecated for qcom,pronto-v1/2-pil
226+
vddcx-supply:
227+
deprecated: true
228+
description: Deprecated for qcom,pronto-v1/2-pil
206229

207230
- if:
208231
properties:
@@ -212,6 +235,10 @@ allOf:
212235
- qcom,pronto-v3-pil
213236
then:
214237
properties:
238+
power-domains:
239+
minItems: 2
240+
power-domain-names:
241+
minItems: 2
215242
vddmx-supply: false
216243
vddcx-supply: false
217244

0 commit comments

Comments
 (0)