[PATCH 1/3] arm64: dts: imx95: Add fsl,max-link-speed to PCIe EP nodes
Stefan Ghetu
stefan.ghetu at nxp.com
Wed Dec 2 04:38:04 PST 2026
From: Richard Zhu <hongxing.zhu at nxp.com>
The pci-imx6 driver initializes pci->max_link_speed to 1 and only
overrides it from the fsl,max-link-speed property. The i.MX95 PCIe EP
nodes do not set this property.
During endpoint initialization, dw_pcie_ep_init_registers() calls
dw_pcie_setup() through dw_pcie_ep_init_non_sticky_registers(), and
dw_pcie_link_set_max_speed() then programs PCI_EXP_LNKCTL2_TLS and
PCI_EXP_LNKCAP_SLS to 2.5 GT/s. As a result, the endpoint is limited
to Gen1.
The RC nodes of the same controllers already set
fsl,max-link-speed = <3>. Add the same setting to the pcie0_ep and
pcie1_ep nodes.
Fixes: 3b1d5deb29ffd ("arm64: dts: imx95: add pcie[0,1] and pcie-ep[0,1] support")
Signed-off-by: Richard Zhu <hongxing.zhu at nxp.com>
Signed-off-by: Stefan Ghetu <stefan.ghetu at nxp.com>
---
arch/arm64/boot/dts/freescale/imx95.dtsi | 2 ++
1 file changed, 2 insertions(+)
diff --git a/arch/arm64/boot/dts/freescale/imx95.dtsi b/arch/arm64/boot/dts/freescale/imx95.dtsi
index ed5f4759f05ea..5e039f8d8191d 100644
--- a/arch/arm64/boot/dts/freescale/imx95.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx95.dtsi
@@ -2024,6 +2024,7 @@ pcie0_ep: pcie-ep at 4c300000 {
<&scmi_clk IMX95_CLK_SYSPLL1_PFD1_DIV2>;
msi-map = <0x0 &its 0x10 0x1>;
power-domains = <&scmi_devpd IMX95_PD_HSIO_TOP>;
+ fsl,max-link-speed = <3>;
status = "disabled";
};
@@ -2117,6 +2118,7 @@ pcie1_ep: pcie-ep at 4c380000 {
<&scmi_clk IMX95_CLK_SYSPLL1_PFD1_DIV2>;
msi-map = <0x0 &its 0x98 0x1>;
power-domains = <&scmi_devpd IMX95_PD_HSIO_TOP>;
+ fsl,max-link-speed = <3>;
status = "disabled";
};
--
2.53.0
More information about the linux-arm-kernel
mailing list