From patchwork Tue Dec 17 15:55:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Riesch X-Patchwork-Id: 851592 Received: from DUZPR83CU001.outbound.protection.outlook.com (mail-northeuropeazon11023088.outbound.protection.outlook.com [52.101.67.88]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AA95E1FA244; Tue, 17 Dec 2024 15:55:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=52.101.67.88 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734450940; cv=fail; b=nmnxEjI9MoaDWIuv72Aq0rpxD7b+VxwRSbxewXse85ZsT6idUuX4ueQKAoq5NyRpN75iw1oJ0BlTdTWK2HuH//LZctLoddMYtgLzF42FWOR2k7imcBS1Uydl5Y4GYARu/zCgT07N2rFRSLP6LoYVXTWYYMkGJ41ZzD57xqwqk5o= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734450940; c=relaxed/simple; bh=Iv8zXQjKTO9MzBU4yq6In+vkOstndZA8TJEpuCCdl3E=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=gDRG3v9BdZf/vUcBZ+EYArF5noOb4GQSdC2mkLoGuUmWv9TovEKY6fucu3oStcpm9bfrh4zVx9fUgUukaHvePrZjTl9gzjqAFVfeJM+5rqUc5pUbIORawYXpX3iQs7Id1DKc6sxBaYnBfI8hQymMI8sCeYMw+Lr/svqsFZ+KKEY= ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wolfvision.net; spf=pass smtp.mailfrom=wolfvision.net; dkim=pass (1024-bit key) header.d=wolfvision.net header.i=@wolfvision.net header.b=wKv/ClDE; arc=fail smtp.client-ip=52.101.67.88 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=wolfvision.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=wolfvision.net Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=wolfvision.net header.i=@wolfvision.net header.b="wKv/ClDE" ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=NmSXdVwRQw5ZATM31yMNrV1ZEK0LDI/uP56HO3GtKwR5TV+zIgq2qbcquEpxWEFmf/Gu0UCmYNE71zJtPcRM5/11+XTx1FHlAQ+sBjAKxhHSQzzR4IYw/2sm/Vua4nYUqZguYcNKJKy8xb/Ie7HJJYCQL2yTIyOXdNJ2gLogsD7g8mI3jU414YWzJAHCT0Zw6IJIDs7b66hoq+TJhIT1Y4iI7ARkotpXyj2zOVga1NB8GR4yoELhancrkNBgTkCTivxxImmKsG0wIXhgdIG3ZtKKQEwji/EU8jzj0LyS/jGBt5apGcNrUx7LyCx2vALQlXofq9emZFSd7mcQm17NPw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=nk3b1vxeDZn/wel0Eldbt0PkyheM0Xq6NUrTiMKUNuw=; b=L0La9XGVxLOaUksYzNTX8b5YJU2okuYTR64hxwXMHYg1xtURDPqNW79wBvlx9iTVh3Shr+dFgMVrk6/1MWu8JMQRYNEhar4TaK0LdToha8UTfahyA154Cp7Fkjq99i2N3SDFtwX23tidkFR2P9a31JVaGstZoT8B61OdnwJc1Jmz42v8mNbeHFo1RbfQ1Ec3c9jaYjJJypgMNmY8FG4px3t0+TlQODoyNAEy7gs3gTso51Mg3T+l5chuhQmN+ZK8mnhQkirwsb5Bmn/W+vu75IJSEUEY/IOJXjURknLGF4Qw6xGG7+DI3yQLyCS19ujKDC5B8Qg1grlpYsedtF0Pyg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=wolfvision.net; dmarc=pass action=none header.from=wolfvision.net; dkim=pass header.d=wolfvision.net; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wolfvision.net; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nk3b1vxeDZn/wel0Eldbt0PkyheM0Xq6NUrTiMKUNuw=; b=wKv/ClDEFKb34C0tApzqx96+T5K+jCK5nl20pQuBuI1vZIfQOuyk18ZhSIpBot6YFoNQ5DB9y2hvXVHSGGUVnK+g9OYBxj+7CBKqPz1atDNwgXkRzevBgD+Yhuja34g+kb5NLRhXuQsgjMNeZFIEWLMEOgEmef9XHngFghvqqFA= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=wolfvision.net; Received: from DU0PR08MB9155.eurprd08.prod.outlook.com (2603:10a6:10:416::5) by AS8PR08MB10149.eurprd08.prod.outlook.com (2603:10a6:20b:63f::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8251.21; Tue, 17 Dec 2024 15:55:29 +0000 Received: from DU0PR08MB9155.eurprd08.prod.outlook.com ([fe80::4e72:c5d4:488e:f16d]) by DU0PR08MB9155.eurprd08.prod.outlook.com ([fe80::4e72:c5d4:488e:f16d%5]) with mapi id 15.20.8251.015; Tue, 17 Dec 2024 15:55:29 +0000 From: Michael Riesch Date: Tue, 17 Dec 2024 16:55:18 +0100 Subject: [PATCH v2 6/6] arm64: dts: rockchip: add vicap node to rk356x Message-Id: <20241217-v6-8-topic-rk3568-vicap-v2-6-b1d488fcc0d3@wolfvision.net> References: <20241217-v6-8-topic-rk3568-vicap-v2-0-b1d488fcc0d3@wolfvision.net> In-Reply-To: <20241217-v6-8-topic-rk3568-vicap-v2-0-b1d488fcc0d3@wolfvision.net> To: Mehdi Djait , Maxime Chevallier , =?utf-8?q?Th=C3=A9o_Leb?= =?utf-8?q?run?= , Thomas Petazzoni , Laurent Pinchart , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Kever Yang , Nicolas Dufresne , Sebastian Fricke , Alexander Shiyan , Val Packett , Rob Herring , Philipp Zabel , Sakari Ailus Cc: linux-media@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-rockchip@lists.infradead.org, Michael Riesch X-Mailer: b4 0.13.0 X-Developer-Signature: v=1; a=ed25519-sha256; t=1734450919; l=1988; i=michael.riesch@wolfvision.net; s=20240405; h=from:subject:message-id; bh=Iv8zXQjKTO9MzBU4yq6In+vkOstndZA8TJEpuCCdl3E=; b=EVAgMNiduf1W5NpmeMIcas1x/p175qznzjS81JBdWMP96nFigBHCqR4UcdBSgDckQefzIFR+6 bDl8mgv1Jy6DytRedq+/PcTWgtAUoEYeMaZlpXXB/A/S5/jAyYMg4Ab X-Developer-Key: i=michael.riesch@wolfvision.net; a=ed25519; pk=cSJmgKSH3B6kdCIDCl+IYDW1Pw/Ybc6g9rmnUd/G7Ck= X-ClientProxiedBy: VI1PR08CA0244.eurprd08.prod.outlook.com (2603:10a6:803:dc::17) To DU0PR08MB9155.eurprd08.prod.outlook.com (2603:10a6:10:416::5) Precedence: bulk X-Mailing-List: linux-media@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DU0PR08MB9155:EE_|AS8PR08MB10149:EE_ X-MS-Office365-Filtering-Correlation-Id: 32ec1d0f-d077-425c-55d6-08dd1eb33b21 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|1800799024|376014|7416014|366016|52116014|921020|38350700014; X-Microsoft-Antispam-Message-Info: =?utf-8?q?6AtTRLjNinNjYek5RkfevsFaKhwojFm?= =?utf-8?q?R7lD1z0pHPex0ShmVxeDa6L4cpKq++pPF0JJRdmxKUqRe0F7UzWRJQGJFv0AbOYuq?= =?utf-8?q?hxoeOWoq8lr8HFUc1z4QAkN2NfCjwT6ZvmEXto+n4GAVvoXO9ybe8TbjbQLplbaTy?= =?utf-8?q?Bp27K4uD4RMBsQfE+AFxVg1i+8j5XmmsTKhkskSt71WhtuvHQm17G+4JQqR1Yk7mp?= =?utf-8?q?7G9+rGf+fEIc+bidgd+djeZn1+thRM0B1HXUElewcanP1R8DuEcvwK/2CUJ1A5do2?= =?utf-8?q?wcxZ1U6SnjUpGjxfqBGcidJIG3W/DfArWZjfJoliA2IWc+38ePV/YwUGhY7Ejtcn0?= =?utf-8?q?09mJ06IiGMwylE8WW5n2leDVdMOGLoCmVFVD5xnx6WRz7b5lttgK/i6ogm+L7ouND?= =?utf-8?q?l1xXbhwwxhu5LpqHMjb05kucUo5wC77UNMlSGUIPuUOXSxnkkN69sm39OutlLWQ3S?= =?utf-8?q?A6ymcKrstBJZc/Bm1COkc7D9QknT0MTLMnHFRU3j5GVteEGR3Ot+UVkJG/j7PGELu?= =?utf-8?q?wWSC6L34tGb+x6Q8XB3wHx5YQ3hVeAHqTojVwPqzx3OB4AtZa67DHIQPep5R1/JkY?= =?utf-8?q?bgZ9c2mEsGEwnXIyphU6zxfchs83cBTQwA4TgI4q1fsHnqz9GUAEJiYJlpCarvFY/?= =?utf-8?q?6uS5ci/vt7P+dKiJgYcshFFGPTEznGKloiZSDU4X3xnNALXCUna+G/kQbgt5tsc8t?= =?utf-8?q?c5ekjnjlTXpCOf7aWXeKWoOBK2RbwniMXC09oVEOYHRWBJNWZMsYC0qOuovpfXODl?= =?utf-8?q?LDGU/buZnRjkb0+qm7RifbgTJg06IboCxuhSN4vBqR8X7aVT86T2gYas9HBkCQJHd?= =?utf-8?q?tYPbrLPVn4FRJjoyZP1HNTr7uAkKBPxuwFalmr1BGccHaqajw17A3IcQe4nrJ4IHm?= =?utf-8?q?V6e4S46TEVIFkKO0JVINEjOIspCr7lFemiPclXQrarVq3APOZdsy6HINaRBPuRbIa?= =?utf-8?q?2DILQoWGXpGyBg6lBlgPskLO9oJMTcp9NTBeR+y9z1YzKIgwQqo+MvsLrg1lN+R0J?= =?utf-8?q?5jg847C76G9qMrMimaWzhkR5ybZZiJwHxBvwYJsxsMr8KGtdKA+YRstdCK2TVBSNR?= =?utf-8?q?0pquiH0Pn2YpRGOEzAZDmQid/AJaQ1SKae+gsvv5XkhOYoFCtVJEkAmpS6YmYqYQ7?= =?utf-8?q?RmJc7AE3O0nYKmcg3YQmaJ1Jv9ztF96ncZYQ+O9Tc52LaHpxQrhuC/3W758FfgKCb?= =?utf-8?q?HqmWK7qJA+z6kbVT6gi9wIknTXIz8rSvwfNSGIvsJFyf26rOWPUvsP+N3hY/4Q7M5?= =?utf-8?q?cUekLVRVFD8pyZMQgekKsL9P4gKU5WpbSfUVHJaAmXOAUi3H3zmU4+vmmuFImzxIC?= =?utf-8?q?lHXlUL5EHnlmakokyAIHIjoIjXsYkTTSgCZbSDLdARpePFu++1CiVF98ygCS88/U2?= =?utf-8?q?ILYo2y2nEOB?= X-Forefront-Antispam-Report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:DU0PR08MB9155.eurprd08.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(1800799024)(376014)(7416014)(366016)(52116014)(921020)(38350700014); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?q1dtsOIp6lp83ufa0uGT73jAkqqM?= =?utf-8?q?MwTEZxu3JkLLatlzpeG4hOf6a47O1deI02pewTdvG8+ggR4kLWmLl/FTEOoNn16rq?= =?utf-8?q?mNLxsaDmAW0tEkuVm9CYFcR4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+/KX22RNcCut4CtBXHUn7UH2+V8+bMCsjIn4ugbTP6ZmNGjLu0P4NYn?= =?utf-8?q?FlHJa0mePBBnUMmefIn0Xd53xmt6IzRzdlFNw0eoHEoHDAPqE6vnO3jgdHnTVrH9b?= =?utf-8?q?3UbLq+FWr09HeAGq/iqgRJgomFyP3tNinqESJKmhAdxlMXvdUm8QTOSALM2vuDGPR?= =?utf-8?q?23y3qcLewghNxH8PTJJJx2N74viD0vExMr4Rt4XFIKJuNFjuogng1sUu7miX/JmCw?= =?utf-8?q?0OyfgHGmyI+ZBx0rvn73kWr9AJjFMWRM0nZnmYuWu4RcdYD0DLKj682MXDzUH9vbO?= =?utf-8?q?GTbrjPqirUhWy9oh7cAwB+oRtO6DqLzmVOWyxkI7lji3eGK+1m6HRNecl2oyRMd4Q?= =?utf-8?q?YjUS04NiYyLs6t7bVJ4Fgc6SMNEjygI2vmFnG/vZEmd/i8M7sJmlLzLmWOqb4AaTX?= =?utf-8?q?PsH7aRSGnpqcWrPfkJFHjQa/+hybK8zDq7G5cALFMohmY2vwVcuW7tJkeoTQB3r/7?= =?utf-8?q?gsvTz/NydUVN6XrDdHUfNuX8IpwbaLNJlZSHAGfD+UCoFh1s7/4M7LjlnUg2unPtV?= =?utf-8?q?kd238gUL4xYeeoeHhD75TCNMAmL47oEwAg=3D=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 32ec1d0f-d077-425c-55d6-08dd1eb33b21 X-MS-Exchange-CrossTenant-AuthSource: DU0PR08MB9155.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Dec 2024 15:55:29.7274 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: e94ec9da-9183-471e-83b3-51baa8eb804f X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: pzhQ6VU0kEV1fxjc0AcIRYOS8UhxBltXXtFAuRyCWHCgMcMAEcgkV9ieoOnXw31Af+yGJavaWYd8m9XyLgkgTabLUyZNrczAIuTdQbeu8Ao= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR08MB10149 Add the device tree node for the RK356x Video Capture (VICAP) unit. Signed-off-by: Michael Riesch --- arch/arm64/boot/dts/rockchip/rk356x-base.dtsi | 44 +++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/arch/arm64/boot/dts/rockchip/rk356x-base.dtsi b/arch/arm64/boot/dts/rockchip/rk356x-base.dtsi index 62be06f3b863..73ff1ff01e24 100644 --- a/arch/arm64/boot/dts/rockchip/rk356x-base.dtsi +++ b/arch/arm64/boot/dts/rockchip/rk356x-base.dtsi @@ -553,6 +553,50 @@ gpu: gpu@fde60000 { status = "disabled"; }; + vicap: video-capture@fdfe0000 { + compatible = "rockchip,rk3568-vicap"; + reg = <0x0 0xfdfe0000 0x0 0x200>; + interrupts = ; + assigned-clocks = <&cru DCLK_VICAP>; + assigned-clock-rates = <300000000>; + clocks = <&cru ACLK_VICAP>, <&cru HCLK_VICAP>, + <&cru DCLK_VICAP>, <&cru ICLK_VICAP_G>; + clock-names = "aclk", "hclk", "dclk", "iclk"; + iommus = <&vicap_mmu>; + power-domains = <&power RK3568_PD_VI>; + resets = <&cru SRST_A_VICAP>, <&cru SRST_H_VICAP>, + <&cru SRST_D_VICAP>, <&cru SRST_P_VICAP>, + <&cru SRST_I_VICAP>; + reset-names = "arst", "hrst", "drst", "prst", "irst"; + rockchip,grf = <&grf>; + status = "disabled"; + + ports { + #address-cells = <1>; + #size-cells = <0>; + + vicap_dvp: port@0 { + reg = <0>; + }; + + vicap_mipi: port@1 { + reg = <1>; + }; + }; + }; + + vicap_mmu: iommu@fdfe0800 { + compatible = "rockchip,rk3568-iommu"; + reg = <0x0 0xfdfe0800 0x0 0x100>; + interrupts = ; + clocks = <&cru ACLK_VICAP>, <&cru HCLK_VICAP>; + clock-names = "aclk", "iface"; + #iommu-cells = <0>; + power-domains = <&power RK3568_PD_VI>; + rockchip,disable-mmu-reset; + status = "disabled"; + }; + vpu: video-codec@fdea0400 { compatible = "rockchip,rk3568-vpu"; reg = <0x0 0xfdea0000 0x0 0x800>;