Commit 42c2366a authored by Hector Martin's avatar Hector Martin
Browse files

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: default avatarMark Kettenis <kettenis@openbsd.org>
Acked-by: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarHector Martin <marcan@marcan.st>
parent b66652c7
Loading
Loading
Loading
Loading
+21 −7
Original line number Diff line number Diff line
@@ -28,19 +28,17 @@ description: |
  distributed over the root ports as the OS sees fit by programming
  the PCIe controller's port registers.

allOf:
  - $ref: /schemas/pci/pci-bus.yaml#
  - $ref: /schemas/interrupt-controller/msi-controller.yaml#

properties:
  compatible:
    items:
      - const: apple,t8103-pcie
      - enum:
          - apple,t8103-pcie
          - apple,t6000-pcie
      - const: apple,pcie

  reg:
    minItems: 3
    maxItems: 5
    maxItems: 6

  reg-names:
    minItems: 3
@@ -50,6 +48,7 @@ properties:
      - const: port0
      - const: port1
      - const: port2
      - const: port3

  ranges:
    minItems: 2
@@ -59,7 +58,7 @@ properties:
    description:
      Interrupt specifiers, one for each root port.
    minItems: 1
    maxItems: 3
    maxItems: 4

  msi-parent: true

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

unevaluatedProperties: false

allOf:
  - $ref: /schemas/pci/pci-bus.yaml#
  - $ref: /schemas/interrupt-controller/msi-controller.yaml#
  - if:
      properties:
        compatible:
          contains:
            const: apple,t8103-pcie
    then:
      properties:
        reg:
          maxItems: 5
        interrupts:
          maxItems: 3

examples:
  - |
    #include <dt-bindings/interrupt-controller/apple-aic.h>