Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Ghetu <stefan.ghetu@nxp.com>
To: Shawn Guo <shawnguo@kernel.org>, Frank Li <Frank.Li@nxp.com>
Cc: Rob Herring <robh@kernel.org>,
	Krzysztof Kozlowski <krzk+dt@kernel.org>,
	Conor Dooley <conor+dt@kernel.org>,
	Sascha Hauer <s.hauer@pengutronix.de>,
	Pengutronix Kernel Team <kernel@pengutronix.de>,
	Fabio Estevam <festevam@gmail.com>,
	Richard Zhu <hongxing.zhu@nxp.com>,
	devicetree@vger.kernel.org, imx@lists.linux.dev,
	linux-arm-kernel@lists.infradead.org, LnxRevLi@nxp.com,
	Stefan Ghetu <stefan.ghetu@nxp.com>
Subject: [PATCH 3/3] arm64: dts: imx943: Add fsl,max-link-speed to PCIe EP node
Date: Wed,  2 Dec 2026 14:38:06 +0200	[thread overview]
Message-ID: <20261202123806.1212541-4-stefan.ghetu@nxp.com> (raw)
In-Reply-To: <20261202123806.1212541-1-stefan.ghetu@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.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



      parent reply	other threads:[~2026-12-02 12:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` Stefan Ghetu [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261202123806.1212541-4-stefan.ghetu@nxp.com \
    --to=stefan.ghetu@nxp.com \
    --cc=Frank.Li@nxp.com \
    --cc=LnxRevLi@nxp.com \
    --cc=conor+dt@kernel.org \
    --cc=devicetree@vger.kernel.org \
    --cc=festevam@gmail.com \
    --cc=hongxing.zhu@nxp.com \
    --cc=imx@lists.linux.dev \
    --cc=kernel@pengutronix.de \
    --cc=krzk+dt@kernel.org \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=robh@kernel.org \
    --cc=s.hauer@pengutronix.de \
    --cc=shawnguo@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox