All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ARC: [hsdk]  Use rgmii-id mode for ethernet phy
@ 2019-05-14 17:40 Trent Piepho
  2019-05-14 18:22 ` Alexey Brodkin
  0 siblings, 1 reply; 6+ messages in thread
From: Trent Piepho @ 2019-05-14 17:40 UTC (permalink / raw)
  To: linux-snps-arc

If internal delays are desired on the RGMII link, "rgmii-id" should be
used as the phy-mode rather than "rgmii" .

This dts has properties to set the delay values, but they are ignored.
I suspect this is a mistake.

While the driver should disable delay based on the current DT, it does
not, and instead leaves the PHY in the pin strapping default.  Which is
usually to have delays very close to the unused values the hsdk DT.
Which is why the phy would work even if the delays in the DT are
ignored.

Cc: Alexey Brodkin <abrodkin at synopsys.com>
Cc: Vineet Gupta <vgupta at synopsys.com>
Signed-off-by: Trent Piepho <tpiepho at impinj.com>
---
 arch/arc/boot/dts/hsdk.dts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arch/arc/boot/dts/hsdk.dts b/arch/arc/boot/dts/hsdk.dts
index 7425bb0f2d1b..d77b27894ab6 100644
--- a/arch/arc/boot/dts/hsdk.dts
+++ b/arch/arc/boot/dts/hsdk.dts
@@ -185,7 +185,7 @@
 			reg = <0x8000 0x2000>;
 			interrupts = <10>;
 			interrupt-names = "macirq";
-			phy-mode = "rgmii";
+			phy-mode = "rgmii-id";
 			snps,pbl = <32>;
 			clocks = <&gmacclk>;
 			clock-names = "stmmaceth";
-- 
2.14.5

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

end of thread, other threads:[~2019-05-15 18:21 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-05-14 17:40 [PATCH] ARC: [hsdk] Use rgmii-id mode for ethernet phy Trent Piepho
2019-05-14 18:22 ` Alexey Brodkin
2019-05-14 19:04   ` Trent Piepho
2019-05-15 16:21     ` Alexey Brodkin
2019-05-15 18:16       ` Trent Piepho
2019-05-15 18:21         ` Alexey Brodkin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.