Skip to content

Commit 8dffa87

Browse files
Mani-Sadhasivambjorn-helgaas
authored andcommitted
dt-bindings: PCI: qcom-ep: Define clocks per platform
In preparation for adding the bindings for future SoCs, define the clocks per platform. Link: https://lore.kernel.org/r/20220914075350.7992-11-manivannan.sadhasivam@linaro.org Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
1 parent aa4b175 commit 8dffa87

File tree

1 file changed

+31
-19
lines changed

1 file changed

+31
-19
lines changed

Documentation/devicetree/bindings/pci/qcom,pcie-ep.yaml

Lines changed: 31 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ title: Qualcomm PCIe Endpoint Controller binding
99
maintainers:
1010
- Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
1111

12-
allOf:
13-
- $ref: "pci-ep.yaml#"
14-
1512
properties:
1613
compatible:
1714
const: qcom,sdx55-pcie-ep
@@ -35,24 +32,10 @@ properties:
3532
- const: mmio
3633

3734
clocks:
38-
items:
39-
- description: PCIe Auxiliary clock
40-
- description: PCIe CFG AHB clock
41-
- description: PCIe Master AXI clock
42-
- description: PCIe Slave AXI clock
43-
- description: PCIe Slave Q2A AXI clock
44-
- description: PCIe Sleep clock
45-
- description: PCIe Reference clock
35+
maxItems: 7
4636

4737
clock-names:
48-
items:
49-
- const: aux
50-
- const: cfg
51-
- const: bus_master
52-
- const: bus_slave
53-
- const: slave_q2a
54-
- const: sleep
55-
- const: ref
38+
maxItems: 7
5639

5740
qcom,perst-regs:
5841
description: Reference to a syscon representing TCSR followed by the two
@@ -112,6 +95,35 @@ required:
11295
- reset-names
11396
- power-domains
11497

98+
allOf:
99+
- $ref: pci-ep.yaml#
100+
- if:
101+
properties:
102+
compatible:
103+
contains:
104+
enum:
105+
- qcom,sdx55-pcie-ep
106+
then:
107+
properties:
108+
clocks:
109+
items:
110+
- description: PCIe Auxiliary clock
111+
- description: PCIe CFG AHB clock
112+
- description: PCIe Master AXI clock
113+
- description: PCIe Slave AXI clock
114+
- description: PCIe Slave Q2A AXI clock
115+
- description: PCIe Sleep clock
116+
- description: PCIe Reference clock
117+
clock-names:
118+
items:
119+
- const: aux
120+
- const: cfg
121+
- const: bus_master
122+
- const: bus_slave
123+
- const: slave_q2a
124+
- const: sleep
125+
- const: ref
126+
115127
unevaluatedProperties: false
116128

117129
examples:

0 commit comments

Comments
 (0)