Commit f87f42a63189a693346c3a5d2a83953b614fe3bd

Authored by Eric Lee
1 parent 505564416e

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

Showing 3 changed files with 7 additions and 2 deletions Side-by-side Diff

arch/arm64/boot/dts/embedian/fsl-smarcimx8mq-common.dtsi
... ... @@ -539,7 +539,7 @@
539 539  
540 540 ethphy0: ethernet-phy@0 {
541 541 compatible = "ethernet-phy-ieee802.3-c22";
542   - reg = <6>;
  542 + reg = <1>;
543 543 at803x,led-act-blind-workaround;
544 544 at803x,eee-disabled;
545 545 };
arch/arm64/configs/smarcimx8m_defconfig
... ... @@ -2007,7 +2007,7 @@
2007 2007 # CONFIG_NATIONAL_PHY is not set
2008 2008 CONFIG_NXP_TJA110X_PHY=y
2009 2009 # CONFIG_QSEMI_PHY is not set
2010   -CONFIG_REALTEK_PHY=m
  2010 +CONFIG_REALTEK_PHY=y
2011 2011 CONFIG_ROCKCHIP_PHY=y
2012 2012 # CONFIG_SMSC_PHY is not set
2013 2013 # CONFIG_STE10XP is not set
drivers/net/phy/realtek.c
... ... @@ -102,6 +102,11 @@
102 102 if (ret < 0)
103 103 return ret;
104 104  
  105 + /* Set green LED for Link, yellow LED for Active */
  106 + phy_write(phydev, RTL8211F_PAGE_SELECT, 0xd04);
  107 + phy_write(phydev, 0x10, 0x617f);
  108 + phy_write(phydev, RTL8211F_PAGE_SELECT, 0x0);
  109 +
105 110 phy_write(phydev, RTL8211F_PAGE_SELECT, 0xd08);
106 111 reg = phy_read(phydev, 0x11);
107 112