imx93evk sensor set

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

imx93evk sensor set

2,884件の閲覧回数
ranYang
Contributor III

hello:

    I use imx93evk mipi csi ,in Linux imx93evk 6.12.20-gdfaf2136deb2-dirty #1 SMP PREEMPT Wed Jul 16 11:22:55 CST 2025 aarch64 GNU/Linux,  sensor is ar0521 , my device tree:

ranYang_0-1752736465332.png

but  media-ctl -p is error:

root@imx93evk:~# media-ctl -p
Media controller API version 6.12.20

Media device information
------------------------
driver mxc-isi
model FSL Capture Media Device
serial
bus info platform:4ae40000.isi
hw revision 0x0
driver version 6.12.20

Device topology
- entity 1: crossbar (3 pads, 3 links, 0 routes)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev0
pad0: Sink
[stream:0 fmt:UYVY8_1X16/1920x1080 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
<- "csidev-4ae00000.csi":1 [ENABLED,IMMUTABLE]
pad1: Sink
<- "mxc_isi.output":0 [ENABLED,IMMUTABLE]
pad2: Source
[stream:0 fmt:UYVY8_1X16/1920x1080 field:none colorspace:srgb xfer:srgb ycbcr:601 quantization:lim-range]
-> "mxc_isi.0":0 [ENABLED,IMMUTABLE]

- entity 5: mxc_isi.0 (2 pads, 2 links, 0 routes)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev1
pad0: Sink
[stream:0 fmt:UYVY8_1X16/1920x1080 field:none colorspace:jpeg xfer:srgb ycbcr:601 quantization:full-range
compose.bounds:(0,0)/1920x1080
compose:(0,0)/1920x1080]
<- "crossbar":2 [ENABLED,IMMUTABLE]
pad1: Source
[stream:0 fmt:YUV8_1X24/1920x1080 field:none colorspace:jpeg xfer:srgb ycbcr:601 quantization:full-range
crop.bounds:(0,0)/1920x1080
crop:(0,0)/1920x1080]
-> "mxc_isi.0.capture":0 [ENABLED,IMMUTABLE]

- entity 8: mxc_isi.0.capture (1 pad, 1 link)
type Node subtype V4L flags 0
device node name /dev/video0
pad0: Sink
<- "mxc_isi.0":1 [ENABLED,IMMUTABLE]

- entity 16: mxc_isi.output (1 pad, 1 link)
type Node subtype V4L flags 0
pad0: Source
-> "crossbar":1 [ENABLED,IMMUTABLE]

- entity 23: csidev-4ae00000.csi (2 pads, 2 links, 0 routes)
type V4L2 subdev subtype Unknown flags 0
device node name /dev/v4l-subdev2
pad0: Sink
[stream:0 fmt:UYVY8_1X16/1920x1080 field:none colorspace:smpte170m xfer:709 ycbcr:601 quantization:lim-range]
<- "ar0521 2-0036":0 []
pad1: Source
[stream:0 fmt:UYVY8_1X16/1920x1080 field:none colorspace:smpte170m xfer:709 ycbcr:601 quantization:lim-range]
-> "crossbar":0 [ENABLED,IMMUTABLE]

- entity 28: ar0521 2-0036 (1 pad, 1 link, 0 routes)
type V4L2 subdev subtype Sensor flags 0
device node name /dev/v4l-subdev3
pad0: Source
[stream:0 fmt:SBGGR10_1X10/2592x1944 field:none colorspace:raw]
-> "csidev-4ae00000.csi":0 []

Please indicate where the problem lies?How to slove sensor and csi is not connect problem bolew:

ranYang_0-1752736699039.png

 

 

 

 

 

ラベル(1)
0 件の賞賛
返信
6 返答(返信)

2,785件の閲覧回数
pengyong_zhang
NXP Employee
NXP Employee

Hi @ranYang 

You need to add the hs-clk-range parameter in mipi_csi_in follow your MIPI data rate.

B.R

0 件の賞賛
返信

2,734件の閲覧回数
ranYang
Contributor III
hello:
@pengyong_zhang please help to check the new situation as soon as possible. This error has been resolved, thank you very much.
0 件の賞賛
返信

2,781件の閲覧回数
ranYang
Contributor III

Hi @pengyong_zhang 

      I add V4L2_CID_LINK_FREQ to slove it,The attachment is my new driver code,it modified based on the driver code of the kernel system. and I add in  function ar0521_set_stream  

ret = ar0521_write_reg(sensor, 0x30F8, 0x0031);
        ret = ar0521_write_reg(sensor, 0x3046, 0x2608); 
        ret = ar0521_write_reg(sensor, 0x3048, 0x03FF); to Identify sensor exposure output  normal waveform.  According to manual RM00293  i.MX Linux Reference Manual ,Is it necessary to perform the following configuration ?

media-ctl -d /dev/media0 -l "'ar0521 2-0036':0 -> 'csidev-4ae00000.csi':0 [1]"
media-ctl -V "'csidev-4ae00000.csi':0 [fmt:SGRBG8_1X8/2592x1944 field:none colorspace:srgb]"
media-ctl -V "'crossbar':0 [fmt:SGRBG8_1X8/2592x1944 field:none colorspace:srgb]"
media-ctl -V '"mxc_isi.0":0 [fmt:SGRBG8_1X8/2592x1944 field:none colorspace:srgb]'
media-ctl -V '"mxc_isi.0":1 [fmt:SGRBG8_1X8/2592x1944 field:none colorspace:srgb]'

use “v4l2-ctl -d /dev/video0 --set-fmt-video=width=2592,height=1944,pixelformat=GRBG --stream-mmap --stream-count=1” command

But I still haven't received the picture, please help analyze it.  Print log information in attachment,I didn't see any obvious error,thank you 

 

0 件の賞賛
返信

1,778件の閲覧回数
caohieu
Contributor II
Hello, did you manage to fix it? I'm experiencing the same problem.
0 件の賞賛
返信

1,393件の閲覧回数
ranYang
Contributor III
Has the problem been resolved?
0 件の賞賛
返信

2,850件の閲覧回数
ranYang
Contributor III

Added some log printing,in  echo 'file drivers/staging/media/* +pflm' > /sys/kernel/debug/dynamic_debug/control , thank you.

 

0 件の賞賛
返信