AnsweredAssumed Answered

adv7842 par mode 12 bits color output configuration

Question asked by dgomeziseebcn on Sep 27, 2016
Latest reply on Oct 3, 2016 by dgomeziseebcn

Hi,

I'm trying to configure ADV7842 for capturing HDMI input and transfer data output in parallel mode with 12 bits.
ADV7842 hdmi input is receiving 1024x768@30
ADV7842 is connected to the omap3 isp via channel B (P23 - P12)

With this setup I have 2 configurations:

 

a) Grayscale, parallel 12 bits

* ADV7842:
channel B is sending Lumminance information (Main Yi data)
IO Map: 0x40
HDMI Map: 0x68
CP Map: 0x44
0x40 0x00 0x02 - VID_STD value depending on DIS_AUTO_PARAM_BUFF
0x40 0x01 0x06 - PRIM_MODE=HDMI GR
0x40 0x03 0xC2 - Parallel mode 12 bits
0x40 0x04 0x40 - Main Yi (lumminance) Channel B
0x68 0x53 0x00 - HDMI_COLORSPACE is RGB but output configuration is YPbPr
0x44 0xF4 0x50 - CSC_COEFF_SEL_RB is configured: RGB -> YPbPr 601
0x44 0xC9 0xC2 - DIS_AUTO_PARAM_BUFF -> free run mode (enable buffering)

 

* OMAP3 ISP:
MEDIA_BUS_FMT_Y12_1X12
V4L2_PIX_FMT_Y12
V4L2_FIELD_NONE
V4L2_COLORSPACE_DEFAULT
V4L2_MBUS_PARALLEL


Note: IO MAP (0x40)
0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef
00: 02 06 f4 c2 40 28 a6 40 14 00 90 44 40 1e 0f 1e ????B(?@?.?D@???
10: 00 00 c0 0d 3f 80 43 5a 34 80 02 00 00 00 00 00 ..????CZ4??.....
20: f0 01 00 03 00 00 00 00 00 00 00 00 00 00 00 00 ??.?............
30: 88 00 00 43 00 00 00 00 00 00 00 00 00 00 00 00 ?..C............
40: 20 30 94 00 00 00 00 00 00 00 00 00 00 00 00 00 0?.............
50: 00 00 00 00 00 00 05 00 00 00 00 5b 00 00 00 00 ......?....[....
60: 00 00 00 00 00 40 00 00 00 00 11 00 00 00 00 01 .....@....?....?
70: 00 00 00 00 03 00 00 00 00 00 00 00 00 00 00 00 ....?...........
80: 00 00 00 42 00 00 00 00 00 00 00 00 00 00 00 00 ...B............
90: 00 00 00 00 00 00 00 00 00 00 00 00 04 00 00 00 ............?...
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ................
b0: 00 00 00 00 00 00 00 43 e0 00 00 00 00 00 00 00 .......C?.......
c0: 00 0e 00 00 00 00 00 00 00 00 00 00 00 00 00 00 .?..............
d0: 02 07 00 eb 0e 00 00 00 2d 15 f1 5f 40 00 00 00 ??.??...-??_@...
e0: 00 00 04 00 01 00 00 00 04 00 20 12 00 00 00 00 ..?.?...?. ?....
f0: 00 90 94 84 80 7c 00 00 4c 64 6c 68 00 44 48 00 .????|..Ldlh.DH.

 

Note: HDMI MAP (0x68)
0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef
00: 33 18 00 18 23 30 1b a4 00 03 00 03 00 34 8f 1f 3?.?#0??.?.?.4??
10: 25 7d 02 7f 3f ff ff 00 00 00 8a 18 0b 00 04 a0 %}???.....???.??
20: 00 2f 00 20 00 51 06 1a 06 1a 00 0c 00 0c 00 08 ./. .Q????.?.?.?
30: 00 08 00 06 00 06 00 00 00 00 00 00 02 10 39 63 .?.?.?......??9c
40: 00 40 4a 0f 85 20 1f 00 00 00 00 00 40 00 3b 63 .@J?? ?.....@.;c
50: 00 0d c1 00 00 00 58 b6 03 a3 00 00 00 00 00 00 .??...X???......
60: 88 88 90 80 0f 00 11 20 f0 a2 00 04 18 00 00 02 ?????.? ??.??..?
70: 00 00 04 00 00 10 08 18 05 14 03 ff 0f 0f 0f 3f ..?..??????.????
80: 00 00 00 00 00 1f 00 70 38 04 1e 0f a3 0b 20 0f .....?.p8????? ?
90: 0b 20 0f 04 1e 0f 00 30 ff a1 ff 09 00 02 00 00 ? ????.0.?.?.?..
a0: 00 07 00 00 16 16 16 00 00 f0 00 f0 00 f0 00 00 .?..???..?.?.?..
b0: 00 00 00 00 00 00 00 00 00 00 00 00 00 3f 00 00 .............?..
c0: ff ff ff ff ff 00 00 00 80 01 40 ff a0 08 00 00 ........??@.??..
d0: 80 80 40 02 ff ff 20 80 00 00 00 00 00 00 00 00 ??@?.. ?........
e0: 00 00 00 00 00 01 00 00 00 01 00 00 00 00 00 82 .....?...?.....?
f0: 00 00 00 00 00 00 00 00 0f 00 28 07 00 00 01 00 ........?.(?..?.

 

Note: CP MAP (0x44)
0 1 2 3 4 5 6 7 8 9 a b c d e f 0123456789abcdef
00: 00 00 00 00 00 00 00 00 00 02 09 00 00 07 4c 99 .........??..?L?
10: 29 64 08 00 7a b1 05 b9 27 08 00 20 b7 a7 fa 93 )d?.z???'?. ????
20: 20 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ...............
30: 00 00 00 00 00 40 00 00 00 00 80 80 00 00 00 00 .....@....??....
40: 5c 02 3b d4 03 33 00 00 00 3f ff 00 00 00 00 83 \?;??3...?.....?
50: c0 00 40 00 00 00 00 08 00 00 00 00 01 00 00 00 ?.@....?....?...
60: 00 00 20 00 00 00 00 00 f0 04 00 00 00 00 00 00 .. .....??......
70: 00 00 00 10 04 01 00 ff ff ff ff 05 c0 00 00 00 ...???.....??...
80: 00 c0 04 00 0c 03 0b 00 00 00 20 40 00 00 00 40 .??.???... @...@
90: 00 40 00 00 00 00 00 f0 00 00 00 00 00 00 00 00 .@.....?........
a0: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 60 00 ..............`.
b0: 00 a6 7d 23 0c f9 00 40 0e b0 01 00 00 18 00 12 .?}#??.@???..?.?
c0: 00 00 00 39 44 91 00 00 00 2c 00 60 4c ff ff 00 ...9D?...,.`L...
d0: 00 00 00 00 00 00 00 00 00 00 00 19 64 12 c5 78 ...........?d??x
e0: 50 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 P...............
f0: 00 40 04 d4 50 00 00 15 03 33 40 00 03 0d 03 08 .@??P..??3@.????


Conclusion (configuration a):
The result is that I can capture in linux with yavta command with pixel bus format selection in Y12 mode
Note: in case fps input configuration is incremented to 60fps and receiving 1024x768@60 then, I can not capture.

 

b) "Color", parallel 12 bits (Aux Y,Cb,Cr)

