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. RDLC报表BC4000错误

    如果RDLC报表报 BC4000错误,那是因为在矩阵外上面添加了文本框的缘故,导致系统不能读到RDLC报表表体,告诉你报表没有定义: 解决办法: 把表头文字放入矩阵中.

  2. mysql 事务提交过程

     打开binlog选项后,执行事务提交命令时,就会进入两阶段提交模式.两阶段提交分为prepare阶段和commit两个阶段.流程如下 :这里面涉及到两个重要的参数:innodb_flush_log_ ...

  3. POJ 2541 Binary Witch(逆序KMP,好题)

    逆序KMP,真的是强大! 参考链接,下面有题意解释:http://blog.sina.com.cn/s/blog_6ec5c2d00100tphp.htmlhttp://blog.csdn.net/s ...

  4. .net web程序发布之后,出现编译错误

    .net web程序发布之后,在IIS上浏览的时候出现编译错误. CS0016: 未能写入输出文件“c:\Windows\Microsoft.NET\Framework\v4.0.30319\Temp ...

  5. web快速开发c/s软件构架

    很久没用.net winform 做东西,对控件相对比较陌生,另外控件的UI也不是那么好改.公司项目需要有web客户端,同时有软件客户端形式.考虑再三采用webBrowser+html 来实现 .用h ...

  6. 2014多校第一场 E 题 || HDU 4865 Peter's Hobby (DP)

    题目链接 题意 : 给你两个表格,第一个表格是三种天气下出现四种湿度的可能性.第二个表格是,昨天出现的三种天气下,今天出现三种天气的可能性.然后给你这几天的湿度,告诉你第一天出现三种天气的可能性,让你 ...

  7. poj 1568 Find the Winning Move 极大极小搜索

    思路:用极大极小搜索解决这样的问题很方便!! 代码如下: #include <cstdio> #include <algorithm> #define inf 10000000 ...

  8. js 异步请求封装

    1. function ajax(url, onsuccess) { var xmlhttp = window.XMLHttpRequest ? new XMLHttpRequest() : new ...

  9. EasyBCD 硬盘安装Pear OS

    Pear OS是一个界面很像mac的Linux distro,基于Ubuntu,免费.可惜的是pear被一个大公司匿名收购,所以现在不更新啦,最后的版本是pear 8.有个pear的替代者elemen ...

  10. 计算机学院2014年“新生杯”ACM程序设计大赛

    1440: 棋盘摆车问题 对于输入n,k: 1.当n<k时,无满足的摆法 2.否则 第一个车可以排n*n个位置(即整个棋盘),第二个可排(n-1)*(n-1)个位置,…… 正如排列组合一样,车与 ...