From patchwork Fri Nov 19 03:15:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 12628121 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 70426C433F5 for ; Fri, 19 Nov 2021 03:15:23 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 4787B61B30 for ; Fri, 19 Nov 2021 03:15:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231620AbhKSDSX (ORCPT ); Thu, 18 Nov 2021 22:18:23 -0500 Received: from wnew2-smtp.messagingengine.com ([64.147.123.27]:59257 "EHLO wnew2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231129AbhKSDSX (ORCPT ); Thu, 18 Nov 2021 22:18:23 -0500 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailnew.west.internal (Postfix) with ESMTP id 2396F2B00BDB; Thu, 18 Nov 2021 22:15:21 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 18 Nov 2021 22:15:21 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=fm1; bh=ZKw8cbPJcQFgW+5fi8hG151sar +/M6ln0z0DF4Hg8O4=; b=U42fL80KZu+LedDkGjrU/xvCB3gfmgD0l62nJ5L/+W JxUKaAPIEKm5FIPK69/+kom4KQtYCkyFGl+Tds3Q40EAzEmnefV5dcmPXzR+Lr2d ygsFPNTStSE/TkLq4Z77RiC5lHI6ATHNIoiL8PTa4/koWVLLbc9+AJGbyAv24rNC s2nHWnHSyk4mxxc69STAQNYxwQgWH7IXncYT2qRvYoXaV1TbRbpr6afPdwFydk09 AqQMRDfhn8g/7I7XS2N9WO3CXoT7nhrHg8rDrSKwdJmKrTvLPMn2PbZwBw5Vybtz IEEaxeRz6quwIu4XtdHLZNEYeOrX0mpacxcBe0c++wSg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :message-id:mime-version:subject:to:x-me-proxy:x-me-proxy :x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=ZKw8cbPJcQFgW+5fi 8hG151sar+/M6ln0z0DF4Hg8O4=; b=eDQskkHxpCOKhpusoisrEWcxp8TnKaj7m GzmOHKTGOmf/767rqFVZX+g+X/qNp5d2fJIR+yU3dITC6JGvYinDtomhZX0HdVm9 SxznLqHWvEtuo4trtuzMYD4c/EXEEfsKu+3Z/CVJsQbaAeOvrhF/lkoSH06tiWaz V8WZYz8aOSfyr+ApvYBxQg0x18Efe6Fl+uRybpl9W+1jhzJ4KwVoIp2Z9pLQK20P GqpQYtPEpBatefUN/SUjYXlU08pjsiz6FRrPo8YCjBrBBN6fw3giLK1/O8sQUwKr c6HwZYM1YbG47r33NV1kmpsWDCnYGD5b2aUGr8TgWgHm+ld1IV5tg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrfeejgdehiecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgggfestdekredtredttdenucfhrhhomhepufgrmhhuvghlucfj ohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecuggftrfgrth htvghrnhepieetkefhheduudfgledtudefjeejfeegveehkeeufffhhfejkeehiefftdev tdevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepsh grmhhuvghlsehshhholhhlrghnugdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 18 Nov 2021 22:15:19 -0500 (EST) From: Samuel Holland To: Paul Kocialkowski , Mauro Carvalho Chehab , linux-media@vger.kernel.org Cc: Rob Herring , devicetree@vger.kernel.org, Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , linux-sunxi@lists.linux.dev, Samuel Holland , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] dt-bindings: media: Add compatible for D1 Date: Thu, 18 Nov 2021 21:15:17 -0600 Message-Id: <20211119031519.23430-1-samuel@sholland.org> X-Mailer: git-send-email 2.32.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org D1 contains a video engine similar to the one in other sunxi SoCs. Add a compatible for it. Signed-off-by: Samuel Holland Acked-by: Maxime Ripard Acked-by: Rob Herring --- .../bindings/media/allwinner,sun4i-a10-video-engine.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/media/allwinner,sun4i-a10-video-engine.yaml b/Documentation/devicetree/bindings/media/allwinner,sun4i-a10-video-engine.yaml index c34303b87a5b..c3de96d10396 100644 --- a/Documentation/devicetree/bindings/media/allwinner,sun4i-a10-video-engine.yaml +++ b/Documentation/devicetree/bindings/media/allwinner,sun4i-a10-video-engine.yaml @@ -20,6 +20,7 @@ properties: - allwinner,sun8i-h3-video-engine - allwinner,sun8i-v3s-video-engine - allwinner,sun8i-r40-video-engine + - allwinner,sun20i-d1-video-engine - allwinner,sun50i-a64-video-engine - allwinner,sun50i-h5-video-engine - allwinner,sun50i-h6-video-engine From patchwork Fri Nov 19 03:15:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Samuel Holland X-Patchwork-Id: 12628123 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 mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id AB347C433FE for ; Fri, 19 Nov 2021 03:15:30 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8791361A55 for ; Fri, 19 Nov 2021 03:15:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232819AbhKSDS1 (ORCPT ); Thu, 18 Nov 2021 22:18:27 -0500 Received: from wnew2-smtp.messagingengine.com ([64.147.123.27]:56585 "EHLO wnew2-smtp.messagingengine.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231129AbhKSDS0 (ORCPT ); Thu, 18 Nov 2021 22:18:26 -0500 Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailnew.west.internal (Postfix) with ESMTP id 3BA3E2B00BDE; Thu, 18 Nov 2021 22:15:24 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute5.internal (MEProxy); Thu, 18 Nov 2021 22:15:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sholland.org; h= from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; s=fm1; bh=h3Hk7f2yCSyGf a4CWbT3bM125byZdGI9jFEAsPjrUwQ=; b=AxLhODWqienBU8Do+yo3CcUcBJMPM V9OqhuvQNJL7vrum6akxrmQtxtCGu+xcm8rv1mVgwIOI0EDGi3ZznGsU2kkxaMK4 +WAlppjRlRkhxgPkoZxx4/1uAtml/Zs5vDVIOEgqLJy46CseiMlhUs5nW3OhVsly Itu5PGaXleD5nlg5kC09oIcX7JV93cvwwIEgVkvrc+89BhzZ31dQXQal4g9zVf/P zsYWNC1GKO7X7zDh1feW9BolfIxb77cnsxbGCCoA6vFtElFSw7FCE1KSE1zLwYZO xTRGI6L+KUX/tdW1PYYnt+bw+B4nh3QbLagnryT+daLW4ezz/2lie955A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:date:from :in-reply-to:message-id:mime-version:references:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=h3Hk7f2yCSyGfa4CWbT3bM125byZdGI9jFEAsPjrUwQ=; b=a18hLt/8 FDtoWwMqL0CVOaUonM77tS0iE2MWRCJHfq6c6xqH28qiL0MPBM9cxMdvc9CpwRTy EZNkz4Yy8icloqT0TdY0g13nMVvIbGZaYSUbaT8Cwt2Go3JBAgjveyTK561xb1Eq bc8RyMOT7cwOIkP1MEtw/Uzy6jOqXztZ2t8sx4AuuGRJTpoAnH+kmPFdul1GmYh/ Ym+VzXOK0VfsbYiN0WanBowiLWIDYDOgT3rtbXgu1XTxP9BfJ7E4wcTfmMEXtbg6 jX/fufl6HgWbPU5lgjQLIE3dpa9abrH9IADaNq5c69ZZ4UkUaK1Grm9gmaz2qlu3 uTNYbyb36/g0pQ== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvuddrfeejgdehhecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpefhvffufffkofgjfhgggfestdekredtredttdenucfhrhhomhepufgrmhhuvghl ucfjohhllhgrnhguuceoshgrmhhuvghlsehshhholhhlrghnugdrohhrgheqnecuggftrf grthhtvghrnhepudfhjeefvdfhgfefheetgffhieeigfefhefgvddvveefgeejheejvdfg jeehueeinecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epshgrmhhuvghlsehshhholhhlrghnugdrohhrgh X-ME-Proxy: Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 18 Nov 2021 22:15:22 -0500 (EST) From: Samuel Holland To: Paul Kocialkowski , Mauro Carvalho Chehab , linux-media@vger.kernel.org Cc: Rob Herring , devicetree@vger.kernel.org, Maxime Ripard , Chen-Yu Tsai , Jernej Skrabec , linux-sunxi@lists.linux.dev, Samuel Holland , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Greg Kroah-Hartman , linux-staging@lists.linux.dev Subject: [PATCH 2/2] media: cedrus: Add support for the D1 variant Date: Thu, 18 Nov 2021 21:15:18 -0600 Message-Id: <20211119031519.23430-2-samuel@sholland.org> X-Mailer: git-send-email 2.32.0 In-Reply-To: <20211119031519.23430-1-samuel@sholland.org> References: <20211119031519.23430-1-samuel@sholland.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org D1 has a unique variant of the video engine, which appears to drop the VP8 support found on most earlier variants. Signed-off-by: Samuel Holland Acked-by: Maxime Ripard --- drivers/staging/media/sunxi/cedrus/cedrus.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/drivers/staging/media/sunxi/cedrus/cedrus.c b/drivers/staging/media/sunxi/cedrus/cedrus.c index c76fc97d97a0..4a4b714b0f26 100644 --- a/drivers/staging/media/sunxi/cedrus/cedrus.c +++ b/drivers/staging/media/sunxi/cedrus/cedrus.c @@ -580,6 +580,14 @@ static const struct cedrus_variant sun8i_r40_cedrus_variant = { .mod_rate = 297000000, }; +static const struct cedrus_variant sun20i_d1_cedrus_variant = { + .capabilities = CEDRUS_CAPABILITY_UNTILED | + CEDRUS_CAPABILITY_MPEG2_DEC | + CEDRUS_CAPABILITY_H264_DEC | + CEDRUS_CAPABILITY_H265_DEC, + .mod_rate = 432000000, +}; + static const struct cedrus_variant sun50i_a64_cedrus_variant = { .capabilities = CEDRUS_CAPABILITY_UNTILED | CEDRUS_CAPABILITY_MPEG2_DEC | @@ -637,6 +645,10 @@ static const struct of_device_id cedrus_dt_match[] = { .compatible = "allwinner,sun8i-r40-video-engine", .data = &sun8i_r40_cedrus_variant, }, + { + .compatible = "allwinner,sun20i-d1-video-engine", + .data = &sun20i_d1_cedrus_variant, + }, { .compatible = "allwinner,sun50i-a64-video-engine", .data = &sun50i_a64_cedrus_variant,