Skip to content

Commit 34d8775

Browse files
krzkJassiBrar
authored andcommitted
dt-bindings: mailbox: qcom,apcs-kpss-global: use fallbacks for few variants
Rework the compatibles of IPQ8074, SC7180, SC8180X and SM8150 as compatible devices (same from Linux driver point of view). This allows smaller of_device_id table in the Linux driver and smaller allOf:if:then: constraints. Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
1 parent 26e02e6 commit 34d8775

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

Documentation/devicetree/bindings/mailbox/qcom,apcs-kpss-global.yaml

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,22 +19,14 @@ properties:
1919
- items:
2020
- enum:
2121
- qcom,ipq5332-apcs-apps-global
22+
- qcom,ipq8074-apcs-apps-global
2223
- const: qcom,ipq6018-apcs-apps-global
2324
- items:
2425
- enum:
25-
- qcom,ipq6018-apcs-apps-global
26-
- qcom,ipq8074-apcs-apps-global
27-
- qcom,msm8996-apcs-hmss-global
28-
- qcom,msm8998-apcs-hmss-global
29-
- qcom,qcm2290-apcs-hmss-global
3026
- qcom,sc7180-apss-shared
3127
- qcom,sc8180x-apss-shared
32-
- qcom,sdm660-apcs-hmss-global
33-
- qcom,sdm845-apss-shared
34-
- qcom,sm4250-apcs-hmss-global
35-
- qcom,sm6125-apcs-hmss-global
36-
- qcom,sm6115-apcs-hmss-global
3728
- qcom,sm8150-apss-shared
29+
- const: qcom,sdm845-apss-shared
3830
- items:
3931
- enum:
4032
- qcom,msm8916-apcs-kpss-global
@@ -45,6 +37,18 @@ properties:
4537
- qcom,qcs404-apcs-apps-global
4638
- qcom,sdx55-apcs-gcc
4739
- const: syscon
40+
- enum:
41+
- qcom,ipq6018-apcs-apps-global
42+
- qcom,ipq8074-apcs-apps-global
43+
- qcom,msm8996-apcs-hmss-global
44+
- qcom,msm8998-apcs-hmss-global
45+
- qcom,qcm2290-apcs-hmss-global
46+
- qcom,sdm660-apcs-hmss-global
47+
- qcom,sdm845-apss-shared
48+
- qcom,sm4250-apcs-hmss-global
49+
- qcom,sm6115-apcs-hmss-global
50+
- qcom,sm6125-apcs-hmss-global
51+
4852
reg:
4953
maxItems: 1
5054

@@ -88,6 +92,7 @@ allOf:
8892
items:
8993
- const: pll
9094
- const: aux
95+
9196
- if:
9297
properties:
9398
compatible:
@@ -111,7 +116,6 @@ allOf:
111116
contains:
112117
enum:
113118
- qcom,ipq6018-apcs-apps-global
114-
- qcom,ipq8074-apcs-apps-global
115119
then:
116120
properties:
117121
clocks:
@@ -133,14 +137,11 @@ allOf:
133137
- qcom,msm8996-apcs-hmss-global
134138
- qcom,msm8998-apcs-hmss-global
135139
- qcom,qcm2290-apcs-hmss-global
136-
- qcom,sc7180-apss-shared
137-
- qcom,sc8180x-apss-shared
138140
- qcom,sdm660-apcs-hmss-global
139141
- qcom,sdm845-apss-shared
140142
- qcom,sm4250-apcs-hmss-global
141143
- qcom,sm6115-apcs-hmss-global
142144
- qcom,sm6125-apcs-hmss-global
143-
- qcom,sm8150-apss-shared
144145
then:
145146
properties:
146147
clocks: false
@@ -152,7 +153,6 @@ allOf:
152153
contains:
153154
enum:
154155
- qcom,ipq6018-apcs-apps-global
155-
- qcom,ipq8074-apcs-apps-global
156156
then:
157157
properties:
158158
'#clock-cells':

0 commit comments

Comments
 (0)