Commit 09cdb36a921fb01a3187ceb00fe9bbc179e469ed

Authored by Eric Lee
1 parent 2471bf6c1f

Make changes to hardware revsidon 00B0: replace Ethernet PHY by RTL8211FD-CG

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

arch/arm64/boot/dts/embedian/imx8mp-smarc-common.dtsi
... ... @@ -244,9 +244,9 @@
244 244 #address-cells = <1>;
245 245 #size-cells = <0>;
246 246  
247   - ethphy1: ethernet-phy@6 {
  247 + ethphy1: ethernet-phy@1 {
248 248 compatible = "ethernet-phy-ieee802.3-c22";
249   - reg = <6>;
  249 + reg = <1>;
250 250 eee-broken-1000t;
251 251 };
252 252 };
253 253  
... ... @@ -264,9 +264,9 @@
264 264 #address-cells = <1>;
265 265 #size-cells = <0>;
266 266  
267   - ethphy0: ethernet-phy@6 {
  267 + ethphy0: ethernet-phy@1 {
268 268 compatible = "ethernet-phy-ieee802.3-c22";
269   - reg = <6>;
  269 + reg = <1>;
270 270 eee-broken-1000t;
271 271 };
272 272 };
drivers/net/phy/realtek.c
... ... @@ -242,6 +242,11 @@
242 242 return 0;
243 243 }
244 244  
  245 + /* Set green LED for Link, yellow LED for Active */
  246 + phy_write(phydev, RTL821x_PAGE_SELECT, 0xd04);
  247 + phy_write(phydev, 0x10, 0x617f);
  248 + phy_write(phydev, RTL821x_PAGE_SELECT, 0x0);
  249 +
245 250 ret = phy_modify_paged_changed(phydev, 0xd08, 0x11, RTL8211F_TX_DELAY,
246 251 val_txdly);
247 252 if (ret < 0) {