Hi, thank you for your fast answer.
We gave a look at this part of the reference manual and according to it, we have this value :
MX6UL_PAD_ENET1_TX_CLK__ENET1_REF_CLK1 0x4001b031
We linked RX CLK and TX CLK on our board because we use rmii and we had put the ref clk on TX but from the phy point of view, it should be on RX. We can observe the 25MHz signal on a scope.
The reset signal is kind of weird, it moves from 3,4V to 2,8V but never goes down to zero. We modified our dts to remove internal pull-ups given that there are already external ones on the tja1101 devkit. Another weird signal is the MDIO line which doesn't move except when restarting board (we tried ifconfig eth0 up/down and ip commands) : it stays at 3,3V.
Here is a small extract of our new dts :
pinctrl_enet1: enet1grp {
fsl,pins = <
MX6UL_PAD_ENET1_RX_EN__ENET1_RX_EN 0x1b001 // CRSDV
MX6UL_PAD_ENET1_RX_ER__ENET1_RX_ER 0x1b001 // RX ER
MX6UL_PAD_ENET1_RX_DATA0__ENET1_RDATA00 0x1b001 // RDAT0
MX6UL_PAD_ENET1_RX_DATA1__ENET1_RDATA01 0x1b001 // RDAT1
MX6UL_PAD_ENET1_TX_DATA0__ENET1_TDATA00 0x1b001 // TDAT0
MX6UL_PAD_ENET1_TX_DATA1__ENET1_TDATA01 0x1b001 // TDAT1
MX6UL_PAD_ENET1_TX_EN__ENET1_TX_EN 0x1b0101 //TX EN
MX6UL_PAD_ENET1_TX_CLK__ENET1_REF_CLK1 0x4001b031 // REF CLK
MX6UL_PAD_ENET2_TX_CLK__GPIO2_IO14 0x10001 // RESET
MX6UL_PAD_ENET2_RX_DATA0__GPIO2_IO08 0x10001 // IRQ
>;
};
pinctrl_enet1_gpio: enet1gpio {
fsl,pins = <
MX6UL_PAD_ENET2_RX_ER__GPIO2_IO15 0x1b0b1 // inh
MX6UL_PAD_ENET2_RX_EN__GPIO2_IO10 0x10001 // enable
MX6UL_PAD_ENET2_RX_DATA1__GPIO2_IO09 0x1b0b1 // wake
>;
};
pinctrl_enet1_mdc: enet1mdcgrp {
fsl,pins = <
/* mdio */
MX6UL_PAD_GPIO1_IO07__ENET1_MDC 0x1b0b0
MX6UL_PAD_GPIO1_IO06__ENET1_MDIO 0x10000
>;
};
Another point that is unclear is how the interrupt is known by the driver given that it is not mentionned?
The phy_id is not read because the ouput of cat /sys/bus/mdio_bus/devices/20b4000.ethernet-1\:00/phy_id is 0x00000000.
I was not able to find any setup_fec() function and I don't really understand why it would have an impact given that it would be overridden by the kernel once launched.
Thanks again for your help!