Part Number: AM5728
Tool/software: Linux
Hi
I am trying to change the clock source from the CPTS from its default (L3_ICLK) to VIDEO1_CLK. To do that, I've modified the content of the CLKSEL_RFT bits from 0x4 to 0x0 (I wrote 0x2 to the address 0x4a0093d0) according to the Table 3-1078. CM_GMAC_GMAC_CLKCTRL.
After I do this, my ptp application stops working and i start seeing the messages below.
# [ 729.836285] cpts: unable to obtain a time stamp
I can only infer that my video1 clk is not fully functional. To verify my video1 clock, I've configured it according to the thread below and exported it to a pin (clkout3) and im measuring on a scope.
so i can see that video1 clk is actually working but when I select it as source for CPTS, i see errors that are telling me otherwise.
Questions:
- Is there any other register that i should be configuring in order to select video1 as clock for cpts ?
- is there a way to verify the status of the video1 clock by reading any registers ?
According to the link above, the status register is unaccessible.
" When the VIDEO1 PLL is enabled (CTRL_CORE_DSS_PLL_CONTROL[PLL_VIDEO1_DSS_CONTROL_DISABLE] = 0), then reading any of the DPLL_VIDEO1_L4_CFG registers (address 0x4A0A4000 – 0x4A0A4020) returns 0x0. " - When i read the register 0x4a0a4004 I get 0x0. When I read the register 0x58004304, it hangs. Is this expected ?
This is on Linux SDK 03.02.00; AM572x EVM