AISTARTVISION MIPI Adapter v2.1 configuration?


#1

I am using Rock960 (VAMR) 4GB+32GB model of RK3399.
Issue is belong to a simple problem : AISTARVISION dual MIPI adaptor v2.1 and ov5645 cameras should not recognized by error of these dmesg:

[    1.357827] cif_isp10_v4l2_drv_probe: probing...
[    1.358371] cif_isp10_pltfrm_dev_init(1224) ERR: could not get default pinstate
[    1.359010] cif_isp10_pltfrm_dev_init WARN: could not get pins_sleep pinstate
[    1.359644] cif_isp10_pltfrm_dev_init WARN: could not get pins_inactive pinstate
[    1.360860] cif_isp10_pltfrm_get_img_src_device(1644) ERR: could not get camera i2c client, maybe not yet created, deferring device probing...
[    1.361993] cif_isp10_img_srcs_init(1099) ERR: failed with error -14
[    1.362554] cif_isp10_create(5772) ERR: cif_isp10_img_srcs_init failed
[    1.363132] cif_isp10_create(5808) ERR: failed with error -14

Am I need change some DIP jumpers on AISTARVISION MIPI adapter board?
Currenty I am not changed any DIP jumpers from bundle.
It jumped as

  • J13: 15-16, 17-18, 19-20, 21-22
  • J14: 3-4, 5-6

Does any one knows what I need to do ?


#2

I suppose you have to add the camera to your device tree under the correct I2C node.
example: https://github.com/rockchip-linux/kernel/blob/release-4.4/arch/arm/boot/dts/rk3288-miniarm.dts#L449

Rockchip wiki gives some info:
http://opensource.rock-chips.com/wiki_Rockchip-isp1


#3

Dear, Loic.
Thank you, I will try to add ov5645( or 5640) for i2c node.
Regards, Raph.


#4

Dear Loic,
I would like to ask about ov5645 device, is there any reference to configure I2C2 ?
Just I am looking for kernel/arch/arm64/boot/dts/rockchip/rock960-model-ab-linux.dts ( @551 ) for now.
Regards, Raph.


#5

First, check that the camera is connected to I2C2, then you just need to add the ov5645 node as a child node of the i2c one in the device tree. Here is an example on Dragomboard-410c:
https://git.linaro.org/landing-teams/working/qualcomm/kernel.git/tree/arch/arm64/boot/dts/qcom/apq8016-sbc.dtsi?h=release/qcomlt-4.14#n375

On your side the difference would be the ‘port’, you’re sensor need to be ‘linked’ to the rk3399 ISP in the same way as here: https://github.com/rockchip-linux/kernel/blob/release-4.4/arch/arm/boot/dts/rk3288-miniarm.dts#L465

