2947
- 收藏
- 点赞
- 分享
- 举报
双sensor的mipi结构体配置
本帖最后由 qn1561685365 于 2019-8-1 21:05 编辑
双sensor,sensor0用LVDS,sensor1用mipi。LVDS 用link0和link1。mipi用link2.结构配置如下:
LVDS配置
combo_dev_attr_t LVDS_8lane_SENSOR_IMX226_12BIT_8M_NOWDR_ATTR =
{
.devno = 0,
/* input mode */
.input_mode = INPUT_MODE_LVDS,
.phy_clk_share = PHY_CLK_SHARE_PHY0,
.img_rect = {252, 18, 3840, 2160},
.lvds_attr =
{
.raw_data_type = RAW_DATA_12BIT,
.wdr_mode = HI_WDR_MODE_NONE,
.sync_mode = LVDS_SYNC_MODE_SAV,
.vsync_type = {LVDS_VSYNC_NORMAL, 0, 0},
.fid_type = {LVDS_FID_NONE, HI_TRUE},
.data_endian = LVDS_ENDIAN_BIG,
.sync_code_endian = LVDS_ENDIAN_BIG,
.lane_id = {0, 1, 2, 6, 3, 4, 7, 5, -1, -1, -1, -1},
.sync_code =
{
{ {0xab0, 0xb60, 0x800, 0x9d0}, // lane 0
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0}
},
{ {0xab0, 0xb60, 0x800, 0x9d0}, // lane 1
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0}
},
{ {0xab0, 0xb60, 0x800, 0x9d0}, // lane2
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0}
},
{ {0xab0, 0xb60, 0x800, 0x9d0}, // lane3
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0}
},
{ {0xab0, 0xb60, 0x800, 0x9d0}, // lane4
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0}
},
{ {0xab0, 0xb60, 0x800, 0x9d0}, // lane5
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0}
},
{ {0xab0, 0xb60, 0x800, 0x9d0}, // lane6
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0}
},
{ {0xab0, 0xb60, 0x800, 0x9d0}, // lane7
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0}
},
}
}
};
combo_dev_attr_t MIPI_pTG_ATTR =
{
.devno = 1,
.input_mode = INPUT_MODE_MIPI,
.phy_clk_share = PHY_CLK_SHARE_PHY0,
.img_rect = {0, 0, 720, 576},
.mipi_attr =
{
.raw_data_type = RAW_DATA_12BIT,
.wdr_mode = HI_MIPI_WDR_MODE_NONE,
.lane_id = {0, 1, -1, -1, -1, -1, -1, -1}
//.lane_id = {0, 1, 2, 3, -1, -1, -1, -1}
//.lane_id = { -1, 0, 1, -1, -1 ,-1, -1, -1}
}
};
phy_clk_share 都配成PHY_CLK_SHARE_PHY0,但是好像说sensor1不能配成PHY_CLK_SHARE_PHY0。但是如果我不配成这个的话,sensor1拿不到分辨率,而且就算配成PHY_CLK_SHARE_PHY0拿到的分辨率也不对
有大侠看一下这样配置是不是对啊。sensor1的link2是不是不能用PHY_CLK_SHARE_PHY0的啊
双sensor,sensor0用LVDS,sensor1用mipi。LVDS 用link0和link1。mipi用link2.结构配置如下:
LVDS配置
combo_dev_attr_t LVDS_8lane_SENSOR_IMX226_12BIT_8M_NOWDR_ATTR =
{
.devno = 0,
/* input mode */
.input_mode = INPUT_MODE_LVDS,
.phy_clk_share = PHY_CLK_SHARE_PHY0,
.img_rect = {252, 18, 3840, 2160},
.lvds_attr =
{
.raw_data_type = RAW_DATA_12BIT,
.wdr_mode = HI_WDR_MODE_NONE,
.sync_mode = LVDS_SYNC_MODE_SAV,
.vsync_type = {LVDS_VSYNC_NORMAL, 0, 0},
.fid_type = {LVDS_FID_NONE, HI_TRUE},
.data_endian = LVDS_ENDIAN_BIG,
.sync_code_endian = LVDS_ENDIAN_BIG,
.lane_id = {0, 1, 2, 6, 3, 4, 7, 5, -1, -1, -1, -1},
.sync_code =
{
{ {0xab0, 0xb60, 0x800, 0x9d0}, // lane 0
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0}
},
{ {0xab0, 0xb60, 0x800, 0x9d0}, // lane 1
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0}
},
{ {0xab0, 0xb60, 0x800, 0x9d0}, // lane2
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0}
},
{ {0xab0, 0xb60, 0x800, 0x9d0}, // lane3
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0}
},
{ {0xab0, 0xb60, 0x800, 0x9d0}, // lane4
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0}
},
{ {0xab0, 0xb60, 0x800, 0x9d0}, // lane5
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0}
},
{ {0xab0, 0xb60, 0x800, 0x9d0}, // lane6
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0}
},
{ {0xab0, 0xb60, 0x800, 0x9d0}, // lane7
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0},
{0xab0, 0xb60, 0x800, 0x9d0}
},
}
}
};
combo_dev_attr_t MIPI_pTG_ATTR =
{
.devno = 1,
.input_mode = INPUT_MODE_MIPI,
.phy_clk_share = PHY_CLK_SHARE_PHY0,
.img_rect = {0, 0, 720, 576},
.mipi_attr =
{
.raw_data_type = RAW_DATA_12BIT,
.wdr_mode = HI_MIPI_WDR_MODE_NONE,
.lane_id = {0, 1, -1, -1, -1, -1, -1, -1}
//.lane_id = {0, 1, 2, 3, -1, -1, -1, -1}
//.lane_id = { -1, 0, 1, -1, -1 ,-1, -1, -1}
}
};
phy_clk_share 都配成PHY_CLK_SHARE_PHY0,但是好像说sensor1不能配成PHY_CLK_SHARE_PHY0。但是如果我不配成这个的话,sensor1拿不到分辨率,而且就算配成PHY_CLK_SHARE_PHY0拿到的分辨率也不对
有大侠看一下这样配置是不是对啊。sensor1的link2是不是不能用PHY_CLK_SHARE_PHY0的啊
我来回答
回答2个
时间排序
认可量排序
认可0
认可0
或将文件直接拖到这里
悬赏:
E币
网盘
* 网盘链接:
* 提取码:
悬赏:
E币
Markdown 语法
- 加粗**内容**
- 斜体*内容*
- 删除线~~内容~~
- 引用> 引用内容
- 代码`代码`
- 代码块```编程语言↵代码```
- 链接[链接标题](url)
- 无序列表- 内容
- 有序列表1. 内容
- 缩进内容
- 图片![alt](url)
相关问答
-
2020-12-03 16:41:00
-
2020-10-14 10:22:43
-
2010-07-23 16:56:24
-
2018-11-21 14:27:10
-
2018-11-06 09:24:31
-
2016-08-26 12:02:21
-
2020-11-22 16:19:40
-
2016-03-07 10:35:26
-
2023-10-17 10:59:00
-
2024-07-10 14:06:09
-
2022-07-19 09:23:55
-
2014-11-21 14:38:02
-
2019-12-16 11:47:43
-
2014-11-21 14:44:08
-
2020-05-12 17:37:37
-
2014-12-25 12:15:14
-
2018-12-17 11:31:24
-
2020-09-21 17:27:24
-
2020-06-04 11:15:55
无更多相似问答 去提问
点击登录
-- 积分
-- E币
提问
—
收益
—
被采纳
—
我要提问
切换马甲
上一页
下一页
悬赏问答
-
5SS928的emmc有32GB,bootargs设置使用16GB,但是为啥能用的只有rootfs的大小
-
33SS928怎样烧写ubuntu系统
-
10ToolPlatform下载rootfs提示网络失败
-
10谁有GK7205V500的SDK
-
5Hi3516CV610 烧录不进去
-
10Hi3559AV100 芯片硬解码h265编码格式的视频时出现视频播放错误,解码错误信息 s32PackErr:码流有错
-
5海思SS928 / SD3403的sample_venc.c摄像头编码Demo中,采集到的摄像头的YUV数据在哪个相关的函数中?
-
5海鸥派openEuler无法启动网卡,连接WIFI存在问题
-
66有没有ISP相关的巨佬帮忙看看SS928对接IMX347的图像问题
-
50求助hi3559与FPGA通过SLVS-EC接口对接问题
举报反馈
举报类型
- 内容涉黄/赌/毒
- 内容侵权/抄袭
- 政治相关
- 涉嫌广告
- 侮辱谩骂
- 其他
详细说明
提醒
你的问题还没有最佳答案,是否结题,结题后将扣除20%的悬赏金
取消
确认
提醒
你的问题还没有最佳答案,是否结题,结题后将根据回答情况扣除相应悬赏金(1回答=1E币)
取消
确认