Received: by 2002:ab2:6c55:0:b0:1fd:c486:4f03 with SMTP id v21csp694302lqp; Wed, 12 Jun 2024 13:21:18 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWyOt6dae1x8MW9dpIEH2CyMe0jkmHuQeXs8ay/8AxOcRUIERmy+fYYX8LbFA+bVWdYAPY1OA7VqfDDcdAZTdPqJHjUwj6cQwIKYDi/4Q== X-Google-Smtp-Source: AGHT+IGRFCaMp+GgwXkcKVPkLzgRYcSQ53qX7G+7skxg5/pdj2S+Pw11ppt5f6fN7J2smI4Ao5bA X-Received: by 2002:a05:6902:2207:b0:dfb:294e:d16c with SMTP id 3f1490d57ef6-dfe68d12c96mr3579671276.59.1718223678109; Wed, 12 Jun 2024 13:21:18 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718223678; cv=pass; d=google.com; s=arc-20160816; b=t4gMR7QqUN1XGEEOo2lYxg4teMiTvjb3Lb2MwPFg2Va11m8+z7uA6A5Zz13/5YCtAK 5i0mJFrm02NvnhTpp0GXF3pIpVQHGiCIhzbB7hqvdaH/rgq/dj6+FEzkssqgPRBWMIqw 1E66GKcMvnX+7nNqfrs44e+wW0LWdOOKLaU69RroOYe/dY8DfpA71TIqgmz58Xf3MYhT TKmj6tdaZLkuSKl8K+unW2Vm48ZXj1u2wfROmHwOlLpoj8w1vleLvWgLtZTodOTfca2r Pfy0s8ZcSSqIR5skB9wsGi9T1yMiN1OnEQpW1nM+jAbKjgqdCLDRotLrv6w80CzZ/SrP 06xA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=Dlt+LLwEoz1aRII/7ciCZpiXaQ5bq5WL9jJ9+ODNKCI=; fh=fspEaNFTFwjE+ii2idGXdm/L/KgGwb7KIYv6weVUBUc=; b=cusGiAqpEHMQzQnmWLNlPM1uPmoY3pKsuumhJXnLEKqdcQVSg9RvJCw4/G9/WFPj2+ ap5RBTu8MbwMaCMc3ct5pbra38QzFVxd/Ed6toc3Mdy79pTUc+ktUoPOs17N0fQ84HQ7 Ku3gnoMh1+1e4u572BVemur68c+1NN+GSF6WkTJpvkuj80YmssyoHiFnGeRqDwdI7DQ6 GqP6UuahRNeKxCgh8v+Q4IbVHTslETEoohovkrm2FhSyVXz/1zgEOiFz1EtSZSL7xF/+ TTrJ5FH8Fd1y6r+Ln+x2+XkkHfqiO4Dda2J+ntV1MKyddJR50Kf/AVQ4OWda0d4Eg6C9 TnCQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@collabora.com header.s=mail header.b=IWbVAQlh; 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-212204-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212204-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-4405ff4ec75si107276591cf.237.2024.06.12.13.21.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 12 Jun 2024 13:21:18 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-212204-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=IWbVAQlh; 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-212204-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-212204-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 C0E551C23068 for ; Wed, 12 Jun 2024 20:21:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D060A84D3D; Wed, 12 Jun 2024 20:21:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=collabora.com header.i=@collabora.com header.b="IWbVAQlh" 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 A4DD484A50; Wed, 12 Jun 2024 20:21:03 +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=1718223666; cv=none; b=GyPk6/hdoMySI975yreUIXTU8IOn4YYqtGy9mVIfraCNJEhmNPmBAU7DPqkwhl/NH/gn/fCK7KcOGtC5XdxLbb30S5M47J4ZkL5sgzyCi59OkHiynkh7FRGSjgBOTqYkC/8KZzQ2UC3P6s4IkfoL/yCzWgTjzz11DvT98enygn0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718223666; c=relaxed/simple; bh=PHlVC2D76puZdSZINuqZtuUlXaqfJ96wvZFNLjvHtfc=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=rOhStKHVwmI3O1FzpxPZI4nA3z57vf4RH3jiWetMSAMau8bjP9BrjUQDcC8wzSiQZXCHFOQREvZ91OSI2UGuyh6SJKUdsdrUP/Ae60GZfImd2uFOsIeQcVLwOw/VpPdCftwlfObpTEvPpFRNYx1HTGL+85D9mvJTDrdNvKfZoDI= 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=IWbVAQlh; 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=1718223661; bh=PHlVC2D76puZdSZINuqZtuUlXaqfJ96wvZFNLjvHtfc=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=IWbVAQlhH95bx5fqaubBcoIIS0eDvUAbqa+C4wjuNtjD7IQdVD6HTT0fdSMesayjk IwYl7CC8Pn6XIh+NtQB82xCNCazbeEnYAHE1fxMYinG2Ww6u4DUrimbf4x84l/du7m 30R4M3bN3R/n24geqRNthBfVLdFJI0fSW5eKGPyUiLpsYmp7oJ90aOI03ZezUB26YA /a3VZP/zhCR0wFnBJqmKVxKA2Z55VQmtuB+e3uzBd30iWAr0M05aq9eFoQbsVnDibt 0ckK7keaAroSCMHFV7Pk4mliY1MPvcWqSA2wJHGalbKlrfBnyRntsYLPXpkinx5Bwn bKFmxetDKvvpQ== Received: from nicolas-tpx395.localdomain (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: nicolas) by madrid.collaboradmins.com (Postfix) with ESMTPSA id F0517378020D; Wed, 12 Jun 2024 20:20:59 +0000 (UTC) Message-ID: <8705ad6ba987334f8941938bef19752942a08ace.camel@collabora.com> Subject: Re: [PATCH v5 4/5] arm64: dts: rockchip: Add VEPU121 to RK3588 From: Nicolas Dufresne To: Sebastian Reichel , Ezequiel Garcia , Philipp Zabel , Nicolas Frattaroli , Heiko Stuebner Cc: Rob Herring , Krzysztof Kozlowski , Conor Dooley , Jianfeng Liu , Emmanuel Gil Peyrot , linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@collabora.com Date: Wed, 12 Jun 2024 16:20:57 -0400 In-Reply-To: <20240612173213.42827-5-sebastian.reichel@collabora.com> References: <20240612173213.42827-1-sebastian.reichel@collabora.com> <20240612173213.42827-5-sebastian.reichel@collabora.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.2 (3.52.2-1.fc40) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Hi Sebastian, Le mercredi 12 juin 2024 =C3=A0 19:15 +0200, Sebastian Reichel a =C3=A9crit= =C2=A0: > From: Emmanuel Gil Peyrot >=20 > RK3588 has 4 Hantro G1 encoder-only cores. They are all independent IP, > but can be used as a cluster (i.e. sharing work between the cores). > These cores are called VEPU121 in the TRM. The TRM describes one more > VEPU121, but that is combined with a Hantro H1. That one will be handled > using the VPU binding instead. >=20 > Signed-off-by: Emmanuel Gil Peyrot > Signed-off-by: Sebastian Reichel > --- > arch/arm64/boot/dts/rockchip/rk3588s.dtsi | 80 +++++++++++++++++++++++ > 1 file changed, 80 insertions(+) >=20 > diff --git a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi b/arch/arm64/boot/= dts/rockchip/rk3588s.dtsi > index 6ac5ac8b48ab..9edbcfe778ca 100644 > --- a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi > +++ b/arch/arm64/boot/dts/rockchip/rk3588s.dtsi > @@ -1159,6 +1159,86 @@ power-domain@RK3588_PD_SDMMC { > }; > }; > =20 > + jpeg_enc0: video-codec@fdba0000 { > + compatible =3D "rockchip,rk3588-vepu121"; As discussed earlier, VEPU121 is an modifier Hantro H1 encoder core that al= so supports VP8 and H.264 encoding (even though RK vendor kernel only expose t= hem for jpeg encoding). The compatible follow this idea, shall we change the al= ias now ? Nicolas > + reg =3D <0x0 0xfdba0000 0x0 0x800>; > + interrupts =3D ; > + clocks =3D <&cru ACLK_JPEG_ENCODER0>, <&cru HCLK_JPEG_ENCODER0>; > + clock-names =3D "aclk", "hclk"; > + iommus =3D <&jpeg_enc0_mmu>; > + power-domains =3D <&power RK3588_PD_VDPU>; > + }; > + > + jpeg_enc0_mmu: iommu@fdba0800 { > + compatible =3D "rockchip,rk3588-iommu", "rockchip,rk3568-iommu"; > + reg =3D <0x0 0xfdba0800 0x0 0x40>; > + interrupts =3D ; > + clocks =3D <&cru ACLK_JPEG_ENCODER0>, <&cru HCLK_JPEG_ENCODER0>; > + clock-names =3D "aclk", "iface"; > + power-domains =3D <&power RK3588_PD_VDPU>; > + #iommu-cells =3D <0>; > + }; > + > + jpeg_enc1: video-codec@fdba4000 { > + compatible =3D "rockchip,rk3588-vepu121"; > + reg =3D <0x0 0xfdba4000 0x0 0x800>; > + interrupts =3D ; > + clocks =3D <&cru ACLK_JPEG_ENCODER1>, <&cru HCLK_JPEG_ENCODER1>; > + clock-names =3D "aclk", "hclk"; > + iommus =3D <&jpeg_enc1_mmu>; > + power-domains =3D <&power RK3588_PD_VDPU>; > + }; > + > + jpeg_enc1_mmu: iommu@fdba4800 { > + compatible =3D "rockchip,rk3588-iommu", "rockchip,rk3568-iommu"; > + reg =3D <0x0 0xfdba4800 0x0 0x40>; > + interrupts =3D ; > + clocks =3D <&cru ACLK_JPEG_ENCODER1>, <&cru HCLK_JPEG_ENCODER1>; > + clock-names =3D "aclk", "iface"; > + power-domains =3D <&power RK3588_PD_VDPU>; > + #iommu-cells =3D <0>; > + }; > + > + jpeg_enc2: video-codec@fdba8000 { > + compatible =3D "rockchip,rk3588-vepu121"; > + reg =3D <0x0 0xfdba8000 0x0 0x800>; > + interrupts =3D ; > + clocks =3D <&cru ACLK_JPEG_ENCODER2>, <&cru HCLK_JPEG_ENCODER2>; > + clock-names =3D "aclk", "hclk"; > + iommus =3D <&jpeg_enc2_mmu>; > + power-domains =3D <&power RK3588_PD_VDPU>; > + }; > + > + jpeg_enc2_mmu: iommu@fdba8800 { > + compatible =3D "rockchip,rk3588-iommu", "rockchip,rk3568-iommu"; > + reg =3D <0x0 0xfdba8800 0x0 0x40>; > + interrupts =3D ; > + clocks =3D <&cru ACLK_JPEG_ENCODER2>, <&cru HCLK_JPEG_ENCODER2>; > + clock-names =3D "aclk", "iface"; > + power-domains =3D <&power RK3588_PD_VDPU>; > + #iommu-cells =3D <0>; > + }; > + > + jpeg_enc3: video-codec@fdbac000 { > + compatible =3D "rockchip,rk3588-vepu121"; > + reg =3D <0x0 0xfdbac000 0x0 0x800>; > + interrupts =3D ; > + clocks =3D <&cru ACLK_JPEG_ENCODER3>, <&cru HCLK_JPEG_ENCODER3>; > + clock-names =3D "aclk", "hclk"; > + iommus =3D <&jpeg_enc3_mmu>; > + power-domains =3D <&power RK3588_PD_VDPU>; > + }; > + > + jpeg_enc3_mmu: iommu@fdbac800 { > + compatible =3D "rockchip,rk3588-iommu", "rockchip,rk3568-iommu"; > + reg =3D <0x0 0xfdbac800 0x0 0x40>; > + interrupts =3D ; > + clocks =3D <&cru ACLK_JPEG_ENCODER3>, <&cru HCLK_JPEG_ENCODER3>; > + clock-names =3D "aclk", "iface"; > + power-domains =3D <&power RK3588_PD_VDPU>; > + #iommu-cells =3D <0>; > + }; > + > av1d: video-codec@fdc70000 { > compatible =3D "rockchip,rk3588-av1-vpu"; > reg =3D <0x0 0xfdc70000 0x0 0x800>;