* ADV7842:
channel B is sending Lumminance and Chroma information (Aux Yi Cb Cr data)
IO Map: 0x40
HDMI Map: 0x68
CP Map: 0x44
0x40 0x00 0x02 - VID_STD value depending on DIS_AUTO_PARAM_BUFF
0x40 0x01 0x06 - PRIM_MODE=HDMI GR
0x40 0x03 0xC2 - Parallel mode 12 bits
0x40 0x04 0x20 - Aux Yi Cb Cr Channel B ** CHANGED **
0x68 0x53 0x00 - HDMI_COLORSPACE is RGB but output configuration is YPbPr
0x44 0xF4 0x50 - CSC_COEFF_SEL_RB is configured: RGB -> YPbPr 601
0x44 0xC9 0xC2 - DIS_AUTO_PARAM_BUFF -> free run mode (enable buffering)

 

* OMAP3 ISP:
MEDIA_BUS_FMT_YUYV12_2X12 ** CHANGED **
V4L2_PIX_FMT_UYVY         ** CHANGED **
V4L2_FIELD_NONE
V4L2_COLORSPACE_DEFAULT
V4L2_MBUS_PARALLEL

 

* HDMI input for the ADV7842
1024x768@60 ** CHANGED **

Also tested with 30fps and both "works" but with next result (check conclusion)


Conclusion (configuration b):
* The capture result is attached (config_b_aux_ycbcr_par_mode.png)
In this mode, "capture" is possible but not correctly as it is shown in the attached figure. So, I would like to know what I'm doing wrong.

 

Note:
I know interlaced output is configured when "auxiliary" output is selected. So, I have tried
to capture with "interlaced" option in the omap3isp and yavta but then, I can not capture anything.

 

 

In which format is sending the ADV7842 when I'm trying to send with this configuration (b) ?
or what is the correct configuration on the ADV for my current YUYV12 settings?

Outcomes