Changing struct v4l2_if_type_bt656 for a csi2 format Help?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Changing struct v4l2_if_type_bt656 for a csi2 format Help?

1,002 Views
mustafabakircio
Contributor IV

Hello ;

I need to modify the v4l2_if_type_bt656 parallel camera interface for  csi2 interface I look at the this document http://electronix.ru/forum/index.php?act=Attach&type=post&id=67362

but I did not know where should I have to look at this document. Can some one explain what v4l2_if_type_bt656 struct is doing and how can I modify according to the csi2 interface. It would be very appreciated.

struct v4l2_if_type_bt656 {
    /*
     * 0: Frame begins when vsync is high.
     * 1: Frame begins when vsync changes from low to high.
     */
    unsigned frame_start_on_rising_vs:1;
  
 /* Use Bt synchronisation codes for sync correction. */
    unsigned bt_sync_correct:1;
  
 /* Swap every two adjacent image data elements. */
    unsigned swap:1;
 
   /* Inverted latch clock polarity from slave. */
    unsigned latch_clk_inv:1;
  
 /* Hs polarity. 0 is active high, 1 active low. */
    unsigned nobt_hs_inv:1;
  
 /* Vs polarity. 0 is active high, 1 active low. */
    unsigned nobt_vs_inv:1;
    enum v4l2_if_type_bt656_mode mode;
 
   /* Minimum accepted bus clock for slave (in Hz). */
    u32 clock_min;
    /* Maximum accepted bus clock for slave. */
    u32 clock_max;
 
   /*
     * Current wish of the slave. May only change in response to
     * ioctls that affect image capture.
     */
    u32 clock_curr;
};

Also I want to ask is ipu-v3.h compatible for csi2 interface which ipu specification should I use ?

Best Regards

0 Kudos
1 Reply

546 Views
igorpadykov
NXP Employee
NXP Employee

Hi Mustafa

regarding your questions it may be useful to check below document

iMX6 IPU TVIN Application Notes 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos