Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp159227lqs; Thu, 13 Jun 2024 06:52:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU3r074HKExuhz114LxHPS+YfBHJ+n27/fDeJ0hdCiYxswQydCbp+S+VaQxNkePHbzavm7i4g+QTwDbCucZTt0tg5WzAsqQAzHJQY6M/g== X-Google-Smtp-Source: AGHT+IGWRM9gpP7VSgPJgGdaQSk2QBRnu7y9APmBjcxHQkdZfQBxgbx7hoIxjDF0SBlv+XPl3Dh0 X-Received: by 2002:a50:d51c:0:b0:57c:571f:e52d with SMTP id 4fb4d7f45d1cf-57caaac2c0amr3349793a12.36.1718286733540; Thu, 13 Jun 2024 06:52:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718286733; cv=pass; d=google.com; s=arc-20160816; b=0XcV3Z4jTJJdO4N292PIjINARZfH/gPE5X0x2rA1Jr1jLF3Ht2X/Ku52KiGP/Pfnva nwi2N70G0DqpE6DzoY2mrQnyRR7d39PCdE0RlDL7njbTr0+wNbY06GjZVhmYSxrahGw6 Av/85tUDPU9SjWal5x4fXxiynWGZCLj4Wr5jXtwbnwdi83iYcgwN1ZZOhnicWUO3TcTV GfufPoXU8A4ylp/lh33nl09fq8Ktn47AOkShR6sOmfglvKrnEcPVc1FI2L2EtqJvqOSz 1xKg6kgHy33ldjysG7j1rAtXUrrD//4NfPFYQ/V6onFioGqF/wldV5vYXUsmtJcaUP2n N4ug== 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:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=ULU6W2I9zwD+6Sxh27Ks6w0f9ckJyQV+93AxjEUVwOE=; fh=QGncy7Lm92LMDRb78wUY6LzfVFVg+/i6gN1XN9/a2oI=; b=AQE8Ygf3kpjm8SXXbVqT9YKSm7o9cHu0HXSW4RTWVYx0KL6DsdvSIG3TVWYNQiOQO/ TaPFTPWQOGZ+q2dhkqn8RT5d26cZPjc5TNleqE0RCjxIfbMlQFhOIRG+Lt242cePI5jA WyBgl+2n3tUjLa6Pl63PsNEqykifBgyMSMdGAwBFQOXyMMcQchHabmLjcXYXDPormw/2 Mrn+S+IH78aStKswcMVmFQMUF2o6CgWYP6v4Vol4GysVvy3paLKk/oX1srer+hLWhlm/ ZyKT8V2YAS3205HIAy40IcSjfAbbLbVCsAMXUQ3jwGj25bX+7IYDDcYH6IlcOjKvpaHC d05g==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=kxMb9TSi; 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-213372-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213372-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=collabora.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id 4fb4d7f45d1cf-57cb747925asi722170a12.666.2024.06.13.06.52.13 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 06:52:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213372-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=kxMb9TSi; 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-213372-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213372-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 473961F23BDF for ; Thu, 13 Jun 2024 13:52:13 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3FC3E146D63; Thu, 13 Jun 2024 13:50:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="kxMb9TSi" 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 B4431145FE2; Thu, 13 Jun 2024 13:50:41 +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=1718286643; cv=none; b=AcZhc8NLjsGN1ETXMIhFFKH2TPHv1uSaIWtbmfAIRi4kkkylrSW7v6ng8I+DWDFDTmbwGQ6gZ/Idlr0uw91WbuulbFGN8bpb+Ol/Cx+WreMGlJY7BBoP00xd4dVUxbQZfOIDeLhOEwUa3CYDtpsBN3Dj50SZuGZL9N6E3A7bbqc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718286643; c=relaxed/simple; bh=cqxhYAbbW9RM1md+oyI3TV89a9uLQWQLY+gbU0lSp64=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=B3xz6xBR+rgxaXuUrhgSBwVxq0TqjRTrdizhPY3RzIH05Lu0wAGXkCTGn9okL3B87LwwVoYGx/CeOyPwgXIG6Css8VEPpOAUkT5pR6KGanppUya5fe9ngqjhOkB2FzicKM/TpPSRPz6FWVun+l4ynIq/ZGmcXhVKcPamitrAs4Y= 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=kxMb9TSi; 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=1718286637; bh=cqxhYAbbW9RM1md+oyI3TV89a9uLQWQLY+gbU0lSp64=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=kxMb9TSi959KemdHRj9cgYD5sDcaqyd+1y+1apZhIUERXVE7T/jTOCr2+TVjdnCSv 54VyZP6bzMSVHb8xcnVV5OuX6qmqiXn3yEV+kpsXw/kVJ0+37hHX7mSD69bsqT3N+k SR9hpJ2Sg5YWmyoSx2YZSxLfdAMMetrdzw9/WctZbCcjpZ5xlGhZWcYbirEenp4Pqe vlRhk0y5PsnSrvWtVxCJfkHySVBcf9Xa+rxDAAWUDxv29DVLoF8h1LKvHAjd8qd52k XOE4hy+AKZEY8Z2SVzl32NUKiysPDZflIy/Sw4mJSs2ztnb+g+a4Mrc7hVOLen6h+s uhEoDnIyGwTsQ== Received: from jupiter.universe (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)) (No client certificate requested) (Authenticated sender: sre) by madrid.collaboradmins.com (Postfix) with ESMTPSA id 185C337821B8; Thu, 13 Jun 2024 13:50:37 +0000 (UTC) Received: by jupiter.universe (Postfix, from userid 1000) id 3C30C4800D1; Thu, 13 Jun 2024 15:50:36 +0200 (CEST) From: Sebastian Reichel To: Ezequiel Garcia , Philipp Zabel , Nicolas Frattaroli , Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jianfeng Liu , Emmanuel Gil Peyrot , Nicolas Dufresne , linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com, Hugh Cole-Baker , Sebastian Reichel Subject: [PATCH v6 6/6] arm64: dts: rockchip: Add VPU121 support for RK3588 Date: Thu, 13 Jun 2024 15:48:47 +0200 Message-ID: <20240613135034.31684-7-sebastian.reichel@collabora.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240613135034.31684-1-sebastian.reichel@collabora.com> References: <20240613135034.31684-1-sebastian.reichel@collabora.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit From: Jianfeng Liu Enable Hantro G1 video decoder in RK3588's devicetree. Tested with FFmpeg v4l2_request code taken from [1] with MPEG2, H.264 and VP8 samples. [1] https://github.com/LibreELEC/LibreELEC.tv/blob/master/packages/multimedia/ffmpeg/patches/v4l2-request/ffmpeg-001-v4l2-request.patch Signed-off-by: Jianfeng Liu Tested-by: Hugh Cole-Baker Signed-off-by: Sebastian Reichel --- arch/arm64/boot/dts/rockchip/rk3588s.dtsi | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi b/arch/arm64/boot/dts/rockchip/rk3588s.dtsi index dd85d4e55922..c0466982646f 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3588s.dtsi @@ -1159,6 +1159,27 @@ power-domain@RK3588_PD_SDMMC { }; }; + vpu121: video-codec@fdb50000 { + compatible = "rockchip,rk3588-vpu121", "rockchip,rk3568-vpu"; + reg = <0x0 0xfdb50000 0x0 0x800>; + interrupts = ; + interrupt-names = "vdpu"; + clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>; + clock-names = "aclk", "hclk"; + iommus = <&vpu121_mmu>; + power-domains = <&power RK3588_PD_VDPU>; + }; + + vpu121_mmu: iommu@fdb50800 { + compatible = "rockchip,rk3588-iommu", "rockchip,rk3568-iommu"; + reg = <0x0 0xfdb50800 0x0 0x40>; + interrupts = ; + clock-names = "aclk", "iface"; + clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>; + power-domains = <&power RK3588_PD_VDPU>; + #iommu-cells = <0>; + }; + vepu121_0: video-codec@fdba0000 { compatible = "rockchip,rk3588-vepu121"; reg = <0x0 0xfdba0000 0x0 0x800>; -- 2.43.0