And for sure the node should be enabled (status = “ok”:wink:


#6

Dear, Loic.
Thank you again, I will try to this !
Regards, Raph.


#7

It is hard to understand what I need to do for now.
So I thought, it must be included driver for control in media, maybe wrong, or maybe right - anyway I have tried to do these:

  • Including copy driver for ov5647 to ov5645 in media/video driver.
  • Also including rules for Makefile, KConfig, module.built as ov5645.ko.
    But all tries going to failure for an error while building kernel as like
 Building kernel for rock960ab board!
  CHK     include/config/kernel.release
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
  CHK     scripts/mod/devicetable-offsets.h
  CHK     include/generated/timeconst.h
  CHK     include/generated/bounds.h
  CHK     include/generated/asm-offsets.h
  CALL    scripts/checksyscalls.sh
make[1]: 'include/generated/vdso-offsets.h' is up to date.
  CHK     include/generated/compile.h
  CC      drivers/media/video/ov5645.o
In file included from ./include/uapi/linux/posix_types.h:4:0,
                 from include/uapi/linux/types.h:13,
                 from include/linux/types.h:5,
                 from ./include/uapi/linux/sysinfo.h:4,
                 from include/uapi/linux/kernel.h:4,
                 from include/linux/cache.h:4,
                 from include/linux/time.h:4,
                 from include/linux/videodev2.h:59,
                 from drivers/media/video/generic_sensor.h:16,
                 from drivers/media/video/ov5645.c:22:
include/linux/stddef.h:7:14: warning: initialization makes integer from pointerwithout a cast [-Wint-conversion]
error, forbidden warning: stddef.h:7
scripts/Makefile.build:266: recipe for target 'drivers/media/video/ov5645.o' failed
make[3]: *** [drivers/media/video/ov5645.o] Error 1
scripts/Makefile.build:411: recipe for target 'drivers/media/video' failed
make[2]: *** [drivers/media/video] Error 2
scripts/Makefile.build:411: recipe for target 'drivers/media' failed
make[1]: *** [drivers/media] Error 2
make[1]: *** Waiting for unfinished jobs....
Makefile:999: recipe for target 'drivers' failed
make: *** [drivers] Error 2

Seems to no plan to supporting ov5645 and AIStarVision MIPI adapter board for RK3399, right ?
Do you have any plan to do support in official kernel or as a patch ?
Let me know what I can do for now …


#8

We got two ov5645 samples from AIstarvision some days ago and working on it now. There is no driver in the Rockchip vendor kernel tree. We need to back port it from mainline kernel. So far we haven’t got it working yet.


#9

OK, @hipboi !
Do you have any plan to port driver for Rockchip vendor ?
I just wanna test dual cameras on RK3399 (Rock960) board.
Regards, Raph.


#10

yes, we will back port the driver to Rockhip vendor kernel.


#11

Thank you so much @hipboi ,
I will awaits your news !


#12

We are happy to tell you that we have the ov5645 driver working now. We have rebased the Rockchip’s latest 4.4 kernel which now enables ISP1 as the default driver instead of the old CIF_ISP10.

https://github.com/96rocks/kernel/commits/release-4.4-rock960

Dual OV5645 is also tested on ROCK960 model C with AISTARTVISION MIPI Adapter board, no issue working simultaneously.

The current issue is the ISP is not tunned, and the image is greenish.


#13

Dear @hipboi ,
It is really a great news !
Now I will try to use your latest kernel source to my Rock960B board.
Regards, Raph.K.


#14

Dear @hipboi,
I have a qeustion for you about jumper pins configuration for MIPI adapter board,
What I need to jumps which pins for Rock960B ?
Now I’ve been changed pins for @Mani 's kernel configuration.
Let me know what pins did you configured on MIPI adaptor.
Thank you so much, again.


#15

Dear @hipboi,
I’m trying to dump a stream with v4l2-ctl, but it occurs these failure log from kernel.

 ⚡ root@linaro-alip  ~ 
>  v4l2-ctl --stream-mmap=3 --stream-count=1 --stream-to=streamcap.dump
[   43.962571] rkisp1: open cif pipeline failed -22
[   43.963482] ------------[ cut here ]------------
[   43.963897] WARNING: at drivers/media/v4l2-core/videobuf2-core.c:1316
[   43.964465] Modules linked in:
[   43.964749]
[   43.964898] CPU: 0 PID: 706 Comm: v4l2-ctl Not tainted 4.4.154 #10
[   43.965443] Hardware name: ROCK960 - 96boards based on Rockchip RK3399 (DT)
[   43.966059] task: ffffffc0ee14ec00 task.stack: ffffffc0e9a90000
[   43.966595] PC is at vb2_start_streaming+0xac/0x11c
[   43.967029] LR is at vb2_start_streaming+0x68/0x11c
[   43.967462] pc : [<ffffff800889ea30>] lr : [<ffffff800889e9ec>] pstate: 60000145
[   43.968109] sp : ffffffc0e9a93b50
[   43.968403] x29: ffffffc0e9a93b50 x28: ffffffc0df11d380
[   43.968894] x27: 0000000000000001 x26: 0000000000000000
[   43.969386] x25: ffffffc0df11d380 x24: ffffffc0eba71b80
[   43.969878] x23: ffffffc0e9a93d10 x22: ffffff8008ce9980
[   43.970369] x21: ffffffc0e9a93d10 x20: 00000000ffffffea
[   43.970861] x19: ffffffc0ed4509c0 x18: 00000000000eb00b
[   43.971352] x17: 0000007f9a5a6ea0 x16: ffffff80081b8bfc
[   43.971843] x15: 000000000000000a x14: ffffff80892e9817
[   43.972335] x13: 0000000000000005 x12: ffffffbdc37a6020
[   43.972826] x11: 00000000ffffff80 x10: 0000000000000000
[   43.973317] x9 : 0000000000000000 x8 : 0000000000000000
[   43.973808] x7 : 0000000000000000 x6 : ffffffc000201e00
[   43.974300] x5 : 00000000000038c0 x4 : 00000040eedc3000
[   43.974791] x3 : 00000000000038bf x2 : ffffffc0eb87c440
[   43.975283] x1 : ffffffc0f7ee4330 x0 : 0000000000000003
[   43.975775]
[   43.975775] PC: 0xffffff800889e9b0:
[   43.976218] e9b0  aa1403e0 97fffe4d f940d294 17fffffa 3949a260 321f0000 3909a260 f9401260
[   43.976984] e9d0  f9401c02 b5000062 52800000 1400002d b941b661 aa1303e0 d63f0040 2a0003f4
[   43.977747] e9f0  34ffff40 3949a260 121e7800 3909a260 f0005700 b9413800 7100001f 540000ed
[   43.978511] ea10  90002241 b0003500 9134e021 910b7400 91012021 97e30dd6 b941b660 34000260
[   43.979275] ea30  d4210000 91026276 52800015 b9419a60 6b0002bf 54000142 f94002c0 b9419801
[   43.980038] ea50  7100143f 54000061 52800061 97ffff50 110006b5 910022d6 17fffff5 b941b660
[   43.980801] ea70  34000040 d4210000 f940de62 9106e261 2a1403e0 eb01005f 54000040 d4210000
[   43.981565] ea90  a94153f3 a9425bf5 a8c37bfd d65f03c0 a9be7bfd 910003fd f9000bf3 aa0003f3
[   43.982330]
[   43.982330] LR: 0xffffff800889e96c:
[   43.982773] e96c  17ffffe8 a94153f3 a9425bf5 a94363f7 a8c47bfd d65f03c0 a9bd7bfd 910003fd
[   43.983536] e98c  a90153f3 a9025bf5 aa0003f3 aa1e03e0 d503201f f940d274 d1068294 eb13029f
[   43.984300] e9ac  540000a0 aa1403e0 97fffe4d f940d294 17fffffa 3949a260 321f0000 3909a260
[   43.985063] e9cc  f9401260 f9401c02 b5000062 52800000 1400002d b941b661 aa1303e0 d63f0040
[   43.985826] e9ec  2a0003f4 34ffff40 3949a260 121e7800 3909a260 f0005700 b9413800 7100001f
[   43.986589] ea0c  540000ed 90002241 b0003500 9134e021 910b7400 91012021 97e30dd6 b941b660
[   43.987353] ea2c  34000260 d4210000 91026276 52800015 b9419a60 6b0002bf 54000142 f94002c0
[   43.988116] ea4c  b9419801 7100143f 54000061 52800061 97ffff50 110006b5 910022d6 17fffff5
[   43.988881]
[   43.988881] SP: 0xffffffc0e9a93ad0:
[   43.989324] 3ad0  08ce9980 ffffff80 e9a93d10 ffffffc0 eba71b80 ffffffc0 df11d380 ffffffc0
[   43.990087] 3af0  00000000 00000000 00000001 00000000 df11d380 ffffffc0 e9a93b50 ffffffc0
[   43.990850] 3b10  0889e9ec ffffff80 e9a93b50 ffffffc0 0889ea30 ffffff80 60000145 00000000
[   43.991613] 3b30  ed4509c0 ffffffc0 ebb23800 ffffffc0 00000000 00000080 00000000 00000000
[   43.992377] 3b50  e9a93b80 ffffffc0 0889f524 ffffff80 00000009 00000000 ed4509c0 ffffffc0
[   43.993141] 3b70  e9a93d10 ffffffc0 08ce9980 ffffff80 e9a93ba0 ffffffc0 088a22ac ffffff80
[   43.993904] 3b90  ed4509c0 ffffffc0 00000009 00000000 e9a93bc0 ffffffc0 088a230c ffffff80
[   43.994667] 3bb0  eba71b80 ffffffc0 00000009 00000000 e9a93be0 ffffffc0 08884c60 ffffff80
[   43.995433]
[   43.995433] X1: 0xffffffc0f7ee42b0:
[   43.995876] 42b0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   43.996639] 42d0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   43.997402] 42f0  002f5500 ffffffc0 0000002a 00000000 c000bd40 ffffffbd 00000000 00000000
[   43.998166] 4310  002f4a00 ffffffc0 0000002b 00000000 c000bd00 ffffffbd 00000000 00000000
[   43.998929] 4330  eb87c3c0 ffffffc0 000038c0 00000000 c3ae1f00 ffffffbd c3aef940 ffffffbd
[   43.999693] 4350  df11d800 ffffffc0 000008f0 00000000 c37c4740 ffffffbd c3ba8880 ffffffbd
[   44.000456] 4370  ebac5a80 ffffffc0 00001a08 00000000 c3aeb140 ffffffbd c3a6d780 ffffffbd
[   44.001219] 4390  ed658500 ffffffc0 00000ba5 00000000 c3b59600 ffffffbd c3b59800 ffffffbd
[   44.001984]
[   44.001984] X2: 0xffffffc0eb87c3c0:
[   44.002427] c3c0  eb87c440 ffffffc0 0ba7c000 ffffff80 000ec000 00000000 00000008 00000000
[   44.003190] c3e0  e98b8000 ffffffc0 00000000 00000000 00000000 00000000 088b6a28 ffffff80
[   44.003954] c400  eb87c380 ffffffc0 00000200 dead0000 0b7b2000 ffffff80 0b723000 ffffff80
[   44.004717] c420  df11d000 ffffffc0 00000000 00000000 00000000 00000000 00000000 00000000
[   44.005481] c440  eb87c400 ffffffc0 00000000 00000000 00000000 00000000 000ffcea 00000000
[   44.006244] c460  000ffc00 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   44.007007] c480  ebb3b0b0 ffffffc0 e9821410 ffffffc0 ebb3b128 ffffffc0 ebb3b128 ffffffc0
[   44.007771] c4a0  00000001 00000000 00000000 00000000 e99a49a0 ffffffc0 00000063 00000000
[   44.008537]
[   44.008537] X6: 0xffffffc000201d80:
[   44.008980] 1d80  ee0f49c0 ffffffc0 00201e88 ffffffc0 00201c88 ffffffc0 ee07e528 ffffffc0
[   44.009743] 1da0  ee07e500 ffffffc0 0916f130 ffffff80 ee102a50 ffffffc0 00000001 00000007
[   44.010507] 1dc0  00200f00 ffffffc0 14000004 d508871f d5033f9f d5033fdf d65f03c0 00000000
[   44.011270] 1de0  d5384246 f10030df 54000120 f10020df 54000060 f10010df 54000020 f10004bf
[   44.012034] 1e00  09121330 ffffff80 40000000 00000000 00000005 00000000 00000040 00000040
[   44.012797] 1e20  00000000 0000001e 00000040 00000000 00000040 00000000 00000040 00000000
[   44.013560] 1e40  00000000 00000009 00000000 00000000 00000040 00000040 00000000 00000000
[   44.014324] 1e60  08e7fabd ffffff80 00201f68 ffffffc0 00201d68 ffffffc0 00000000 00000000
[   44.015091]
[   44.015091] X12: 0xffffffbdc37a5fa0:
[   44.015545] 5fa0  00000100 dead0000 00000200 dead0000 00000000 00000000 00000000 00000000
[   44.016309] 5fc0  00000000 00000000 00000000 00000000 00000000 00000000 ffffffff 00000000
[   44.017072] 5fe0  00000100 dead0000 00000200 dead0000 ed7715e8 ffffffc0 00000000 00000000
[   44.017836] 6000  00000000 00000000 00000000 00000000 00000000 00000000 ffffff80 00000000
[   44.018599] 6020  c37a4e60 ffffffbd 0929c140 ffffff80 00000000 00000000 00000000 00000000
[   44.019363] 6040  00000000 00000000 00000000 00000000 00000000 00000000 ffffffff 00000001
[   44.020126] 6060  00000100 dead0000 00000200 dead0000 ed771cd8 ffffffc0 00000000 00000000
[   44.020889] 6080  00000000 00000000 00000000 00000000 00000000 00000000 ffffff80 00000000
[   44.021655]
[   44.021655] X14: 0xffffff80892e9797:
[   44.022109] 9794  ******** ******** ******** ******** ******** ******** ******** ********
[   44.022878] 97b4  ******** ******** ******** ******** ******** ******** ******** ********
[   44.023643] 97d4  ******** ******** ******** ******** ******** ******** ******** ********
[   44.024408] 97f4  ******** ******** ******** ******** ******** ******** ******** ********
[   44.025172] 9814  ******** ******** ******** ******** ******** ******** ******** ********
[   44.025937] 9834  ******** ******** ******** ******** ******** ******** ******** ********
[   44.026701] 9854  ******** ******** ******** ******** ******** ******** ******** ********
[   44.027466] 9874  ******** ******** ******** ******** ******** ******** ******** ********
[   44.028230] 9894  ******** ******** ******** ******** ******** ******** ******** ********
[   44.028997]
[   44] X22: 0xffffff8008ce9900:
[   44.049141] 9900  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   44.049905] 9920  00000000 00000000 00000000 00000000 00000000 00000000 73696b72 735f3170
[   44.050668] 9940  6c65735f 69746365 00006e6f 00000000 73696b72 735f3170 665f7465 0000746d
[   44.051432] 9960  73696b72 735f3170 746d665f 6469765f 7061635f 6c706d5f 00656e61 00000000
[   44.052195] 9980  088b5fbc ffffff80 00000000 00000000 00000000 00000000 00000000 00000000
[   44.052958] 99a0  088b5bc0 ffffff80 00000000 00000000 00000000 00000000 00000000 00000000
[   44.053722] 99c0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   44.054484] 99e0  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   44.055249]
[   44.055249] X23: 0xffffffc0e9a93c90:
[   44.055703] 3c90  00000004 00000000 eef2ff00 0000007f e9a93d90 ffffffc0 0888a114 ffffff80
[   44.056467] 3cb0  eba71b80 ffffffc0 40045612 00000000 eef300d8 0000007f eba71b80 ffffffc0
[   44.057230] 3cd0  40045612 00000000 eef300d8 0000007f 0000011d 00000000 0000001d 00000000
[   44.057993] 3cf0  08bd2000 ffffff80 ee14ec00 ffffffc0 000eb000 00000001 00000000 00000000
[   44.058757] 3d10  00000009 00000009 00000000 00002003 00000000 00000000 00000000 00000000
[   44.059520] 3d30  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000001
[   44.060284] 3d50  eef30228 0000007f 00000001 00000000 00000000 00000000 ebb3b5a0 ffffffc0
[   44.061047] 3d70  e9a93de0 ffffffc0 0817b5f4 ffffff80 ec958e80 ffffffc0 eba71b80 ffffffc0
[   44.061812]
[   44.061812] X24: 0xffffffc0eba71b00:
[   44.062266] 1b00  00000000 00000000 00000000 00000000 eb906240 ffffffc0 00000000 00000000
[   44.063030] 1b20  00000000 00000000 00000020 00000000 00000340 00000000 00000000 00000000
[   44.063793] 1b40  00000000 00000000 eba71b48 ffffffc0 eba71b48 ffffffc0 eba71b58 ffffffc0
[   44.064557] 1b60  eba71b58 ffffffc0 ea2b9b88 ffffffc0 eba71b70 ffffffc0 eba71b70 ffffffc0
[   44.065320] 1b80  00000000 00000000 00000000 00000000 0039caa0 ffffffc0 edb5f360 ffffffc0
[   44.066084] 1ba0  ee3f1e70 ffffffc0 08ce1cf8 ffffff80 00000000 dead4ead ffffffff 00000000
[   44.066847] 1bc0  ffffffff ffffffff 00000004 00000000 00020002 0006001f 00000001 00000000
[   44.067610] 1be0  00000000 dead4ead ffffffff 00000000 ffffffff ffffffff eba71bf8 ffffffc0
[   44.068375]
[   44.068375] X25: 0xffffffc0df11d300:
[   44.068829] d300  ee92a101 ffffffc0 df11d280 ffffffc0 00000000 00000000 00000000 00000000
[   44.069593] d320  00000000 00000000 0b723000 ffffff80 07f817e9 00000000 00000006 00000000
[   44.070356] d340  00000041 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   44.071120] d360  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   44.071883] d380  ed4510c8 ffffffc0 ed4510c8 ffffffc0 ed450c88 ffffffc0 ed450118 ffffffc0
[   44.072647] d3a0  00000002 00000000 00000000 dead4ead ffffffff 00000000 ffffffff ffffffff
[   44.073410] d3c0  df11d3c0 ffffffc0 df11d3c0 ffffffc0 df11d3d0 ffffffc0 df11d3d0 ffffffc0
[   44.074174] d3e0  df11d3e0 ffffffc0 df11d3e0 ffffffc0 00000000 ffffffff 00000000 00000000
[   44.074940]
[   44.074940] X28: 0xffffffc0df11d300:
[   44.075394] d300  ee92a101 ffffffc0 df11d280 ffffffc0 00000000 00000000 00000000 00000000
[   44.076157] d320  00000000 00000000 0b723000 ffffff80 07f817e9 00000000 00000006 00000000
[   44.076920] d340  00000041 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   44.077683] d360  00000000 00000000 00000000 00000000 00000000 00000000 00000000 00000000
[   44.078446] d380  ed4510c8 ffffffc0 ed4510c8 ffffffc0 ed450c88 ffffffc0 ed450118 ffffffc0
[   44.079210] d3a0  00000002 00000000 00000000 dead4ead ffffffff 00000000 ffffffff ffffffff
[   44.079973] d3c0  df11d3c0 ffffffc0 df11d3c0 ffffffc0 df11d3d0 ffffffc0 df11d3d0 ffffffc0
[   44.080736] d3e0  df11d3e0 ffffffc0 df1+0x10c/0x168
[   44.097139] [<ffffff80088a22ac>] vb2_streamon+0x60/0x74
[   44.097609] [<ffffff80088a230c>] vb2_ioctl_streamon+0x4c/0x58
[   44.098125] [<ffffff8008884c60>] v4l_streamon+0x3c/0x4c
[   44.098596] [<ffffff800888a2a4>] __video_do_ioctl+0x180/0x27c
[   44.099111] [<ffffff8008889e80>] video_usercopy+0x2b0/0x508
[   44.099604] [<ffffff800888a114>] video_ioctl2+0x3c/0x4c
[   44.100072] [<ffffff80088839c8>] v4l2_ioctl+0x78/0xb4
[   44.100532] [<ffffff80081b8b64>] do_vfs_ioctl+0x4d4/0x56c
[   44.101011] [<ffffff80081b8c50>] SyS_ioctl+0x54/0x7c
[   44.101460] [<ffffff8008082f30>] el0_svc_naked+0x24/0x28
 ⚡ root@linaro-alip  ~ 
