Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp362587lqp; Fri, 12 Apr 2024 23:56:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXNJHJLHIr1Vr6wriW4l3lmXblxTn14fXuQTHSxzw4tJWee+pYF7OhvJD0oJlcINxXeuL8QBNq9RTqDn1UZa0M9Bw220up1BbYXejIdKw== X-Google-Smtp-Source: AGHT+IGp9c2RGWj859O4nlpo5g4v/QuwzPOS7c/92TIUgvxbPNnAdEPpUYPSFbTOAq4C/BEEssxG X-Received: by 2002:a19:c51a:0:b0:518:9d69:a171 with SMTP id w26-20020a19c51a000000b005189d69a171mr1506475lfe.12.1712991381813; Fri, 12 Apr 2024 23:56:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712991381; cv=pass; d=google.com; s=arc-20160816; b=0LvB03AmAcYj9yFH9YkxUjsCt+NXJJ9l1vdRgT52D8UNs+IH/qbz/6vrZQRZl0zwcC sYVBA0DIhjXWQKk2z8t4bXOju3wRy/x112raGP1TEUwJuyZXVJiBaTMkqEXVgqPY9OF4 X+nyhzZLnCfUInf4NP5eLhInhMcoX+frIgkweyiiEWSsFC4ZmoJmMpOU4eZmrkEeK2T6 I1c107bL34LdRAT+rxqeDHXGkbKLhDcIB7zH6BD2zz6t2J1ay9RTvV9sBXB5NaGG5pMr xnjjjPjGnIt+Na0lGTlu91xSeSdbZ8yzQ399L/JqBo8wAuSBs3b1xElWu0n8XTCTnx6Q vwDA== 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=IX8+yKbNfiVsthYW7XKH1eWLYDaubrEtnopoFEYRG3Q=; fh=GLdMBnEIABI8GoCExea7zuqBsOHc+WYxSI/02SB2y/A=; b=q+mxI6S36Q4WSmo1tt7iO/SM233uRdQNtc8m1wJpGNqbqNFUiryZBzgfG+5amtxgyA Zc9BHTC6mxht78RffV6buV0FTFnUlWNVdMPc8t1WxsotG3R0k3c5ZOwZtBnN4WgY196i lGOJMYfHdD8aLdVf7H7/YPEIZJl1UY2nWt9NSd1Nx4XDNpwdl7dEH8uswLbf7W0uOz48 RpD5Y3Vo9DaiviBBm6XvP4DlSKdEyd8vaICwGxjmTCiHNqQXfpAmW2hxsTbOCTzzcs2k vLLceO1QYEdI+jD/qqY7nHR0CQh49Aj6gaMaYxEHHWdTCi3yU2GQLgyXLd3uzR8iH8om wE5Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=b4vPFtaZ; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-143603-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143603-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id z10-20020a05640235ca00b0056e31d7953dsi2510545edc.155.2024.04.12.23.56.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 23:56:21 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-143603-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=b4vPFtaZ; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-143603-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-143603-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.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 A14141F22FDA for ; Sat, 13 Apr 2024 06:47:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 33D05208D7; Sat, 13 Apr 2024 06:46:47 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="b4vPFtaZ" Received: from mail-pl1-f173.google.com (mail-pl1-f173.google.com [209.85.214.173]) (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 1B4921C6A0; Sat, 13 Apr 2024 06:46:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.173 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712990806; cv=none; b=oelr4vLSzswGtUsHU3Ef63sQLtJvowiCSNLWUzhsPU2LVOBqKIBCMLDYhM4qOzpHh2p0BratRkE/SKGWqNAcFOHPYUc4QsrzXKPgpYePr6V7zmGSXsw2xjB0vetJsFzsP0KU8F4MA6WFOx7TsSJ8MtZLvAeZCf7F4G0bP6Qdztw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712990806; c=relaxed/simple; bh=XbtrCJeH1sLdoyCCqia+/5GzGrwZABwnokufR4xmlxY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=I296/CJkqwz9xn0/0RxkB+noXRDaOzW4hUXmrT/6L24todAC8tdQAMFFMav5A6LLau1plA4wp8HSCDDTrlzib3T52UCS3EA0evNaxyKG3Zo5ii2qIb4thjRD5ePZB1uQnMS1XAebpOyecwJi5UbMHC/rs+hGqJoX7haTnoTGPKE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=b4vPFtaZ; arc=none smtp.client-ip=209.85.214.173 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-pl1-f173.google.com with SMTP id d9443c01a7336-1e411e339b8so12654155ad.3; Fri, 12 Apr 2024 23:46:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1712990804; x=1713595604; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=IX8+yKbNfiVsthYW7XKH1eWLYDaubrEtnopoFEYRG3Q=; b=b4vPFtaZvLvbBWMZJr7kS4qcw6Mu7W1iVVRHJmuDZTkYHb0o2T/l32f6wOX6J3qnk6 hAyH2bvzblZDrXPJxd24ixLjpfzb3KYuvmNxUbfSgkVhr9U4h2Xh6dK1cGiqR7i35/e1 l3J0gJ1Hwg6jDbr/1dquZmciT57hAGGjF75JcF2aYfo7mJH19BGgeBCk0nLsun5EDKIH BlmwBYkJqqxDN/rN9HQOkszB5W2l9G+yXyzgXeBy3CnLOKHItrTUMfnYnt6eumQ4v8Tz TD69kpsZrYvRrEvLZpFzqnpWBgs9/Bleg1zecVyGU4693Y5E5qC6VjOVEDeDaM5v25V7 q7kw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712990804; x=1713595604; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=IX8+yKbNfiVsthYW7XKH1eWLYDaubrEtnopoFEYRG3Q=; b=FOI8bGS2IAxQJok4t2FJgzZehlQKZqACJ4qftdzaEo7k9IKwsc/pMC2xG4KleavbdQ ZBxwQzs1/dlcix/nVdaAiKDFoUKKQ4ByWG91dSsHUBS3uCfvgOIVIP7KFptxUJtCiORW hkOm2+ABhfnMnHHAVVhbCYmQDhsN6AhfmJv6MpYmHK3uoMmXDzfhOp1GJIhMPaCDQbYu 73fWCmvdMUptyIMDwwLZgEJ4P9gLYx1ZNvnIfKeUxcoraIedoI3cQWmamDAI6XUIxIXE eAabnzx/LG5onTa/9CnWq3uDAv7VsY+1ExDEqwqsMFypFIGGhBxhthqwVIfNzJzc8tK1 ARAQ== X-Forwarded-Encrypted: i=1; AJvYcCX51cv1yfEOY3akNPBFJpvlDWIBCTpKYcpS4LYeVXtXs12n1/yQ8VVR3y20c+Mbnx8zub0c8gP5NdnEcPuadlYeb53N+iaw/sDzrWHM+BYE3F7/bksswV2yKGuUmCSgujr0kBdYaKFcwVA= X-Gm-Message-State: AOJu0YyuDMVeYDjzZ1INuj9Q6A5cPqCbS1vymlumkqUYoZVbZBRVULd+ 8X/VQajoMrg6Cm6Ttkba2ogJ+zgrz64Jim68zt+LsCVzI/axlgqyB6u1JAw+nvQ= X-Received: by 2002:a17:902:a98a:b0:1e3:de79:35d1 with SMTP id bh10-20020a170902a98a00b001e3de7935d1mr4309333plb.23.1712990803645; Fri, 12 Apr 2024 23:46:43 -0700 (PDT) Received: from localhost.localdomain ([221.220.133.103]) by smtp.gmail.com with ESMTPSA id p6-20020a170902780600b001e2a7e90321sm4096693pll.224.2024.04.12.23.46.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 23:46:42 -0700 (PDT) From: Jianfeng Liu To: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, linux-kernel@vger.kernel.org, linux-media@vger.kernel.org Cc: robh@kernel.org, krzk+dt@kernel.org, conor+dt@kernel.org, heiko@sntech.de, ezequiel@vanguardiasur.com.ar, p.zabel@pengutronix.de, mchehab@kernel.org, sfr@canb.auug.org.au, liujianfeng1994@gmail.com Subject: [PATCH v5 1/2] arm64: dts: rockchip: Add Hantro G1 VPU support for RK3588 Date: Sat, 13 Apr 2024 14:46:07 +0800 Message-Id: <20240413064608.788561-2-liujianfeng1994@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240413064608.788561-1-liujianfeng1994@gmail.com> References: <20240413064608.788561-1-liujianfeng1994@gmail.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 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 --- 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 ac5bd630f..de823f461 100644 --- a/arch/arm64/boot/dts/rockchip/rk3588s.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk3588s.dtsi @@ -1072,6 +1072,27 @@ power-domain@RK3588_PD_SDMMC { }; }; + vpu: video-codec@fdb50000 { + compatible = "rockchip,rk3588-vdpu121", "rockchip,rk3568-vpu"; + reg = <0x0 0xfdb50000 0x0 0x800>; + interrupts = ; + interrupt-names = "vdpu"; + clocks = <&cru ACLK_VPU>, <&cru HCLK_VPU>; + clock-names = "aclk", "hclk"; + iommus = <&vdpu_mmu>; + power-domains = <&power RK3588_PD_VDPU>; + }; + + vdpu_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>; + }; + av1d: video-codec@fdc70000 { compatible = "rockchip,rk3588-av1-vpu"; reg = <0x0 0xfdc70000 0x0 0x800>; -- 2.34.1