i.MX6SDL External Clock signals and FREER_

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

i.MX6SDL External Clock signals and FREER_

ソリューションへジャンプ
1,161件の閲覧回数
Rgulde
Contributor III

Hi All, 

I'm trying to understand the clocking of the EIM bus with respect to the free run input clock. How exactly is this set up. I would like to output this clock signal on the observability CLKO 1 or 2.

INTENTION:

Utilize EIM_ACLK_FREERUN and continuous burst to work with non muxed Address/Data lines to a CPLD and FPGA. This clock is 43.75 MHz for legacy equipment, and I want to minimize impacts on other devices. 

 

The external signals to the EIM are defined in "Table 22-2 EIM External Signals" EIM_ACLK_FREERUN and can be input via pads: EIM_A25, EIM_D31, EIM_EB3.

 

Current Understanding:

INITIALLY I thought the PLL3 bypass would allow selection of the FREERUN PIN. HOWEVER, it does not appear that this is passed through the CCM_ANALOG module to the CCM_CLK_SWITCHER. And then onto  ACLK_EIM_SLOW_CLK_ROOT.

Section 22.3 Clocks: sources for EIM see CCM, Table 22-4 shows 4 possibilities with two clock roots: aclk_eim_slow_clk_root and ipg_clk_root.

aclk, aclk_slow, and aclk_exsc EIM clocks with root: aclk_eim_slow_clk_root.

HOWEVERhttps://community.nxp.com/t5/i-MX-Processors/Using-ACLK-EXSC-for-the-iMX6-EIM-bus/m-p/490804

Indicates BCLK can not be configured as aclk_exsc. leaving just aclk, and aclk_slow.

GOOD NEWS it also indicates aclk_eim_slow_clk_root can be output on CCM_CLKO 1 or 2. So we get observability of aclk_eim_slow_clk_root.

Here I do not see how the free run clock can be an input to generate the ACLK_EIM_SLOW_CLK_ROOT i'm looking for.

ACLK_EIM_SLOW_CLK_ROOT.jpg

 

CCGR6[CG5] emi_slow_clk_enable 

 

YET the EIM module clearly shows that the FREERUN CLOCK can be selected. Does this follow some other path through the SoC?

EIM_DIAGARM.jpg

 

 

 

Yet in section 22.9.7 EIM Configuration Register (EIM_WCR) 

Bit 11: FRUN_ACLK_EN 

enables: Free run ACLK enable.

 

So my confusion is why is the FRUN_ACLK_EN and it's routing potentially through PLL3 Bypass not documented - it is hard to figure out the routing of the signals and how to make it visible on CLKO1/CLKO2.

Any clarifications appreciated.

 

 

ラベル(1)
0 件の賞賛
返信
1 解決策
779件の閲覧回数
Rgulde
Contributor III

Following up, I received this reply from NXP technical support.


Please find a response from the internal Team below.

The EIM_ACLK_FREERUN direction should be O instead of I. The RM is incorrect.

元の投稿で解決策を見る

0 件の賞賛
返信
6 返答(返信)
780件の閲覧回数
Rgulde
Contributor III

Following up, I received this reply from NXP technical support.


Please find a response from the internal Team below.

The EIM_ACLK_FREERUN direction should be O instead of I. The RM is incorrect.

0 件の賞賛
返信
1,097件の閲覧回数
Rgulde
Contributor III

This may be the solution utilize the FRUN clock in the EIM while blocking (gating the emi_slow_clk) ? :

Selecting the FRUN_ACLK_EN input to the EIM 

&& Disabling the CCGR6[CG5] emi_slow_clk_enable 

Rgulde_0-1675812788352.png

 

0 件の賞賛
返信
1,103件の閲覧回数
Rgulde
Contributor III

Any updates? Seems determining how the FREE RUN clock is gated with the EIM is impossible given the state of the documentation.

What if I used CLK 1 or CLK2 and pass to PLL3 bypass then to the EIM Root clock?

How does that affect the AIX bus ? Does/would this slow my core processor clock at all?

Note desired core clock is 1GHz, and desired EIM clock is 43.75 MHz.

0 件の賞賛
返信
1,122件の閲覧回数
Rgulde
Contributor III

I've begun doubting the EIM_ACLK_FREERUN Pin configuration to actually reach the EIM bus (due to lack of documentation in the CCM for handling this signal muxing and gating and scaling it at all). 

For now: I will investigate the CLK1/CLK2 bypass on PLL3 to the EIM root clock.

PLL3_bypass.png

0 件の賞賛
返信
1,128件の閲覧回数
Rgulde
Contributor III

For now the only routing I see for the ACLK_EIM_SLOW_SEL[30:29] that makes sense is to use the bypass on PLL3 (pll3_sw_clk) and somehow have the FREE_RUN clock go through this bypass. Or from AXI. I'm not sure of the downsides of AXI/AHB bus clocks.

 

CSCMR1_ifPLL3BypassIsconnected2FreeRun.jpg

 

Somewhat obvious concern is if it is only the AXI bus running at the Free run clock (43.75) in our case is the impact on the AMBA/AXI Arm A9 Core speeds. Would this throttle all of our operations?

0 件の賞賛
返信
1,130件の閲覧回数
Rgulde
Contributor III

From the following table diagrams (imx6sx) 

It appears that the AXI clock signal is tied to the EIM clock

Does that mean when I enable Bit 11: FRUN_ACLK_EN

That the AXI clock will be slaved to the FREE RUN CLOCK?

EIM_DIAGARM.jpgEIM_ext_signals.jpg

0 件の賞賛
返信