Commit 1e9cb7e0 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Jassi Brar

dt-bindings: mailbox: qcom,apcs-kpss-global: use fallbacks

Rework the compatibles and group devices which have similar interface
(same from Linux driver point of view) as compatible.  This allows
smaller of_device_id table in the Linux driver and smaller
allOf:if:then: constraints.
Signed-off-by: default avatarKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Acked-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarJassi Brar <jaswinder.singh@linaro.org>
parent 24583bd2
...@@ -23,6 +23,24 @@ properties: ...@@ -23,6 +23,24 @@ properties:
- qcom,ipq8074-apcs-apps-global - qcom,ipq8074-apcs-apps-global
- qcom,ipq9574-apcs-apps-global - qcom,ipq9574-apcs-apps-global
- const: qcom,ipq6018-apcs-apps-global - const: qcom,ipq6018-apcs-apps-global
- items:
- enum:
- qcom,qcs404-apcs-apps-global
- const: qcom,msm8916-apcs-kpss-global
- const: syscon
- items:
- enum:
- qcom,msm8976-apcs-kpss-global
- const: qcom,msm8994-apcs-kpss-global
- const: syscon
- items:
- enum:
- qcom,msm8998-apcs-hmss-global
- qcom,sdm660-apcs-hmss-global
- qcom,sm4250-apcs-hmss-global
- qcom,sm6115-apcs-hmss-global
- qcom,sm6125-apcs-hmss-global
- const: qcom,msm8994-apcs-kpss-global
- items: - items:
- enum: - enum:
- qcom,sc7180-apss-shared - qcom,sc7180-apss-shared
...@@ -34,21 +52,14 @@ properties: ...@@ -34,21 +52,14 @@ properties:
- qcom,msm8916-apcs-kpss-global - qcom,msm8916-apcs-kpss-global
- qcom,msm8939-apcs-kpss-global - qcom,msm8939-apcs-kpss-global
- qcom,msm8953-apcs-kpss-global - qcom,msm8953-apcs-kpss-global
- qcom,msm8976-apcs-kpss-global
- qcom,msm8994-apcs-kpss-global - qcom,msm8994-apcs-kpss-global
- qcom,qcs404-apcs-apps-global
- qcom,sdx55-apcs-gcc - qcom,sdx55-apcs-gcc
- const: syscon - const: syscon
- enum: - enum:
- qcom,ipq6018-apcs-apps-global - qcom,ipq6018-apcs-apps-global
- qcom,msm8996-apcs-hmss-global - qcom,msm8996-apcs-hmss-global
- qcom,msm8998-apcs-hmss-global
- qcom,qcm2290-apcs-hmss-global - qcom,qcm2290-apcs-hmss-global
- qcom,sdm660-apcs-hmss-global
- qcom,sdm845-apss-shared - qcom,sdm845-apss-shared
- qcom,sm4250-apcs-hmss-global
- qcom,sm6115-apcs-hmss-global
- qcom,sm6125-apcs-hmss-global
reg: reg:
maxItems: 1 maxItems: 1
...@@ -79,20 +90,38 @@ allOf: ...@@ -79,20 +90,38 @@ allOf:
- if: - if:
properties: properties:
compatible: compatible:
enum: contains:
- qcom,msm8916-apcs-kpss-global enum:
- qcom,msm8939-apcs-kpss-global - qcom,msm8916-apcs-kpss-global
- qcom,qcs404-apcs-apps-global then:
properties:
clocks:
items:
- description: primary pll parent of the clock driver
- description: auxiliary parent
clock-names:
items:
- const: pll
- const: aux
- if:
properties:
compatible:
contains:
enum:
- qcom,msm8939-apcs-kpss-global
then: then:
properties: properties:
clocks: clocks:
items: items:
- description: primary pll parent of the clock driver - description: primary pll parent of the clock driver
- description: auxiliary parent - description: auxiliary parent
- description: reference clock
clock-names: clock-names:
items: items:
- const: pll - const: pll
- const: aux - const: aux
- const: ref
- if: - if:
properties: properties:
...@@ -112,6 +141,7 @@ allOf: ...@@ -112,6 +141,7 @@ allOf:
- const: ref - const: ref
- const: pll - const: pll
- const: aux - const: aux
- if: - if:
properties: properties:
compatible: compatible:
...@@ -136,16 +166,10 @@ allOf: ...@@ -136,16 +166,10 @@ allOf:
compatible: compatible:
enum: enum:
- qcom,msm8953-apcs-kpss-global - qcom,msm8953-apcs-kpss-global
- qcom,msm8976-apcs-kpss-global
- qcom,msm8994-apcs-kpss-global - qcom,msm8994-apcs-kpss-global
- qcom,msm8996-apcs-hmss-global - qcom,msm8996-apcs-hmss-global
- qcom,msm8998-apcs-hmss-global
- qcom,qcm2290-apcs-hmss-global - qcom,qcm2290-apcs-hmss-global
- qcom,sdm660-apcs-hmss-global
- qcom,sdm845-apss-shared - qcom,sdm845-apss-shared
- qcom,sm4250-apcs-hmss-global
- qcom,sm6115-apcs-hmss-global
- qcom,sm6125-apcs-hmss-global
then: then:
properties: properties:
clocks: false clocks: false
...@@ -191,7 +215,8 @@ examples: ...@@ -191,7 +215,8 @@ examples:
#define GCC_APSS_AHB_CLK_SRC 1 #define GCC_APSS_AHB_CLK_SRC 1
#define GCC_GPLL0_AO_OUT_MAIN 123 #define GCC_GPLL0_AO_OUT_MAIN 123
apcs: mailbox@b011000 { apcs: mailbox@b011000 {
compatible = "qcom,qcs404-apcs-apps-global", "syscon"; compatible = "qcom,qcs404-apcs-apps-global",
"qcom,msm8916-apcs-kpss-global", "syscon";
reg = <0x0b011000 0x1000>; reg = <0x0b011000 0x1000>;
#mbox-cells = <1>; #mbox-cells = <1>;
clocks = <&apcs_hfpll>, <&gcc GCC_GPLL0_AO_OUT_MAIN>; clocks = <&apcs_hfpll>, <&gcc GCC_GPLL0_AO_OUT_MAIN>;
......
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