* [PATCH 0/2] Add support for AMD Versal2 CPM6 host bridge
@ 2026-04-02 18:00 Sai Krishna Musham
2026-04-02 18:00 ` [PATCH 1/2] dt-bindings: PCI: Add compatible " Sai Krishna Musham
2026-04-02 18:00 ` [PATCH 2/2] PCI: amd-mdb: Add amd,versal2-cpm6-host compatible Sai Krishna Musham
0 siblings, 2 replies; 6+ messages in thread
From: Sai Krishna Musham @ 2026-04-02 18:00 UTC (permalink / raw)
To: bhelgaas, lpieralisi, kw, mani, robh, krzk+dt, conor+dt, cassel
Cc: linux-pci, devicetree, linux-kernel, michal.simek,
bharat.kumar.gogada, thippeswamy.havalige, sai.krishna.musham
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(-)
--
2.44.4
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 1/2] dt-bindings: PCI: Add compatible for AMD Versal2 CPM6 host bridge
2026-04-02 18:00 [PATCH 0/2] Add support for AMD Versal2 CPM6 host bridge Sai Krishna Musham
@ 2026-04-02 18:00 ` Sai Krishna Musham
2026-04-02 18:07 ` Krzysztof Kozlowski
2026-04-02 18:00 ` [PATCH 2/2] PCI: amd-mdb: Add amd,versal2-cpm6-host compatible Sai Krishna Musham
1 sibling, 1 reply; 6+ messages in thread
From: Sai Krishna Musham @ 2026-04-02 18:00 UTC (permalink / raw)
To: bhelgaas, lpieralisi, kw, mani, robh, krzk+dt, conor+dt, cassel
Cc: linux-pci, devicetree, linux-kernel, michal.simek,
bharat.kumar.gogada, thippeswamy.havalige, 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 <sai.krishna.musham@amd.com>
---
.../devicetree/bindings/pci/amd,versal2-mdb-host.yaml | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/Documentation/devicetree/bindings/pci/amd,versal2-mdb-host.yaml b/Documentation/devicetree/bindings/pci/amd,versal2-mdb-host.yaml
index 406c15e1dee1..be5a77908d24 100644
--- a/Documentation/devicetree/bindings/pci/amd,versal2-mdb-host.yaml
+++ b/Documentation/devicetree/bindings/pci/amd,versal2-mdb-host.yaml
@@ -15,7 +15,9 @@ allOf:
properties:
compatible:
- const: amd,versal2-mdb-host
+ enum:
+ - amd,versal2-mdb-host
+ - amd,versal2-cpm6-host
reg:
items:
--
2.44.4
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [PATCH 1/2] dt-bindings: PCI: Add compatible for AMD Versal2 CPM6 host bridge
2026-04-02 18:00 ` [PATCH 1/2] dt-bindings: PCI: Add compatible " Sai Krishna Musham
@ 2026-04-02 18:07 ` Krzysztof Kozlowski
0 siblings, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2026-04-02 18:07 UTC (permalink / raw)
To: Sai Krishna Musham, bhelgaas, lpieralisi, kw, mani, robh, krzk+dt,
conor+dt, cassel
Cc: linux-pci, devicetree, linux-kernel, michal.simek,
bharat.kumar.gogada, thippeswamy.havalige
On 02/04/2026 20:00, Sai Krishna Musham wrote:
> 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 <sai.krishna.musham@amd.com>
> ---
> .../devicetree/bindings/pci/amd,versal2-mdb-host.yaml | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/Documentation/devicetree/bindings/pci/amd,versal2-mdb-host.yaml b/Documentation/devicetree/bindings/pci/amd,versal2-mdb-host.yaml
> index 406c15e1dee1..be5a77908d24 100644
> --- a/Documentation/devicetree/bindings/pci/amd,versal2-mdb-host.yaml
> +++ b/Documentation/devicetree/bindings/pci/amd,versal2-mdb-host.yaml
> @@ -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
^ permalink raw reply [flat|nested] 6+ messages in thread
* [PATCH 2/2] PCI: amd-mdb: Add amd,versal2-cpm6-host compatible
2026-04-02 18:00 [PATCH 0/2] Add support for AMD Versal2 CPM6 host bridge Sai Krishna Musham
2026-04-02 18:00 ` [PATCH 1/2] dt-bindings: PCI: Add compatible " Sai Krishna Musham
@ 2026-04-02 18:00 ` Sai Krishna Musham
2026-04-02 18:08 ` Krzysztof Kozlowski
2026-04-04 3:15 ` Manivannan Sadhasivam
1 sibling, 2 replies; 6+ messages in thread
From: Sai Krishna Musham @ 2026-04-02 18:00 UTC (permalink / raw)
To: bhelgaas, lpieralisi, kw, mani, robh, krzk+dt, conor+dt, cassel
Cc: linux-pci, devicetree, linux-kernel, michal.simek,
bharat.kumar.gogada, thippeswamy.havalige, 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 <sai.krishna.musham@amd.com>
---
drivers/pci/controller/dwc/pcie-amd-mdb.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/pci/controller/dwc/pcie-amd-mdb.c b/drivers/pci/controller/dwc/pcie-amd-mdb.c
index 3c6e837465bb..325bf7aad657 100644
--- a/drivers/pci/controller/dwc/pcie-amd-mdb.c
+++ b/drivers/pci/controller/dwc/pcie-amd-mdb.c
@@ -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",
+ },
{},
};
--
2.44.4
^ permalink raw reply related [flat|nested] 6+ messages in thread* Re: [PATCH 2/2] PCI: amd-mdb: Add amd,versal2-cpm6-host compatible
2026-04-02 18:00 ` [PATCH 2/2] PCI: amd-mdb: Add amd,versal2-cpm6-host compatible Sai Krishna Musham
@ 2026-04-02 18:08 ` Krzysztof Kozlowski
2026-04-04 3:15 ` Manivannan Sadhasivam
1 sibling, 0 replies; 6+ messages in thread
From: Krzysztof Kozlowski @ 2026-04-02 18:08 UTC (permalink / raw)
To: Sai Krishna Musham, bhelgaas, lpieralisi, kw, mani, robh, krzk+dt,
conor+dt, cassel
Cc: linux-pci, devicetree, linux-kernel, michal.simek,
bharat.kumar.gogada, thippeswamy.havalige
On 02/04/2026 20:00, Sai Krishna Musham wrote:
> 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 <sai.krishna.musham@amd.com>
> ---
> drivers/pci/controller/dwc/pcie-amd-mdb.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/pci/controller/dwc/pcie-amd-mdb.c b/drivers/pci/controller/dwc/pcie-amd-mdb.c
> index 3c6e837465bb..325bf7aad657 100644
> --- a/drivers/pci/controller/dwc/pcie-amd-mdb.c
> +++ b/drivers/pci/controller/dwc/pcie-amd-mdb.c
> @@ -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
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [PATCH 2/2] PCI: amd-mdb: Add amd,versal2-cpm6-host compatible
2026-04-02 18:00 ` [PATCH 2/2] PCI: amd-mdb: Add amd,versal2-cpm6-host compatible Sai Krishna Musham
2026-04-02 18:08 ` Krzysztof Kozlowski
@ 2026-04-04 3:15 ` Manivannan Sadhasivam
1 sibling, 0 replies; 6+ messages in thread
From: Manivannan Sadhasivam @ 2026-04-04 3:15 UTC (permalink / raw)
To: Sai Krishna Musham
Cc: bhelgaas, lpieralisi, kw, robh, krzk+dt, conor+dt, cassel,
linux-pci, devicetree, linux-kernel, michal.simek,
bharat.kumar.gogada, thippeswamy.havalige
On Thu, Apr 02, 2026 at 11:30:06PM +0530, Sai Krishna Musham wrote:
> 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 <sai.krishna.musham@amd.com>
> ---
> drivers/pci/controller/dwc/pcie-amd-mdb.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/pci/controller/dwc/pcie-amd-mdb.c b/drivers/pci/controller/dwc/pcie-amd-mdb.c
> index 3c6e837465bb..325bf7aad657 100644
> --- a/drivers/pci/controller/dwc/pcie-amd-mdb.c
> +++ b/drivers/pci/controller/dwc/pcie-amd-mdb.c
> @@ -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
--
மணிவண்ணன் சதாசிவம்
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2026-04-04 3:16 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-02 18:00 [PATCH 0/2] Add support for AMD Versal2 CPM6 host bridge Sai Krishna Musham
2026-04-02 18:00 ` [PATCH 1/2] dt-bindings: PCI: Add compatible " Sai Krishna Musham
2026-04-02 18:07 ` Krzysztof Kozlowski
2026-04-02 18:00 ` [PATCH 2/2] PCI: amd-mdb: Add amd,versal2-cpm6-host compatible Sai Krishna Musham
2026-04-02 18:08 ` Krzysztof Kozlowski
2026-04-04 3:15 ` Manivannan Sadhasivam
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox