<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">From 1b5a2dd9e266d78d5fddd7e6b116e47ba9577b5e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pali=20Roh=C3=A1r?= &lt;pali@kernel.org&gt;
Date: Thu, 30 Apr 2020 10:06:25 +0200
Subject: [PATCH] arm64: dts: marvell: armada-37xx: Move PCIe max-link-speed
 property
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Move the max-link-speed property of the PCIe node from board specific
device tree files to the generic armada-37xx.dtsi.

Armada 37xx supports only PCIe gen2 speed so max-link-speed property
should be in the generic armada-37xx.dtsi file.

Signed-off-by: Pali RohÃ¡r &lt;pali@kernel.org&gt;
Tested-by: Tomasz Maciej Nowak &lt;tmn505@gmail.com&gt;
Acked-by: Thomas Petazzoni &lt;thomas.petazzoni@bootlin.com&gt;
Signed-off-by: Gregory CLEMENT &lt;gregory.clement@bootlin.com&gt;
---
 arch/arm64/boot/dts/marvell/armada-3720-turris-mox.dts | 1 -
 arch/arm64/boot/dts/marvell/armada-37xx.dtsi           | 1 +
 2 files changed, 1 insertion(+), 1 deletion(-)

--- a/arch/arm64/boot/dts/marvell/armada-3720-turris-mox.dts
+++ b/arch/arm64/boot/dts/marvell/armada-3720-turris-mox.dts
@@ -135,7 +135,6 @@
 	pinctrl-names = "default";
 	pinctrl-0 = &lt;&amp;pcie_reset_pins &amp;pcie_clkreq_pins&gt;;
 	status = "okay";
-	max-link-speed = &lt;2&gt;;
 	reset-gpios = &lt;&amp;gpiosb 3 GPIO_ACTIVE_LOW&gt;;
 	/*
 	 * U-Boot port for Turris Mox has a bug which always expects that "ranges" DT property
--- a/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
+++ b/arch/arm64/boot/dts/marvell/armada-37xx.dtsi
@@ -501,6 +501,7 @@
 					&lt;0 0 0 2 &amp;pcie_intc 1&gt;,
 					&lt;0 0 0 3 &amp;pcie_intc 2&gt;,
 					&lt;0 0 0 4 &amp;pcie_intc 3&gt;;
+			max-link-speed = &lt;2&gt;;
 			phys = &lt;&amp;comphy1 0&gt;;
 			pcie_intc: interrupt-controller {
 				interrupt-controller;
</pre></body></html>