]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
imx: ventana: add DP83867 PHY LED configuration
authorTim Harvey <tharvey@gateworks.com>
Fri, 11 Jun 2021 19:46:25 +0000 (12:46 -0700)
committerStefano Babic <sbabic@denx.de>
Sat, 10 Jul 2021 14:53:33 +0000 (16:53 +0200)
Add DP83867 PHY LED configuration.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
board/gateworks/gw_ventana/gw_ventana.c

index 4a6b1dc461d2edd0da0eb27eae0ece3b81c9f359..860342dd4a634c4c560a425af02a23d26304482d 100644 (file)
@@ -96,6 +96,12 @@ int board_phy_config(struct phy_device *phydev)
 
        /* TI DP83867 */
        else if (phydev->phy_id == 0x2000a231) {
+               /* LED configuration */
+               val = 0;
+               val |= 0x5 << 4; /* LED1(Amber;Speed)   : 1000BT link */
+               val |= 0xb << 8; /* LED2(Green;Link/Act): blink for TX/RX act */
+               phy_write(phydev, MDIO_DEVAD_NONE, 24, val);
+
                /* configure register 0x170 for ref CLKOUT */
                phy_write(phydev, MDIO_DEVAD_NONE, 13, 0x001f);
                phy_write(phydev, MDIO_DEVAD_NONE, 14, 0x0170);