From patchwork Thu May 23 18:56:31 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13672183 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 39775C25B7C for ; Thu, 23 May 2024 18:56:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=8fVfswV+6HTsUfgWzjEatRJzuIgBch8ATt0ugpo1BmU=; b=pQHXNkXz7pLAUJ nqpFJ8NipEuRyZcqCxoUeFOgRlJsM+KHO5kF47GpZ/5mjyEgfPYBEr3vpLiFqnbBZ+39O0tZX9FfA 7syPGdP0wFlsEQdF1oF3JMCDt6sL11iDp5KAUHV4qlsStUAPzcafOniFbmxhr3t7DqhFxoydFJF4o 3+BDOLUHKBChNSA5DpR4amYdQjfsAB4fYOwsjjoi48dBvNyYRWv+w4AoWxXcZJz9jhQI8TNISlzOg OrhkhsrLjmzDPdmNqzszHWou/sh6M2MvviHHPJwUHguDUzw7o1u8Plf660KBAMX2BdBYRabjgaYFT m89cZyL4GuLpd5tCtERg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sADcL-000000074Bh-0Xcw; Thu, 23 May 2024 18:56:45 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sADcE-0000000746P-2Yqp; Thu, 23 May 2024 18:56:40 +0000 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-4200ee78f33so24206295e9.3; Thu, 23 May 2024 11:56:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716490597; x=1717095397; darn=lists.infradead.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=47Z2/NbJ7rExO2YdLFnnIPMzP2wtlL23AUNZI3iAB8U=; b=IOuN28yqHr3iZHWmMJynXEhwpwalAT5xYVmqYXeY0KPOmgwSbE0daRrW6Gq3/8qCFq jsWN1wprgPEyH16daS0e6vQO0RM2E0JM6Jio88tQQnnLb5NoBXsaIVXsIpNs6qS7MDHe 5ZK3meEjpgfSCGF/WIuEaVQcH6P54fhBHqBFFlgCuKp3Icib14AUpd8C9OUxUHkjM+ZM cE6NfAd3teGQsa3Kv+QJSKi9sUc6p6gYmbqkpyqanWgFi5wJ3LjHyUe93JH2S25xThJ6 rBpb97SRCTtjvRRrZTjaEoACNApyVWAov+jEaJF/HU5CQ3PKJmV2EfwnKsxFQpbqxBiv YDGQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716490597; x=1717095397; 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=47Z2/NbJ7rExO2YdLFnnIPMzP2wtlL23AUNZI3iAB8U=; b=TMYK4Mb89QPNV7WTbjIDClrnnDonl0HcxD6Fu554k1k4hFVlwM8meNKE7HIDXZaVxj zxUWXLdx2snQNJtkm8FjXbdOPI2MlJW7sv7pZBMxQEf2TS6kARpxGt6GTMXKQXwPKVkK bN2d/nxZtcSGQbn2tOhgXr41lJQz9tSe/Np4aytR3fviX0dmkbYe8OfljVsQgU/4glkx TZ4NhEP9/ks/O15jGOKqd427uJqHnYdC1U3mWlvVHB51Cu/9hsU1I/wxFEz4RSzYxF05 sJ2nvfwADJqPrRAxuzLBj1LBL7hlbufthhZNYSQ+WWyPJTqNeXWW8q36xLapGr4OyXg6 Sm1g== X-Forwarded-Encrypted: i=1; AJvYcCUnYD81kdRDGBPboblXTD1t4YW1UETOO2K8PFpBZzyAeb0DnWP7TFd10EdMWZAsh37zxoFw2nDaAhaO2QLbINCe7FoWY1U6WyGIEiuJmmjbYOl8xMIUH4XP5b3StGpzJRsgGZ9Lk7BmW04kiWLfxmudJDKzWVUQ3TU= X-Gm-Message-State: AOJu0YxRka65Tayv5dN7LGIVnpLoO2PT+dD5DoQPQ3cQ8xgi/3LEabaz 5k+YP9Syu5PP+PpkZz6qZlT+SeSZY1G5wIleR5euNrdEPFtv8Zo= X-Google-Smtp-Source: AGHT+IEHApteTuvE/pwSSH5Z69X7TO3ZnltVOc2+EkCRMecSx0+bwpvYeTm9DC4U98ulugpFeQ4adw== X-Received: by 2002:a05:600c:218e:b0:41c:3e1:9db9 with SMTP id 5b1f17b1804b1-420fd354f77mr45371805e9.27.1716490596738; Thu, 23 May 2024 11:56:36 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:a453:b45b:e52a:2302]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3550c675581sm3965f8f.13.2024.05.23.11.56.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 11:56:36 -0700 (PDT) From: Alex Bee To: Ezequiel Garcia , Philipp Zabel , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner Cc: linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Alex Bee Subject: [PATCH 1/3] dt-bindings: media: rockchip,vpu: Document RK3128 compatible Date: Thu, 23 May 2024 20:56:31 +0200 Message-ID: <20240523185633.71355-2-knaerzche@gmail.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240523185633.71355-1-knaerzche@gmail.com> References: <20240523185633.71355-1-knaerzche@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240523_115638_729834_43F27775 X-CRM114-Status: GOOD ( 10.34 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org The integration for this SoC is similar to RK3066/RK3188. Document it's compatible. Signed-off-by: Alex Bee Acked-by: Krzysztof Kozlowski Reviewed-by: Heiko Stuebner --- Documentation/devicetree/bindings/media/rockchip-vpu.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Documentation/devicetree/bindings/media/rockchip-vpu.yaml b/Documentation/devicetree/bindings/media/rockchip-vpu.yaml index c57e1f488895..d1b47b14ca57 100644 --- a/Documentation/devicetree/bindings/media/rockchip-vpu.yaml +++ b/Documentation/devicetree/bindings/media/rockchip-vpu.yaml @@ -26,7 +26,9 @@ properties: - rockchip,rk3568-vpu - rockchip,rk3588-av1-vpu - items: - - const: rockchip,rk3188-vpu + - enum: + - rockchip,rk3128-vpu + - rockchip,rk3188-vpu - const: rockchip,rk3066-vpu - items: - const: rockchip,rk3228-vpu From patchwork Thu May 23 18:56:32 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13672184 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 7AF17C25B75 for ; Thu, 23 May 2024 18:56:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=U4ZP2u0RigvsKc52sqDZvQG3VngqsF5hNd8m6Wv0NGA=; b=XFtPDk2xpgcj12 hCP9J2Wn6WMeCUWM3pIirVZ+6LwUn7QKNeNo+R2zb2l00x+M3HpOGLCvzdb68c+ac69mTCEQ/qHTi nkIdwKNmTZ1cfl9A15YUGaJyudn9jUiZVe00u6u8emNb//3lZrxXrubopzsqXBKPYGLJ9PP+TPAAe dOxRENnz03pvY+jy49xfxjWO0BIg9UpwNLTXa03Hg7fAQQb6EbJ8hUElwpjh7owZ1ABxhH0jqV6/r lQ/pzc37Goz9yTWYBg+5X96lVC+08wSTaKP/P+w0qOoMRHnAPK6bz3cc5PCreCudyzpNZL9IKYR+H b2OiHqpA/LA7TzhRPzFQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sADcM-000000074CC-2NJQ; Thu, 23 May 2024 18:56:46 +0000 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sADcF-00000007475-07ia; Thu, 23 May 2024 18:56:40 +0000 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-42011507a54so14103725e9.0; Thu, 23 May 2024 11:56:38 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716490598; x=1717095398; darn=lists.infradead.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=2vGSPeiqToBwb/4U9wuLT4Lc5GeDuH/YmWaUfRoLwoY=; b=JWkz5ht7viN4vrMTz3/q+1SghY0uCUJ67XTDK9H7Gj6C633vmVBFsN/3j12f3LLeKo lFyv5HA1SScBO8l2FTnICJkY6Hn5ZwW7Amog/kzm2dgsRil1Gy4IaiJm8YdAXYJuKVTp InlEWIfkM8HgsrDGacREmMZyeAZQqdpMXKmI6gZf7/EalyzqTXzzg+sPO8oZeAvL98oh OKeW0zNcVBbz7hcYUTWht9J+VSrMFYfrTYG9Wc0B/Ghs7NCczaBOpBx6G6LpXpx7LAKs BxsaZj4xZEINv9MqQaCH+M/Gb0so+A1bOYzf1mDrMkDN7IQtO/vg7TfdqgaHErttoJPL 7hjQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716490598; x=1717095398; 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=2vGSPeiqToBwb/4U9wuLT4Lc5GeDuH/YmWaUfRoLwoY=; b=HW5OQj/lKkNN8K4wAzk/+AbO5mDArt44LgZU20vIt5Q34qPdGuAVubp4L+mWT1ItJT M86ChdfHMTitzEetthg/3nirZDa+7E+WYMj3hNFqF18yrTG5xoEH6erF406f5pMI3iPe 6kC/7/4oNFNYegRaff4II1Hhdm+/0jBbZ8rm0E5blhUS38PyhQBQU5Qi5PkIGcds2a5x 0v19W5WAX4BXAsks7moldoHmSJtAB76/6xE8NEbWFh9/mtjM8KC/GbK/4sKD6l8rC12b ZMjT4My4UN3DyhhDlVTq/q1nnS2J7oIX/E/LRN2vsItVe53pM+qqsEucZ49ZSSOJVyRV +YZw== X-Forwarded-Encrypted: i=1; AJvYcCVQ0yAh9rg3X5jso3tVSm50YUUxYl4nVSY5FP/G6Ro38/tWOrFK2tjlZKpCKdcb3PmKANFB3EL14v9Ir9H3823c/U73SnBKYaTgsMWC2xoiiwKn/g6gngVxmKSo6WgZ5ZqKprBnr9XaeI2TnzBB/bUh+FmJCeac8Po= X-Gm-Message-State: AOJu0Yw4tC8rxLyYpxegwNKixi22blJnTvJX/8tg+Nwau5kmzWe6FSwy Sj6I8tIQ+ARj8HNY/Fe/lWpYNY5FCLw9ijwBO69cf8KKoIwyh3c= X-Google-Smtp-Source: AGHT+IEUZra0IuLte/TUh4lf+7J7uFOqJNB0+Y3jfsjskFSS7GiJogn1Iw72XUCIBYcdCBior5phsA== X-Received: by 2002:a05:600c:3150:b0:41b:f24a:b590 with SMTP id 5b1f17b1804b1-421015a62ffmr28810115e9.3.1716490597736; Thu, 23 May 2024 11:56:37 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:a453:b45b:e52a:2302]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3550c675581sm3965f8f.13.2024.05.23.11.56.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 11:56:37 -0700 (PDT) From: Alex Bee To: Ezequiel Garcia , Philipp Zabel , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner Cc: linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Alex Bee Subject: [PATCH 2/3] soc: rockchip: grf: Set RK3128's vpu main clock Date: Thu, 23 May 2024 20:56:32 +0200 Message-ID: <20240523185633.71355-3-knaerzche@gmail.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240523185633.71355-1-knaerzche@gmail.com> References: <20240523185633.71355-1-knaerzche@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240523_115639_131551_461FF1D3 X-CRM114-Status: GOOD ( 12.87 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org RK3128 has a setting in GRF which selects whether the vpu attached iommu uses the AXI clock of the decoder (vdpu) or the encoder (vepu). The default is vepu but some part of the vendor firmware sets it to vdpu. In order to be independent on whether any of those vendor firmware blobs is used to boot the SoC reset "vpu main clock" setting to it's default value. Signed-off-by: Alex Bee --- drivers/soc/rockchip/grf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/soc/rockchip/grf.c b/drivers/soc/rockchip/grf.c index 5fd62046b28a..df64de3d3040 100644 --- a/drivers/soc/rockchip/grf.c +++ b/drivers/soc/rockchip/grf.c @@ -41,9 +41,11 @@ static const struct rockchip_grf_info rk3036_grf __initconst = { }; #define RK3128_GRF_SOC_CON0 0x140 +#define RK3128_GRF_SOC_CON1 0x144 static const struct rockchip_grf_value rk3128_defaults[] __initconst = { { "jtag switching", RK3128_GRF_SOC_CON0, HIWORD_UPDATE(0, 1, 8) }, + { "vpu main clock", RK3128_GRF_SOC_CON1, HIWORD_UPDATE(0, 1, 10) }, }; static const struct rockchip_grf_info rk3128_grf __initconst = { From patchwork Thu May 23 18:56:33 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Bee X-Patchwork-Id: 13672185 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 8A9A5C25B7A for ; Thu, 23 May 2024 18:56:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-ID:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=sbnpBDOmFluBGU4yzaNJn2NF2eUyBaiFEGq45U8497Q=; b=TEs72SJfcgdXus ha+mmPwIP5U5bD2veFcJQdzza+8bc0OcT7xFqNZOnD+lZNwfDu5zpNxMM8aW3T5WlyqITvcAogG5T PUCl5EmdmTH2nLx4kexndX/owSxLV2TZEj6OU1SYNJ9yXkoN7srctIi21UBx06U6vdVQQBk/qctVV IExCCNuPIXsryD86+98jCTl+L0/jDy1E1aDGvNqzRVws9CDKKidYVFtJdpHKwUbvA61wPh9Ny6g12 wNT57D7gz4yi33RrAO+Xy/oSROXMT7+7EQ1V7f0xU5T83mr/zs/NZKmhiVjJ055IAyKjE2IzpDZqF LdY09LwDK3fM5JOMki2w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sADcO-000000074E2-2oa9; Thu, 23 May 2024 18:56:48 +0000 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1sADcG-0000000747i-2dBc; Thu, 23 May 2024 18:56:42 +0000 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-42017f8de7aso57595295e9.1; Thu, 23 May 2024 11:56:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1716490598; x=1717095398; darn=lists.infradead.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=aagzBVjJ/D8Y1ifoBBVOq9JBnR6o7BIp7hhz9J64Up4=; b=N6YQhT9mV10aXacfxfQkbk9TWxdAAJjaCZ+GMks7MuVlHCTP7XFuvmiVaB3ZupcUYO a5+Q3KEwp14uoJIAO5CgTFrY0se0/2cqg2BtWTMSQ4eQb+1Pn03OV0+3xKWZWl5n9Wpm ItD3tgrhqF5q+rdx8/BujnqVx9zmzBWb0nafajxnwWF/gck7pnpgZF70aKwNrp2XvafI qGrLQwlY74crzBEH2gAV4MSHi+TCXHFqL474cLvJdqgbRs6yeQCz7Ci9NSuyNNSPkr5y QSlLUqJckN8CvMy3NBakgRXDqXYflzUZHaJLPnivgeX4RZNuQkefaYM/WwlUu4KlM0aR WCpA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716490598; x=1717095398; 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=aagzBVjJ/D8Y1ifoBBVOq9JBnR6o7BIp7hhz9J64Up4=; b=Vnio8i/rk32qY1JTYZlGJjSJlgMn39znTmdaqHEVAmxCzMbYRXshF/07aKpmLaAqMn PSZxmCQeV0r587OufXt1BOwz9/yB8bPWcqJ90sKyFwgADKGvDP+2w98N8/E8xYirD7cw GAf8XG9R/osUHoLry/xbHOQYk7vbIrEKb34YmrrnRCwb9iAfW2+Bp1mjnviJzwkPtWeG TxMyvcFyuKydMfA6JccEAgZy/bxJDdlGXOGINiwFJ4yJxCnLJdXXLx/7J3mcjf1CtJvj pPTi+mbDbMPMGuNXLv9ErDTuZaI9t1DtoVtpOm9agFnciiwJ3kC9njoD7J+U8VOi9UOF /pnQ== X-Forwarded-Encrypted: i=1; AJvYcCWi3dYiyUftdN+g3b+BbFEqz0yRG8OKmHdBfJI9DamqkQ/NaMwRWQEBsvAtjjCKfwbw4zAyNlYY6yG4lJ2+8j04glj3DKLTxqXlzU0kzPe6GYh+MszcCEJf4yRCwUT7U/QCtRl8Sldkw61ANF0asaJN40Dy9D8qhzs= X-Gm-Message-State: AOJu0Yw/u2wRQYlRA89g1xEFY9saaZ3U9dcTX9RHkwHzyH+V0+zZEo43 TaUCuxaAiacrKZkqA9l3hKfQcig2jlCJ50XvmEfqltBa/BB9toQ= X-Google-Smtp-Source: AGHT+IHQtIRERiIjgF0uwBvsMBAGXfHwHjUykiz+HaZvwboLaRdKEhVREw2VDEvxpSx1HgPPVohtVA== X-Received: by 2002:a05:600c:22d4:b0:41c:83aa:18b7 with SMTP id 5b1f17b1804b1-420fd35fcd1mr44947485e9.33.1716490598452; Thu, 23 May 2024 11:56:38 -0700 (PDT) Received: from U4.lan ([2a02:810b:f40:4600:a453:b45b:e52a:2302]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3550c675581sm3965f8f.13.2024.05.23.11.56.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 May 2024 11:56:38 -0700 (PDT) From: Alex Bee To: Ezequiel Garcia , Philipp Zabel , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner Cc: linux-media@vger.kernel.org, linux-rockchip@lists.infradead.org, devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Alex Bee Subject: [PATCH 3/3] ARM: dts: rockchip: Add vpu nodes for RK3128 Date: Thu, 23 May 2024 20:56:33 +0200 Message-ID: <20240523185633.71355-4-knaerzche@gmail.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240523185633.71355-1-knaerzche@gmail.com> References: <20240523185633.71355-1-knaerzche@gmail.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240523_115640_862492_EF2E33B7 X-CRM114-Status: GOOD ( 10.80 ) X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+linux-rockchip=archiver.kernel.org@lists.infradead.org Add nodes for the vpu and it's attached iommu which are both part of the RK3128_PD_VIDEO powerdomain. Signed-off-by: Alex Bee --- arch/arm/boot/dts/rockchip/rk3128.dtsi | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/arch/arm/boot/dts/rockchip/rk3128.dtsi b/arch/arm/boot/dts/rockchip/rk3128.dtsi index fb98873fd94e..c11f55677841 100644 --- a/arch/arm/boot/dts/rockchip/rk3128.dtsi +++ b/arch/arm/boot/dts/rockchip/rk3128.dtsi @@ -252,6 +252,30 @@ power-domain@RK3128_PD_GPU { }; }; + vpu: video-codec@10106000 { + compatible = "rockchip,rk3128-vpu", "rockchip,rk3066-vpu"; + reg = <0x10106000 0x800>; + interrupts = , + ; + interrupt-names = "vepu", "vdpu"; + clocks = <&cru ACLK_VDPU>, <&cru HCLK_VDPU>, + <&cru ACLK_VEPU>, <&cru HCLK_VEPU>; + clock-names = "aclk_vdpu", "hclk_vdpu", + "aclk_vepu", "hclk_vepu"; + iommus = <&vpu_mmu>; + power-domains = <&power RK3128_PD_VIDEO>; + }; + + vpu_mmu: iommu@10106800 { + compatible = "rockchip,iommu"; + reg = <0x10106800 0x100>; + interrupts = ; + clocks = <&cru ACLK_VEPU>, <&cru HCLK_VDPU>; + clock-names = "aclk", "iface"; + power-domains = <&power RK3128_PD_VIDEO>; + #iommu-cells = <0>; + }; + vop: vop@1010e000 { compatible = "rockchip,rk3126-vop"; reg = <0x1010e000 0x300>;