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 1503 Integer Inquiry(大数相加,java)

    题目 我要开始练习一些java的简单编程了^v^ import java.io.*; import java.util.*; import java.math.*; public class Main ...

  2. LA 3211

    As you must have experienced, instead of landing immediately, an aircraft sometimes waits in a holdi ...

  3. 【mysql5.6】SQL基础

    我买了本深入浅出MySQL, 记录一下笔记. 一.数据定义语言(DDL) 1.创建数据库  create database name; 2.显示所有的数据库  show databases; 3.选择 ...

  4. Unix安装BerkeleyDB

    下载安装包Berkeley DB 5.3.21.tar.gz http://www.oracle.com/technetwork/products/berkeleydb/downloads/index ...

  5. 【poj3691-DNA repair】AC自动机+DP

    题意:给n个病毒DNA序列,再给一个DNA序列,问该序列至少修改多少个碱基能不含任何病毒DNA.病毒DNA序列一共不超过1000,询问的DNA长度不超过1000. 题解:DP:d[l][p]表示询问到 ...

  6. PHP-用ThinkPHP和Bootstrap实现用户登录设计

    一.目标 1.用ThinkPHP和Bootstrap实现用户登录设 2.初步界面如下 二.用到的工具及框架 1.ThinkPHP 2.Bootstrap 3.Subline 三.开发环境搭建 1.下载 ...

  7. try catch语句在VC下的处理

    使用VC编译QT程序碰到一个问题: 我在.h文件里定义:    LoadingWidget* w;然后.cpp文件里定义: void MyClass::ModifyTask(){    // w = ...

  8. 更新SDK后ADT版本低不支持

    在android_sdk_windows/tools/lib下的plugin.prop文件里被变更为 # begin plugin.prop plugin.version=21.1.0 # end p ...

  9. 针对安卓java入门:条件语句和循环语句

    条件语句: if(){..} if(){}else{..} if(){..}else if(){..} if(){..}else if(){..}else{..} switch(x){ case x: ...

  10. PowerDesigner中name和code取消自动关联

    PowerDesigner中,如果修改了某个字段的name,其code也跟着修改,如果想取消,可以如下操作 解决方法如下: 1.选择Tools->GeneralOptions...菜单,出现Ge ...