14 Jun, 2017

1 commit

  • Fixes the following build errors:

    ERROR: "mipi_csi2_reset" [drivers/media/platform/mxc/capture/ov5640_camera_mipi_int.ko] undefined!
    ERROR: "mipi_csi2_set_datatype" [drivers/media/platform/mxc/capture/ov5640_camera_mipi_int.ko] undefined!
    ERROR: "mipi_csi2_enable" [drivers/media/platform/mxc/capture/ov5640_camera_mipi_int.ko] undefined!
    ERROR: "mipi_csi2_dphy_status" [drivers/media/platform/mxc/capture/ov5640_camera_mipi_int.ko] undefined!
    ERROR: "mipi_csi2_disable" [drivers/media/platform/mxc/capture/ov5640_camera_mipi_int.ko] undefined!
    ERROR: "mipi_csi2_set_lanes" [drivers/media/platform/mxc/capture/ov5640_camera_mipi_int.ko] undefined!
    ERROR: "mipi_csi2_get_status" [drivers/media/platform/mxc/capture/ov5640_camera_mipi_int.ko] undefined!
    ERROR: "mipi_csi2_get_info" [drivers/media/platform/mxc/capture/ov5640_camera_mipi_int.ko] undefined!
    ERROR: "mipi_csi2_get_error1" [drivers/media/platform/mxc/capture/ov5640_camera_mipi_int.ko] undefined!

    Signed-off-by: Octavian Purdila

    Octavian Purdila
     

09 Jun, 2017

3 commits

  • Some RGB formats fourcc definition are not precise
    according to its original meaning. So make some
    changes for them.

    Signed-off-by: Fancy Fang
    (cherry picked from commit b0b4ad680e267bdf542d2c9a3202c0192bde9cb0)

    Fancy Fang
     
  • The following commit, in 4.9 kernel:

    commit 2d7007153f0c ("[media] media: videobuf2: Restructure vb2_buffer")

    added some changes to the v4l2 structures that were not properly
    included in the existing driver after the rebase from 4.1. Hence, when a
    new buffer was filled by the v4l2 core, the flags field in
    vb2_v4l2_buffer structure contained a pointer and, depending on the
    pointer value, the v4l2 core considered that the buffer was already
    dequeued, signaling the error to userspace. The issue appeared
    intermittently, after multiple reboots.

    This patch fixes it.

    Signed-off-by: Laurentiu Palcu

    Laurentiu Palcu
     
  • Add set_fmt function to mxc vadc driver.

    Signed-off-by: Sandor Yu

    Sandor Yu
     

08 Jun, 2017

6 commits


23 Feb, 2017

