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: 13606701 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 45F5DC47DD9 for ; Wed, 27 Mar 2024 13:41:55 +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=1nPhMTcPBJIV9qE0v1q0xKrRQvUSNU1GJlQ6kmKlvqg=; b=F0aY84rTCnJ8+r n0/JiT2MtfXLICpei6Bgd22xypAQVlo3YVxbArBn+32ZgFGojLq9fQjFg3+pNUtilBzoDIlK1Gup5 aI9vmla2WzWGMkJlTpmRfa/+7t8ejGP0RGQAjryXZcd1r9I1eXZckWg6i4eFA9xQ0Csi/pdpdoT4R GRmw+k+WTakZgD8rM1Muglb5G7pNMuY3AbrBa5BrexQXcuzqdJdM4cNarB2PudoQtDHf+G/llUWjD cVTqhKPa9U9s9BjqoV1jAs+6LWMU51T4NNeMYI9D1xO/lm36ebsJiMhAZ0kAcChQeiU8gfJDOZhaA 8LASlJ6IJDzRB+uAK9EA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1rpTXI-00000009FeR-3F6y; Wed, 27 Mar 2024 13:41:48 +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-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=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(-)