ARC: [plat-hsdk] Get rid of inappropriate PHY settings
Subsystems (2)
PATCH 1/1 ARC: [plat-hsdk] Get rid of inappropriate PHY settings
Initial bring-up of the platform was done on FPGA prototype where TI's DP83867 PHY was used. And so some specific PHY options were added.
Just to confirm this is what we get on FPGA prototype in the bootlog:
| TI DP83867 stmmac-0:00: attached PHY driver [TI DP83867] ...
On real board though we have Micrel KZS9031 PHY and we even have CONFIG_MICREL_PHY=y set in hsdk_defconfig. That's what we see in the bootlog:
| Micrel KSZ9031 Gigabit PHY stmmac-0:00: ...
So essentially all TI-related bits have to go away.
--- arch/arc/boot/dts/hsdk.dts | 4 ---- 1 file changed, 4 deletions(-)
arch/arc/boot/dts/hsdk.dts +0 -4
@@ -11,7 +11,6 @@ */ /dts-v1/; -#include <dt-bindings/net/ti-dp83867.h> #include <dt-bindings/reset/snps,hsdk-reset.h> / {
@@ -201,9 +200,6 @@ compatible = "snps,dwmac-mdio"; phy0: ethernet-phy at 0 { reg = <0>; - ti,rx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>; - ti,tx-internal-delay = <DP83867_RGMIIDCTL_2_00_NS>; - ti,fifo-depth = <DP83867_PHYCR_FIFO_DEPTH_4_B_NIB>; }; }; };
Signature · 1 line
2.16.2
Quoted 9 lines · Alexey Brodkin
Initial bring-up of the platform was done on FPGA prototype where TI's DP83867 PHY was used. And so some specific PHY options were added.
Just to confirm this is what we get on FPGA prototype in the bootlog:
Quoted 1 line
TI DP83867 stmmac-0:00: attached PHY driver [TI DP83867] ...
On real board though we have Micrel KZS9031 PHY and we even have
CONFIG_MICREL_PHY=yset inhsdk_defconfig. That's what we see in the bootlog:
Quoted 7 lines
Quoted 1 line
Micrel KSZ9031 Gigabit PHY stmmac-0:00: ...
So essentially all TI-related bits have to go away.
Signed-off-by Alexey Brodkin <abrodkin at synopsys.com>Cc Trent Piepho <tpiepho at impinj.com>Cc Rob Herring <robh+dt at kernel.org>
Review
Quoted 5 lines
--- arch/arc/boot/dts/hsdk.dts | 4 ---- 1 file changed, 4 deletions(-)(quoted diff) +0
-0@@ -201,9 +200,6 @@
I think it would be pedantically correct to change the phy-mode to "rgmii-id", though I see nothing in the micrel phy driver that uses this, and so doubt it will do anything at all at this point.
The Micrel phy appears to default to putting a clock skew on the RGMII lines and the driver will use the default if no properties are present. So I believe what your board is effectively using now is "rgmii-id" with default skews, unless the phy and your board design has some resistor pin strapping that has changed this.
Quoted 11 lines · Alexey Brodkin
Initial bring-up of the platform was done on FPGA prototype where TI's DP83867 PHY was used. And so some specific PHY options were added.
Just to confirm this is what we get on FPGA prototype in the bootlog:
| TI DP83867 stmmac-0:00: attached PHY driver [TI DP83867] ...On real board though we have Micrel KZS9031 PHY and we even have
CONFIG_MICREL_PHY=yset inhsdk_defconfig. That's what we see in the bootlog:
| Micrel KSZ9031 Gigabit PHY stmmac-0:00: ...
Quoted 5 lines
So essentially all TI-related bits have to go away.
Signed-off-by Alexey Brodkin <abrodkin at synopsys.com>Cc Trent Piepho <tpiepho at impinj.com>Cc Rob Herring <robh+dt at kernel.org>
Added to for-curr.
Thx,
-Vineet