tp2854 driver

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

tp2854 driver

602 Views
tirax72
Contributor I

How can I change the settings of this piece of code to the appropriate settings for pal(576*720)?

static struct regval_list sensor_720p25_regs[] = {
//common_init
{0x40, 0x08},/* Disable MIPI CSI2 output */
{0x23, 0x02},
{0x40, 0x04},
{0x4e, 0x00},

//CH_ALL=4, HD25=2, STD_TVI=0, MIPI_4CH4LANE_297M=0
{0x40, 0x04},

{0xf5, 0xff},

{0x01, 0xff},
{0x02, 0x42},
{0x07, 0xc0},
{0x0b, 0xc0},
{0x0c, 0x13},
{0x0d, 0x50},

{0x15, 0x13},
{0x16, 0x15},
{0x17, 0x00},
{0x18, 0x19},
{0x19, 0xd0},
{0x1a, 0x25},
{0x1c, 0x07},/*1280*720, 25fps*/
{0x1d, 0xbc},

{0x20, 0x30},
{0x21, 0x84},
{0x22, 0x36},
{0x23, 0x3c},

{0x2b, 0x60},
{0x2c, 0x0a},
{0x2d, 0x30},
{0x2e, 0x70},

{0x30, 0x48},
{0x31, 0xbb},
{0x32, 0x2e},
{0x33, 0x90},

{0x35, 0x25},
{0x38, 0x00},
{0x39, 0x18},

//STD_HDA == std
{0x02, 0x46},
{0x0d, 0x71},
{0x20, 0x40},
{0x21, 0x46},
{0x25, 0xfe},
{0x26, 0x01},
{0x2c, 0x3a},
{0x2d, 0x5a},
{0x2e, 0x40},
{0x30, 0x9e},
{0x31, 0x20},
{0x32, 0x10},
{0x33, 0x90},
{0x2a, 0x34},

//mipi_out
//mipi setting
{0x40, 0x08},/*MIPI page*/
{0x01, 0xf8},
{0x02, 0x01},
{0x08, 0x0f},
{0x10, 0x20},
{0x11, 0x47},
{0x12, 0x54},
{0x13, 0xef},

//MIPI_4CH4LANE_297M == output
{0x20, 0x44},
{0x34, 0xe4},
{0x14, 0x47},
{0x15, 0x01},
{0x25, 0x04},
{0x26, 0x03},
{0x27, 0x09},
{0x29, 0x02},
{0x0a, 0x80},
{0x33, 0x0f},
{0x33, 0x00},
{0x14, 0xc7},
{0x14, 0x47},

//Enable MIPI CSI2 output
{0x23, 0x00},

};

 

0 Kudos
1 Reply

579 Views
TomasVaverka
NXP TechSupport
NXP TechSupport

Hi,

Your question does not seem to be related to NXP’s sensors, so I am afraid you will not get any proper help here. If you are using the TP2854 with i.MX processors or other MCUs, please enter it to the correct community space or submit a support ticket.

BR, Tomas

0 Kudos