From patchwork Fri Sep 4 20:01:10 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Martin Cerveny X-Patchwork-Id: 11758451 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 54F1A925 for ; Fri, 4 Sep 2020 20:02:17 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A348420665 for ; Fri, 4 Sep 2020 20:02:16 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="QR7pLQDz"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=infradead.org header.i=@infradead.org header.b="vNktV4NV" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A348420665 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=computer.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:References:In-Reply-To:Message-Id:Date:Subject:To: From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=AcepV8JY5k48B/4iFBbeDh6UoVNQEptTNeJIPzlYo+g=; b=QR7pLQDzFH26zSISeuHBg/geR2 M9mShruqQ8l9b5eE7OWytec24rx85n9XC4fJ4KBPY8swloX+QlhfeRGSTJLnJSBx020mbOEgm9ah/ 9OlFHJqdFt91aJBWb2EwMxJwigGNcQ+OxuM0vz4dhaClAYBoDyDGEI5NvSjhbaNRC8KtIRFu28GyX lPxgxbSQEKs++McqRAGrPPPjuFyZjI8EVA116ciy5+oGpj6LCw2o4g2TYzqBgUClMtYNkrySLhVyq OwAwFpopclD0eFY8KJKeJGSDkrj/2ha0n0bziOPKiTjkaTJmPG+aOn+esa6rrRaCvtskXSv6sFrmU kNykr0ow==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kEHuO-0008HD-7z; Fri, 04 Sep 2020 20:02:04 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1kEHuK-0008GF-E6 for linux-arm-kernel@merlin.infradead.org; Fri, 04 Sep 2020 20:02:00 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=References:In-Reply-To:Message-Id:Date: Subject:Cc:To:From:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description; bh=EPMzMJqQZsHr7o7e0b2q/sitCPS7PuaCujDRyyD5fL0=; b=vNktV4NVo3fsvI6UfhAeMZ/9pH gk+nm4a/XYaClAm8DtorKIwTsY8FRil0RIYMy6hMYfH+bmKW2ArpwU4IdaJYAh1oHzp9ydeEYtW8T v2uf5GtMLjjdnwLpKx3SxfA6q5I32+cw76PBX4DGYRwdhXP7YH0e3lJM4mNRzpU3HyPCblYR3stBj LqNyeLNT0oULMBn3CJ7CnIpzCY6BfObeiG+xSepn+ipbEvA28jZixeGIflh3v+rZ/d15ZWjTO2kuK 3DHrGz4mI5cAQQHqb7ltJqTo4hRG5Ha31OLLHWtsBPFg9mGtJr2wlnISAtGSZ4A6f28aqgGtogrj/ fqvJsk7A==; Received: from gw.c-home.cz ([89.24.150.100] helo=dmz.c-home.cz) by casper.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1kEHu9-00033t-Sh for linux-arm-kernel@lists.infradead.org; Fri, 04 Sep 2020 20:01:56 +0000 Received: from ubuntu1804.c-home.cz (unifi.c-home.cz [192.168.1.239]) by dmz.c-home.cz (8.14.4+Sun/8.14.4) with ESMTP id 084K1EdC002405; Fri, 4 Sep 2020 22:01:28 +0200 (CEST) From: Martin Cerveny To: devicetree@vger.kernel.org Subject: [PATCH 4/6] media: cedrus: Add support for V3s Date: Fri, 4 Sep 2020 22:01:10 +0200 Message-Id: <20200904200112.5563-5-m.cerveny@computer.org> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200904200112.5563-1-m.cerveny@computer.org> References: <20200904200112.5563-1-m.cerveny@computer.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200904_210150_257287_A90EC043 X-CRM114-Status: GOOD ( 10.86 ) X-Spam-Score: -1.2 (-) X-Spam-Report: SpamAssassin version 3.4.4 on casper.infradead.org summary: Content analysis details: (-1.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: devel@driverdev.osuosl.org, Greg Kroah-Hartman , linux-kernel@vger.kernel.org, Maxime Ripard , Paul Kocialkowski , Chen-Yu Tsai , Rob Herring , Martin Cerveny , Mauro Carvalho Chehab , linux-arm-kernel@lists.infradead.org, linux-media@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org V3s video engine runs at lower speed and support video decoder for H.264 and JPEG/MJPEG only. Signed-off-by: Martin Cerveny --- drivers/staging/media/sunxi/cedrus/cedrus.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/drivers/staging/media/sunxi/cedrus/cedrus.c b/drivers/staging/media/sunxi/cedrus/cedrus.c index 3fd9fd810..3c4fcef37 100644 --- a/drivers/staging/media/sunxi/cedrus/cedrus.c +++ b/drivers/staging/media/sunxi/cedrus/cedrus.c @@ -506,6 +506,12 @@ static const struct cedrus_variant sun8i_h3_cedrus_variant = { .mod_rate = 402000000, }; +static const struct cedrus_variant sun8i_v3s_cedrus_variant = { + .capabilities = CEDRUS_CAPABILITY_UNTILED | + CEDRUS_CAPABILITY_H264_DEC, + .mod_rate = 297000000, +}; + static const struct cedrus_variant sun50i_a64_cedrus_variant = { .capabilities = CEDRUS_CAPABILITY_UNTILED | CEDRUS_CAPABILITY_MPEG2_DEC | @@ -552,6 +558,10 @@ static const struct of_device_id cedrus_dt_match[] = { .compatible = "allwinner,sun8i-h3-video-engine", .data = &sun8i_h3_cedrus_variant, }, + { + .compatible = "allwinner,sun8i-v3s-video-engine", + .data = &sun8i_v3s_cedrus_variant, + }, { .compatible = "allwinner,sun50i-a64-video-engine", .data = &sun50i_a64_cedrus_variant,