Add support for AMD Versal2 CPM6 host bridge
cover Add support for AMD Versal2 CPM6 host bridge
Add the "amd,versal2-cpm6-host" compatible string to the AMD MDB PCIe host controller driver and its devicetree binding.
Sai Krishna Musham (2):
dt-bindings: PCI: Add compatible for AMD Versal2 CPM6 host bridge
PCI: amd-mdb: Add amd,versal2-cpm6-host compatible
.../devicetree/bindings/pci/amd,versal2-mdb-host.yaml | 4 +++- drivers/pci/controller/dwc/pcie-amd-mdb.c | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-)
Signature · 1 line
2.44.4
PATCH 1/2 dt-bindings: PCI: Add compatible for AMD Versal2 CPM6 host bridge
Add the "amd,versal2-cpm6-host" compatible string for AMD Versal2 CPM6 host bridge.
CPM6 integrates a Synopsys DesignWare PCIe Root Port controller derived from the same IP family as the existing MDB host bridge, but uses a newer IP revision, supports PCIe Gen6 operation up to 64 GT/s per lane and has differences in register layout.
A separate compatible string is required to accurately describe the CPM6 hardware and allow software to distinguish it from the MDB-based host bridge.
--- .../devicetree/bindings/pci/amd,versal2-mdb-host.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
Documentation/devicetree/bindings/pci/amd,versal2-mdb-host.yaml +3 -1
@@ -15,7 +15,9 @@ allOf: properties: compatible: - const: amd,versal2-mdb-host + enum: + - amd,versal2-mdb-host + - amd,versal2-cpm6-host reg: items:
Signature · 1 line
2.44.4
Re: [PATCH 1/2] dt-bindings: PCI: Add compatible for AMD Versal2 CPM6 host bridge
Quoted 22 lines · Sai Krishna Musham
Add the "amd,versal2-cpm6-host" compatible string for AMD Versal2 CPM6 host bridge.
CPM6 integrates a Synopsys DesignWare PCIe Root Port controller derived from the same IP family as the existing MDB host bridge, but uses a newer IP revision, supports PCIe Gen6 operation up to 64 GT/s per lane and has differences in register layout.
A separate compatible string is required to accurately describe the CPM6 hardware and allow software to distinguish it from the MDB-based host bridge.
Signed-off-by Sai Krishna Musham <[email protected]>--- .../devicetree/bindings/pci/amd,versal2-mdb-host.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)Documentation/devicetree/bindings/pci/amd,versal2-mdb-host.yaml +0
-0
Documentation/devicetree/bindings/pci/amd,versal2-mdb-host.yaml allOf: · line 20
Quoted 7 lines
Documentation/devicetree/bindings/pci/amd,versal2-mdb-host.yaml +3
-1@@ -15,7 +15,9 @@ allOf: properties: compatible: - const: amd,versal2-mdb-host + enum: + - amd,versal2-mdb-host + - amd,versal2-cpm6-host
Why reversed alphabetical order?
Best regards,
Krzysztof
PATCH 2/2 PCI: amd-mdb: Add amd,versal2-cpm6-host compatible
In reply to Sai Krishna MushamAdd "amd,versal2-cpm6-host" to the OF match table of the AMD MDB PCIe host controller driver.
The Versal2 CPM6 host controller is DesignWare-based and supports PCIe Gen6 operation at up to 64 GT/s per lane. It is currently handled by the same driver and match data (NULL) as the existing MDB host controller, but CPM6 uses a newer IP revision and differs in legacy INTx register offsets.
Use a separate compatible to allow CPM6-specific handling once legacy interrupt support is validated.
--- drivers/pci/controller/dwc/pcie-amd-mdb.c | 3 +++ 1 file changed, 3 insertions(+)
drivers/pci/controller/dwc/pcie-amd-mdb.c +3 -0
@@ -511,6 +511,9 @@ static const struct of_device_id amd_mdb_pcie_of_match[] = { { .compatible = "amd,versal2-mdb-host", }, + { + .compatible = "amd,versal2-cpm6-host", + }, {}, };
Signature · 1 line
2.44.4
Re: [PATCH 2/2] PCI: amd-mdb: Add amd,versal2-cpm6-host compatible
Quoted 22 lines · Sai Krishna Musham
Add "amd,versal2-cpm6-host" to the OF match table of the AMD MDB PCIe host controller driver.
The Versal2 CPM6 host controller is DesignWare-based and supports PCIe Gen6 operation at up to 64 GT/s per lane. It is currently handled by the same driver and match data (NULL) as the existing MDB host controller, but CPM6 uses a newer IP revision and differs in legacy INTx register offsets.
Use a separate compatible to allow CPM6-specific handling once legacy interrupt support is validated.
Signed-off-by Sai Krishna Musham <[email protected]>--- drivers/pci/controller/dwc/pcie-amd-mdb.c | 3 +++ 1 file changed, 3 insertions(+)drivers/pci/controller/dwc/pcie-amd-mdb.c +0
-0
drivers/pci/controller/dwc/pcie-amd-mdb.c static const struct of_device_id amd_mdb_pcie_of_match[] = { · line 516
Quoted 6 lines
drivers/pci/controller/dwc/pcie-amd-mdb.c +3
-0@@ -511,6 +511,9 @@ static const struct of_device_id amd_mdb_pcie_of_match[] = { { .compatible = "amd,versal2-mdb-host", }, + { + .compatible = "amd,versal2-cpm6-host", + },
So devices are fully compatible. Fix your compatibility in the binding and drop this.
Best regards,
Krzysztof
Manivannan Sadhasivam
maintainerRe: [PATCH 2/2] PCI: amd-mdb: Add amd,versal2-cpm6-host compatible
In reply to Sai Krishna MushamQuoted 22 lines · Sai Krishna Musham
Add "amd,versal2-cpm6-host" to the OF match table of the AMD MDB PCIe host controller driver.
The Versal2 CPM6 host controller is DesignWare-based and supports PCIe Gen6 operation at up to 64 GT/s per lane. It is currently handled by the same driver and match data (NULL) as the existing MDB host controller, but CPM6 uses a newer IP revision and differs in legacy INTx register offsets.
Use a separate compatible to allow CPM6-specific handling once legacy interrupt support is validated.
Signed-off-by Sai Krishna Musham <[email protected]>--- drivers/pci/controller/dwc/pcie-amd-mdb.c | 3 +++ 1 file changed, 3 insertions(+)drivers/pci/controller/dwc/pcie-amd-mdb.c +0
-0
drivers/pci/controller/dwc/pcie-amd-mdb.c static const struct of_device_id amd_mdb_pcie_of_match[] = { · line 515
Quoted 5 lines
drivers/pci/controller/dwc/pcie-amd-mdb.c +2
-0@@ -511,6 +511,9 @@ static const struct of_device_id amd_mdb_pcie_of_match[] = { { .compatible = "amd,versal2-mdb-host", }, + { + .compatible = "amd,versal2-cpm6-host",
As Krzysztof commented, if the PCIe IP is compatible with an older version, 'amd,versal2-mdb-host' in this case, you don't need to add the new compatible to the driver. Just document the new one with fallback to the old compatible in the binding and let the driver work with the old compatible.
- Mani
Signature · 1 line
மணிவண்ணன் சதாசிவம்
RE: [PATCH 2/2] PCI: amd-mdb: Add amd,versal2-cpm6-host compatible
[Public]
Hi Krzysztof/Manivannan,
Quoted 44 lines
-----Original Message-----
From: Manivannan Sadhasivam <[email protected]>
Sent: Saturday, April 4, 2026 8:46 AM
To: Musham, Sai Krishna <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; [email protected]; Simek, Michal <[email protected]>; Gogada, Bharat Kumar <[email protected]>; Havalige, Thippeswamy <[email protected]>
Subject: Re: [PATCH 2/2] PCI: amd-mdb: Add amd,versal2-cpm6-host compatibleQuoted 12 lines · Sai Krishna Musham
Add "amd,versal2-cpm6-host" to the OF match table of the AMD MDB PCIe host controller driver.
The Versal2 CPM6 host controller is DesignWare-based and supports PCIe Gen6 operation at up to 64 GT/s per lane. It is currently handled by the same driver and match data (NULL) as the existing MDB host controller, but CPM6 uses a newer IP revision and differs in legacy INTx register offsets.
Use a separate compatible to allow CPM6-specific handling once legacy interrupt support is validated.
Review
Quoted 6 lines
Signed-off-by Sai Krishna Musham <[email protected]>--- drivers/pci/controller/dwc/pcie-amd-mdb.c | 3 +++ 1 file changed, 3 insertions(+)(quoted diff) +0
-0
b/drivers/pci/controller/dwc/pcie-amd-mdb.cdrivers/pci/controller/dwc/pcie-amd-mdb.c static const struct of_device_id
Quoted 4 lines
index
3c6e837465bb..325bf7aad657100644drivers/pci/controller/dwc/pcie-amd-mdb.c +0
-0@@ -511,6 +511,9 @@ static const struct of_device_idamd_mdb_pcie_of_match[] = {
drivers/pci/controller/dwc/pcie-amd-mdb.c static const struct of_device_id amd_mdb_pcie_of_match[] = { · line 515
Quoted 5 lines
drivers/pci/controller/dwc/pcie-amd-mdb.c +2
-0{ .compatible = "amd,versal2-mdb-host", }, + { + .compatible = "amd,versal2-cpm6-host",
Quoted 7 lines
As Krzysztof commented, if the PCIe IP is compatible with an older version, 'amd,versal2-mdb-host' in this case, you don't need to add the new compatible
to the driver. Just document the new one with fallback to the old compatible in
the binding and let the driver work with the old compatible.
Thanks for the review. CPM6 uses a different DesignWare IP revision and has differences in legacy interrupt register offsets. I will send a follow-up patch to address these.
Quoted 4 lines
- Mani
--
மணிவண்ணன் சதாசிவம்
Regards,
Sai Krishna