MIPI DSI 和 D-PHY 初始化序列

                                              -- 深圳 南山平山村 曾剑锋

参考文档:
i.MX 6Dual/6Quad Multimedia Applications Processor Reference Manual 43.4 Programming
43.4. DSI and D-PHY initialization sequence
43.4. DSI 和 D-PHY 初始化序列
This chapter describes the procedure for DSI and D-PHY initialization. This process is based on APB register interface access.
这一章描述了DSI和D-PHY初始化的过程。处理过程是基于APB注册接口访问。
• By default register PHY_RSTZ is activating the PHY resets physhutdownz, phyrstz and disabling enableclk and register PHY_TEST_CTRL0 is by default asserting the testclr pin. All the PHY reset pins are being activated by default.
默认情况下PHY_RSTZ寄存器已经重置PHY physhutdownz,phyrstz和禁用enableclk,寄存器PHY_TEST_CTRL0是默认情况下关闭testclr引脚的。所有的phy resset引脚默认都是激活的。
+---------------------------------------------------------------+
| MIPI_DSI_PHY_RSTZ field descriptions |
+---------------+-----------------------------------------------+
| Field | Description |
+---------------+-----------------------------------------------+
| – | |
| - | Reserved |
+---------------+-----------------------------------------------+
| | |
| phy_enableclk | Enables D-PHY Clock Lane Module when |
+---------------+-----------------------------------------------+
| | D-PHY Reset disable when , used to place the |
| phy_rstz | digital section of D-PHY in reset state |
+---------------+-----------------------------------------------+
| | D-PHY Shutdown disable when , used to place |
| phy_shutdownz | the complete D-PHY macro in power down |
+---------------+-----------------------------------------------+ • Configure Register PHY_IF_CFG with correct the number of lanes to be used by the controller.
通过配置PHY_IF_CFG寄存器来配置控制器的lane的数量。
+-------------------------------------------------------------------+
| MIPI_DSI_PHY_IF_CFG_ field descriptions |
+----------------+--------------------------------------------------+
| Field | Description |
+----------------+--------------------------------------------------+
| – | |
| - | Reserved |
+----------------+--------------------------------------------------+
| – | Configures minimum wait period to request an HS |
| phy_stop_wait_ | transmission after the stop state accounted in |
| time | clock lane cycles |
+----------------+--------------------------------------------------+
| – | Number of active data lanes. |
| n_lanes | Data Lane (Lane ) |
| | Data Lanes (Lane , and ) |
| | Data Lanes (Lane , and ) |
| | Data Lanes (All) |
+----------------+--------------------------------------------------+ • Configure the TX_ESC clock frequency to a frequency lower than 20MHz that is the maximum allowed frequency for D-PHY ESCAPE mode. This is done by writing in Register CLKMGR_CFG, field TX_ESC_CLK_DIVISION. TX_ESC_CLK_DIVISION divides Byte Clock and generates a TX_ESC clock for the D-PHY. (Note: Byte clock is limited to 125MHz (1GHz/8bits) and by writing TX_ESC_CLK_DIVISION=0x07 TX_ESC clock will always be lower than 20MHz)
配置TX_ESC时钟频率小于20MHz给D-PHY ESCAPE模式,通过向CLKMGR_CFG寄存器的TX_ESC_CLK_DIVISION进行配置。TX_ESC_CLK_DIVISION对Byte Clock进行分频,并对生成TX_ESC时钟给D-PHY。(注意:Byte clock被限制在125MHz(1GHz/8bit),并且对TX_ESC_CLK_DIVISION=0x07 TX_ESC 时钟将总是小于20MHz)
+-------------------------------------------------------------------+
| MIPI_DSI_CLKMGR_CFG field descriptions |
+-------------+-----------------------------------------------------+
| Field | Description |
+-------------+-----------------------------------------------------+
| – | |
| - | Reserved |
+-------------+-----------------------------------------------------+
| – | Division factor for Time Out clock used as timing |
| TO_CLK_ | unit in the configuration of HS to LP and LP to HS |
| DIVIDSION | transition error. |
+-------------+-----------------------------------------------------+
| – | Division factor for TX ESCAPE clock source ( |
| TX_ESC_CLK_ | lanebyteclk pin), values and stop TX_ESC |
| DIVIDSION | clock generation. |
+-------------+-----------------------------------------------------+ • Configure the DPHY PLL clock frequency through the TEST Interface to operate at 1GHz, assuming that the REF_CLK is provided with a frequency of 27MHz
假设REF_CLk提供的27MHz频率,通过TEST接口操作配置DPHY PLL时钟频率达到1GHz。
+---------------------------------------------------------------------------+
| MIPI_DSI_PHY_TST_CTRL0 field descriptions |
+-------------+-------------------------------------------------------------+
| Field | Description |
+-------------+-------------------------------------------------------------+
| – | |
| - | Reserved |
+-------------+-------------------------------------------------------------+
| | PHY test interface strobe signal. Used to clock TESTDIN bus |
| phy_testclk | into the D-PHY. In conjunction with TESTEN signal controls |
| | the operation selection |
+-------------+-------------------------------------------------------------+
| | PHY test interface clear. When active performs vendor |
| phy_testclr | specific interface initialization (Active High) |
+-------------+-------------------------------------------------------------+ +----------------------------------------------------------------------------------+
| MIPI_DSI_PHY_TST_CTRL1 field descriptions |
+--------------+-------------------------------------------------------------------+
| Field | Description |
+--------------+-------------------------------------------------------------------+
| – | |
| - | Reserved |
+--------------+-------------------------------------------------------------------+
| | PHY test interface operation selector: when configures address |
| phy_testen | write operation on the falling edge of TESTCLK; when configures |
| | a data write operation on the rising edge of TESTCLK |
+--------------+-------------------------------------------------------------------+
| – | PHY output -bit data bus for read-back and internal probing |
| phy_testdout | functionalities |
+--------------+-------------------------------------------------------------------+
| – | PHY test interface input -bit data bus for internal register |
| phy_testdin | programming and test functionalities access |
+--------------+-------------------------------------------------------------------+ • Write @ PHY_TST_CTRL0 - 'h00000000 this disables the testclr pin enabling the interface to write new values to the DPHY internal registers.
往PHY_TST_CTRL0写入32'h00000000,禁用testclr引脚,同时使能接口往DPHY内部寄存器中写值
• Write @ PHY_TST_CTRL1 - 'h00010044 this enables the testen pin bit 17 of this Core register and configures the testdatain to 8'h44. This operation initiate the configuration process of the test code number 0x44.
往PHY_TST_CTRL1写入32'h00010044,使能testen引脚核心寄存器17位,并配置testdatain值为8'h44,这个操作启动配置test code number 0x44。
• Write @ PHY_TEST_CTRL0 - 'h0000002 followed by a new write to PHY_TEST_CTRL0 - 32'h00000000. This operation toggles the testclk (bit ) and the testdin will be sampled on the falling edge of testclk latching a new test code.
往PHY_TST_CTRL0写入32'h00000002总是跟随在往PHY_TST_CTRL0写入32'h00000000之后,这个操作触发testclk(bit2),并将testddatain的数据采样生成一个新的test code
• Write @ PHY_TEST_CTRL1 - 'h00000074 disabling the testen pin and configuring testdatain to 8'h74. This operation prepares the interface to load in test code 0x44 the 0x74 value.
• Write @ PHY_TEST_CTRL0 - 'h00000002 followed by a new write to PHY_TEST_CTRL0 - 32'h00000000. This operation toggles the testclk and the testdin will be sampled on the rising edge of testclk latching a new content data to the configured test code.
• Write @ PHY_RSTZ - 'h00000007. This operation asserts physhutdownz, phyrstz and enableclk releasing the PHY from power down. The PHY will startup the PLL locking procedure to 1GHz operation.
往PHY_RSTZ写入32'h00000007这操作打断physhutdownz, phyrstz和使能时钟,让PHY从断电状态恢复,PHY将重启PLL锁到1GHz操作。
• Read @ PHY_STATUS - 'hxxxxxxx1, until bit 0 phylock is detected at 1 signaling that PLL is locked and that a stable byte clock is being provided to the DSI host controller.
读取PHY_STATUS的值32'hxxxxxxx1,直到该寄存器的bit 0位被检查到1,说明PLL的锁住了,并且其在一个稳定的byte clock可以被提供到DSI主控制器
• Read @ PHY_STATUS - 'hxxxxx1x1, until bit 2 phystopstateclklane is read '' identifying that Clock Lane is in Stop State. Clock lane need to be in Stop state so that the D-PHY can switch to other operational states such as the High Speed mode.
读取PHY_STATUS的值32'hxxxxx1x1,直到该寄存器的bit 2位被检查到1,确定Clock lane在Stop状态。Clock lane需要进入Stop状态,这样D-PHY才能切换到其他的操作状态,如:High Speed mode。
• Write register PHY_IF_CTRL bit to generate High Speed clock (txrequestHSclk).
往PHY_IF_CTRL中bit 0写入1,生成High Speed clock(txrequestHSclk)。
• Only after: ) PLL locked and ) Clock lane in Stop-State; the PHY will drive the correct LP sequence to configure the receiver end for HS.
只有在以下条件下继续运行:
. PLL被锁住;
. Clock lane进入Stop-State状态,PHY将驱动正确的LP序列去配置从设备,并进入HS状态。
• D-PHY starts transmitting HS clock on the Clock Lane.
D-PHY 开始传送HS clock在Clock Lane上面。

