diff mbox series

[08/11] imx: ventana: add DP83867 PHY LED configuration

Message ID 20210611194628.5572-8-tharvey@gateworks.com
State Accepted
Commit 9634c748b14444f6b274521fb2da30f28d310997
Delegated to: Stefano Babic
Headers show
Series [01/11] imx: ventana: remove USB_KEYBOARD support | expand

Commit Message

Tim Harvey June 11, 2021, 7:46 p.m. UTC
Add DP83867 PHY LED configuration.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
---
 board/gateworks/gw_ventana/gw_ventana.c | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Stefano Babic July 10, 2021, 3:52 p.m. UTC | #1
> Add DP83867 PHY LED configuration.
> Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic
Stefano Babic July 10, 2021, 7:34 p.m. UTC | #2
> Add DP83867 PHY LED configuration.
> Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Applied to u-boot-imx, master, thanks !

Best regards,
Stefano Babic
diff mbox series

Patch

diff --git a/board/gateworks/gw_ventana/gw_ventana.c b/board/gateworks/gw_ventana/gw_ventana.c
index 4a6b1dc461..860342dd4a 100644
--- a/board/gateworks/gw_ventana/gw_ventana.c
+++ b/board/gateworks/gw_ventana/gw_ventana.c
@@ -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);