This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DS90UB954-Q1: How to config DS90UB953 working with DS90UB954

Part Number: DS90UB954-Q1

 Now  i use DS90UB953 fit with DS90UB954,my image source is  RGB888/YUV422  4-lane CSI ,image size 1920*1080*30fps,i have confirmed that my hardware designing is OK just use an config-lut like fellow

my application blockgram is that:

/******************************************************************************************/

init 954:

/*******************************************************************************************/

;@@ TI954
60 0C 0f;//I2C mapping pass port0 enable port0
60 1F 02;//CSI_PLL_CTL 800Mbps for 720p YUV422
//GPIO config 0x10 -0x16,Not care
// Frame sync config  Not care
60 4c 01;//page to port RX0
60 58 58;//enable passthrough
60 5b 30;//serializer-DS90UB953 slave ID=0x30
60 5c 30;//serializer alias ID
60 5d 6c;//imager slave id
60 65 22;//image
60 6d 7c;//input mode 953/935 适配
60 7c 01;//set frame valid polarity to active high
60 4C 12;//page to port RX1
60 58 58;//enable passthrough
60 5b b0;//serializer  slave ID = 0x30
60 5c b4;//serializer   
60 5d 6C;//imager slave ID = 0x30  
60 65 24;//imager slave alias, port0
60 6d 7e;//set input mode
60 7c 01;//set frame valid polarity to active high 
;@@ MIPI init
60 4C 0F;//
60 0F 00;//disable GPIO input
 
60 4C 01;//port 0 format
60 70 2b;
60 71 2c;
60 72 00;
60 4C 12;//port 1 format
60 70 2b;
60 71 2c;
60 72 00;
60 33 23;//'enable CSI port0
60 20 00;//'[3:0]: 0: CSI-2 port 0; 1: CSI-2 port 1;
60 21 03;//'For Fred
/*************************************************************************************/
init DS90UB953  to test pattern generator mode:
/*************************************************************************************/
30 B0 00;//# Indirect Pattern Gen Registers
30 B1 01;//# PGEN_CTL
30 B2 01;//
30 B1 02;//# PGEN_CFG
30 B2 33;//
30 B1 03;//# PGEN_CSI_DI
30 B2 24;//# RGB888
30 B1 04;//# PGEN_LINE_SIZE1
30 B2 16;//
30 B1 05;//# PGEN_LINE_SIZE0
30 B2 80;//
30 B1 06;//# PGEN_BAR_SIZE1
30 B2 02;//
30 B1 07;//# PGEN_BAR_SIZE0
30 B2 D0;//
30 B1 08;//# PGEN_ACT_LPF1
30 B2 04;//
30 B1 09;//# PGEN_ACT_LPF0
30 B2 38;//
30 B1 0A;//# PGEN_TOT_LPF1
30 B2 04;//
30 B1 0B;//# PGEN_TOT_LPF0
30 B2 65;//
30 B1 0C;//# PGEN_LINE_PD1
30 B2 0B;//
30 B1 0D;//# PGEN_LINE_PD0
30 B2 93;//
30 B1 0E;//# PGEN_VBP
30 B2 21;//
30 B1 0F;//# PGEN_VFP
30 B2 0A;//
then   i check the signal output from DS90UB954 CSI-PORT

              so  ①how to modify the config to make it not to use virtul channel

                   ② if use an real image source input but not the test pattern,how to change the config lut?

                   3:how does 953&954 know whether the input is RGB888 or YUV  and how to make it suit to 的signal?

  • Hi,

    1) You cannot completely eliminate the VC ID, it can be re-assigned only. In register 0x72 of the DS90UB954 has VC set-up. By default, it's set-up so that if an input stream has a VC0 on the RX port selected, it gets assigned a VC0, an input of VC1 gets assigned VC1, VC2 is assigned VC2 and VC3 is assigned VC3. You can basically change these to as desired. VC0 can be re-assigned VC0, 1, 2 or 3.

    2) So are you saying you don't want to configure PATGEN, instead send the imager data? Just keep the CSI Patgen turned off on both the Ser and Des. These are off by default, so as long as you don't turn it on, you're good.

    3) The Data Type identifier is embedded into the CSI protocol. The SerDes can decode that information when transmitting CSI data.

    Regards,

    Mandeep Singh

  • Dear Mandeep:

         I've finished to make my ASIC driving a LCD display the color bar which was generated by DS90UB954,the mistake is caused by the mipi phy clock,i change it to 800MHZ and change the line period to  B93 (29.63us) and than i find the wave show that fps =30fps and  line period is 29.63us (29.63us*1125 =33.3375ms)

            now  i begin to send an real video stream but not colorbar to my ASIC.

            My source is 1920x1080 30fps Yuv422 in mipi package with 4-lane,400Mbps phy

            I find signal input to 953 is different from output from 954  like fellow

            input 953:

             

    output on 954

    ①you can see every line period  is 29.63us ,953 input is about 355Mbps per one lane ,but at 954 csi output port,just less than half of one period is used for transmit a mipi line,what caused that?

    ②if my input not a raw sensor but YUV or RGB stream ,how to designe my serdes‘s mode pin and deserdes’s mode pin (i find if make 953  synchronous mode and 954 no-sycronize mode ,i cannot config 953 by 954 from remote side,but  all be config to  nonsynchronous i can config 953 from 954 at remote side)

  • Does there any exmple code  for  954+953 Transfrom YUV422 or RGB888

  • Hello,

    Our device can pass through CSI-2 data but it does not have any ability to transform to different color spaces. 

    Best Regards,

    Casey 

  • Dear Casey:

    thanks for your replay.

    i know that 953&953 have no ability to do the color spaces transformation,my design detail is shown like fellow,we do this CSC on ASIC TW8846,but i know if CSI-2 data stream with YUV cost a lower Bandwidth,and just need 400Mbps MIPI Phy but if rgb888 ,there needs the 800Mbps Phy of 954&953,however,hypothesis input source is RGB888 

    Does my setup is ok? i need a help to check of them。

    And i do not know how to set the mode pin, i see many of the application is 953 input with an RAW8,10,12bit sensor data,but my application is using 953,954 for display link. 

  • Hello,

    Your setup looks ok except the CLKIN applied to the 953 should be 50MHz, not 25MHz for 4Gbps operation. For synchronous mode you don't need to have any local CLKIN applied to the 953 since it can use the back channel from the 954 as a reference but if you use non-syncronous mode where you apply a CLKIN directly to 953 then you need 50MHz for 4G and 25MHz can be used for 2G operation as per table 6 in the datasheet. (FC rate = CLKIN*80). 

    Since you are using 445Mbps/lane, you will need ~1780Mbps of CSI bandwidth. The CSI bandwidth is calculated as f*64 for non-synchronous mode so if you use 25MHz at 953, then CSI bandwidth = 25*64 = 1600Mbps which is not enough. Please either use synchronous mode or switch the 953 CLKIN to 50MHz. Also remember for non-synchronous mode the back channel rate must be reduced from the 954 side as well so I would suggest simply using synchronous mode. 

    Table 8 in the 953 datasheet explains the strapping for synchronous mode. 

    Best Regards,

    Casey 

  • Hello,

    Has this issue been resolved?

    Thanks,

    Casey 

  • HELLO Casey:

              I've test the output signal wave,It's right ,but i've not  finish the display working.

             

  • Thanks  and i've solved this problem   ^_^