>

I think my MIPI board pin configuration may not accurate with yours.
Can I get some help ?
Regards, Raph.


#16

Hi @Raph_K,

To which connector you are connecting your OV5645 cameras? I just tested the tree shared by @hipboi with MIPI adapter v2.0 and I can capture an image with 1920X1080 resolution (with the greenish issue he mentioned).

As per the DT configuration it seems like you need to connect below pins:

Clock: J14: 8-7
PWDN: J15: 5-6
I2C: J13: 19-20 and 21-22

Again, it really depends on which connector you are connecting your camera’s.

I will prepare a guide about this and share it with the community.

Thanks,
Mani


#17

Dear ALL:

ROCK960 model A&B:
only expose one MIPI CSI on the 96boards CSI0. so we just have three available connectors ( J3, J5 and J10)on the AISTARTVISION MIPI Adapter V2.0 board.

ROCK960 model C:
exported both 96boards CSI0 and CSI1.

please attention


#18

Dear @Mani and @hipboi,

First of all, thank you both, and here my AIStarVision MIPI adapter v2.1 board pin configuration.

It was configured as @Mani’s instruction, and I can check what media controller connected with ‘media-ctl -p’

 ⚡ root@linaro-alip  ~ 
>  media-ctl -p
Media controller API version 0.1.0