MIPI DSI 和 D-PHY 初始化序列的更多相关文章

  1. MIPI DSI协议介绍

    此文根据网上的资料翻译和整理而来 一.MIPI MIPI(移动行业处理器接口)是Mobile Industry Processor Interface的缩写.MIPI(移动行业处理器接口)是MIPI联 ...

  2. MIPI DSI之DBI DPI含义和区别(3-1)

    一.MIPI MIPI(Mobile Industry Processor Interface/移动工业处理器接口)是2003年由ARM.Nokia.ST 等公司成立联盟并为移动应用处理器制定的一个开 ...

  3. LCD之mipi DSI接口驱动调试流程【转】

    转自:http://blog.csdn.net/liwei16611/article/details/68146912 1.LCD MIPI DSI协议 MIPI-DSI是一种应用于显示技术的串行接口 ...

  4. 【完整资料】TC358779XBG:HDMI转MIPI DSI芯片方案

    TC358779XBG是一颗HDMI1.4转MIPI  DSI带缩放功能的芯片,分辨率1920*1080,封装BGA80.通信方式:IIC,电源3.3/1.8/2.2,应用领域:平板,广告机,VR,显 ...

  5. 【详细资料】ICN6211:MIPI DSI转RGB芯片简介

    ICN6211功能MIPI DSI转RGB,分辨率1920*1200,封装QFN48

  6. 【详细资料】ICN6202:MIPI DSI转LVDS芯片简介

    ICN6202功能MIPI DSI转LVDS,分辨率1920*1200,封装QFN40

  7. TC358775XBG:MIPI DSI转双路LVDS芯片简介

    TC358775XBG是一颗MIPI DSI转双路LVDS芯片,通信方式:IIC/MIPI command mode,分辨率1920*1200,封装形式:BGA64.

  8. HDMI转MIPI DSI芯片方案TC358870XBG

    型号:TC358870XBG功能:HDMI1.4b转MIPI DSI通信方式:IIC分辨率:2560*1600@60fps/4k*2k@30fps电源:3.3/1.8/1.2/1.1封装形式:BGA8 ...

  9. HDMI转MIPI DSI芯片方案TC358779XBG

    型号:TC358779XBG功能:HDMI1.4转MIPI DSI通信方式:IIC分辨率:1920*1080电源:3.3/1.8/1.2封装形式:BGA80深圳长期现货 ,提供技术支持,样品申请及规格 ...

