Commit 30eca5d63c4bbc8f3b30ed6af714ea30819cee3e

Authored by Eric Lee
1 parent 8d99065f64

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

Showing 2 changed files with 6 additions and 1 deletions Side-by-side Diff

arch/arm64/boot/dts/embedian/imx8mq-smarc-common.dtsi
... ... @@ -248,7 +248,7 @@
248 248  
249 249 ethphy0: ethernet-phy@0 {
250 250 compatible = "ethernet-phy-ieee802.3-c22";
251   - reg = <6>;
  251 + reg = <1>;
252 252 at803x,eee-disabled;
253 253 };
254 254 };
drivers/net/phy/realtek.c
... ... @@ -194,6 +194,11 @@
194 194 return 0;
195 195 }
196 196  
  197 + /* Set green LED for Link, yellow LED for Active */
  198 + phy_write(phydev, RTL821x_PAGE_SELECT, 0xd04);
  199 + phy_write(phydev, 0x10, 0x617f);
  200 + phy_write(phydev, RTL821x_PAGE_SELECT, 0x0);
  201 +
197 202 ret = phy_modify_paged(phydev, 0xd08, 0x11, RTL8211F_TX_DELAY, txdly);
198 203 if (ret < 0) {
199 204 dev_err(&phydev->mdio.dev, "tx delay set failed\n");