devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] ARM: dts: gemini: ns2502: permit to use gigabit
@ 2022-01-15 10:04 Corentin Labbe
  2022-01-15 10:04 ` [PATCH 2/2] ARM: dts: gemini: ssi1328: " Corentin Labbe
  2022-01-29  1:21 ` [PATCH 1/2] ARM: dts: gemini: ns2502: " Linus Walleij
  0 siblings, 2 replies; 3+ messages in thread
From: Corentin Labbe @ 2022-01-15 10:04 UTC (permalink / raw)
  To: linus.walleij, robh+dt, ulli.kroll
  Cc: devicetree, linux-arm-kernel, linux-kernel, Corentin Labbe

I believed that gigabit was not working due to some unknown missing GPIO.
In fact, gigabit worked when REALTEK_PHY was compiled out.
So the problem was due to PHY delay and we need to use rgmii-id.

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
---
 arch/arm/boot/dts/gemini-ns2502.dts | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/arch/arm/boot/dts/gemini-ns2502.dts b/arch/arm/boot/dts/gemini-ns2502.dts
index 37e5debb693c..c759c4c732ab 100644
--- a/arch/arm/boot/dts/gemini-ns2502.dts
+++ b/arch/arm/boot/dts/gemini-ns2502.dts
@@ -39,10 +39,6 @@ mdio0: mdio {
 		phy0: ethernet-phy@1 {
 			reg = <1>;
 			device_type = "ethernet-phy";
-			/* We lack the knowledge of necessary GPIO to achieve
-			 * Gigabit
-			 */
-			max-speed = <100>;
 		};
 	};
 };
@@ -50,7 +46,7 @@ phy0: ethernet-phy@1 {
 &ethernet {
 	status = "okay";
 	ethernet-port@0 {
-		phy-mode = "rgmii";
+		phy-mode = "rgmii-id";
 		phy-handle = <&phy0>;
 		mac-address = [00 1F 1F 8E 65 E2];
 	};
-- 
2.34.1


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

* [PATCH 2/2] ARM: dts: gemini: ssi1328: permit to use gigabit
  2022-01-15 10:04 [PATCH 1/2] ARM: dts: gemini: ns2502: permit to use gigabit Corentin Labbe
@ 2022-01-15 10:04 ` Corentin Labbe
  2022-01-29  1:21 ` [PATCH 1/2] ARM: dts: gemini: ns2502: " Linus Walleij
  1 sibling, 0 replies; 3+ messages in thread
From: Corentin Labbe @ 2022-01-15 10:04 UTC (permalink / raw)
  To: linus.walleij, robh+dt, ulli.kroll
  Cc: devicetree, linux-arm-kernel, linux-kernel, Corentin Labbe

I believed that gigabit was not working due to unknown missing GPIO.
But the problem was due to Marvell PHY incorrectly setting delay.
Now it is fixed, gigabit works.

Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
---
 arch/arm/boot/dts/gemini-ssi1328.dts | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/arch/arm/boot/dts/gemini-ssi1328.dts b/arch/arm/boot/dts/gemini-ssi1328.dts
index 113feb1c4922..bb85f1febe9d 100644
--- a/arch/arm/boot/dts/gemini-ssi1328.dts
+++ b/arch/arm/boot/dts/gemini-ssi1328.dts
@@ -40,10 +40,6 @@ mdio0: mdio {
 		phy0: ethernet-phy@1 {
 			reg = <1>;
 			device_type = "ethernet-phy";
-			/* We lack the knowledge of necessary GPIO to achieve
-			 * Gigabit
-			 */
-			max-speed = <100>;
 		};
 		/* WAN ICPlus IP101A */
 		phy1: ethernet-phy@2 {
-- 
2.34.1


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

* Re: [PATCH 1/2] ARM: dts: gemini: ns2502: permit to use gigabit
  2022-01-15 10:04 [PATCH 1/2] ARM: dts: gemini: ns2502: permit to use gigabit Corentin Labbe
  2022-01-15 10:04 ` [PATCH 2/2] ARM: dts: gemini: ssi1328: " Corentin Labbe
@ 2022-01-29  1:21 ` Linus Walleij
  1 sibling, 0 replies; 3+ messages in thread
From: Linus Walleij @ 2022-01-29  1:21 UTC (permalink / raw)
  To: Corentin Labbe
  Cc: robh+dt, ulli.kroll, devicetree, linux-arm-kernel, linux-kernel

On Sat, Jan 15, 2022 at 11:04 AM Corentin Labbe <clabbe@baylibre.com> wrote:

> I believed that gigabit was not working due to some unknown missing GPIO.
> In fact, gigabit worked when REALTEK_PHY was compiled out.
> So the problem was due to PHY delay and we need to use rgmii-id.
>
> Signed-off-by: Corentin Labbe <clabbe@baylibre.com>

Thanks Corentin!

Patches applied.

Do you think I need a similar fix "rgmii"->"rgmii-id" on other
Gemini devicetrees that claim gigabit performance?

Yours,
Linus Walleij

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

end of thread, other threads:[~2022-01-29  1:21 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-15 10:04 [PATCH 1/2] ARM: dts: gemini: ns2502: permit to use gigabit Corentin Labbe
2022-01-15 10:04 ` [PATCH 2/2] ARM: dts: gemini: ssi1328: " Corentin Labbe
2022-01-29  1:21 ` [PATCH 1/2] ARM: dts: gemini: ns2502: " Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).