Received: by 2002:ab2:7041:0:b0:1f4:bcc8:f211 with SMTP id x1csp224937lql; Fri, 12 Apr 2024 08:33:44 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV4qb75egcVp1dzVt83J32kgTMdKZTUs+hgxyRqeq5Y9PIqIX448Y1Kl0kamksF1+gEfKfQjeEDYg1UqKzf33VHi/UcQFvVPcvQrpk20Q== X-Google-Smtp-Source: AGHT+IHQlC2GvclV+dVrdo3LRIpCoRNBpB8yxe+RMdAHpJAMqqFFdr+wv+vOnQI+M6Lni9HvdT9S X-Received: by 2002:a05:6e02:184f:b0:369:bdb3:4fa8 with SMTP id b15-20020a056e02184f00b00369bdb34fa8mr3312565ilv.9.1712936024309; Fri, 12 Apr 2024 08:33:44 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712936024; cv=pass; d=google.com; s=arc-20160816; b=RPFxjXKHQo7soJRZotfY5w7s6vbO7sPdKvZjDBLLPQYHKVt6EWlJvtzcdO6hVagF5w ZVkGRkm17hX5zJx/u9Ij5kPoJus4ghqYycQgOybQeFtbKkZ5x7ElZGakHAirOQzNSycR mj7m3/TO7Y+CYb15nUnw4Gz0Ew2Pnmi5TQsJZs4FjOw9Iy+Wciz7+W+eNs2yl6stY9kp j+UWHuVmgpBux+uPcOqsQ/dfwOpuE+tZMQms/cz/OttfQLN/O6Ec9MvgwLDfX6hu3dnU xB1Sbp9YXeo5NtHgH85yYVex4c2WfFrpDTTUHNpcFAFxWg9/pAMIMdqlEjWRZ5e17LcJ jDgQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from; bh=/kfoXSDToDhhqgmj9+hS/WduoggLqzlUOc+GqOUSe4M=; fh=OxaUnKG0867Tm8iJR5/YiZuwDdfGySfA9Sp69ZPAJso=; b=iaAruX9w0B1a6OYqi+iebVo17jC2ZbkNHALndQ7sBOGyuHdzBhaYlOo9KeRqa3KkJ7 PxoCgvPDTiMa4HqzK1JYSnBdJZJe2wm4MGwZL7YVK4GKV/INCX4eKesvSCA1XexN9SSn aooVEqoMiOTg5uXpqUS6rRx9a7G2P5U/F+4m5Qu9M8V8nM7UJU+8PRHOGskTIQ/lcakM laEB4PIncq4JO+pdroVBObxUgPXHXWbGrMxI2DUGoXxkpGLnJy/u22xJ4+LfNOPbkrgU /+bKOzwhMSHmufef4L+U3jwNT0bnfSCJdHFO0rvg6FCMp9mltZi+kdLzVG0MLlL8kead 9jRQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=linkmauve.fr); spf=pass (google.com: domain of linux-kernel+bounces-142928-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142928-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id u16-20020a63b550000000b005dcc078681dsi3451543pgo.618.2024.04.12.08.33.43 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 08:33:44 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-142928-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=linkmauve.fr); spf=pass (google.com: domain of linux-kernel+bounces-142928-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142928-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 1EAA3B234E0 for ; Fri, 12 Apr 2024 15:19:56 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DDA4014F9DD; Fri, 12 Apr 2024 15:15:20 +0000 (UTC) Received: from luna.linkmauve.fr (luna.linkmauve.fr [82.65.109.163]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E22841494D2; Fri, 12 Apr 2024 15:15:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=82.65.109.163 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712934920; cv=none; b=oAeOD5rLMkZxsNJdw8WGD4LnkSHcB3IDpsZzMHfTkwotWet1SFn1vC/q/QZWCB79rowsPYs4S7KzI3/IXMjGhLyZsLnjbpEIYZUSauFah+OLiyA6EmoSF2fIlvrHMdylZ4ICBJUS60SyijoFnlS0NJpgSZEy6iD11qO5ZcwuZ1c= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712934920; c=relaxed/simple; bh=D3+ff2nIVEmIX8x1WaPKMezVEZTZ8Wnx3xAMNbQKNRo=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type; b=TyVl6F0+EswVevtN1kNZpTf1FsoBQajoUHbLjBfDM2dyo04jJVPXvFDx7/PxwrJtQ62b2yPHTbGTsf2QtKqPnZNIJva0ld+7BEL6MYqXKBJ7V9vDmeYSa+TbksVT0vJhjzq4ciGZ1VZ+vxzb12BMNMJT4xEbOcXIP3byuGQESwA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linkmauve.fr; spf=pass smtp.mailfrom=linkmauve.fr; arc=none smtp.client-ip=82.65.109.163 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=linkmauve.fr Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linkmauve.fr Received: by luna.linkmauve.fr (Postfix, from userid 1000) id 7066A10A2673; Fri, 12 Apr 2024 17:15:17 +0200 (CEST) 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 v3 0/2] Enable JPEG encoding on rk3588 Date: Fri, 12 Apr 2024 17:15:09 +0200 Message-ID: <20240412151515.837824-1-linkmauve@linkmauve.fr> X-Mailer: git-send-email 2.44.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 v2: - Only expose a single VEPU121, since the driver doesn’t yet support exposing them all as a single video node to userspace. 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 one VEPU121 to rk3588 .../bindings/media/rockchip,rk3568-vepu.yaml | 8 +++-- arch/arm64/boot/dts/rockchip/rk3588s.dtsi | 29 +++++++++++++++++++ 2 files changed, 35 insertions(+), 2 deletions(-) -- 2.44.0