Media device information
------------------------
driver          rkisp1
model           rkisp1
serial
bus info
hw revision     0x0
driver version  0.0.0

Device topology
- entity 1: rkisp1-isp-subdev (4 pads, 5 links)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev0
        pad0: Sink
                [fmt:SBGGR10_1X10/800x600 field:none
                 crop.bounds:(0,0)/800x600
                 crop:(0,0)/800x600]
                <- "rockchip-sy-mipi-dphy":1 [ENABLED]
        pad1: Sink
                <- "rkisp1-input-params":0 [ENABLED]
        pad2: Source
                [fmt:YUYV8_2X8/800x600 field:none
                 crop.bounds:(0,0)/800x600
                 crop:(0,0)/800x600]
                -> "rkisp1_selfpath":0 [ENABLED]
                -> "rkisp1_mainpath":0 [ENABLED]
        pad3: Source
                -> "rkisp1-statistics":0 [ENABLED]

- 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 [ENABLED]

- 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 [ENABLED]

- entity 4: rkisp1-statistics (1 pad, 1 link)
            type Node subtype V4L flags 0
            device node name /dev/video2
        pad0: Sink
                <- "rkisp1-isp-subdev":3 [ENABLED]

- entity 5: rkisp1-input-params (1 pad, 1 link)
            type Node subtype V4L flags 0
            device node name /dev/video3
        pad0: Source
                -> "rkisp1-isp-subdev":1 [ENABLED]

