Commit a24d6757302c3b6a254a5bc408f91f1d2110c7a4

Authored by Eric Lee
1 parent 314102822f

Make changes to hardware revision 00F0: Replace Ethernet PHY by RTL8211FD-CG

Showing 3 changed files with 9 additions and 4 deletions Side-by-side Diff

arch/arm64/boot/dts/embedian/fsl-smarcimx8mq-common.dtsi
... ... @@ -541,7 +541,7 @@
541 541  
542 542 ethphy0: ethernet-phy@0 {
543 543 compatible = "ethernet-phy-ieee802.3-c22";
544   - reg = <6>;
  544 + reg = <1>;
545 545 at803x,led-act-blind-workaround;
546 546 at803x,eee-disabled;
547 547 };
arch/arm64/configs/smarcimx8m_defconfig
... ... @@ -4,10 +4,10 @@
4 4 #
5 5  
6 6 #
7   -# Compiler: aarch64-linux-gnu-gcc (Linaro GCC 6.4-2017.11) 6.4.1 20171012
  7 +# Compiler: aarch64-linux-gnu-gcc (GNU Toolchain for the A-profile Architecture 8.3-2019.03 (arm-rel-8.36)) 8.3.0
8 8 #
9 9 CONFIG_CC_IS_GCC=y
10   -CONFIG_GCC_VERSION=60401
  10 +CONFIG_GCC_VERSION=80300
11 11 CONFIG_CLANG_VERSION=0
12 12 CONFIG_IRQ_WORK=y
13 13 CONFIG_BUILDTIME_EXTABLE_SORT=y
... ... @@ -2058,7 +2058,7 @@
2058 2058 # CONFIG_NATIONAL_PHY is not set
2059 2059 CONFIG_NXP_TJA110X_PHY=y
2060 2060 # CONFIG_QSEMI_PHY is not set
2061   -CONFIG_REALTEK_PHY=m
  2061 +CONFIG_REALTEK_PHY=y
2062 2062 # CONFIG_RENESAS_PHY is not set
2063 2063 CONFIG_ROCKCHIP_PHY=y
2064 2064 # CONFIG_SMSC_PHY is not set
drivers/net/phy/realtek.c
... ... @@ -171,6 +171,11 @@
171 171 if (ret < 0)
172 172 return ret;
173 173  
  174 + /* Set green LED for Link, yellow LED for Active */
  175 + phy_write(phydev, RTL821x_PAGE_SELECT, 0xd04);
  176 + phy_write(phydev, 0x10, 0x617f);
  177 + phy_write(phydev, RTL821x_PAGE_SELECT, 0x0);
  178 +
174 179 /* enable TX-delay for rgmii-id and rgmii-txid, otherwise disable it */
175 180 if (phydev->interface == PHY_INTERFACE_MODE_RGMII_ID ||
176 181 phydev->interface == PHY_INTERFACE_MODE_RGMII_TXID)