lt6911c 龙讯的hdmi转mipi
这个芯片厂家已经配置好了输出1920*1080 60fps yuv422 4lanes,上电就直接输出。该芯片没有i2c配置,我现在是修改ov13850的驱动,去掉了i2c配置,修改输出参数,还是出不来图像。用的板子是aio-3399j。
有人这样做过没,提供下思路。
[ 20.411039] ov13850_get_fmt...
[ 20.412046] rkisp1 ff920000.rkisp1: can not get first iq setting in stream on
[ 20.414786] ov13850_s_stream ...on=1
[ 20.424100] rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
[ 20.424590] rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000001)rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
[ 20.425469] rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000000)rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
[ 20.426359] rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000001)rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
[ 20.427294] rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000001)rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
[ 20.428146] rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000000)rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
[ 20.428995] rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000000)rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
[ 20.429844] rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000000)rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
[ 20.430696] rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000001)rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
[ 20.431553] rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000000)rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
[ 20.432416] rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000001)rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
[ 20.433274] rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000001)rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
[ 20.434139] rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000001)rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
[ 20.435001] rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000000)rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
[ 20.435852] rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000001)rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
[ 20.436688] rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000000)rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
[ 20.437516] rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000000)rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
[ 20.438335] rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000000)rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
[ 20.439153] rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000000)rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
[ 20.439972] rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000000)rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
[ 20.440979] rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000000)rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
[ 20.441815] rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000000)rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
[ 20.442642] rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000000)rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
[ 20.443468] rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000000)rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
[ 20.444308] rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000000)rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
[ 20.445133] rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000000)rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
[ 20.445960] rkisp1: CIF_ISP_PIC_SIZE_ERROR (0x00000000)[ 20.446461] rkisp1: Too many isp error, stop isp!
[ 91.905926] ov13850_s_stream ...on=0
[ 91.910869] ov13850_s_power ...
楼主,你这个LT6911搞定了没; 我现在也是在rk3399pro上按这种方式移植了,但获取帧时,rkisp中断没有触发,一直获取不到帧数据; 我用ov13850 , media 拓扑一致, ov13850可以获取帧 fengyong 发表于 2020-12-15 15:21
楼主,你这个LT6911搞定了没; 我现在也是在rk3399pro上按这种方式移植了,但获取帧时,rkisp中断没有触发 ...
我也按照楼主的方法去驱动,也是没图像显示。你们解决了这个问题了吗 还是没有搞定,整个media topology 看起来很正常,用rkisp的测试例程就是获取不到帧数据, 同样的media topology , 同样的测试程序,ov13850就是可以获取帧
Media controller API version 0.1.0
Media device information
------------------------
driver rkisp1
model rkisp1
serial
bus info
hw revision 0x0
driver version0.0.0
Device topology
- entity 1: rkisp1-isp-subdev (4 pads, 6 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev0
pad0: Sink
[fmt:SBGGR10_1X10/1920x1080 field:none
crop.bounds:(0,0)/1920x1080
crop:(0,0)/1920x1080]
<- "rkisp1_dmapath":0 []
<- "rockchip-mipi-dphy-rx":1
pad1: Sink
<- "rkisp1-input-params":0
pad2: Source
[fmt:YUYV8_2X8/1920x1080 field:none
crop.bounds:(0,0)/1920x1080
crop:(0,0)/1920x1080]
-> "rkisp1_selfpath":0
-> "rkisp1_mainpath":0
pad3: Source
-> "rkisp1-statistics":0
- entity 2: rkisp1_mainpath (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video0
pad0: Sink
<- "rkisp1-isp-subdev":2
- entity 3: rkisp1_selfpath (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video1
pad0: Sink
<- "rkisp1-isp-subdev":2
- entity 4: rkisp1_dmapath (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video2
pad0: Source
-> "rkisp1-isp-subdev":0 []
- entity 5: rkisp1-statistics (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video3
pad0: Sink
<- "rkisp1-isp-subdev":3
- entity 6: rkisp1-input-params (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video4
pad0: Source
-> "rkisp1-isp-subdev":1
- entity 7: rockchip-mipi-dphy-rx (2 pads, 2 links)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev1
pad0: Sink
<- "m00_b_lt6911 2-0010":0
pad1: Source
-> "rkisp1-isp-subdev":0
- entity 8: m00_b_lt6911 2-0010 (1 pad, 1 link)
type V4L2 subdev subtype Sensor flags 0
device node name /dev/v4l-subdev2
pad0: Source
-> "rockchip-mipi-dphy-rx":0
有搞定的兄弟,告知下 fengyong 发表于 2020-12-24 08:35
还是没有搞定,整个media topology 看起来很正常,用rkisp的测试例程就是获取不到帧数据, 同样的media top ...
会不会是你的ltLT6911输入的TIMING和摄像头这边的驱动TIMIG 触发不一样,配置好了输出1920*1080 60fps yuv422 4lanes。估计要查看这部分是否一致。 好的,谢谢提醒;我查下这部分配置 fengyong,
有没有搞定,能否分享一下遇到同样的问题。 to bingking88:
前一段时间由于有其他项目任务,这个产品的功能暂缓了,这几天准备再调试。
1.我这边还没有调通,使用现在的方法(改造ov13850),这个流程一直卡在rkisp获取不到中断,LT6911在csi上信号也有; 咨询过龙讯的FAE, 这个固件是他们和瑞芯微的工程师调试过的,但我们获取不到原厂的支持,驱动和dts这边不知道有啥问题,自己调试一直没搞通,这个产品一直不能出货,很是郁闷。
2.在网上遇到一个网友,他在rk3399 Android上调通过LT6911的,他的方式和我们现在不一样,由于rk提供的hdmiin使用的是tc358749,适配tc358749是OK的,他直接修改的tc358749驱动和ANdroid HAL层中的TC358749XBG_MIPI_YUV中代码,这个他是调通的;图像和声音都是OK的;
我个人理解只要把LT6911这里调得有输出,rockchip这边的dphy驱动中把lanes_num, clk, 传输格式调成一致即可。如果连中断数据都没有,那估计时钟这块或者数据线和时钟线d+,d-接反了 你们通过isp通路可以采集吗?我这边cif通路采集正常,isp通路报错。
368.504367] rkisp0: update_dmatx_v2 stream:4 Y:0x39570000 SHD:0x392c0000
rkisp0: readback frame:0 time:1 0xa0820401
rkisp0: isp isr:0x48, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: isp isr:0x8, 0x0
rkisp0: CIF_ISP_PIC_SIZE_ERROR (0x00000001)
rkisp0: SP streaming = 0, MP streaming = 1
rkisp0: streaming(MP:0, SP:1), MI_CTRL:ba2001, ISP_CTRL:80440104, MIPI_CTRL:a0820401
rkisp0: Too many isp error, stop isp!
rkisp0: rkisp_stop_streaming 0