From patchwork Wed Mar 27 13:41:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Link Mauve X-Patchwork-Id: 13606706 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 F06DFC54E67 for ; Wed, 27 Mar 2024 13:41:56 +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=hvzx/1NvLpBjdmsqZZY3FjWebnAh94sejkveoTVk7NU=; b=m6a/6GfR859cKp WBVWOvm6ARO8YeHXiA0nqNu7Lj/MgDDWEbVuhbmw0Cy2KarHjWotMH44Yc3xuKX4UgoHF0J7YF6IE mtBE9i2J2R2wyB+Aw0lBnZGCnIQ/PaKwjpAcBOU/AXxv9ol0CVDNayg8CONKUySbAP0q/0kdCFcO5 dO4OQBtcwnalBiWEcJ74XhzP92e+vyH5ucbKHgEIjcWL6kfLrMYdvFt97ujgRerh3BoA3rQjo9hrQ GQbo1Q9k+JUlcnNwNHvgH3jETIRLzJpjpLPQj5wpLuWU4YLxW74UlD/jbEa/sVwc936oqQFbnu5oJ 4dFbmU5gHbldres/IyMw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpTXG-00000009FdE-3cFr; Wed, 27 Mar 2024 13:41:46 +0000 Received: from desiato.infradead.org ([2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpTWz-00000009FUe-1fDU; Wed, 27 Mar 2024 13:41:29 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=Content-Transfer-Encoding:Content-Type :MIME-Version:Message-ID:Date:Subject:Cc:To:From:Sender:Reply-To:Content-ID: Content-Description:In-Reply-To:References; bh=425/JIrUOfwZ7OXxSKoQezZWCz3PwekYKzEaxPQBkuc=; b=WHg9SgWyZ6aWJxOTcq+bU3zVVl lJmnzuJ4oAArivPuE9Wtk6mokJ8DactYuyi2fwsb/p8j6iZj+pwtGAc2nycf+TAyzTujZlcBG7qzq eAMBOu8Vdq1AG/8qNFoLhqQNZo+qKgGKqKdSlI83yx3J/pQYm3q0HMqJMPN9TZ3nZjePj8Hye+VWJ +ImMGpsyHMME9Uq7G1dY+0sERVkKxkOWxfwVkXWukww/U6Y+0Mt7CMuBepB4eLjmO9xWq+NnAlkmQ 5tfm4sVYVU36vtgKJBkG379lI+FR13Ay6m2V61HEBs74lNzzn3jx7clNl/c2pWSsFHDyXjLRMhYsR GgXxjApQ==; Received: from luna.linkmauve.fr ([82.65.109.163]) by desiato.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpTWv-00000000HAf-1vP4; Wed, 27 Mar 2024 13:41:27 +0000 Received: by luna.linkmauve.fr (Postfix, from userid 1000) id E969D101AF33; Wed, 27 Mar 2024 14:41:16 +0100 (CET) From: Emmanuel Gil Peyrot To: linux-kernel@vger.kernel.org Cc: Emmanuel Gil Peyrot , Ezequiel Garcia , Philipp Zabel , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Joerg Roedel , Will Deacon , Robin Murphy , Sebastian Reichel , Cristian Ciocaltea , Dragan Simic , Shreeya Patel , Chris Morgan , Andy Yan , Nicolas Frattaroli , linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, iommu@lists.linux.dev Subject: [PATCH v2 0/2] Enable JPEG encoding on rk3588 Date: Wed, 27 Mar 2024 14:41:10 +0100 Message-ID: <20240327134115.424846-1-linkmauve@linkmauve.fr> X-Mailer: git-send-email 2.44.0 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240327_134125_719782_65ED93AE X-CRM114-Status: GOOD ( 12.16 ) 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 Only the JPEG encoder is available for now, although there are patches for the undocumented VP8 encoder floating around[0]. This has been tested on a rock-5b, resulting in four /dev/video* encoders. The userspace program I’ve been using to test them is Onix[1], using the jpeg-encoder example, it will pick one of these four at random (but displays the one it picked): % ffmpeg -i -pix_fmt yuvj420p temp.yuv % jpeg-encoder temp.yuv NV12 output.jpeg [0] https://patchwork.kernel.org/project/linux-rockchip/list/?series=789885 [1] https://crates.io/crates/onix Changes since v1: - Dropped patches 1 and 4. - Use the proper compatible form, since this device should be fully compatible with the VEPU of rk356x. - Describe where the VEPU121 name comes from, and list other encoders and decoders present in this SoC. - Properly test the device tree changes, I previously couldn’t since I was using a too recent version of python-jsonschema… Emmanuel Gil Peyrot (2): media: dt-binding: media: Document rk3588’s VEPU121 arm64: dts: rockchip: Add VEPU121 to rk3588 .../bindings/media/rockchip,rk3568-vepu.yaml | 8 +- arch/arm64/boot/dts/rockchip/rk3588s.dtsi | 80 +++++++++++++++++++ 2 files changed, 86 insertions(+), 2 deletions(-)