Skip to content

Commit b352033

Browse files
konradybcioandersson
authored andcommitted
dt-bindings: remoteproc: qcom: sm6115-pas: Add QCM2290
QCM2290 is more or less a fork of the same design that SM6115 is based on. As a result, the ADSP and modem found on it are identical. Add compatibles for the QCM2290 with SM6115 fallbacks so as not to require any driver changes. Change the allOf:if:properties clauses to look for the presence of SM6115 compatibles and not an exact match. Note that QCM2290 lacks a CDSP. Signed-off-by: Konrad Dybcio <[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 5c43ed8 commit b352033

File tree

1 file changed

+24
-12
lines changed

1 file changed

+24
-12
lines changed

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

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,19 @@ description:
1515

1616
properties:
1717
compatible:
18-
enum:
19-
- qcom,sm6115-adsp-pas
20-
- qcom,sm6115-cdsp-pas
21-
- qcom,sm6115-mpss-pas
18+
oneOf:
19+
- enum:
20+
- qcom,sm6115-adsp-pas
21+
- qcom,sm6115-cdsp-pas
22+
- qcom,sm6115-mpss-pas
23+
24+
- items:
25+
- const: qcom,qcm2290-adsp-pas
26+
- const: qcom,sm6115-adsp-pas
27+
28+
- items:
29+
- const: qcom,qcm2290-mpss-pas
30+
- const: qcom,sm6115-mpss-pas
2231

2332
reg:
2433
maxItems: 1
@@ -51,9 +60,10 @@ allOf:
5160
- if:
5261
properties:
5362
compatible:
54-
enum:
55-
- qcom,sm6115-adsp-pas
56-
- qcom,sm6115-cdsp-pas
63+
contains:
64+
enum:
65+
- qcom,sm6115-adsp-pas
66+
- qcom,sm6115-cdsp-pas
5767
then:
5868
properties:
5969
interrupts:
@@ -70,9 +80,10 @@ allOf:
7080
- if:
7181
properties:
7282
compatible:
73-
enum:
74-
- qcom,sm6115-cdsp-pas
75-
- qcom,sm6115-mpss-pas
83+
contains:
84+
enum:
85+
- qcom,sm6115-cdsp-pas
86+
- qcom,sm6115-mpss-pas
7687
then:
7788
properties:
7889
power-domains:
@@ -85,8 +96,9 @@ allOf:
8596
- if:
8697
properties:
8798
compatible:
88-
enum:
89-
- qcom,sm6115-adsp-pas
99+
contains:
100+
enum:
101+
- qcom,sm6115-adsp-pas
90102
then:
91103
properties:
92104
power-domains:

0 commit comments

Comments
 (0)