I made a custom board using STM32H7 with KSZ8081 Ethernet PHY. Then I noticed it is necessary to setup CONFIG_STM32H7_PHYSR, CONFIG_STM32H7_PHYSR_ALTCONFIG, CONFIG_STM32H7_PHYSR_ALTMODE, CONFIG_STM32H7_PHYSR_10HD, CONFIG_STM32H7_PHYSR_100HD, CONFIG_STM32H7_PHYSR_10FD, and CONFIG_STM32H7_PHYSR_100FD in Kconfig, i.e., manually input the address within the PHY of a particular register and bitmasks to use with that register.
Isn't this information invariant to the Ethernet PHY? That is, all KSZ8081 will always have this register at 0x1e and always use the same bitmasks to access the same data? If so, this could be programmed in Kconfig and automatically set when choosing this PHY? Did I misunderstand / am I missing anything? Thanks, Nathan