17 commits

  • Add clk_settle variable to compliance more mipi sensor.
    Mipi controller should setting by followed value
    according mipi sensor support D-phy version.

    Slave Clock Lane Control Register for TCLK-SETTLE.
    2'b0x = 110 ns to 280ns (v0.87 to v1.00)
    2'b10 = 150 ns to 430ns (v0.83 to v0.86)
    2'b11 = 60 ns to 140ns (v0.82)

    Signed-off-by: Sandor Yu

    Sandor Yu
     
  • Combine csi image setting function for 32-bit,16-bit,8-bit format.
    For parallel 8-bit sensor input, when bit per pixel is 16,
    csi image width should been doubled.
    But for mipi input, the csi image width and height should align
    with mipi whatever data width.

    Signed-off-by: Sandor Yu

    Sandor Yu
     
  • -Support no power and reset pins platform.
    -Remove specific power and reset pin setting for ov5640 daughter card.
    -Put sensor in software power down state when streamoff.
    -Remove unsupported video modes, keep 640x480, 720x480, 720p, 1080p 30fps
    video modes in driver.

    Signed-off-by: Sandor Yu

    Sandor Yu
     
  • when do vte test it meets follow dump in small probability.
    Add against-0 check to resovle this.

    $ v4l_emma.sh 1 1
    $ v4l_emma.sh 1 9

    ------------[ cut here ]------------
    : /dev/video1 Set PARM sucessfulWARNING: CPU: 0 PID: 1123 at /home/bamboo/build/4.1.X-1.0.0_ga/fsl-
    imx-fb/temp_build_dir/build_fsl-imx-fb/tmp/work-shared/imx6qdlsolo/kernel-source/mm/page_alloc.c:266
    5 __alloc_pages_nodemask+0x3c8/0x894()
    ly
    v4l_capture_testapp 0 TINModules linked in:FO : /dev/video1 input formatti mx6s_captureng pass
    v4l_capture_testapp 0 ov5640_camera TINFO : PRP_ENC_ON_D gpRGBcon evbugv_buf malloc pass!

    CPU: 0 PID: 1123 Comm: v4l2_capture_em Not tainted 4.1.8-1.0.0+g87e6c2f #1
    Hardware name: Freescale i.MX6 Ultralite (Device Tree)
    [] (unwind_backtrace) from [] (show_stack+0x10/0x14)
    [] (show_stack) from [] (dump_stack+0x84/0xc4)
    [] (dump_stack) from [] (warn_slowpath_common+0x80/0xb0)
    [] (warn_slowpath_common) from [] (warn_slowpath_null+0x1c/0x24)
    [] (warn_slowpath_null) from [] (__alloc_pages_nodemask+0x3c8/0x894)
    [] (__alloc_pages_nodemask) from [] (__dma_alloc_buffer.isra.3+0x2c/0x84)
    [] (__dma_alloc_buffer.isra.3) from [] (__alloc_remap_buffer.isra.6+0x1c/0x8c)
    [] (__alloc_remap_buffer.isra.6) from [] (__dma_alloc+0x1fc/0x228)
    [] (__dma_alloc) from [] (arm_dma_alloc+0x8c/0xa0)
    [] (arm_dma_alloc) from [] (vb2_dc_alloc+0x68/0x100)
    [] (vb2_dc_alloc) from [] (__vb2_queue_alloc+0x134/0x4d0)
    [] (__vb2_queue_alloc) from [] (__reqbufs.isra.17+0x1a8/0x304)
    [] (__reqbufs.isra.17) from [] (__video_do_ioctl+0x2b0/0x324)
    [] (__video_do_ioctl) from [] (video_usercopy+0x1b8/0x480)
    [] (video_usercopy) from [] (v4l2_ioctl+0x118/0x150)
    [] (v4l2_ioctl) from [] (do_vfs_ioctl+0x3e8/0x608)
    [] (do_vfs_ioctl) from [] (SyS_ioctl+0x34/0x5c)
    [] (SyS_ioctl) from [] (ret_fast_syscall+0x0/0x3c)
    ---[ end trace 55ed68f89eca4805 ]---
    mx6s-csi 21c4000.csi: dma_alloc_coherent of size 0 failed

    Signed-off-by: Robby Cai

    Robby Cai
     
  • For power saving, the camera is set ON/OFF by 'PWDN' pin.
    However, the DQBUF timeout problems have been observed occasionally when
    do the resolution switch for the camera. The reason could be that the power
    for the camera is set to off then on when do the switch, but the delay time
    is not enough for camera to go stable. The patch sets it to an empirical
    value and it has passed over 3-day stress test.

    Signed-off-by: Robby Cai

    Robby Cai
     
  • Without the filter function, the dma_request_channel() API could possibly get
    a sdma channel. The dma_request_channel() API does not return error but the
    consequent operations on that channel will be invalid then the upper level
    application expects to be stuck.

    The patch added the filter functions to get right dma channel for the fix.

    Signed-off-by: Robby Cai

    Robby Cai
     
  • The patch is to fix the issue,
    mipi csi unit test mx6s_v4l2_capture.out can not work in 2nd time.

    In ov5647 driver, clock and data lane will been setting to LP11 mode
    when stream off. And the mode will been changed to LP00 mode
    at the begin of ov5647 initialization.
    If MIPI CSI DPHY in power on state, it will begin to work after
    clock and data lane level changed, even ov5647 is not ready.
    MIPI PHY may lose ov5647 signal.

    Fixed the issue with:
    i. Stream off ov5647 when ov5647 driver probe.
    ii. Add 5ms delay after software reset bit set.
    iii.Setting both clock and data lane in LP00 when stream off.

    Signed-off-by: Sandor Yu
    (cherry picked from commit d351a9b3ad46309354a30b256be1a39c339effcd)

    Sandor Yu
     
  • Comparing unsigned integer with 0 is meaningless. So
    remove this kind of integer comparing.

    Signed-off-by: Fancy Fang

    Fancy Fang
     
  • The code slice in the 'v4l2_fmt_to_pxp_fmt()' function:
    "
    else if (v4l2_pix_fmt == V4L2_PIX_FMT_RGB555)
    pxp_fmt = PXP_PIX_FMT_RGB555;
    "
    appears twice continuously. And the second code slice
    will become dead code which is never executed. So
    remove the second one.

    Signed-off-by: Fancy Fang

    Fancy Fang
     
  • The capture channel should be correctly disabled in ->suspend() and
    enabled in ->resume() with ->enc_disable()/->enc_disable_csi() and
    ->enc_enable()/->enc_enable_csi() respectively.

    Signed-off-by: Liu Ying

    Liu Ying
     
  • Add s_stream interface for MIPI CSI and ov5647/ov5640 drivers.
    Enable MIPI CSI sensor after MIPI CSI DPHY CLK enable
    in case MIPI DPHY miss MIPI CSI sensor signal.

    Signed-off-by: Sandor Yu
    (cherry picked from commit 26d81b416be6e3af203d1254a3116dbcf39a5605)

    Sandor Yu
     
  • Fill device_caps in pxp output driver.

    Signed-off-by: Sandor Yu

    Sandor Yu
     
  • Remove comment out code.

    Signed-off-by: Sandor Yu

    Sandor Yu
     
  • Initial port of the mxc V4L2 capture driver.
    Baseline copied from imx_3.14.y branch:

    Signed-off-by: Sandor Yu

    Sandor Yu
     
  • As streamoff/streamon will reset all buffer list, video output count should
    be reset to zero. Or timer will get wrong schedule time if input buffer time
    stamp is 0.

    Signed-off-by: Song Bing b06498@freescale.com

    Song Bing
     
  • Forward imx_3.14.y mxc video output drivers to 4.1 kernel.

    The priv field of v4l2_pix_format is used to expand colorspace,
    and can not use to pass IPU input crop size.
    Add private IOCTL VIDIOC_S_INPUT_CROP and VIDIOC_G_INPUT_CROP
    to pass input crop size.

    Signed-off-by: Sandor Yu

    Sandor Yu
     
  • Porting the pxp-v4l2 output driver to imx_4.1.y branch.

    Signed-off-by: Fancy Fang

    Fancy Fang