随机推荐

  1. poj 3684

    Physics Experiment Time Limit: 1000MS   Memory Limit: 65536K Total Submissions: 784   Accepted: 266 ...

  2. Web App中的Flexbox应用

    虽然语法可能比较混杂,但 Flexbox 还是名不虚传的.它创造的是可伸缩的.有弹性的.可改变视觉顺序的智能盒子.它提供了简单的CSS布局方案范例让容器总是处于垂直水平居中的位置.使用盒模型来工作是非 ...

  3. POJ 1401

    #include<iostream>using namespace std;int main(){    int num;    int i;    int sum;    cin> ...

  4. 十大技巧优化Android App性能

    无论锤子还是茄子手机的不断冒出,Android系统的手机市场占有率目前来说还是最大的,因此基于Android开发的App数量也是很庞大的. 那么,如何能开发出更高性能的Android App?相信是软 ...

  5. (转)【移动开发】Android中三种超实用的滑屏方式汇总(ViewPager、ViewFlipper、ViewFlow)

    转自: http://smallwoniu.blog.51cto.com/3911954/1308959 现如今主流的Android应用中,都少不了左右滑动滚屏这项功能,(貌似现在好多人使用智能机都习 ...

  6. 凌乱的yyy

    题目背景 快noip了,yyy很紧张! 题目描述 现在各大oj上有n个比赛,每个比赛的开始.结束的时间点是知道的. yyy认为,参加越多的比赛,noip就能考的越好(假的) 所以,他想知道他最多能参加 ...

  7. android-exploitme(一):生成apk

    exploitme是一个国外的android安全测试环境,http://securitycompass.github.io/AndroidLabs/index.html,通过它可以学习一些基本的测试方 ...

  8. 300. Longest Increasing Subsequence

    题目: Given an unsorted array of integers, find the length of longest increasing subsequence. For exam ...

  9. 把properties放到src的package中

    eclipse在buildporject的时候会自动将properties文件拷贝到/build下的相应的package中

  10. android异步加载图片

    import java.io.BufferedOutputStream; import java.io.File; import java.io.FileNotFoundException; impo ...