2385878_en-US

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

2385878_en-US

2385878_en-US

Sampling issue while streaming for Bayer sensor in iMX95 FRDM

Hi Team,
We are currently bringing up a Bayer sensor in IMX95 FRDM kit. We initially verified the stream with OS08A20 (reference camera from NXP) we were able to stream. Based on the driver we bringup a driver to support our sensor. It probes fine and media nodes gets generated properly. The media linking is proper which we verified with the media architecture of OS08A20. 
We have attached the dmesg log below.

Currently we configured the sensor in 8 bit mode (ar0234 sensor) . Current data rate is 800 MBPS per lane .  Data will be out in 4 lane for the sensor . We are able to probe and register.

cam -l
[0:08:06.049058684] [858]  INFO Camera camera_manager.cpp:340 libcamera v0.0.0+6489-lf-6.18.2-1.0.0
[0:08:06.155690529] [859]  INFO MediaPipeline media_pipeline.cpp:240 Found pipeline: [ar0830 3-0042|0] -> [0|csidev-4ad30000.csi|1] -> [0|4ac10000.syscon:formatter@20|1] -> [2|crossbar]
[0:08:06.156726940] [859]  WARN CameraSensorProperties camera_sensor_properties.cpp:586 No static properties available for 'ar0830'
[0:08:06.156904446] [859]  WARN CameraSensorProperties camera_sensor_properties.cpp:588 Please consider updating the camera sensor properties database
[0:08:06.157054248] [859]  INFO Camera camera_manager.cpp:223 Adding camera '/base/soc/bus@42000000/i2c@42540000/ar0234_mipi@42' for pipeline handler imx8-isi
Available cameras:
1: External camera 'ar0234' (/base/soc/bus@42000000/i2c@42540000/ar0234_mipi@42)

our camera has been successfully detected , as mentioned above 



v4l2-ctl -d 0 -v width=1920,height=1200,pixelformat='GRBG'  --stream-mmap  --verbose
VIDIOC_QUERYCAP: ok
VIDIOC_G_FMT: ok
VIDIOC_S_FMT: ok
Format Video Capture Multiplanar:
  Width/Height      : 1920/1200
  Pixel Format      : 'GRBG' (8-bit Bayer GRGR/BGBG)
  Field             : None
  Number of planes  : 1
  Flags             : 
  Colorspace        : sRGB
  Transfer Function : sRGB
  YCbCr/HSV Encoding: ITU-R 601
  Quantization      : Limited Range
  Plane 0           :
     Bytes per Line : 1920
     Size Image     : 2304000
    VIDIOC_REQBUFS returned 0 (Success)
    VIDIOC_CREATE_BUFS returned 0 (Success)
    VIDIOC_QUERYBUF returned 0 (Success)
    VIDIOC_QUERYBUF returned 0 (Success)
    VIDIOC_QUERYBUF returned 0 (Success)
    VIDIOC_QUERYBUF returned 0 (Success)
    VIDIOC_G_FMT returned 0 (Success)
    VIDIOC_QBUF returned 0 (Success)
    VIDIOC_QBUF returned 0 (Success)
    VIDIOC_QBUF returned 0 (Success)
    VIDIOC_QBUF returned 0 (Success)
    VIDIOC_STREAMON returned 0 (Success)

 

We are able to get frames from the camera sensor which we probed with the DSO and verified but the platform is unable to sample it properly. No error comes in the dmesg.

Have we missed anything else from the sensor configuration perspective?

Also, do the data rate or pixel clock values need to be communicated to the platform through the Device Tree?

Specifically, should the following D-PHY parameters be configured in the Device Tree?

 
cfg-clk-range = <28>;
hs-clk-range = <0x2b>;
 

If these parameters are required, could you clarify on what basis the cfg-clk-range and hs-clk-range values are selected?

Are these values derived from the MIPI CSI-2 lane data rate, sensor output resolution, frame rate, or pixel clock?

Additionally, what data-rate or pixel-clock range corresponds to the values 28 and 0x2b? Is there a reference table or formula that should be used to determine the correct settings for a given sensor configuration?


DMESG LOG

