This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

DRA76P: Image issues with ti,vip1 connected to adv7611 (HDMI input)

Part Number: DRA76P

Hello,

We have an issue capturing images with the vip1 and adv7611 in linux. We think the chip is correctly configured for 1920x1080 30Hz but the captured images are not fine, they are cropped, flattered and the color is not ok.

A screenshot taken via vip1 and adv7611.

v4l2 commands:

:/ $ v4l2-ctl --device=/dev/video0 --all
Driver Info:
        Driver name      : vip
        Card type        : vip
        Bus info         : platform:vip
        Driver version   : 4.4.117
        Capabilities     : 0x85200001
                Video Capture
                Read/Write
                Streaming
                Extended Pix Format
                Device Capabilities
        Device Caps      : 0x05200001
                Video Capture
                Read/Write
                Streaming
                Extended Pix Format
Priority: 2
Video input : 0 (camera 0: ok)
Video Standard = 0x00ffb0ff
        PAL-B/B1/G/H/I/D/D1/K
        NTSC-M/M-JP/M-KR
        SECAM-B/D/G/H/K/K1/L/Lc
DV timings:
        Active width: 1920
        Active height: 1080
        Total width: 2200
        Total height: 1125
        Frame format: progressive
        Polarities: +vsync +hsync
        Pixelclock: 74250000 Hz (30.00 frames per second)
        Horizontal frontporch: 88
        Horizontal sync: 44
        Horizontal backporch: 148
        Vertical frontporch: 4
        Vertical sync: 5
        Vertical backporch: 36
        Standards: CTA-861
        Flags: framerate can be reduced by 1/1.001, CE-video
Format Video Capture:
        Width/Height      : 1920/1080
        Pixel Format      : 'RGB3' (24-bit RGB 8-8-8)
        Field             : None
        Bytes per Line    : 5760
        Size Image        : 6220800
        Colorspace        : sRGB
        Transfer Function : Default (maps to sRGB)
        YCbCr/HSV Encoding: Default (maps to ITU-R 601)
        Quantization      : Default (maps to Full Range)
        Flags             :
Crop Capability Video Capture:
        Bounds      : Left 0, Top 0, Width 1920, Height 1080
        Default     : Left 0, Top 0, Width 1920, Height 1080
        Pixel Aspect: 1/1
Crop Capability Video Output:
        Bounds      : Left 0, Top 0, Width 1920, Height 1080
        Default     : Left 0, Top 0, Width 1920, Height 1080
        Pixel Aspect: 1/1
Selection Video Capture: crop, Left 0, Top 0, Width 1920, Height 1080, Flags:
Selection Video Capture: crop_default, Left 0, Top 0, Width 1920, Height 1080, Flags:
Selection Video Capture: crop_bounds, Left 0, Top 0, Width 1920, Height 1080, Flags:
Selection Video Capture: compose, Left 0, Top 0, Width 1920, Height 1080, Flags:
Selection Video Capture: compose_default, Left 0, Top 0, Width 1920, Height 1080, Flags:
Selection Video Capture: compose_bounds, Left 0, Top 0, Width 1920, Height 1080, Flags:
Selection Video Output: crop, Left 0, Top 0, Width 1920, Height 1080, Flags:
Selection Video Output: crop_default, Left 0, Top 0, Width 1920, Height 1080, Flags:
Selection Video Output: crop_bounds, Left 0, Top 0, Width 1920, Height 1080, Flags:
Selection Video Output: compose, Left 0, Top 0, Width 1920, Height 1080, Flags:
Selection Video Output: compose_default, Left 0, Top 0, Width 1920, Height 1080, Flags:
Selection Video Output: compose_bounds, Left 0, Top 0, Width 1920, Height 1080, Flags:
Streaming Parameters Video Capture:
        Capabilities     : timeperframe
        Frames per second: 30.000 (30/1)
        Read buffers     : 4
User Controls
                     brightness 0x00980900 (int)    : min=-128 max=127 step=1 default=0 value=0 flags=slider
                       contrast 0x00980901 (int)    : min=0 max=255 step=1 default=128 value=128 flags=slider
                     saturation 0x00980902 (int)    : min=0 max=255 step=1 default=128 value=128 flags=slider
                            hue 0x00980903 (int)    : min=0 max=128 step=1 default=0 value=0 flags=slider

:/ $ v4l2-ctl --device=/dev/video0 --log-status

Status Log:
   [  124.321127] vip1-s0: =================  START STATUS  =================
   [  124.321339] adv7611 2-004c: -----Chip status-----
   [  124.321514] adv7611 2-004c: Chip power: on
   [  124.321688] adv7611 2-004c: EDID enabled port A: Yes, B: No, C: No, D: No
   [  124.321858] adv7611 2-004c: CEC: disabled
   [  124.321866] adv7611 2-004c: -----Signal status-----
   [  124.322036] adv7611 2-004c: Cable detected (+5V power) port A: Yes, B: No, C: No, D: No
   [  124.322207] adv7611 2-004c: TMDS signal detected: true
   [  124.322376] adv7611 2-004c: TMDS signal locked: true
   [  124.322546] adv7611 2-004c: SSPD locked: true
   [  124.322722] adv7611 2-004c: STDI locked: true
   [  124.322730] adv7611 2-004c: CP locked: true
   [  124.322899] adv7611 2-004c: CP free run: off
   [  124.323396] adv7611 2-004c: Prim-mode = 0x5, video std = 0x1e, v_freq = 0x2
   [  124.323404] adv7611 2-004c: -----Video Timings-----
   [  124.325285] adv7611 2-004c: STDI: lcf (frame height - 1) = 1124, bl = 6779, lcvs (vsync) = 5, progressive, +hsync, +vsync
   [  124.331912] adv7611 2-004c: Detected format: 1920x1080p30.0 (2200x1125)
   [  124.331923] adv7611 2-004c: horizontal: fp = 88, +sync = 44, bp = 148
   [  124.331931] adv7611 2-004c: vertical: fp = 4, +sync = 5, bp = 36
   [  124.331937] adv7611 2-004c: pixelclock: 74250000
   [  124.331946] adv7611 2-004c: flags (0x12): CAN_REDUCE_FPS CE_VIDEO
   [  124.331953] adv7611 2-004c: standards (0x1): CEA
   [  124.331962] adv7611 2-004c: Configured format: 1920x1080p30.0 (2200x1125)
   [  124.331969] adv7611 2-004c: horizontal: fp = 88, +sync = 44, bp = 148
   [  124.331976] adv7611 2-004c: vertical: fp = 4, +sync = 5, bp = 36
   [  124.331982] adv7611 2-004c: pixelclock: 74250000
   [  124.331989] adv7611 2-004c: flags (0x12): CAN_REDUCE_FPS CE_VIDEO
   [  124.331995] adv7611 2-004c: standards (0x1): CEA
   [  124.332812] adv7611 2-004c: -----Color space-----
   [  124.332820] adv7611 2-004c: RGB quantization range ctrl: Automatic
   [  124.332827] adv7611 2-004c: Input color space: automatic
   [  124.332835] adv7611 2-004c: Output color space: RGB (0-255), saturator enabled, alt-gamma disabled
   [  124.333004] adv7611 2-004c: Color space conversion: bypassed
   [  124.333173] adv7611 2-004c: -----HDMI status-----
   [  124.333343] adv7611 2-004c: Digital video port selected: A
   [  124.333512] adv7611 2-004c: HDCP encrypted content: false
   [  124.333841] adv7611 2-004c: HDCP keys read: yes
   [  124.334498] adv7611 2-004c: Audio: pll locked, samples not detected, muted
   [  124.335075] adv7611 2-004c: Audio CTS: 91168
   [  124.335577] adv7611 2-004c: Audio N: 6272
   [  124.335750] adv7611 2-004c: AV Mute: off
   [  124.335923] adv7611 2-004c: Deep color mode: 8-bits per channel
   [  124.336106] adv7611 2-004c: HDMI colorspace: RGB limited range (16-235)
   [  124.339185] adv7604 2-004c: HDMI infoframe: Auxiliary Video Information (AVI), version 2, length 13
   [  124.339195] adv7604 2-004c:     colorspace: RGB
   [  124.339203] adv7604 2-004c:     scan mode: Underscan
   [  124.339211] adv7604 2-004c:     colorimetry: No Data
   [  124.339219] adv7604 2-004c:     picture aspect: 16:9
   [  124.339227] adv7604 2-004c:     active aspect: Same as Picture
   [  124.339234] adv7604 2-004c:     itc: No Data
   [  124.339242] adv7604 2-004c:     extended colorimetry: xvYCC 601
   [  124.339249] adv7604 2-004c:     quantization range: Limited
   [  124.339257] adv7604 2-004c:     nups: Unknown Non-uniform Scaling
   [  124.339264] adv7604 2-004c:     video code: 34
   [  124.339272] adv7604 2-004c:     ycc quantization range: Limited
   [  124.339279] adv7604 2-004c:     hdmi content type: Graphics
   [  124.339286] adv7604 2-004c:     pixel repeat: 0
   [  124.339295] adv7604 2-004c:     bar top 0, bottom 0, left 0, right 0
   [  124.341719] adv7604 2-004c: HDMI infoframe: Audio, version 1, length 10
   [  124.341729] adv7604 2-004c:     channels: 0
   [  124.341737] adv7604 2-004c:     coding type: Refer to Stream Header
   [  124.341745] adv7604 2-004c:     sample size: Refer to Stream Header
   [  124.341752] adv7604 2-004c:     sample frequency: Refer to Stream Header
   [  124.341759] adv7604 2-004c:     coding type ext: Refer to CT
   [  124.341766] adv7604 2-004c:     channel allocation: 0x0
   [  124.341774] adv7604 2-004c:     level shift value: 0 dB
   [  124.341781] adv7604 2-004c:     downmix inhibit: No
   [  124.346710] adv7604 2-004c: HDMI infoframe: Source Product Description (SPD), version 1, length 25
   [  124.346720] adv7604 2-004c:     vendor: Intel
   [  124.346729] adv7604 2-004c:     product: Integrated gfx
   [  124.346737] adv7604 2-004c:     source device information: PC General (0x9)
   [  124.346906] adv7611 2-004c: Vendor infoframe not received
   [  124.346915] vip1-s0: ==================  END STATUS  ==================

DTS:

&vip1 {
      status = "okay";
};
&vin1a { // it belongs vip1
      status = "okay";
      endpoint@0 {
            slave-mode;
            remote-endpoint = <&hdmi_in_1>;
      };
};
    hdmi_receiver@4c {
            compatible = "adi,adv7611";
            status = "okay";
            reg = <0x4c>;
            #address-cells = <1>;
            #size-cells = <0>;
            default-input = <0>;
            port@0 {
                  reg = <0>;
            };
            port@1 {
                  reg = <1>;
                  hdmi_in_1: endpoint {
                        remote-endpoint = <&vin1a>;
                        bus-width = <24>;     /* Used data lines */
                        hsync-active = <1>;
                        vsync-active = <1>;
                        pclk-sample = <0>;
                  };
            };
      };
Schematic related to circuit
Any ideas of that error?
Thanks,
Miguel