dt-bindings: mailbox: qcom: set correct #clock-cells

IPQ6018 and IPQ8074 require #clock-cells to be set to 1 as their APSS
clock driver provides multiple clock outputs.

So allow setting 1 as #clock-cells and check that its set to 1 for IPQ6018
and IPQ8074, check others for 0 as its currently.

Signed-off-by: Robert Marko <robimarko@gmail.com>
Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Signed-off-by: Jassi Brar <jaswinder.singh@linaro.org>
This commit is contained in:
Robert Marko 2022-08-19 00:08:46 +02:00 committed by Jassi Brar
parent 0d1aadfe10
commit f3d961299c

View file

@ -54,7 +54,7 @@ properties:
const: 1
'#clock-cells':
const: 0
enum: [0, 1]
clock-names:
minItems: 2
@ -100,6 +100,21 @@ allOf:
properties:
clocks:
maxItems: 3
- if:
properties:
compatible:
enum:
- qcom,ipq6018-apcs-apps-global
- qcom,ipq8074-apcs-apps-global
then:
properties:
'#clock-cells':
const: 1
else:
properties:
'#clock-cells':
const: 0
examples:
# Example apcs with msm8996