This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TDA4VL-Q1: Questions about the mdio clock of main_cpsw

Part Number: TDA4VL-Q1

Hi, experts 

According to the davinci_mdio_init_clk function, mido_clk = bus_freq,the value of bus_freq can be configured under the main_cpsw_mdio node of the device tree.

drivers/net/ethernet/ti/davinci_mdio.c

arch/arm64/boot/dts/ti/k3-j721s2-main.dtsi

So mdio_clk=1MHz, but the actual measurement is 400+KHz. Moreover, mdio_clk does not change when the value of bus_freq is modified, and the duty cycle is not 50%.

I checked the reference clock DEV_CPSW1_CPPI_CLK_CLK of mdio_clk and the clock printed out is 320MHz

What is the reason for this phenomenon? Please help analyze and answer it. Thank you.

Best Regards,

Bing