Hi 2718505873,
Please refer to the following threads for this use case.
Calculating/Getting register adresses of gpio pins - #10 by KevinFFF
MDIO and MDC as GPIO in Jetson orion AGX dev Kit - #17 by KevinFFF
I would still suggest you configuring the pinmux before use.