Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1165321lqs; Fri, 14 Jun 2024 18:58:42 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVmQ2IO2l0xQa/S5HVyn4ouZi31ZKGA72naR8AtOWx120jnVIjz+pC/n7U+eIvXOj3u/Zp4U4Cg0Yp1zLxS80bCj7DS9F2FLeuCxgvQrQ== X-Google-Smtp-Source: AGHT+IHthD88IZm4wbDq4tTstW6vpSJHpI6uoOr6qESa6+6tlPjI4fTXmHBxuQoM5aGdJK2NH/2A X-Received: by 2002:ad4:4a65:0:b0:6b0:8045:1ca6 with SMTP id 6a1803df08f44-6b2afc722bbmr39570716d6.8.1718416722343; Fri, 14 Jun 2024 18:58:42 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718416722; cv=pass; d=google.com; s=arc-20160816; b=Ep4Edrhsf849mKWnaO4n7FmgS/LwiH52HG7Zm/+twFndW9i55wEuSZefmS1/fCA4eJ fAy65uejhi/oD3kbROey2sSVT5t4QzRVup/rlV9JLrDoYTaxK4aHCa+SPGW0SKCCqfMg CDFqEFMJkzf9c2dklSVinpV6eOAs2jUIffF/ewFVqoZmR7wmRwb86CN3t2JMNc4jBZH2 b4ylc/NYaZqSSl5xzN70Smnlqi2//xOvFyhLQucjDKjdh8tZl56z6MdCpb7EOXe2kq0n T5vAg0C9NN/k+ObKwpzMQxnpXAmv5NTsWUE4bta3vOYOHMG1Yb7KLR5aOOY9wzzCVaV8 HrJg== 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:dkim-signature; bh=s3J9jWVFqZf08ePf6zDjtE/BOJKGjSJbIp8arjINmZY=; fh=VwhB0hhak1SATeu0Vd4oZHcg4AC2OxnVeakGo/5WwMc=; b=pOmOybr7/0gUnUC0wS2zgcI2CxBf6FuUKLXnkwhygTe2uhgormi+xlEvtDRjZWJPUg hcLxS6p559MGT34SBv1MFbBlhpLZfDxdAuuI3BWIbgw07orDqCfFnVLQ5QUYFgc4c0TS MJHzYh3clbB4m4kaKsoH9kAPKYyus3f26tQvDuWTdPIYplid5gzQcN8pp7olUjU5VAtP 82znKV+JyuAKER5P4SFBf15V2OUmtIh6mo3wKGPwdyiZJ+irO8CN9pFfPT79NcRWRtIQ t6lW21ahCo+m5zK1fyuckDKOmD5EcSjCVyGkkvKkEdREwr0F0gZCBzl9Xal3Z+a/DSGj WICQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=U671+UAD; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-215645-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215645-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id d75a77b69052e-441f2fbb525si56771831cf.434.2024.06.14.18.58.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 18:58:42 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215645-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=U671+UAD; arc=pass (i=1 spf=pass spfdomain=collabora.com dkim=pass dkdomain=collabora.com dmarc=pass fromdomain=collabora.com); spf=pass (google.com: domain of linux-kernel+bounces-215645-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215645-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id EF85F1C21EF7 for ; Sat, 15 Jun 2024 01:58:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5998F567D; Sat, 15 Jun 2024 01:58:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="U671+UAD" Received: from madrid.collaboradmins.com (madrid.collaboradmins.com [46.235.227.194]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 04A22D515; Sat, 15 Jun 2024 01:58:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=46.235.227.194 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718416701; cv=none; b=LpT7goLlU1Em7zngMOgtMT6vaiEhCt6/arwzr651kf8EIItxlOAarv1wVMHzVUgAlSkP/BWz2/ed9esXwRd21qBJ2M41onlI5qsBeN44ztX+pQ/9r6KRmfcJlTwthUK/qoxogYn4nAht4lAQPZT/g5lz3e5yw9j7oE0NjqhZsX0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718416701; c=relaxed/simple; bh=0UTcYjd/8qry8O1pLuXm3l+KAOWonlHQZvdyiqU7/JM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=j/+9yjYHWygsQNwEVpAJCWUlFXcUXNBj/UsaeHJBzJCWS7HJoyjN8QTKYGx3y+ElYqtfzS86CkUkIDtxRnsdCLwV5ghSWLEZw8pDdXrBGXxtGZ+9PnnqHGFrefC8MOF/AXoQV5Nu33tCA/XYuwENdMpebUHt/KZUGs+jup0ihKk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com; spf=pass smtp.mailfrom=collabora.com; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b=U671+UAD; arc=none smtp.client-ip=46.235.227.194 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=collabora.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=collabora.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=collabora.com; s=mail; t=1718416697; bh=0UTcYjd/8qry8O1pLuXm3l+KAOWonlHQZvdyiqU7/JM=; h=From:To:Cc:Subject:Date:From; b=U671+UADHvs8gQ98je0MEVzUl8WLvHhfyn4jmSIgM5ChBC38OyxBDhtjhBVqMTqyj 9w2dFHRBTOGM6O/GCVtZ2TviKFUnainsR+DPX7Ul5HhoOtce0KrCTz2yvfxrbaRhMi aHOtaQlFkLLN3cKVr/FYhRpQJkufmFPzsw0VFVNxbCj07vj6f8nsScKQLfgRw0M4Tr Izc/u77ruz2XCFRXCRf47l0eowOb6yzXPE7G0gIr8RKwZJU8jTfuwD7DZTcpHclBxg a2yoChE4gg2S21jQZvSKgbHvoVFnwMThR0Bg8tppTz89VkSzEaeOTYQuIfPWacpLlB DfccvweTBHjuQ== Received: from arisu.hitronhub.home (cola.collaboradmins.com [195.201.22.229]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: detlev) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 2CD263781104; Sat, 15 Jun 2024 01:58:14 +0000 (UTC) From: Detlev Casanova To: linux-kernel@vger.kernel.org Cc: Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Greg Kroah-Hartman , Sebastian Reichel , Dragan Simic , Alexey Charkov , Cristian Ciocaltea , Diederik de Haas , Andy Yan , linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-staging@lists.linux.dev, Detlev Casanova Subject: [PATCH 0/3] media: rockchip: Add rkvdec2 driver Date: Fri, 14 Jun 2024 21:56:26 -0400 Message-ID: <20240615015734.1612108-1-detlev.casanova@collabora.com> X-Mailer: git-send-email 2.44.2 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add a rkvdec2 driver for newer video decoder found on rk3588 based SoC. See the first commit message for implementation details. Detlev Casanova (3): media: rockchip: Introduce the rkvdec2 driver media: dt-bindings: rockchip: Document RK3588 Video Decoder 2 bindings arm64: dts: rockchip: Add rkvdec2 Video Decoder on rk3588(s) .../bindings/media/rockchip,vdec2.yaml | 80 ++ .../boot/dts/rockchip/rk3588-rock-5b.dts | 4 + .../boot/dts/rockchip/rk3588s-orangepi-5.dts | 4 + arch/arm64/boot/dts/rockchip/rk3588s.dtsi | 19 + drivers/staging/media/Kconfig | 1 + drivers/staging/media/Makefile | 1 + drivers/staging/media/rkvdec2/Kconfig | 15 + drivers/staging/media/rkvdec2/Makefile | 3 + drivers/staging/media/rkvdec2/TODO | 13 + drivers/staging/media/rkvdec2/rkvdec2-h264.c | 899 +++++++++++++ drivers/staging/media/rkvdec2/rkvdec2-regs.h | 372 ++++++ drivers/staging/media/rkvdec2/rkvdec2.c | 1160 +++++++++++++++++ drivers/staging/media/rkvdec2/rkvdec2.h | 123 ++ 13 files changed, 2694 insertions(+) create mode 100644 Documentation/devicetree/bindings/media/rockchip,vdec2.yaml create mode 100644 drivers/staging/media/rkvdec2/Kconfig create mode 100644 drivers/staging/media/rkvdec2/Makefile create mode 100644 drivers/staging/media/rkvdec2/TODO create mode 100644 drivers/staging/media/rkvdec2/rkvdec2-h264.c create mode 100644 drivers/staging/media/rkvdec2/rkvdec2-regs.h create mode 100644 drivers/staging/media/rkvdec2/rkvdec2.c create mode 100644 drivers/staging/media/rkvdec2/rkvdec2.h -- 2.44.2