Devicetree
 help / color / mirror / Atom feed
* [PATCH 0/3] arm64: dts: imx9x: Add fsl,max-link-speed to PCIe EP nodes
@ 2026-12-02 12:38 Stefan Ghetu
  2026-12-02 12:38 ` [PATCH 1/3] arm64: dts: imx95: " Stefan Ghetu
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Stefan Ghetu @ 2026-12-02 12:38 UTC (permalink / raw)
  To: Shawn Guo, Frank Li
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, Richard Zhu, devicetree,
	imx, linux-arm-kernel, LnxRevLi, Stefan Ghetu

The i.MX95, i.MX94 and i.MX943 PCIe endpoint nodes are missing
fsl,max-link-speed, while the RC nodes of the same controllers already
set it to <3>.

The pci-imx6 driver initializes pci->max_link_speed to 1 and only
overrides it from that property. During endpoint initialization,
dw_pcie_link_set_max_speed() then programs PCI_EXP_LNKCTL2_TLS and
PCI_EXP_LNKCAP_SLS to 2.5 GT/s, so the endpoint is limited to Gen1.

The EP nodes of older i.MX SoCs (i.MX8MM/8MQ/8MP/8QM/8QXP/8DXL) already
set this property. i.MX94 and i.MX943 reuse the i.MX95 EP driver data
through the "fsl,imx95-pcie-ep" fallback compatible.

Each patch carries its own Fixes: tag so it can be backported
independently.

Richard Zhu (1):
  arm64: dts: imx95: Add fsl,max-link-speed to PCIe EP nodes

Stefan Ghetu (2):
  arm64: dts: imx94: Add fsl,max-link-speed to PCIe EP node
  arm64: dts: imx943: Add fsl,max-link-speed to PCIe EP node

 arch/arm64/boot/dts/freescale/imx94.dtsi  | 1 +
 arch/arm64/boot/dts/freescale/imx943.dtsi | 1 +
 arch/arm64/boot/dts/freescale/imx95.dtsi  | 2 ++
 3 files changed, 4 insertions(+)


base-commit: d138596e9f822033490b2e577ec2ea64f2aa246c
-- 
2.53.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/3] arm64: dts: imx95: Add fsl,max-link-speed to PCIe EP nodes
  2026-12-02 12:38 [PATCH 0/3] arm64: dts: imx9x: Add fsl,max-link-speed to PCIe EP nodes Stefan Ghetu
@ 2026-12-02 12:38 ` Stefan Ghetu
  2026-12-02 12:38 ` [PATCH 2/3] arm64: dts: imx94: Add fsl,max-link-speed to PCIe EP node Stefan Ghetu
  2026-12-02 12:38 ` [PATCH 3/3] arm64: dts: imx943: " Stefan Ghetu
  2 siblings, 0 replies; 5+ messages in thread
From: Stefan Ghetu @ 2026-12-02 12:38 UTC (permalink / raw)
  To: Shawn Guo, Frank Li
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, Richard Zhu, devicetree,
	imx, linux-arm-kernel, LnxRevLi, Stefan Ghetu

From: Richard Zhu <hongxing.zhu@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@nxp.com>
Signed-off-by: Stefan Ghetu <stefan.ghetu@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@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@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


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/3] arm64: dts: imx94: Add fsl,max-link-speed to PCIe EP node
  2026-12-02 12:38 [PATCH 0/3] arm64: dts: imx9x: Add fsl,max-link-speed to PCIe EP nodes Stefan Ghetu
  2026-12-02 12:38 ` [PATCH 1/3] arm64: dts: imx95: " Stefan Ghetu
@ 2026-12-02 12:38 ` Stefan Ghetu
  2026-12-02 17:12   ` Frank Li
  2026-12-02 12:38 ` [PATCH 3/3] arm64: dts: imx943: " Stefan Ghetu
  2 siblings, 1 reply; 5+ messages in thread
From: Stefan Ghetu @ 2026-12-02 12:38 UTC (permalink / raw)
  To: Shawn Guo, Frank Li
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, Richard Zhu, devicetree,
	imx, linux-arm-kernel, LnxRevLi, Stefan Ghetu

The pci-imx6 driver initializes pci->max_link_speed to 1 and only
overrides it from the fsl,max-link-speed property. The i.MX94 PCIe EP
node does 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 node of the same controller already sets
fsl,max-link-speed = <3>. Add the same setting to the pcie0_ep node.

