Skip to content

Commit 6822b0c

Browse files
Odelu KukatlaGeorgi Djakov
authored andcommitted
dt-bindings: interconnect: add clock property to enable QOS on SC7280
Add clock property to enable the clocks required for accessing QoS configuration registers. Signed-off-by: Odelu Kukatla <[email protected]> Acked-by: "Rob Herring (Arm)" <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Georgi Djakov <[email protected]>
1 parent 1613e60 commit 6822b0c

File tree

1 file changed

+53
-0
lines changed

1 file changed

+53
-0
lines changed

Documentation/devicetree/bindings/interconnect/qcom,sc7280-rpmh.yaml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,10 @@ properties:
3535
reg:
3636
maxItems: 1
3737

38+
clocks:
39+
minItems: 1
40+
maxItems: 2
41+
3842
required:
3943
- compatible
4044

@@ -53,10 +57,50 @@ allOf:
5357
required:
5458
- reg
5559

60+
- if:
61+
properties:
62+
compatible:
63+
contains:
64+
enum:
65+
- qcom,sc7280-aggre1-noc
66+
then:
67+
properties:
68+
clocks:
69+
items:
70+
- description: aggre UFS PHY AXI clock
71+
- description: aggre USB3 PRIM AXI clock
72+
73+
- if:
74+
properties:
75+
compatible:
76+
contains:
77+
enum:
78+
- qcom,sc7280-aggre2-noc
79+
then:
80+
properties:
81+
clocks:
82+
items:
83+
- description: RPMH CC IPA clock
84+
85+
- if:
86+
properties:
87+
compatible:
88+
contains:
89+
enum:
90+
- qcom,sc7280-aggre1-noc
91+
- qcom,sc7280-aggre2-noc
92+
then:
93+
required:
94+
- clocks
95+
else:
96+
properties:
97+
clocks: false
98+
5699
unevaluatedProperties: false
57100

58101
examples:
59102
- |
103+
#include <dt-bindings/clock/qcom,gcc-sc7280.h>
60104
interconnect {
61105
compatible = "qcom,sc7280-clk-virt";
62106
#interconnect-cells = <2>;
@@ -69,3 +113,12 @@ examples:
69113
#interconnect-cells = <2>;
70114
qcom,bcm-voters = <&apps_bcm_voter>;
71115
};
116+
117+
interconnect@16e0000 {
118+
reg = <0x016e0000 0x1c080>;
119+
compatible = "qcom,sc7280-aggre1-noc";
120+
#interconnect-cells = <2>;
121+
qcom,bcm-voters = <&apps_bcm_voter>;
122+
clocks = <&gcc GCC_AGGRE_UFS_PHY_AXI_CLK>,
123+
<&gcc GCC_AGGRE_USB3_PRIM_AXI_CLK>;
124+
};

0 commit comments

Comments
 (0)