This patchset depends on the series "imx8mp: Add media block control"[1] and "i.MX8MP GPC and blk-ctrl"[2] which provide the power driver infrastructure. The Vivante DW100 Dewarp Engine, found on i.MX8MP SoC, provides high-performance dewarp processing for the correction of the distortion that is introduced in images produced by fisheye and wide angle lenses. The engine can be used for accelerating scaling, cropping and pixel format conversion operations independently of the dewarping feature. [1] https://patchwork.kernel.org/project/linux-arm-kernel/list/?series=618788 [2] https://patchwork.kernel.org/project/linux-arm-kernel/list/?series=618869 Xavier Roumegue (3): media: dt-bindings: media: Add i.MX8MP DW100 binding media: dw100: Add i.MX8MP dw100 dewarper driver media: MAINTAINERS: add entry for i.MX8MP DW100 v4l2 mem2mem driver .../devicetree/bindings/media/nxp,dw100.yaml | 74 + MAINTAINERS | 7 + drivers/media/platform/Kconfig | 12 + drivers/media/platform/Makefile | 1 + drivers/media/platform/dw100/Makefile | 2 + drivers/media/platform/dw100/dw100.c | 1792 +++++++++++++++++ drivers/media/platform/dw100/dw100_regs.h | 118 ++ 7 files changed, 2006 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/nxp,dw100.yaml create mode 100644 drivers/media/platform/dw100/Makefile create mode 100644 drivers/media/platform/dw100/dw100.c create mode 100644 drivers/media/platform/dw100/dw100_regs.h ============ Compliance ============ # v4l2-compliance -d 0 v4l2-compliance 1.23.0, 64 bits, 64-bit time_t Compliance test for dw100 device /dev/video0: Driver Info: Driver name : dw100 Card type : DW100 dewarper Bus info : platform:dw100 Driver version : 5.17.0 Capabilities : 0x84208000 Video Memory-to-Memory Streaming Extended Pix Format Device Capabilities Device Caps : 0x04208000 Video Memory-to-Memory Streaming Extended Pix Format Media Driver Info: Driver name : dw100 Model : dw100 Serial : Bus info : platform:dw100 Media version : 5.17.0 Hardware revision: 0x00000000 (0) Driver version : 5.17.0 Interface Info: ID : 0x0300000c Type : V4L Video Entity Info: ID : 0x00000001 (1) Name : dw100-source Function : V4L2 I/O Pad 0x01000002 : 0: Source Link 0x02000008: to remote pad 0x1000004 of entity 'dw100-proc' (Video Scaler): Data, Enabled, Immutable Required ioctls: test MC information (see 'Media Driver Info' above): OK test VIDIOC_QUERYCAP: OK test invalid ioctls: OK Allow for multiple opens: test second /dev/video0 open: OK test VIDIOC_QUERYCAP: OK test VIDIOC_G/S_PRIORITY: OK test for unlimited opens: OK Debug ioctls: test VIDIOC_DBG_G/S_REGISTER: OK (Not Supported) test VIDIOC_LOG_STATUS: OK (Not Supported) Input ioctls: test VIDIOC_G/S_TUNER/ENUM_FREQ_BANDS: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_S_HW_FREQ_SEEK: OK (Not Supported) test VIDIOC_ENUMAUDIO: OK (Not Supported) test VIDIOC_G/S/ENUMINPUT: OK (Not Supported) test VIDIOC_G/S_AUDIO: OK (Not Supported) Inputs: 0 Audio Inputs: 0 Tuners: 0 Output ioctls: test VIDIOC_G/S_MODULATOR: OK (Not Supported) test VIDIOC_G/S_FREQUENCY: OK (Not Supported) test VIDIOC_ENUMAUDOUT: OK (Not Supported) test VIDIOC_G/S/ENUMOUTPUT: OK (Not Supported) test VIDIOC_G/S_AUDOUT: OK (Not Supported) Outputs: 0 Audio Outputs: 0 Modulators: 0 Input/Output configuration ioctls: test VIDIOC_ENUM/G/S/QUERY_STD: OK (Not Supported) test VIDIOC_ENUM/G/S/QUERY_DV_TIMINGS: OK (Not Supported) test VIDIOC_DV_TIMINGS_CAP: OK (Not Supported) test VIDIOC_G/S_EDID: OK (Not Supported) Control ioctls: test VIDIOC_QUERY_EXT_CTRL/QUERYMENU: OK test VIDIOC_QUERYCTRL: OK test VIDIOC_G/S_CTRL: OK test VIDIOC_G/S/TRY_EXT_CTRLS: OK test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 1 Private Controls: 1 Standard Compound Controls: 0 Private Compound Controls: 1 Format ioctls: test VIDIOC_ENUM_FMT/FRAMESIZES/FRAMEINTERVALS: OK test VIDIOC_G/S_PARM: OK (Not Supported) test VIDIOC_G_FBUF: OK (Not Supported) test VIDIOC_G_FMT: OK test VIDIOC_TRY_FMT: OK test VIDIOC_S_FMT: OK test VIDIOC_G_SLICED_VBI_CAP: OK (Not Supported) test Cropping: OK test Composing: OK test Scaling: OK Codec ioctls: test VIDIOC_(TRY_)ENCODER_CMD: OK (Not Supported) test VIDIOC_G_ENC_INDEX: OK (Not Supported) test VIDIOC_(TRY_)DECODER_CMD: OK (Not Supported) Buffer ioctls: test VIDIOC_REQBUFS/CREATE_BUFS/QUERYBUF: OK test VIDIOC_EXPBUF: OK test Requests: OK (Not Supported) Total for dw100 device /dev/video0: 46, Succeeded: 46, Failed: 0, Warnings: 0 ============== Media controller ============== # media-ctl -d 0 -p Media controller API version 5.17.0 Media device information ------------------------ driver dw100 model dw100 serial bus info platform:dw100 hw revision 0x0 driver version 5.17.0 Device topology - entity 1: dw100-source (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video0 pad0: Source -> "dw100-proc":0 [ENABLED,IMMUTABLE] - entity 3: dw100-proc (2 pads, 2 links, 0 route) type Node subtype Unknown flags 0 pad0: Sink <- "dw100-source":0 [ENABLED,IMMUTABLE] pad1: Source -> "dw100-sink":0 [ENABLED,IMMUTABLE] - entity 6: dw100-sink (1 pad, 1 link, 0 route) type Node subtype V4L flags 0 device node name /dev/video0 pad0: Sink <- "dw100-proc":1 [ENABLED,IMMUTABLE] -- 2.35.1