Re: [PATCH net-next 1/3] dt-bindings: net: Add Cortina CS7542 MDIO controller
From: Fil Dunsky
Date: Tue Nov 24 2026 - 14:40:15 EST
Hi Andrew,
I agree about describing the input clock before the binding is merged.
The vendor U-Boot sets bit 5 of the MDC prescaler, and the kernel SDK
writes 0x20 to that field. Neither source identifies the clock feeding
it. I have not found a CS7542 clock diagram that ties it to the APB
clock, so I am checking that connection before adding the phandle to the
SoC .dtsi.
The U-Boot and SDK sites I checked are below.
https://github.com/futuretekinc/cortina/blob/aafa3821f0934eebe8137726d4e6d5994c1ac3fa/u-boot/drivers/net/g2_ni_mfe.c#L724-L727
https://github.com/drvlabo/linux_kernel_cs75xx/blob/8bb3f7dc796a59d992572a118448ba196f547ed6/drivers/net/ethernet/cs752x/src/ni/cs752x_eth.c#L3529-L3534
Thanks,
Fil