Skip to content

Commit 6b7f49b

Browse files
alyssarosenzweigMani-Sadhasivam
authored andcommitted
dt-bindings: pci: apple,pcie: Add t6020 compatible string
t6020 adds some register ranges compared to t8103, so requires a new compatible as well as the new PHY registers. Thanks to Mark and Rob for their helpful suggestions in updating the binding. Suggested-by: Mark Kettenis <[email protected]> Suggested-by: Rob Herring <[email protected]> Signed-off-by: Alyssa Rosenzweig <[email protected]> [maz: added PHY registers, constraints] Signed-off-by: Marc Zyngier <[email protected]> Signed-off-by: Manivannan Sadhasivam <[email protected]> Tested-by: Janne Grunau <[email protected]> Reviewed-by: Rob Herring (Arm) <[email protected]> Acked-by: Manivannan Sadhasivam <[email protected]> Acked-by: Alyssa Rosenzweig <[email protected]> Link: https://patch.msgid.link/[email protected]
1 parent 751bec0 commit 6b7f49b

File tree

1 file changed

+26
-7
lines changed

1 file changed

+26
-7
lines changed

Documentation/devicetree/bindings/pci/apple,pcie.yaml

Lines changed: 26 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ description: |
1717
implements its root ports. But the ATU found on most DesignWare
1818
PCIe host bridges is absent.
1919
20+
On systems derived from T602x, the PHY registers are in a region
21+
separate from the port registers. In that case, there is one PHY
22+
register range per port register range.
23+
2024
All root ports share a single ECAM space, but separate GPIOs are
2125
used to take the PCI devices on those ports out of reset. Therefore
2226
the standard "reset-gpios" and "max-link-speed" properties appear on
@@ -30,16 +34,18 @@ description: |
3034
3135
properties:
3236
compatible:
33-
items:
34-
- enum:
35-
- apple,t8103-pcie
36-
- apple,t8112-pcie
37-
- apple,t6000-pcie
38-
- const: apple,pcie
37+
oneOf:
38+
- items:
39+
- enum:
40+
- apple,t8103-pcie
41+
- apple,t8112-pcie
42+
- apple,t6000-pcie
43+
- const: apple,pcie
44+
- const: apple,t6020-pcie
3945

4046
reg:
4147
minItems: 3
42-
maxItems: 6
48+
maxItems: 10
4349

4450
reg-names:
4551
minItems: 3
@@ -50,6 +56,10 @@ properties:
5056
- const: port1
5157
- const: port2
5258
- const: port3
59+
- const: phy0
60+
- const: phy1
61+
- const: phy2
62+
- const: phy3
5363

5464
ranges:
5565
minItems: 2
@@ -98,6 +108,15 @@ allOf:
98108
maxItems: 5
99109
interrupts:
100110
maxItems: 3
111+
- if:
112+
properties:
113+
compatible:
114+
contains:
115+
const: apple,t6020-pcie
116+
then:
117+
properties:
118+
reg-names:
119+
minItems: 10
101120

102121
examples:
103122
- |

0 commit comments

Comments
 (0)