Skip to content

Commit 42c2366

Browse files
committed
dt-bindings: pci: apple,pcie: Add t6000 support
This new SoC is compatible with the existing driver, but the block supports 4 downstream ports, so we need to adjust the binding to allow that. Reviewed-by: Mark Kettenis <[email protected]> Acked-by: Rob Herring <[email protected]> Signed-off-by: Hector Martin <[email protected]>
1 parent b66652c commit 42c2366

File tree

1 file changed

+21
-7
lines changed

1 file changed

+21
-7
lines changed

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

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,17 @@ description: |
2828
distributed over the root ports as the OS sees fit by programming
2929
the PCIe controller's port registers.
3030
31-
allOf:
32-
- $ref: /schemas/pci/pci-bus.yaml#
33-
- $ref: /schemas/interrupt-controller/msi-controller.yaml#
34-
3531
properties:
3632
compatible:
3733
items:
38-
- const: apple,t8103-pcie
34+
- enum:
35+
- apple,t8103-pcie
36+
- apple,t6000-pcie
3937
- const: apple,pcie
4038

4139
reg:
4240
minItems: 3
43-
maxItems: 5
41+
maxItems: 6
4442

4543
reg-names:
4644
minItems: 3
@@ -50,6 +48,7 @@ properties:
5048
- const: port0
5149
- const: port1
5250
- const: port2
51+
- const: port3
5352

5453
ranges:
5554
minItems: 2
@@ -59,7 +58,7 @@ properties:
5958
description:
6059
Interrupt specifiers, one for each root port.
6160
minItems: 1
62-
maxItems: 3
61+
maxItems: 4
6362

6463
msi-parent: true
6564

@@ -81,6 +80,21 @@ required:
8180

8281
unevaluatedProperties: false
8382

83+
allOf:
84+
- $ref: /schemas/pci/pci-bus.yaml#
85+
- $ref: /schemas/interrupt-controller/msi-controller.yaml#
86+
- if:
87+
properties:
88+
compatible:
89+
contains:
90+
const: apple,t8103-pcie
91+
then:
92+
properties:
93+
reg:
94+
maxItems: 5
95+
interrupts:
96+
maxItems: 3
97+
8498
examples:
8599
- |
86100
#include <dt-bindings/interrupt-controller/apple-aic.h>

0 commit comments

Comments
 (0)