[PATCH] board: gateworks: venice: enable XWAY PHY support

Enable XWAY PHY driver and remove board specific config from board_phy_config weak override.
Signed-off-by: Tim Harvey tharvey@gateworks.com --- board/gateworks/venice/venice.c | 16 ---------------- configs/imx8mm_venice_defconfig | 1 + configs/imx8mn_venice_defconfig | 1 + configs/imx8mp_venice_defconfig | 1 + 4 files changed, 3 insertions(+), 16 deletions(-)
diff --git a/board/gateworks/venice/venice.c b/board/gateworks/venice/venice.c index c4d86c26a9b5..e55689769f8f 100644 --- a/board/gateworks/venice/venice.c +++ b/board/gateworks/venice/venice.c @@ -74,7 +74,6 @@ static int setup_eqos(void) int board_phy_config(struct phy_device *phydev) { unsigned short val; - ofnode node;
switch (phydev->phy_id) { case 0x2000a231: /* TI DP83867 GbE PHY */ @@ -85,21 +84,6 @@ int board_phy_config(struct phy_device *phydev) val |= 0xb << 8; /* LED2(Green;Link/Act): blink for TX/RX act */ phy_write(phydev, MDIO_DEVAD_NONE, 24, val); break; - case 0xd565a401: /* MaxLinear GPY111 */ - puts("GPY111 "); - node = phy_get_ofnode(phydev); - if (ofnode_valid(node)) { - u32 rx_delay, tx_delay; - - rx_delay = ofnode_read_u32_default(node, "rx-internal-delay-ps", 2000); - tx_delay = ofnode_read_u32_default(node, "tx-internal-delay-ps", 2000); - val = phy_read(phydev, MDIO_DEVAD_NONE, 0x17); - val &= ~((0x7 << 12) | (0x7 << 8)); - val |= (rx_delay / 500) << 12; - val |= (tx_delay / 500) << 8; - phy_write(phydev, MDIO_DEVAD_NONE, 0x17, val); - } - break; }
if (phydev->drv->config) diff --git a/configs/imx8mm_venice_defconfig b/configs/imx8mm_venice_defconfig index 65031ab64dbd..a7c0bcc95488 100644 --- a/configs/imx8mm_venice_defconfig +++ b/configs/imx8mm_venice_defconfig @@ -105,6 +105,7 @@ CONFIG_SPL_MMC_HS400_SUPPORT=y CONFIG_FSL_USDHC=y CONFIG_PHYLIB=y CONFIG_PHY_TI_DP83867=y +CONFIG_PHY_XWAY=y CONFIG_PHY_FIXED=y CONFIG_DM_MDIO=y CONFIG_DM_DSA=y diff --git a/configs/imx8mn_venice_defconfig b/configs/imx8mn_venice_defconfig index d785915fa2e6..1c3b9095542a 100644 --- a/configs/imx8mn_venice_defconfig +++ b/configs/imx8mn_venice_defconfig @@ -106,6 +106,7 @@ CONFIG_SPL_MMC_HS400_SUPPORT=y CONFIG_FSL_USDHC=y CONFIG_PHYLIB=y CONFIG_PHY_TI_DP83867=y +CONFIG_PHY_XWAY=y CONFIG_PHY_FIXED=y CONFIG_DM_MDIO=y CONFIG_DM_DSA=y diff --git a/configs/imx8mp_venice_defconfig b/configs/imx8mp_venice_defconfig index 220b2a2cff1e..cf5cec6095fc 100644 --- a/configs/imx8mp_venice_defconfig +++ b/configs/imx8mp_venice_defconfig @@ -99,6 +99,7 @@ CONFIG_MMC_HS400_ES_SUPPORT=y CONFIG_MMC_HS400_SUPPORT=y CONFIG_FSL_USDHC=y CONFIG_PHY_TI_DP83867=y +CONFIG_PHY_XWAY=y CONFIG_PHY_FIXED=y CONFIG_DM_MDIO=y CONFIG_DM_DSA=y

On Tue, Feb 7, 2023 at 8:44 PM Tim Harvey tharvey@gateworks.com wrote:
Enable XWAY PHY driver and remove board specific config from board_phy_config weak override.
Signed-off-by: Tim Harvey tharvey@gateworks.com
Reviewed-by: Fabio Estevam festevam@denx.de

Enable XWAY PHY driver and remove board specific config from board_phy_config weak override. Signed-off-by: Tim Harvey tharvey@gateworks.com Reviewed-by: Fabio Estevam festevam@denx.de
Applied to u-boot-imx, next, thanks !
Best regards, Stefano Babic
participants (3)
-
Fabio Estevam
-
sbabic@denx.de
-
Tim Harvey