Received: by 2002:a05:7208:2204:b0:82:bbfa:f723 with SMTP id s4csp340010rbb; Thu, 18 Apr 2024 07:16:04 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW6UXvMMGg+tjqDQpcYWs+VAS6ZM8s11LqShTmjIterdpUIZhYr20zc/XNnzzhYAqgXsvQlt9iXM6Co+kqg0vElLo2tS4UIlqtPPLXmUA== X-Google-Smtp-Source: AGHT+IFkIcCvQvGznkVcvylynXuCtgqqbukL7ea0M8fRyiMzrfCAqdYUEYGu3GDtDqzh6MDfZLjo X-Received: by 2002:a17:90b:400d:b0:2a5:5f9f:6733 with SMTP id ie13-20020a17090b400d00b002a55f9f6733mr3629467pjb.20.1713449763985; Thu, 18 Apr 2024 07:16:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713449763; cv=pass; d=google.com; s=arc-20160816; b=OgGP2/hVkqMJeEssfE/xT6nieKC/EvEgptuiU7EpP5t7na1E8/a2NlneG8iY7ZSH+x Y9Pn1uGZ+T/leL1F8v0RP0QI+LGoWYa/JxGTPn3ydWlFrKp4vuLDqWG6hunBcDDc9czZ e3RAxx9fvFhbOcbYJBX3oNw9WM292KFSnfrLF/aR7H2JdKPe93rTln3Om1gbPOxuxWZs 135o/JuKP8sAb13yWDrOcah0BJDn6K6FxxVrM4a3i+ylmf2pci7x/zBKNTQNVKYRmgWt sz7YlMcWJPNbwA4C8/W6TwnPSxnfcs5Nh1NTi6xgvGH/96pnJJR2Bwf6sDtQkvNkyLTQ vykQ== 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; bh=R098aldYpp2e0P2/r1S8O+FR6CXG0cchHiIxILy/i5I=; fh=OxaUnKG0867Tm8iJR5/YiZuwDdfGySfA9Sp69ZPAJso=; b=hhj2aYVHNw0Ovtb/TPjUiAu6+23fKT/NLNIer/O4WZZcHnQALOzX5jwBeslY1dAxPG wi3BB9rdayV0i3TrTyzkaVbpSzmSFh5bPHB410Zj0gOOKN5cXuEHzwxscb55FkOAy7bI dnyuLiXWBqFqzy28EiF2ELb15h7nYafzRljqog7jeCHHKW+7GWD64pYQ0fKi6R6fZeuE Df6iwMjRkiRJ30b9Sfswh+PdwwM1N3pIW9vQZo9ySz0qSUK35hMXqr1gLgwOuN7QMPwG TsGsms27EFXEMdCsXNK1u/2Ohnz0CwR+f4zbPnz8sXaBvpCMISAbe2eeBnTOk0SZZCx7 vvXg==; 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-150257-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150257-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id i18-20020a17090acf9200b002ab4d81c132si2802702pju.97.2024.04.18.07.16.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Apr 2024 07:16:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-150257-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=linkmauve.fr); spf=pass (google.com: domain of linux-kernel+bounces-150257-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-150257-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 52CBE28316A for ; Thu, 18 Apr 2024 14:16:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 08CE316ABF3; Thu, 18 Apr 2024 14:15:35 +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 F368D165FA3; Thu, 18 Apr 2024 14:15:24 +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=1713449734; cv=none; b=HcTRHdNkD+YQyqv2LvXm6IryOFnhT7ypu29CyzSMmKZ1CAlChpff77aV3VUVEoy61NWpprRBO/rumC/Fj5YUptpTd+h8O4gcGT+bTXx0RuYkFHWv026KB22OnT7to+XJs3zgiwqk+LMu7pfV2iuIdeJKbe/9DMxVF7MO2dMkcRE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713449734; c=relaxed/simple; bh=y2pVSKogPc8iaWi7QsK7qOvg3yK0ln6WuGNCkruGp3s=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Qb4IjZaJ8E/2OFcIVFCIeRWY6lyCfZPtUeDkIgVvxoj2Jyc/EOzDEjgcRqyB+dHaPIINW+7SrW3iXKhsNGvd2ydKmWArh6Ys8s6ZBhF0LiqxiyjhFbpD3sJn1C7UeirZAGZ3VRCdos+gD+rVPlNLtotO/4bEB/TUBEtTr8sO4vc= 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 6A17C10D1B07; Thu, 18 Apr 2024 16:15:14 +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 v4 2/2] arm64: dts: rockchip: Add one VEPU121 to rk3588 Date: Thu, 18 Apr 2024 16:15:06 +0200 Message-ID: <20240418141509.2485053-3-linkmauve@linkmauve.fr> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240418141509.2485053-1-linkmauve@linkmauve.fr> References: <20240418141509.2485053-1-linkmauve@linkmauve.fr> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit The TRM (version 1.0 page 385) lists five VEPU121 cores, but only four interrupts are listed (on page 24), and the driver would expose them all as different video nodes so only one of them is exposed for now. Signed-off-by: Emmanuel Gil Peyrot Formerly-Reviewed-by: Sebastian Reichel --- arch/arm64/boot/dts/rockchip/rk3588s.dtsi | 29 +++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi b/arch/arm64/boot/dts/rockchip/rk3588s.dtsi index 87b83c87bd55..5c6cc4cd81df 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3588s.dtsi @@ -2488,6 +2488,35 @@ gpio4: gpio@fec50000 { }; }; + /* + * Currently only one of the four JPEG encoders is exposed, this + * reduces the optimal throughput by four. + * + * Once the driver is made to expose all four devices as a single video + * node, the rest can be enabled again, see the full patch here: + * https://lore.kernel.org/linux-media/20240327134115.424846-1-linkmauve@linkmauve.fr/T/#m3a6df0ba15e4af40b998b0ff2a02b0dd0d730c8e + */ + + jpeg_enc0: video-codec@fdba0000 { + compatible = "rockchip,rk3588-vepu121", "rockchip,rk3568-vepu"; + reg = <0x0 0xfdba0000 0x0 0x800>; + interrupts = ; + clocks = <&cru ACLK_JPEG_ENCODER0>, <&cru HCLK_JPEG_ENCODER0>; + clock-names = "aclk", "hclk"; + iommus = <&jpeg_enc0_mmu>; + power-domains = <&power RK3588_PD_VDPU>; + }; + + jpeg_enc0_mmu: iommu@fdba0800 { + compatible = "rockchip,rk3588-iommu", "rockchip,rk3568-iommu"; + reg = <0x0 0xfdba0800 0x0 0x40>; + interrupts = ; + clocks = <&cru ACLK_JPEG_ENCODER0>, <&cru HCLK_JPEG_ENCODER0>; + clock-names = "aclk", "iface"; + power-domains = <&power RK3588_PD_VDPU>; + #iommu-cells = <0>; + }; + av1d: video-codec@fdc70000 { compatible = "rockchip,rk3588-av1-vpu"; reg = <0x0 0xfdc70000 0x0 0x800>; -- 2.44.0