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: 13912206 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 544A9E77184 for ; Tue, 17 Dec 2024 16:32:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:MIME-Version:Cc:To: In-Reply-To:References:Message-Id:Content-Transfer-Encoding:Content-Type: Subject:Date:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=nk3b1vxeDZn/wel0Eldbt0PkyheM0Xq6NUrTiMKUNuw=; b=VEDTfNy1G1NxLH4A2UdtknAsiI JxUPJd5PLPbkeI4G3vcUaWacMfLXWSc3l5Lkr80rmyScXbDq284UV3JwTbBBsxZFi/2TLM8FJr6+1 x4e7KlFDL/pGXDysHzWnWDLmDnsPqu0UrWOjh8WO2ak9ewxMF32vg8+45TVTmugGBXvDwAGkr+cQR XFIGg+c111m3IhmjzMCjJsMbhAytDpPFcr4qr1ahthGpCKvDUcm4KGuk2R5aMN8BEIA6oA1QVM5kZ 6eKM3p8zm4Wz63bY985UH9XIw+aFjkfzmnTEG8BGyqO/9HTbpbkKzQnXpPvm/LPDXodNSP4+mHTlo 7+lbo1LA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1tNaUK-0000000EBsa-31KA; Tue, 17 Dec 2024 16:32:00 +0000 Received: from mail-northeuropeazlp170110001.outbound.protection.outlook.com ([2a01:111:f403:c200::1] helo=DB3PR0202CU003.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1tNZv9-0000000E2wr-0r1v; Tue, 17 Dec 2024 15:55:40 +0000 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) 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-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ccHaqajw17A3IcQe4nrJ4IHm?= =?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?mNLxsaDmAW0tEkuVm9CYFcR4jWur+DJN4pOa61Tg5G3Xu73mjPsY2yS4Jm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ugbTP6ZmNGjLu0P4NYn?= =?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 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241217_075539_236152_69284530 X-CRM114-Status: GOOD ( 10.46 ) 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 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>;