Received: by 2002:ab2:6991:0:b0:1f2:fff1:ace7 with SMTP id v17csp94016lqo; Wed, 27 Mar 2024 07:50:28 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCU3dF7LpCh8DS4L/doAGMjEpcokGKG8bxQgIxDYMja0He1JaJSQ6QzW+XR4hF82dt43XRVh7jY7pz7pvURoBHEnthtSNZp2KVBFAftqiA== X-Google-Smtp-Source: AGHT+IFEi3CnG8nUj2qP8fDLWqLlmHJxh7jNMUx8Q1Hxv13blWJTGz6ICX2Ogg0PktIUX93AtSCQ X-Received: by 2002:ac8:5a84:0:b0:431:5f2f:c2c1 with SMTP id c4-20020ac85a84000000b004315f2fc2c1mr1329842qtc.47.1711551028205; Wed, 27 Mar 2024 07:50:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711551028; cv=pass; d=google.com; s=arc-20160816; b=hOrtFSRFFGM4N8TWFAxhlAjgYxwhR9koFgCLpmz8OhTjRxrsV1DPRgDzxs9kqZ4r/e qsrtFOblY7e2Q6ogYWD7iQRsB3ESyDONCz4TZbQZTKHkjLXnxcVdQfrfBqwTDCn+xb8d 4lkrshwUKkFHMXj5mqjLvlRsy2gCz92vY2OAEYBMrJecwj2vpNLA6kdpVGsNHrYfZnK2 Ra7EPNCYHJHjrv/z5OTY+OmiBPcn+K+4064A/Sct56rrz0uH051DGMBJnd8UlshMzJqX F1m5xF3HjUemrYw61bgxZNsxM6ZCObNIl7FaWRIAkfF4ww/ke8gu3VZKCjAEa+LwahoD ORig== 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=/xun6lFB21jEIMWRweOsN/h4cAFuJYhxSwhs9sDXwbI=; fh=OxaUnKG0867Tm8iJR5/YiZuwDdfGySfA9Sp69ZPAJso=; b=Gyjorje2EZS+55DfC2z6bOYKDw7Bqx/TUQBs2P+QJ15YRgvaxmWktaJ3BHa5DLvF01 JSA0raQdBDEh295bDEvSTY61TwPOoakOy8uAQ1mzIJ0tnwueUOObGoSDtmvxgld2EQUT VdbQMOU17b56JgKFBB48mUNzC9RgWpHdnZDWnhPf0NeZz5YoE1f20JAwIQ5eV2uyFdyF 4eFbmwIuXEpEYAMKQxeinfu/oalCkwyCd7MwhthZXHGesQNZ/BRCiXAbbvByd+NA7itf PSiBXONbIqMW7NfdreENyURrLhkxvvcpS82vUeXnBoyc5j4s71U1fJQV8B7ikxSzNeKG Gymg==; 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-121379-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121379-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c22-20020ac87d96000000b00431710760ffsi3530062qtd.132.2024.03.27.07.50.28 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 27 Mar 2024 07:50:28 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-121379-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=linkmauve.fr); spf=pass (google.com: domain of linux-kernel+bounces-121379-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-121379-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id D8FAF1C2EC6C for ; Wed, 27 Mar 2024 14:50:27 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D0CB915B0F0; Wed, 27 Mar 2024 13:41:22 +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 8889413E6AA; Wed, 27 Mar 2024 13:41:20 +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=1711546882; cv=none; b=Biuw2eCSqhRWu2ab+9qjRG5z9j/K6t4TDmzHBoNhS4HCz7Mbq68qb+MI71wdbYXy3mu6oZpK4ali6SzmXS7hJiOqmh+LQSvBVcFOVf4PswKKcmli8sQErMc/r3RERBgRHBF1IzfHtkr88ZDTeouchBkuGirlpHjWPwIeAnKzI2g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711546882; c=relaxed/simple; bh=E0uEtYtvt7IbkwldYNcvOykBcdKHQTNNscgS3IBN8Vs=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version:Content-Type; b=BTo5iRiIPnP1Biopy5IX2d4R9L/LJPGaWSbiyuTryo1c1pEO0hHRQw9GFxOLjYghrT8Aalyx5WLCY5oEftDbfj7bbc5rrXbyp3gBpxI9LzqFO3LTmxRm1fTxsG3ccSobA94qlL05BJuyTz9UcMqqCYRNswGxqNM89NqscC7Ii1M= 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 DCE50101AF3A; Wed, 27 Mar 2024 14:41:18 +0100 (CET) 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 v2 2/2] arm64: dts: rockchip: Add VEPU121 to rk3588 Date: Wed, 27 Mar 2024 14:41:12 +0100 Message-ID: <20240327134115.424846-3-linkmauve@linkmauve.fr> X-Mailer: git-send-email 2.44.0 In-Reply-To: <20240327134115.424846-1-linkmauve@linkmauve.fr> References: <20240327134115.424846-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-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The TRM (version 1.0 page 385) lists five VEPU121 cores, but only four interrupts are listed (on page 24), so I’ve only enabled four of them for now. Signed-off-by: Emmanuel Gil Peyrot --- arch/arm64/boot/dts/rockchip/rk3588s.dtsi | 80 +++++++++++++++++++++++ 1 file changed, 80 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi b/arch/arm64/boot/dts/rockchip/rk3588s.dtsi index 87b83c87bd55..510ed3db9d01 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3588s.dtsi @@ -2488,6 +2488,86 @@ gpio4: gpio@fec50000 { }; }; + 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>; + }; + + jpeg_enc1: video-codec@fdba4000 { + compatible = "rockchip,rk3588-vepu121", "rockchip,rk3568-vepu"; + reg = <0x0 0xfdba4000 0x0 0x800>; + interrupts = ; + clocks = <&cru ACLK_JPEG_ENCODER1>, <&cru HCLK_JPEG_ENCODER1>; + clock-names = "aclk", "hclk"; + iommus = <&jpeg_enc1_mmu>; + power-domains = <&power RK3588_PD_VDPU>; + }; + + jpeg_enc1_mmu: iommu@fdba4800 { + compatible = "rockchip,rk3588-iommu", "rockchip,rk3568-iommu"; + reg = <0x0 0xfdba4800 0x0 0x40>; + interrupts = ; + clocks = <&cru ACLK_JPEG_ENCODER1>, <&cru HCLK_JPEG_ENCODER1>; + clock-names = "aclk", "iface"; + power-domains = <&power RK3588_PD_VDPU>; + #iommu-cells = <0>; + }; + + jpeg_enc2: video-codec@fdba8000 { + compatible = "rockchip,rk3588-vepu121", "rockchip,rk3568-vepu"; + reg = <0x0 0xfdba8000 0x0 0x800>; + interrupts = ; + clocks = <&cru ACLK_JPEG_ENCODER2>, <&cru HCLK_JPEG_ENCODER2>; + clock-names = "aclk", "hclk"; + iommus = <&jpeg_enc2_mmu>; + power-domains = <&power RK3588_PD_VDPU>; + }; + + jpeg_enc2_mmu: iommu@fdba8800 { + compatible = "rockchip,rk3588-iommu", "rockchip,rk3568-iommu"; + reg = <0x0 0xfdba8800 0x0 0x40>; + interrupts = ; + clocks = <&cru ACLK_JPEG_ENCODER2>, <&cru HCLK_JPEG_ENCODER2>; + clock-names = "aclk", "iface"; + power-domains = <&power RK3588_PD_VDPU>; + #iommu-cells = <0>; + }; + + jpeg_enc3: video-codec@fdbac000 { + compatible = "rockchip,rk3588-vepu121", "rockchip,rk3568-vepu"; + reg = <0x0 0xfdbac000 0x0 0x800>; + interrupts = ; + clocks = <&cru ACLK_JPEG_ENCODER3>, <&cru HCLK_JPEG_ENCODER3>; + clock-names = "aclk", "hclk"; + iommus = <&jpeg_enc3_mmu>; + power-domains = <&power RK3588_PD_VDPU>; + }; + + jpeg_enc3_mmu: iommu@fdbac800 { + compatible = "rockchip,rk3588-iommu", "rockchip,rk3568-iommu"; + reg = <0x0 0xfdbac800 0x0 0x40>; + interrupts = ; + clocks = <&cru ACLK_JPEG_ENCODER3>, <&cru HCLK_JPEG_ENCODER3>; + 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