Fixes: 8cd439f177589 ("arm64: dts: imx94: Add pcie0 and pcie0-ep supports")
Signed-off-by: Stefan Ghetu <stefan.ghetu@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx94.dtsi | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/freescale/imx94.dtsi b/arch/arm64/boot/dts/freescale/imx94.dtsi
index b2bfe651b7be1..b3ddc7c796701 100644
--- a/arch/arm64/boot/dts/freescale/imx94.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx94.dtsi
@@ -1469,6 +1469,7 @@ pcie0_ep: pcie-ep@4c300000 {
 						 <&scmi_clk IMX94_CLK_SYSPLL1_PFD1_DIV2>;
 			msi-map = <0x0 &its 0x10 0x1>;
 			power-domains = <&scmi_devpd IMX94_PD_HSIO_TOP>;
+			fsl,max-link-speed = <3>;
 			status = "disabled";
 		};
 
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 3/3] arm64: dts: imx943: Add fsl,max-link-speed to PCIe EP node
  2026-12-02 12:38 [PATCH 0/3] arm64: dts: imx9x: Add fsl,max-link-speed to PCIe EP nodes Stefan Ghetu
  2026-12-02 12:38 ` [PATCH 1/3] arm64: dts: imx95: " Stefan Ghetu
  2026-12-02 12:38 ` [PATCH 2/3] arm64: dts: imx94: Add fsl,max-link-speed to PCIe EP node Stefan Ghetu
@ 2026-12-02 12:38 ` Stefan Ghetu
  2 siblings, 0 replies; 5+ messages in thread
From: Stefan Ghetu @ 2026-12-02 12:38 UTC (permalink / raw)
  To: Shawn Guo, Frank Li
  Cc: Rob Herring, Krzysztof Kozlowski, Conor Dooley, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, Richard Zhu, devicetree,
	imx, linux-arm-kernel, LnxRevLi, Stefan Ghetu

The pci-imx6 driver initializes pci->max_link_speed to 1 and only
overrides it from the fsl,max-link-speed property. The i.MX943 PCIe1
EP node does 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 node of the same controller already sets
fsl,max-link-speed = <3>. Add the same setting to the pcie1_ep node.

Fixes: fa6067fd8ea7b ("arm64: dts: imx943: Add pcie1 and pcie1-ep supports")
Signed-off-by: Stefan Ghetu <stefan.ghetu@nxp.com>
---
 arch/arm64/boot/dts/freescale/imx943.dtsi | 1 +
 1 file changed, 1 insertion(+)

diff --git a/arch/arm64/boot/dts/freescale/imx943.dtsi b/arch/arm64/boot/dts/freescale/imx943.dtsi
index a564488d9cd7d..211605e29bd8c 100644
--- a/arch/arm64/boot/dts/freescale/imx943.dtsi
+++ b/arch/arm64/boot/dts/freescale/imx943.dtsi
@@ -293,6 +293,7 @@ pcie1_ep: pcie-ep@4c380000 {
 						 <&scmi_clk IMX94_CLK_SYSPLL1_PFD1_DIV2>;
 			msi-map = <0x0 &its 0x98 0x1>;
 			power-domains = <&scmi_devpd IMX94_PD_HSIO_TOP>;
+			fsl,max-link-speed = <3>;
 			status = "disabled";
 		};
 	};
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 2/3] arm64: dts: imx94: Add fsl,max-link-speed to PCIe EP node
  2026-12-02 12:38 ` [PATCH 2/3] arm64: dts: imx94: Add fsl,max-link-speed to PCIe EP node Stefan Ghetu
@ 2026-12-02 17:12   ` Frank Li
  0 siblings, 0 replies; 5+ messages in thread
From: Frank Li @ 2026-12-02 17:12 UTC (permalink / raw)
  To: Stefan Ghetu
  Cc: Shawn Guo, Frank Li, Rob Herring, Krzysztof Kozlowski,
	Conor Dooley, Sascha Hauer, Pengutronix Kernel Team,
	Fabio Estevam, Richard Zhu, devicetree, imx, linux-arm-kernel,
	LnxRevLi

On Wed, Dec 02, 2026 at 02:38:05PM +0200, Stefan Ghetu wrote:
> The pci-imx6 driver initializes pci->max_link_speed to 1 and only
> overrides it from the fsl,max-link-speed property. The i.MX94 PCIe EP
> node does 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 node of the same controller already sets
> fsl,max-link-speed = <3>. Add the same setting to the pcie0_ep node.
>
> Fixes: 8cd439f177589 ("arm64: dts: imx94: Add pcie0 and pcie0-ep supports")
> Signed-off-by: Stefan Ghetu <stefan.ghetu@nxp.com>
> ---

This should put default value into imx6 pci driver data without duplicate
these information at each dts pcie node.

Frank

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-12-02 17:12 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-02 12:38 [PATCH 0/3] arm64: dts: imx9x: Add fsl,max-link-speed to PCIe EP nodes Stefan Ghetu
2026-12-02 12:38 ` [PATCH 1/3] arm64: dts: imx95: " Stefan Ghetu
2026-12-02 12:38 ` [PATCH 2/3] arm64: dts: imx94: Add fsl,max-link-speed to PCIe EP node Stefan Ghetu
2026-12-02 17:12   ` Frank Li
2026-12-02 12:38 ` [PATCH 3/3] arm64: dts: imx943: " Stefan Ghetu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox