Commit 020e0e9c authored by Thomas Schäfer's avatar Thomas Schäfer
Browse files

pitx-imx8m: reconfigure GBE0 PHY activity LED2

- Set the LED_2_SEL bits [11:8] in DP83867IR LED Configuration
  Register 1 to 0b1011 (link established, blink on activity) from
  default value 0b0001. Same settings are configured for GBE1 PHY
  when I210/I211 is activated in linux.
- This fixes KDP#81891 request for the pITX-iMX8M.
Signed-off-by: Thomas Schäfer's avatarThomas Schaefer <>
parent cd421c6c
......@@ -151,6 +151,8 @@ static int setup_fec(void)
int board_phy_config(struct phy_device *phydev)
unsigned int val;
/* enable rgmii rxc skew and phy mode select to RGMII copper */
phy_write(phydev, MDIO_DEVAD_NONE, 0x1d, 0x1f);
phy_write(phydev, MDIO_DEVAD_NONE, 0x1e, 0x8);
......@@ -158,6 +160,14 @@ int board_phy_config(struct phy_device *phydev)
phy_write(phydev, MDIO_DEVAD_NONE, 0x1d, 0x05);
phy_write(phydev, MDIO_DEVAD_NONE, 0x1e, 0x100);
* Set LED configuration register 1:
* LED2_SEL: 0b1011 (link established, blink on activity)
val = phy_read(phydev, MDIO_DEVAD_NONE, 0x18);
val &= 0xf0ff;
phy_write(phydev, MDIO_DEVAD_NONE, 0x18, val | (0xb<<8));
if (phydev->drv->config)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment