RGMII_SMA_MDIO and RGMII_SMA_MDC config as gpio but out of control

Could you apply the patch from the following thread to check if it could help for your case?
40hdr - SPI1 gpio padctl register bit[10] effect by gpiod tools in JP6 - #20 by KevinFFF