- entity 6: rockchip-sy-mipi-dphy (2 pads, 2 links)
            type V4L2 subdev subtype Unknown flags 0
            device node name /dev/v4l-subdev1
        pad0: Sink
                [fmt:UYVY8_2X8/1280x960 field:none]
                <- "ov5645 2-003c":0 [ENABLED]
        pad1: Source
                [fmt:UYVY8_2X8/1280x960 field:none]
                -> "rkisp1-isp-subdev":0 [ENABLED]

- entity 7: ov5645 2-003c (1 pad, 1 link)
            type V4L2 subdev subtype Sensor flags 0
            device node name /dev/v4l-subdev2
        pad0: Source
                [fmt:UYVY8_2X8/1280x960 field:none
                 crop:(0,0)/0x0]
                -> "rockchip-sy-mipi-dphy":0 [ENABLED]

Then I could capture whole-green image thru YUYV8 in V4L2 testing program.
Is it meaning something wrong color space transform, or still nothing to get from sensor ? I’m not sure.

Is it working right?
There’s many error msgs on kernel debug as like this:

[  836.040090] rkisp1: MIPI mis error: 0x00800000
[  836.040532] rkisp1: MIPI mis error: 0x00800000
[  836.105664] rkisp1: MIPI mis error: 0x00030000
[  836.108805] rkisp1: MIPI mis error: 0x00100000
[  848.289640] rkisp1: waiting on event return error 0
[  848.523080] rkisp1: MIPI mis error: 0x00100000
[  865.041455] rkisp1: waiting on event return error 0
[  898.452390] rkisp1: waiting on event return error 0
[  898.453379] rkisp1: MIPI mis error: 0x00030000
[  916.374685] rkisp1: waiting on event return error 0
[ 1302.704288] rkisp1: MIPI mis error: 0x00030000
[ 1302.707263] rkisp1: MIPI mis error: 0x00100000
[ 1310.585477] rkisp1: waiting on event return error 0
[ 1348.469345] rkisp1: MIPI mis error: 0x00030000
[ 1348.472300] rkisp1: MIPI mis error: 0x00100000
[ 1355.086646] rkisp1: waiting on event return error 0
[ 1355.327983] rkisp1: MIPI mis error: 0x00030000
[ 1355.330951] rkisp1: MIPI mis error: 0x00100000
[ 1366.974607] rkisp1: waiting on event return error 0
[ 1366.975542] rkisp1: MIPI mis error: 0x00030000

Let me know am I did right way.
Regards, Raph.


#19

Hi @Raph_K,

Your steps looks sane. There is some issue with the ISP configuration which results in the greenish image and it is expected. We are working on resolving it. The error you are getting is associated with that only.

I have prepared a guide for connecting camera sensors to Rock960.

The guide is an initial one only. Soon we will add different camera sensor/mezzanine setup and simplify some steps (especially kernel building part).

Thanks,
Mani


#20

Dear @Mani ,
Appreciate again for working this hard job !
I have question about getting RAW sensor array ( it doesn’t care about bayer array RGGB or something similar ) bypassing ISP may possible ?
My final destination is for Grayscaled sensor for RK3399 ( absolutely it doesn’t need ISP, actually ).
If impossible, I will just wait for your job.
Regards, Raph.