upate:更新双目sensor驱动

This commit is contained in:
2025-03-06 20:04:44 +08:00
parent e265e27c69
commit 2077a3997d
20 changed files with 44204 additions and 8790 deletions

View File

@@ -159,15 +159,15 @@ struct vin_mclk_info vind_default_mclk[VIN_MAX_CCI] = {
.mclk = HAL_CLK_PERIPH_CSI_MASTER0,
.clk_24m = HAL_CLK_SRC_HOSC,
.clk_pll = HAL_CLK_PLL_CSI,
.pin = GPIOA(10),
.pin_func = {0x4, 0xf},
.pin = GPIOE(12),
.pin_func = {0x5, 0xf},
},
{
.mclk = HAL_CLK_PERIPH_CSI_MASTER1,
.clk_24m = HAL_CLK_SRC_HOSC,
.clk_pll = HAL_CLK_PLL_CSI,
.pin = GPIOA(13),
.pin_func = {0x4, 0xf},
.pin = GPIOE(13),
.pin_func = {0x5, 0xf},
},
{
.mclk = HAL_CLK_PERIPH_CSI_MASTER1,
@@ -226,6 +226,21 @@ struct sensor_list global_sensors[VIN_MAX_CSI] = {
.ir_cut_gpio[0] = GPIOD(18), /*-cut*/
.ir_cut_gpio[1] = GPIOD(8), /*+cut*/
.ir_led_gpio = 0xffff, //GPIOE(10)
#elif defined(CONFIG_SENSOR_SC202CS_MIPI)
.used = 1,
.sensor_name = "sc202cs_mipi",
.sensor_twi_addr = 0x20,
.sensor_twi_id = 0,
.mclk_id = 1,
.use_isp = 1,
.id = 0,
.addr_width = 16,
.data_width = 8,
.reset_gpio = GPIOE(10),
.pwdn_gpio = 0xffff,
.ir_cut_gpio[0] = 0xffff,/*-cut*/
.ir_cut_gpio[1] = 0xffff,/*+cut*/
.ir_led_gpio = 0xffff,
#else //CONFIG_SENSOR_GC2053_MIPI
.used = 1,
.sensor_name = "gc2083_mipi",
@@ -478,6 +493,21 @@ struct sensor_list global_sensors[VIN_MAX_CSI] = {
// .ir_cut_gpio[0] = 0xffff,/*-cut*/
// .ir_cut_gpio[1] = 0xffff,/*+cut*/
// .ir_led_gpio = GPIOF(3),
#elif defined(CONFIG_SENSOR_SC202CS_MIPI)
.used = 1,
.sensor_name = "sc202cs_mipi",
.sensor_twi_addr = 0x20,
.sensor_twi_id = 0,
.mclk_id = 1,
.use_isp = 1,
.id = 0,
.addr_width = 16,
.data_width = 8,
.reset_gpio = GPIOE(10),
.pwdn_gpio = 0xffff,
.ir_cut_gpio[0] = 0xffff,/*-cut*/
.ir_cut_gpio[1] = 0xffff,/*+cut*/
.ir_led_gpio = 0xffff,
#else
.used = 1,
.sensor_name = "gc2083_mipi",
@@ -527,6 +557,21 @@ struct sensor_list global_sensors[VIN_MAX_CSI] = {
.ir_cut_gpio[0] = 0xffff,/*-cut*/
.ir_cut_gpio[1] = 0xffff,/*+cut*/
.ir_led_gpio = 0xffff,
#elif defined(CONFIG_SENSOR_SC202CS_MIPI)
.used = 1,
.sensor_name = "sc202cs_mipi_2",
.sensor_twi_addr = 0x6c,
.sensor_twi_id = 0,
.mclk_id = 1,
.use_isp = 1,
.id = 1,
.addr_width = 16,
.data_width = 8,
.reset_gpio = GPIOE(11),
.pwdn_gpio = 0xffff,
.ir_cut_gpio[0] = 0xffff,/*-cut*/
.ir_cut_gpio[1] = 0xffff,/*+cut*/
.ir_led_gpio = 0xffff,
#else
.used = 1,
.sensor_name = "gc2083_mipi",
@@ -559,8 +604,8 @@ struct vin_core global_video[VIN_MAX_VIDEO] = {
.isp_tx_ch = 0,
.base = CSI_DMA0_REG_BASE,
.irq = SUNXI_IRQ_CSIC_DMA0,
.o_width = 512,
.o_height = 288,
.o_width = 1600,
.o_height = 1200,
//.fourcc = V4L2_PIX_FMT_LBC_2_5X,
.fourcc = V4L2_PIX_FMT_NV12,
.use_sensor_list = 0,
@@ -569,7 +614,7 @@ struct vin_core global_video[VIN_MAX_VIDEO] = {
.used = 1,
.id = 1,
.rear_sensor = 1,
.front_sensor = 0,
.front_sensor = 1,
.csi_sel = 1,
.mipi_sel = 1,
.isp_sel = 1,
@@ -577,8 +622,8 @@ struct vin_core global_video[VIN_MAX_VIDEO] = {
.isp_tx_ch = 0,
.base = CSI_DMA0_REG_BASE,
.irq = SUNXI_IRQ_CSIC_DMA0,
.o_width = 512,
.o_height = 288,
.o_width = 1600,
.o_height = 1200,
//.fourcc = V4L2_PIX_FMT_LBC_2_5X,
.fourcc = V4L2_PIX_FMT_NV12,
.use_sensor_list = 0,