did you use nxp imx8mp board and demo images? if yes, current bsp supports this with gstreamer as default, this is from my test
root@imx8mpevk:~# gst-launch-1.0 -v v4l2src ! "video/x-raw,width=3840,height=2160" ! waylandsink
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
New clock: GstSystemClock
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0.GstPad:src: caps = video/x-raw, width=(int)3840, height=(int)2160, format=(string)YUY2, framerate=(fraction)30/1, colorimetry=(string)2:6:5:1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw, width=(int)3840, height=(int)2160, format=(string)YUY2, framerate=(fraction)30/1, colorimetry=(string)2:6:5:1
/GstPipeline:pipeline0/GstWaylandSink:waylandsink0.GstPad:sink: caps = video/x-raw, width=(int)3840, height=(int)2160, format=(string)YUY2, framerate=(fraction)30/1, colorimetry=(string)2:6:5:1
/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-raw, width=(int)3840, height=(int)2160, format=(string)YUY2, framerate=(fraction)30/1, colo[ 91.271506] unsupported dwe command 259
rimetry=(string)2:6:5:1
[ 91.271513] unsupported dwe command 260
[ 91.371595] enter isp_mi_stop
[ 91.380610] Not supported 3dnr
[ 91.911276] unsupported function isp_disable_bls
[ 91.911287] unsupported function isp_s_bls
[ 91.915991] unsupported function isp_enable_bls
[ 91.920136] unsupported function isp_enable_bls
[ 91.924712] enter isp_s_comp
[ 91.932180] enter isp_s_comp
[ 91.935205] enter isp_s_comp
[ 91.950880] enter isp_s_comp
[ 91.953892] enter wdr3_hw_init
[ 91.957021] wdr3 res: 3840 2160
[ 91.960861] enter isp_mi_start
[ 97.118141] ###### 30.49 fps ######
^Chandling interrupt.
Interrupt: Stopping pipeline ...
Execution ended after 0:00:08.425076875
Setting pipeline to NULL ...
[ 99.652238] enter isp_mi_stop
Total showed frames (227), playing for (0:00:08.425097500), fps (26.943).