Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <mark.kettenis@xs4all.nl>
Suggested-by: Rob Herring <robh@kernel.org>
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
[maz: added PHY registers, constraints]
Signed-off-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Tested-by: Janne Grunau <j@jannau.net>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Acked-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Acked-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Link: https://patch.msgid.link/20250401091713.2765724-3-maz@kernel.org

authored by

Alyssa Rosenzweig and committed by
Manivannan Sadhasivam
6b7f49be 751bec08

+26 -7
+26 -7
Documentation/devicetree/bindings/pci/apple,pcie.yaml
··· 17 17 implements its root ports. But the ATU found on most DesignWare 18 18 PCIe host bridges is absent. 19 19 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 + 20 24 All root ports share a single ECAM space, but separate GPIOs are 21 25 used to take the PCI devices on those ports out of reset. Therefore 22 26 the standard "reset-gpios" and "max-link-speed" properties appear on ··· 34 30 35 31 properties: 36 32 compatible: 37 - items: 38 - - enum: 39 - - apple,t8103-pcie 40 - - apple,t8112-pcie 41 - - apple,t6000-pcie 42 - - const: apple,pcie 33 + oneOf: 34 + - items: 35 + - enum: 36 + - apple,t8103-pcie 37 + - apple,t8112-pcie 38 + - apple,t6000-pcie 39 + - const: apple,pcie 40 + - const: apple,t6020-pcie 43 41 44 42 reg: 45 43 minItems: 3 46 - maxItems: 6 44 + maxItems: 10 47 45 48 46 reg-names: 49 47 minItems: 3 ··· 56 50 - const: port1 57 51 - const: port2 58 52 - const: port3 53 + - const: phy0 54 + - const: phy1 55 + - const: phy2 56 + - const: phy3 59 57 60 58 ranges: 61 59 minItems: 2 ··· 108 98 maxItems: 5 109 99 interrupts: 110 100 maxItems: 3 101 + - if: 102 + properties: 103 + compatible: 104 + contains: 105 + const: apple,t6020-pcie 106 + then: 107 + properties: 108 + reg-names: 109 + minItems: 10 111 110 112 111 examples: 113 112 - |