From patchwork Tue Nov 1 12:31:58 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Jernej_=C5=A0krabec?= X-Patchwork-Id: 13026929 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 2C488C433FE for ; Tue, 1 Nov 2022 12:33:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=HGx4bLb/83D5SsOfkE9pXEoR9mOxW7nhIBwmZOh/IkY=; b=iPBJdpkUCgIaPm XomBhDJKi81gnp4/PHRbamkxS4Y06avHsbdIfXdPRtGpk7Mxba/+VfZM4Z8JQEewsSLpj4wrOeE/b MYcJ1UDTax+6Ia+7A9DrmpA1mewqQaNItQcvSGjQHNdQ8Xxv79FIo8O7KSdx7L8HRKE35akPSYSI+ ZDIecQTpzsED7/4qxoS5rt0FwhOamSH8wCAQweirNMtFAJMRTtVXL/W//wJfdKkjsGXhnpvfA88ma aDNaludtlhpnLwtptbLvrCAHn4y8An4IZPuq81orjQUfJdatzD6R3pVf7pOZSxYJlGJwEyTY2UshN +MtjRSWtwvv2qOgSQ3SQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1opqRS-0052k7-KE; Tue, 01 Nov 2022 12:32:30 +0000 Received: from mail-wr1-x434.google.com ([2a00:1450:4864:20::434]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1opqRN-0052gj-5y for linux-arm-kernel@lists.infradead.org; Tue, 01 Nov 2022 12:32:29 +0000 Received: by mail-wr1-x434.google.com with SMTP id j15so19909091wrq.3 for ; Tue, 01 Nov 2022 05:32:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=asoWekP0S6I4rKhiYwy8FgHvcv/s8ZlTBqdD48kgwrs=; b=SV/rrSTjwUPVGv5ixCHdcN+wfHbDMCSfpgFpNcYO6UyADssLZD1Ro4bQWQwaE6iSFF 6pxN5PxMmGGuUDbQV1lkcT+bsDnQX8LI+YSbbrAuehqYvlzy4dfCxQJj8L3ZRsqBeqrn eMNUNoaB16qd+hLTF/yRzieHKp6Zfe2MkfJJoLk91V1vnCzsj+DtdGsGGfBEXOMYkycH BPK8J+X4ZgFkkS+MM8PP1UKzBKJcvGGdcT7sYdM1mRjTFE4zuSswJQXqiKCxV6I1uYhS EpxltdmTLZtbO6Je/PIR9/TLFUPH6fFkvW8LIUgoz625eJdgdUeD2APgdv+3HPhPrs1G nm1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=asoWekP0S6I4rKhiYwy8FgHvcv/s8ZlTBqdD48kgwrs=; b=A3OJDTep3UOKuO+biHbE6LHyWHv3Bw4pzONmwbX1IccxtDP6tg8JFn+848WRHRgp0n Uw7oBGndnyXuJo4nlB4Pc5+AY9bY8DxMpAp3cwUNe9wz4DI5qdBk4MHA8YPUiwOY9ASN vuKmTUA76Wd8pI6F9kN1ab0zn7SAd1Sx/P8xFO9eBgrsWY6dPuPI1FTjlejHizpi/26F HnfG5P0UhOnhA4pBhaFkz8l1e39cEdTVeqPeUabxJLBviIEohQF+PAS1EBBtgQG/HF2+ H2BDdriLvAFkhpwt9bFPz2gSqFrPWkXSkugbS+tUMGODYOQB7PyUoa19z1v+LBZAO0Iq QIJw== X-Gm-Message-State: ACrzQf1rdZph8yJKd9JsPqSJFsS9mKRf2dnn5yH8TCaqJl8tSRIwfy4K Pbn1USJWSB8b1iMVjOO5CNE= X-Google-Smtp-Source: AMsMyM7yIX+qGuPW1i/7qFvjN9goSNuVqX60VD/ARdYElANN5QYXIPnACp6wyWxRCeRKJIQuEwpSug== X-Received: by 2002:a05:6000:1887:b0:236:7b1a:b14c with SMTP id a7-20020a056000188700b002367b1ab14cmr11561165wri.173.1667305939174; Tue, 01 Nov 2022 05:32:19 -0700 (PDT) Received: from kista.localdomain (82-149-19-102.dynamic.telemach.net. [82.149.19.102]) by smtp.gmail.com with ESMTPSA id f18-20020a1cc912000000b003cf5ec79bf9sm10404176wmb.40.2022.11.01.05.32.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Nov 2022 05:32:18 -0700 (PDT) From: Jernej Skrabec To: mchehab@kernel.org, hverkuil-cisco@xs4all.nl Cc: robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, wens@csie.org, samuel@sholland.org, linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org, Jernej Skrabec Subject: [PATCH 0/3] media: sunxi: Add H6 deinterlace driver Date: Tue, 1 Nov 2022 13:31:58 +0100 Message-Id: <20221101123201.3021129-1-jernej.skrabec@gmail.com> X-Mailer: git-send-email 2.38.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20221101_053225_246716_1D4CBFBA X-CRM114-Status: GOOD ( 12.52 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org This series implements driver for H6 deinterlace core, which is newer version of core, covered by sun8i-di (v2.3). Contrary to older one, it doesn't support scaling, but it supports iommu, has additional motion compensated deinterlacing algorithm and supports different pixel formats. v4l2-compliance 1.23.0-4961, 64 bits, 64-bit time_t v4l2-compliance SHA: f86484524f32 2022-10-21 10:08:58 Compliance test for sun50i-di device /dev/video0: Driver Info: Driver name : sun50i-di Card type : sun50i-di Bus info : platform:sun50i-di Driver version : 6.1.0 Capabilities : 0x84208000 Video Memory-to-Memory Streaming Extended Pix Format Device Capabilities Device Caps : 0x04208000 Video Memory-to-Memory Streaming Extended Pix Format Required ioctls: 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 (Not Supported) test VIDIOC_QUERYCTRL: OK (Not Supported) test VIDIOC_G/S_CTRL: OK (Not Supported) test VIDIOC_G/S/TRY_EXT_CTRLS: OK (Not Supported) test VIDIOC_(UN)SUBSCRIBE_EVENT/DQEVENT: OK (Not Supported) test VIDIOC_G/S_JPEGCOMP: OK (Not Supported) Standard Controls: 0 Private Controls: 0 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 (Not Supported) test Composing: OK (Not Supported) test Scaling: OK (Not Supported) 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 sun50i-di device /dev/video0: 45, Succeeded: 45, Failed: 0, Warnings: 0 Best regards, Jernej Jernej Skrabec (3): media: dt-bindings: media: Add Allwinner H6 Deinterlace binding media: sunxi: Add H6 deinterlace driver arm64: dts: allwinner: h6: Add deinterlace node .../allwinner,sun50i-h6-deinterlace.yaml | 74 ++ MAINTAINERS | 4 +- arch/arm64/boot/dts/allwinner/sun50i-h6.dtsi | 12 + drivers/media/platform/sunxi/Kconfig | 1 + drivers/media/platform/sunxi/Makefile | 1 + .../media/platform/sunxi/sun50i-di/Kconfig | 15 + .../media/platform/sunxi/sun50i-di/Makefile | 2 + .../platform/sunxi/sun50i-di/sun50i-di.c | 1142 +++++++++++++++++ .../platform/sunxi/sun50i-di/sun50i-di.h | 175 +++ 9 files changed, 1425 insertions(+), 1 deletion(-) create mode 100644 Documentation/devicetree/bindings/media/allwinner,sun50i-h6-deinterlace.yaml create mode 100644 drivers/media/platform/sunxi/sun50i-di/Kconfig create mode 100644 drivers/media/platform/sunxi/sun50i-di/Makefile create mode 100644 drivers/media/platform/sunxi/sun50i-di/sun50i-di.c create mode 100644 drivers/media/platform/sunxi/sun50i-di/sun50i-di.h --- 2.38.1