[ 104.760033] camera-mipi-clk = 800MHz
[ 115.837690] ar0234 3-0042: MIPI Clock = 800, MIPI Lanes = 4
[ 115.837737] ar0234 3-0042: supply avdd not found, using dummy regulator
[ 115.837911] ar0234 3-0042: supply dovdd not found, using dummy regulator
[ 115.837955] ar0234 3-0042: supply dvdd not found, using dummy regulator
[ 115.988087] Current Firmware Version - (11eONO25V6XXX011106014eceGCORAL3)
[ 115.988115] Current Firmware Version - (11eONO25V6XXX011106014eceGCORAL3)
[ 115.989053] priv->mipi_lane_config is 4
[ 120.297214] SENSOR ID=0x0a56
[ 120.297245] mcu_isp_init
[ 125.401238] Detected ar0234 sensor
[ 125.453854] ar0234_propagate_fmt is called
[ 125.463674] ar0234_propagate_fmt is called
[ 125.463959] entering the enum mbus code
[ 125.463975] code is 12290
[ 125.463982] entering the enum mbus code
[ 125.463989] entering the ar0234_enum_frame_sizes functions
[ 125.463995] entering the ar0234_enum_frame_sizes functions
[ 125.463999] entering the ar0234_enum_frame_sizes functions
[ 125.464004] entering the ar0234_enum_frame_sizes functions
[ 125.464033] inside the ar0234_get_selection functions
[ 125.464041] inside the ar0234_get_selection functions
[ 125.464045] inside the ar0234_get_selection functions
[ 126.637118] ar0234_propagate_fmt is called
[ 126.637658] entering the enum mbus code
[ 126.637681] code is 12290
[ 126.637702] entering the enum mbus code
[ 126.637719] entering the ar0234_enum_frame_sizes functions
[ 126.637736] entering the ar0234_enum_frame_sizes functions
[ 126.637751] entering the ar0234_enum_frame_sizes functions
[ 126.637765] entering the ar0234_enum_frame_sizes functions
[ 126.637856] inside the ar0234_get_selection functions
[ 126.637877] inside the ar0234_get_selection functions
[ 126.637892] inside the ar0234_get_selection functions
[ 204.157151] audit: type=1006 audit(1782310053.402:28): pid=805 uid=0 old-auid=4294967295 auid=0 tty=(none) old-ses=4294967295 ses=4 res=1
[ 204.157191] audit: type=1300 audit(1782310053.402:28): arch=c00000b7 syscall=64 success=yes exit=1 a0=a a1=ffffc191b2d0 a2=1 a3=0 items=0 ppid=1 pid=805 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4 comm="sshd-session" exe="/usr/libexec/sshd-session" key=(null)
[ 204.157211] audit: type=1327 audit(1782310053.402:28): proctitle=737368642D73657373696F6E3A20726F6F74205B707269765D
[ 206.826792] ar0234_propagate_fmt is called
[ 206.826975] entering the enum mbus code
[ 206.826986] code is 12290
[ 206.826994] entering the enum mbus code
[ 206.827000] entering the ar0234_enum_frame_sizes functions
[ 206.827006] entering the ar0234_enum_frame_sizes functions
[ 206.827010] entering the ar0234_enum_frame_sizes functions
[ 206.827014] entering the ar0234_enum_frame_sizes functions
[ 206.827057] inside the ar0234_get_selection functions
[ 206.827065] inside the ar0234_get_selection functions
[ 206.827070] inside the ar0234_get_selection functions
[ 224.637904] ar0234_propagate_fmt is called
[ 224.676405] ar0234_propagate_fmt is called
[ 224.676442] entering ar0234_set_fmt
[ 224.676447] inside the set format loop if condition
[ 224.676451] ar0234->mcu_cam_frmfmt[mode].size.width is 1920
[ 224.676456] ar0234_set_fmt: setting resolution width=1920 height=1200, mode=0
[ 224.680462] priv->mcu_cam_frmfmt[mode].size.width is 1920
[ 224.680476] mc_data[8] = 0x07 (7)
[ 224.680480] mc_data[9] = 0x80 (128)
[ 224.680484] mc_data[10] = 0x04 (4)
[ 224.680487] mc_data[11] = 0xb0 (176)
[ 228.270636] ar0234_propagate_fmt is called
[ 228.270815] entering the enum mbus code
[ 228.270823] code is 12290
[ 228.270832] entering the enum mbus code
[ 228.270838] entering the ar0234_enum_frame_sizes functions
[ 228.270843] entering the ar0234_enum_frame_sizes functions
[ 228.270848] entering the ar0234_enum_frame_sizes functions
[ 228.270912] entering the ar0234_enum_frame_sizes functions
[ 228.270958] inside the ar0234_get_selection functions
[ 228.270965] inside the ar0234_get_selection functions
[ 228.270970] inside the ar0234_get_selection functions
[ 237.329660] dwc-mipi-csi2 4ad30000.csi: Remote sub-device on pad 1 should implement .get_frame_desc! Forcing VC = 0 and DT = 2a
[ 487.004807] ar0234_propagate_fmt is called
[ 487.004984] entering the enum mbus code
[ 487.005053] code is 12290
[ 487.005065] entering the enum mbus code
[ 487.005073] entering the ar0234_enum_frame_sizes functions
[ 487.005079] entering the ar0234_enum_frame_sizes functions
[ 487.005083] entering the ar0234_enum_frame_sizes functions
[ 487.005087] entering the ar0234_enum_frame_sizes functions
[ 487.005138] inside the ar0234_get_selection functions
[ 487.005146] inside the ar0234_get_selection functions
[ 487.005150] inside the ar0234_get_selection functions
[ 695.743591] audit: type=1006 audit(1782310544.949:29): pid=869 uid=0 old-auid=4294967295 auid=0 tty=(none) old-ses=4294967295 ses=5 res=1
[ 695.743649] audit: type=1300 audit(1782310544.949:29): arch=c00000b7 syscall=64 success=yes exit=1 a0=a a1=ffffef74ca20 a2=1 a3=0 items=0 ppid=1 pid=869 auid=0 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=5 comm="sshd-session" exe="/usr/libexec/sshd-session" key=(null)
[ 695.743685] audit: type=1327 audit(1782310544.949:29): proctitle=737368642D73657373696F6E3A20726F6F74205B707269765D


タグ(1)
評価なし
バージョン履歴
最終更新日:
5 時間前
更新者: