This is an automated email from the ASF dual-hosted git repository.

jerpelea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx.git

commit e382e2d525d0c57287495b945f5577126628659c
Author: George Poulios <gpoul...@census-labs.com>
AuthorDate: Wed Jun 4 11:21:20 2025 +0300

    arm64/imx9: Add missing ENET1 RGMII TXC pin muxing
    
    MUX_ENET1_TXC was missing from both the EVK board
    definition and the IO muxing configuration function
    of the ENET1 driver. As a result, transmission does
    not work (unless the muxing is set by default in some
    board? -not the case with EVK). This commit adds the
    configuration and adds the definition to i.MX93 EVK.
    
    WARN: other, out-of-tree i.MX93 boards need to define
    MUX_ENET1_TXC accordingly, otherwise build will break.
    
    Signed-off-by: George Poulios <gpoul...@census-labs.com>
---
 arch/arm64/src/imx9/imx9_enet.c             | 1 +
 boards/arm64/imx9/imx93-evk/include/board.h | 1 +
 2 files changed, 2 insertions(+)

diff --git a/arch/arm64/src/imx9/imx9_enet.c b/arch/arm64/src/imx9/imx9_enet.c
index ca39be1984..f79663e9b7 100644
--- a/arch/arm64/src/imx9/imx9_enet.c
+++ b/arch/arm64/src/imx9/imx9_enet.c
@@ -3032,6 +3032,7 @@ static void imx9_enet_mux_io(void)
   imx9_iomux_configure(MUX_ENET1_TX_DATA02);
   imx9_iomux_configure(MUX_ENET1_TX_DATA03);
   imx9_iomux_configure(MUX_ENET1_RXC);
+  imx9_iomux_configure(MUX_ENET1_TXC);
   imx9_iomux_configure(MUX_ENET1_TX_CTL);
   imx9_iomux_configure(MUX_ENET1_RX_CTL);
 #  else /* RMII */
diff --git a/boards/arm64/imx9/imx93-evk/include/board.h 
b/boards/arm64/imx9/imx93-evk/include/board.h
index a4c9d3f068..92b7bb7df3 100644
--- a/boards/arm64/imx9/imx93-evk/include/board.h
+++ b/boards/arm64/imx9/imx93-evk/include/board.h
@@ -194,6 +194,7 @@
 #  define MUX_ENET1_TX_DATA02 IOMUX_CFG(IOMUXC_PAD_ENET2_TD2_ENET1_RGMII_TD2, 
IOMUXC_PAD_FSEL_FAST | IOMUXC_PAD_DSE_X6, 0)
 #  define MUX_ENET1_TX_DATA03 IOMUX_CFG(IOMUXC_PAD_ENET2_TD3_ENET1_RGMII_TD3, 
IOMUXC_PAD_FSEL_FAST | IOMUXC_PAD_DSE_X6, 0)
 #  define MUX_ENET1_RXC       IOMUX_CFG(IOMUXC_PAD_ENET2_RXC_ENET1_RGMII_RXC, 
0, 0)
+#  define MUX_ENET1_TXC       IOMUX_CFG(IOMUXC_PAD_ENET2_TXC_ENET1_RGMII_TXC, 
IOMUXC_PAD_FSEL_FAST | IOMUXC_PAD_DSE_X6, 0)
 #  define MUX_ENET1_TX_CTL    
IOMUX_CFG(IOMUXC_PAD_ENET2_TX_CTL_ENET1_RGMII_TX_CTL, IOMUXC_PAD_FSEL_FAST | 
IOMUXC_PAD_DSE_X6, 0)
 #  define MUX_ENET1_RX_CTL    
IOMUX_CFG(IOMUXC_PAD_ENET2_RX_CTL_ENET1_RGMII_RX_CTL, 0, 0)
 

Reply via email to