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: 13672192 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 9B0FCC25B75 for ; Thu, 23 May 2024 18:56:59 +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=1h6DvYx1JcrcuXvNWAg2wYiorl8MXuhIwYs+32BELX4=; b=5AL/Kzx4gcseWo ipIDRPk/CkdvN3F/kiK0EEl9maYelsOlTEGr5sypCLegZ8pFsH//1OITRYg9yaJEOde6JZvWsjpbf eJUPnpZZ2A7/wSl3IKpbJF3vYHmOmpdQ9VT3ikvw2MNfDtoTJZyMoojzyWFcQHnxZMVt+/yeeg5Ry h6VcX1aZ8WKAljz1Hr+SsUV8PCG3dM8E4xFwlOXWeQPR1UzZyyuYKMr25w+YXtVxazhQEy7dXuIw2 KNq0bbk1Ktykbxq8ppEWcf3W4a8VlDpujyePzVUi4jdTkr6bKJdEgQ8gbG1VOVxsmT/I3Gemyjizk GCv5ZfKY3+YWEua/VuIg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sADcN-000000074CW-07c7; Thu, 23 May 2024 18:56:47 +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-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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: 13672191 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 6C182C25B7A for ; Thu, 23 May 2024 18:56:57 +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=Odn/9tyloo8qHfh8ijBmM8oP1Scfkbv0MHMoUtwVOZM=; b=w5mdtzGeMRBZ5O XjAVHLgODMfdXcQ722Hng2kWHl3ZAE0KAba2gZcennI+a4zxWbk0xwiIWOHN7L+fWKV3YjsKoAYO/ vTTsKkKs3hlYDylvJfOSIZuo4SqqiUt6MLTJVEBCechJKyJOvaM6/4tzwHKfB9Lu680d2PLwe8O+x 6Jp3lzfjkwNjKheJqJXmXuuOFKAA2LfruqjFrNu08/V7if+46iMfIgXVrq1pjcPM7rlOYnv906GLj hhX3ibzf+PHVsoZiBAVE9wZxRJqtZFJWCJowDVaP0jGnA5ByPI9hnsngu2TskowOkRBJxiA64jlNM XHhghhBPwMQlStFWt/lA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sADcN-000000074DD-3Vs7; Thu, 23 May 2024 18:56:47 +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-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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: 13672193 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 BB593C25B75 for ; Thu, 23 May 2024 18:57:01 +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=y9MzmKKMYTi++cQtW7pnxvsXuVg5lf+a+wC1/5YOg7o=; b=Ryac5YCxpgQiW9 MgZwdXul5zFyr5ElncSy4Sb+JNgNJ6Q73vuaHqX3sDV6ijJjX2TSAo6C93ZktAQFPJb7uoFPdItg9 TELB4lyC+k0RHu1Fv512mL/Xhgic3gB/NTI9FZgxZqaaXsXC215fG2bYJfuN4UTpXBsTPVyUPprsd rQhj4P9a9nAfWbNsHdPL97LY4zaILWlV1DA9wO1cp0CQWlAPVuqGUmoDUBYnGMzQDztVsInW58B5F ZXTkWt9TiWx3feYgxBLdOJ/43GIQvIArf3xDX9kjFxKlVIbPZatLwoWpor8d9c49VpbGY8SiPNFEP cREJqWJYbB3SnU/THxoA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sADcR-000000074Ff-1vON; Thu, 23 May 2024 18:56:51 +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-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=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>;