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 <matti.lehtimaki@gmail.com>
Signed-off-by: Luca Weiss <luca@lucaweiss.eu>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20250206-wcnss-singlepd-v2-1-9a53ee953dee@lucaweiss.eu
Signed-off-by: Bjorn Andersson <andersson@kernel.org>
This commit is contained in:
Matti Lehtimäki 2025-02-06 20:56:47 +01:00 committed by Bjorn Andersson
parent df9e5103a2
commit 14198a0ca5

View file

@ -69,9 +69,11 @@ properties:
CX regulator to be held on behalf of the booting of the WCNSS core. CX regulator to be held on behalf of the booting of the WCNSS core.
power-domains: power-domains:
minItems: 1
maxItems: 2 maxItems: 2
power-domain-names: power-domain-names:
minItems: 1
items: items:
- const: cx - const: cx
- const: mx - const: mx
@ -187,22 +189,43 @@ allOf:
- qcom,pronto-v1-pil - qcom,pronto-v1-pil
- qcom,pronto-v2-pil - qcom,pronto-v2-pil
then: then:
properties: # CX and MX must be present either as power domains or regulators
vddmx-supply:
deprecated: true
description: Deprecated for qcom,pronto-v1/2-pil
vddcx-supply:
deprecated: true
description: Deprecated for qcom,pronto-v1/2-pil
oneOf: oneOf:
# Both CX and MX represented as power domains
- required: - required:
- power-domains - power-domains
- power-domain-names - power-domain-names
properties:
power-domains:
minItems: 2
power-domain-names:
minItems: 2
vddmx-supply: false
vddcx-supply: false
# CX represented as power domain, MX as regulator
- required:
- power-domains
- power-domain-names
- vddmx-supply
properties:
power-domains:
maxItems: 1
power-domain-names:
maxItems: 1
vddcx-supply: false
# Both CX and MX represented as regulators
- required: - required:
- vddmx-supply - vddmx-supply
- vddcx-supply - vddcx-supply
properties:
power-domains: false
power-domain-names: false
vddmx-supply:
deprecated: true
description: Deprecated for qcom,pronto-v1/2-pil
vddcx-supply:
deprecated: true
description: Deprecated for qcom,pronto-v1/2-pil
- if: - if:
properties: properties:
@ -212,6 +235,10 @@ allOf:
- qcom,pronto-v3-pil - qcom,pronto-v3-pil
then: then:
properties: properties:
power-domains:
minItems: 2
power-domain-names:
minItems: 2
vddmx-supply: false vddmx-supply: false
vddcx-supply: false vddcx-supply: false