From patchwork Mon Nov 7 21:02:05 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: 13035248 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 BCBEDC4332F for ; Mon, 7 Nov 2022 21:03:43 +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=quGAan1jjeywEoz86RDclR4YC3SySAez9DuO+iy1orY=; b=GWxwKHnFYDmOmv +eViE+gH6u5hzh5SAVdXbvhNAdqac8dumaBYP3GI6JdN3Czy6GC2e86cK/70dbtrBXm0coXLZ8swy +6TCC+Th+GYgZ24B53Fo9ruPlDNB6gIgviL7zniX/fbBh7W1HoEVLb8K3I8ydGZV+nvGPJ6HedJ0U 2VbAzcXgeux8kJeBlgs00wivzy4US9eba7eD+wo48zFWXXK/YKiPSJ8Rt8vXzaG0z6rCFUrH0E2/B C3AWL4xOs2PmwaLZd1Rj9aKBgy8e97c+ju+PzN2rj57fwmPe2+DAHzYCobziZulg4MmqE4boV/cyX lVYM06m1RyXqqFkhzq2w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1os9GP-000Uz5-11; Mon, 07 Nov 2022 21:02:37 +0000 Received: from mail-ej1-x630.google.com ([2a00:1450:4864:20::630]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1os9GG-000Urp-Vf for linux-arm-kernel@lists.infradead.org; Mon, 07 Nov 2022 21:02:30 +0000 Received: by mail-ej1-x630.google.com with SMTP id k2so33536546ejr.2 for ; Mon, 07 Nov 2022 13:02:19 -0800 (PST) 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=UyHjDH2OkNpKB2ikr0TO8Pj6bQxuxcX9QhNW0e830ps=; b=XpyuldZcA2USszrkDGtQyVwFDTemciAp0kElwwETiPYxuUV2HXYkLGzvYduc5OFpNI YLhG1lLfVcjL2yEjgtUJCrdj+jiZLDsY4YbLQIfAqvhkdTzieWYLKtIuCqOOBpuPd/yV 93nl8anaDa2xwuw1U9ptaR4MtxtfG9EHwlhIVJXO3T38oWZP3gYV46B82Tyzkl9dimNI /fiBUejbD+l6zrIYaFCvsEUo9uqi1gnVkt3FBLwHtRoRYcFFwnEhz8j1RplUkUiFQ+F8 zHIO0NYCXx+EwNknXxzS4pXRaEEpRsnfs2GrlhUgrQJSXcWuhPvPP7R9zWvuYTzTmI1I oJkQ== 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=UyHjDH2OkNpKB2ikr0TO8Pj6bQxuxcX9QhNW0e830ps=; b=sUg03efeWYws7W/sIHm0Yrvj/cULgRoPal8o6Rzl+2uzWlBKW6wPPNsleUKhZclTzL DSYFvpdVZVAXX7+iW63JHSXv6ql2xhGLFUVEoWtFrlRuk1I5P0FuKOSTJKly9IVEg1/J pF/GHftdv+Pwr9G+Tnsm5MZ9I0A6mpzAq8/0Ia2OaFnu+7nUHYDjqXxu/NSpCoWga5Fi VAPl+7Mlz8s9BSaBZRuxVDX8cgQdTBcOE5zSIWOzhWFXvCNbAfb7sOFZ3JCv06ZmQBmV W/l+xQIO/jesNQmccg+JqXWZuOEVUL+NfV4GjhE+qs1KPJYjE1i4DqQy3qCJipFYO30O SpHQ== X-Gm-Message-State: ACrzQf1BKuhszeRz3c+1F9A2/euXWiGdX8QxtwaEcbJgrSLAFqO59V08 x995nSbiw6SGIqwXo+T6y1k= X-Google-Smtp-Source: AMsMyM6ZfIIK9O/eDcoFcAmmG+B0PKBsNHl6D9biVAzXEQfdGkdPy4y8uA7tr1eFqDPC07OKJ/vrKg== X-Received: by 2002:a17:907:d89:b0:7a8:d67d:87d3 with SMTP id go9-20020a1709070d8900b007a8d67d87d3mr18091609ejc.364.1667854938119; Mon, 07 Nov 2022 13:02:18 -0800 (PST) Received: from kista.localdomain (82-149-19-102.dynamic.telemach.net. [82.149.19.102]) by smtp.gmail.com with ESMTPSA id k18-20020a05640212d200b0044ef2ac2650sm4638472edx.90.2022.11.07.13.02.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 07 Nov 2022 13:02:17 -0800 (PST) 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 v2 0/3] media: sunxi: Add H6 deinterlace driver Date: Mon, 7 Nov 2022 22:02:05 +0100 Message-Id: <20221107210208.284261-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-20221107_130229_093495_D2A02DC5 X-CRM114-Status: GOOD ( 14.37 ) 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. Best regards, Jernej Changes from v1: - use pm_runtime_resume_and_get() instead of pm_runtime_get_sync() - move memory allocation and freeing outside lock - call devm_request_irq() later, so base is already initialized - call platform_set_drvdata() sooner - deassert reset before enabling clocks - set mod clock rate to 300 MHz - set min size to 32x32 and max to 2048x1280, as suggested by user manual of D1, which seems to have similar deinterlace unit - fix header year and guard - added tags 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 | 1149 +++++++++++++++++ .../platform/sunxi/sun50i-di/sun50i-di.h | 175 +++ 9 files changed, 1432 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