How to set the 1.2/1.5 Gbps clock speed in IMXRT1170 the example source code?

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

How to set the 1.2/1.5 Gbps clock speed in IMXRT1170 the example source code?

跳至解决方案
930 次查看
kiwonlee1
Contributor II

How to set the 1.2/1.5 Gbps speed in the example source code?

As the datasheet, MIPI Display Serial Interface(MIPI DSI)

                            - 2 data lanes interface with up to 1.5 GHz bit rate clock.

I want to check it in the below example code(EVK example code).

How to set it?

NXP (1170/MCUEXPresso)Example code: (the attached file-MIMXRT1170-EVK\boards\evkmimxrt1170\driver_examples\csi\mipi_rgb\cm7/board.c )

Below source code show as 60MHz, but I want to change CLK for 1.2/1.5Gbps 

 

<Below >====================================================

  1. CSI2 CLK 설정.

/* This clock should be equal or faster than the receive byte clock,

     * D0_HS_BYTE_CLKD, from the RX DPHY. For this board, there are two

     * data lanes, the MIPI CSI pixel format is 16-bit per pixel, the

     * max resolution supported is 720*1280@30Hz, so the MIPI CSI2 clock

     * should be faster than 720*1280*30 = 27.6MHz, choose 60MHz here.

     */

→ details show 60Mhz -> MIPI speed :  60Mhz ?

 

    const clock_root_config_t csi2ClockConfig = {

        .clockOff = false,

        .mux      = 5,

        .div      = 8,

    };

→ .mux = 5 value, kCLOCK_CSI2_ClockRoot_MuxSysPll3Out(480Mhz) , div = 8... Is it right??.

  Up means '480Mhz/div8 = 60Mhz' .. Is it right?

If it is right . How to set as " 1.2/1.5 Gbps clock speed"?

  

/* CSI2 */

    kCLOCK_CSI2_ClockRoot_MuxOscRc48MDiv2 = 0U, /*!< CSI2 mux from MuxOscRc48MDiv2. */

    kCLOCK_CSI2_ClockRoot_MuxOsc24MOut    = 1U, /*!< CSI2 mux from MuxOsc24MOut. */

    kCLOCK_CSI2_ClockRoot_MuxOscRc400M    = 2U, /*!< CSI2 mux from MuxOscRc400M. */

    kCLOCK_CSI2_ClockRoot_MuxOscRc16M     = 3U, /*!< CSI2 mux from MuxOscRc16M. */

    kCLOCK_CSI2_ClockRoot_MuxSysPll2Pfd2  = 4U, /*!< CSI2 mux from MuxSysPll2Pfd2. */

    kCLOCK_CSI2_ClockRoot_MuxSysPll3Out   = 5U, /*!< CSI2 mux from MuxSysPll3Out. */

    kCLOCK_CSI2_ClockRoot_MuxSysPll2Pfd0  = 6U, /*!< CSI2 mux from MuxSysPll2Pfd0. */

kCLOCK_CSI2_ClockRoot_MuxVideoPllOut  = 7U, /*!< CSI2 mux from MuxVideoPllOut. */

0 项奖励
回复
1 解答
917 次查看
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

MIPI DSI has its own DPHY PLL to generate DPI pixel clock.

Hui_Ma_0-1653031920557.png

More detailed info, please refer RT1170 reference manual chapter 49.3.5.2 DPHY PLL  & chapter 49.3.5.3 DPHY Programming

Wish it helps.

Mike

在原帖中查看解决方案

0 项奖励
回复
1 回复
918 次查看
Hui_Ma
NXP TechSupport
NXP TechSupport

Hi,

MIPI DSI has its own DPHY PLL to generate DPI pixel clock.

Hui_Ma_0-1653031920557.png

More detailed info, please refer RT1170 reference manual chapter 49.3.5.2 DPHY PLL  & chapter 49.3.5.3 DPHY Programming

Wish it helps.

Mike

0 项奖励
回复