STM32MP257 & DP83869 fiber link
Hello,
I am using a STM32MP257 (Karo SOM), RGMII connected to a DP83869 (100Mbps fiber mode).
This is working well until I start the LVDS screen on my board.
- The screen is powered with 2 regulators :
- Backlight (16V/360mA, dedicated boost)
- Logic (2.7V/500mA, dedicated buck)
The DP83869 is powered with 3 regulators :
- 1.1V (dedicated buck)
- 2.5V (dedicated LDO)
- 3.3V (shared buck also powering the MP2 SOM)
Below is the behavior in different configurations:
- Screen unplugged => fiber link OK
- Screen plugged => fiber link KO
- hot-unplugging the screen makes the link working instantly
- Screen unplugged, flat cable present, with 100ohm R at the end of the LVDS signals => OK
- Screen unplugged,
- With no current on the BL / logic DC/DC converter => OK
- Sinking 300mA on the BL => KO
- Removing the sink current makes the link working instantly
- Sinking 300mA on the logic => KO
- Removing the sink current makes the link working instantly
Probing power rails with a scope show clean signals, in loaded and unloaded conditions.
The PHY clocks (CLOo, TX/RX CLK) are always clean 25MHz signals.
The feeling I have is that without screen, the link is "working by chance" and a slight noise emited by the screen regulators (when loaded) are making the link to fall. There is probably something wrong on the RGMII timings but I don't know how to check/set that.
Other points :
*Where is hidden the GPIO slew rate data of STM32MP2? Nothing on datasheet, nothing in the user manual. Actually the device tree is configuring the MDC slew rate faster than the MDIO (<3> vs <0>).
* The DP83869 outputs a nIRQ line, requiring a 2.2k RPU (soldered). When the link is up and idle, this line is 0. When reading the MDIO IRQ registed, there is a pending IRQ ("link has changed").
** Reading the flag should clear the IRQ line but it is still stuck at 0
** The MP2 is configured with IRQ falling edge and should read the register, I shouldn't be able to read anything other than 0 in the IRQ register
Any help appreciated :)
Thanks
