Commit eadadb95 authored by Nikita Travkin's avatar Nikita Travkin Committed by Bjorn Andersson

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: default avatarNikita Travkin <nikita@trvn.ru>
Reviewed-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Link: https://lore.kernel.org/r/20230907-sc7180-adsp-rproc-v3-1-6515c3fbe0a3@trvn.ruSigned-off-by: default avatarBjorn Andersson <andersson@kernel.org>
parent 796a35f1
...@@ -16,6 +16,7 @@ description: ...@@ -16,6 +16,7 @@ description:
properties: properties:
compatible: compatible:
enum: enum:
- qcom,sc7180-adsp-pas
- qcom,sc7180-mpss-pas - qcom,sc7180-mpss-pas
- qcom,sc7280-mpss-pas - qcom,sc7280-mpss-pas
...@@ -30,26 +31,6 @@ properties: ...@@ -30,26 +31,6 @@ properties:
items: items:
- const: xo - const: xo
interrupts:
minItems: 6
interrupt-names:
minItems: 6
power-domains:
minItems: 2
items:
- description: CX power domain
- description: MX power domain
- description: MSS power domain
power-domain-names:
minItems: 2
items:
- const: cx
- const: mx
- const: mss
memory-region: memory-region:
maxItems: 1 maxItems: 1
description: Reference to the reserved-memory for the Hexagon core description: Reference to the reserved-memory for the Hexagon core
...@@ -71,6 +52,40 @@ required: ...@@ -71,6 +52,40 @@ required:
allOf: allOf:
- $ref: /schemas/remoteproc/qcom,pas-common.yaml# - $ref: /schemas/remoteproc/qcom,pas-common.yaml#
- if:
properties:
compatible:
enum:
- qcom,sc7180-adsp-pas
then:
properties:
interrupts:
maxItems: 5
interrupt-names:
maxItems: 5
else:
properties:
interrupts:
minItems: 6
interrupt-names:
minItems: 6
- if:
properties:
compatible:
enum:
- qcom,sc7180-adsp-pas
then:
properties:
power-domains:
items:
- description: LCX power domain
- description: LMX power domain
power-domain-names:
items:
- const: lcx
- const: lmx
- if: - if:
properties: properties:
compatible: compatible:
...@@ -79,15 +94,31 @@ allOf: ...@@ -79,15 +94,31 @@ allOf:
then: then:
properties: properties:
power-domains: power-domains:
minItems: 3 items:
- description: CX power domain
- description: MX power domain
- description: MSS power domain
power-domain-names: power-domain-names:
minItems: 3 items:
else: - const: cx
- const: mx
- const: mss
- if:
properties:
compatible:
enum:
- qcom,sc7280-mpss-pas
then:
properties: properties:
power-domains: power-domains:
maxItems: 2 items:
- description: CX power domain
- description: MX power domain
power-domain-names: power-domain-names:
maxItems: 2 items:
- const: cx
- const: mx
unevaluatedProperties: false unevaluatedProperties: false
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment