From patchwork Tue Feb 20 09:39:12 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Riesch X-Patchwork-Id: 774424 Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2128.outbound.protection.outlook.com [40.107.21.128]) (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 6988660DD8; Tue, 20 Feb 2024 09:40:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=fail smtp.client-ip=40.107.21.128 ARC-Seal: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708422005; cv=fail; b=iswDWHGdWb3RfEefWFg3kwKGWDMMSzS3Ea0CboP/ta+BHisn1/VAiP21Mo+9+8495F1mYUetPLfAS8dEvH1/PfwmxWsNWXr5f8H7i+5lpimttE6ytou0Pss/5AbtnX8aF8wukI9HLHMuqbtifzSW+sAwKH2QhTNvW9avuNCAgWs= ARC-Message-Signature: i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708422005; c=relaxed/simple; bh=KRt6XgSyUvhtp8Ghvt6RHsXRYoKWFtOPfVBibS3LrA4=; h=From:Date:Subject:Content-Type:Message-Id:References:In-Reply-To: To:Cc:MIME-Version; b=Ke7EpAGc6hfNzOKL9d2IClsfjc6APtQ4KU4IojvgyZwZTea5AaZJ/TU9XKm6RhDqHz4etwwMDOIkUVJ147QqEqXdLj8myjdoLl8CXjReFLtnrvCK8CmEd7be4xM/QeoMX079fcqqT8ONWU+Pd1tpxDYJ8fPzMJOeGN0HZV6y/8s= 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=QZ8b+tbu; arc=fail smtp.client-ip=40.107.21.128 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="QZ8b+tbu" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=aXE4Dt3+bmMAArFu5kenpvRtqHnL+4s6csulZejYRwHWK0ODabX6vYq7ug+pjIlhBFU4/2c2SA/i1fkuzxZANdK+Z0xvUoI2DdooOHTo6wo1DA9K8qQ4XK/LHKsKDGWQWwsyKh+vI7mP6obliv7i3wuHokMaoU2sjqgRGOYTMv+Eg8JwPW6f5oKK6SZHWd/KFYV35impDLVdITRpG2UOIorAZAoPfr15tYy2qBNe93TShb/YHgUDq8K/pH2EFYyaPTEvG+xYCGvikpfGF8jYuSFyb8Z3qaDLxDokD9kq7mBtzflRT3B4POiMHGdGUWgoKuMLF+2odi8TIpvQHNzRtA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=EJiyoLkx+GSJIhcmsGPp8UszJ+R+TIOL9T4nCd+hCJs=; b=XSi/OaST+c0HRgfS8ycEWGd/RtZV6EXMPBu9+RjKtRZoMmGrTvKCVvpGwoGd3Kr+UKvcwEy3xooDwYlSKmUyh0/2P7JXnzikqIDidPRgFv038/wFGMX2KvJndUCNbT13r3gZI2pSI5+dNRnMZOPleH2w5q8NWzkzDuxRUnxB7HD1bzW8McVnx885XaqFgY9WuHp3TRwbkdJu6OO0pQWKuy+lYK6u8o9idxdzwxAGU+H1rmONjDdTnhtYPmzjmH7lmvoGPM3lH4syah1Qw2XPfsMibBFiWq7mJydtCqF4E7MKT9coyNVfiQmS0AdMBGIn4kdPm4GOMhCQ6Q0TCgB1Yg== 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=EJiyoLkx+GSJIhcmsGPp8UszJ+R+TIOL9T4nCd+hCJs=; b=QZ8b+tbuR86Eclg7imEpuDcANyuC0/MCt8M8XM+b8qKVlp5bEFDVPO7EvNbx4QyPLpVgJtP2mNkxhfDvkje7JuVbg/wE3p1PmooubN45kmGCFgCCwbzNg1y5WebeeF/S+Xoy5LfxFZNfp1dErOnI0ewe9n8U4v1PXraSC8imLmI= 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 DB9PR08MB6763.eurprd08.prod.outlook.com (2603:10a6:10:2af::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7292.39; Tue, 20 Feb 2024 09:40:00 +0000 Received: from DU0PR08MB9155.eurprd08.prod.outlook.com ([fe80::7409:db60:8209:c9f4]) by DU0PR08MB9155.eurprd08.prod.outlook.com ([fe80::7409:db60:8209:c9f4%6]) with mapi id 15.20.7270.043; Tue, 20 Feb 2024 09:40:00 +0000 From: Michael Riesch Date: Tue, 20 Feb 2024 10:39:12 +0100 Subject: [PATCH 02/14] media: dt-bindings: media: rockchip-cif: add port definitions Message-Id: <20240220-v6-8-topic-rk3568-vicap-v1-2-2680a1fa640b@wolfvision.net> References: <20240220-v6-8-topic-rk3568-vicap-v1-0-2680a1fa640b@wolfvision.net> In-Reply-To: <20240220-v6-8-topic-rk3568-vicap-v1-0-2680a1fa640b@wolfvision.net> To: Mehdi Djait , =?utf-8?q?Th=C3=A9o_Lebrun?= , Thomas Petazzoni , Laurent Pinchart , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , 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.12.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1708421995; l=966; i=michael.riesch@wolfvision.net; s=20230803; h=from:subject:message-id; bh=KRt6XgSyUvhtp8Ghvt6RHsXRYoKWFtOPfVBibS3LrA4=; b=N3pM82BnsWC5yhoqHJWS1SFa71OQXTVnuEs4obf1tU730Pq39QD4v/CFZuAyNAyKJUX15otvT Fn3NJ5aK+gqAQd7/3qDtWcFPVw/f4LTXYTS9HSCSMBkuU5IhHbIT4hk X-Developer-Key: i=michael.riesch@wolfvision.net; a=ed25519; pk=9ral3sulLe95bLcbaiNXTgUTRiBayRBEFZ5OVIEHp+0= X-ClientProxiedBy: VI1PR04CA0128.eurprd04.prod.outlook.com (2603:10a6:803:f0::26) 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_|DB9PR08MB6763:EE_ X-MS-Office365-Filtering-Correlation-Id: 8fc60e02-f154-47d8-a8bb-08dc31f7e812 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: eaPIm8RN5/NOZ3QrqGegSydFWX68tN/lLBtBcUJBKiehSVeu4MgVAPA03cv42S6TLAXEGNS1raEU7JUFkk5PzkHj29BoBHHs4C5H12wTUvrP4reSC72Aayd2vtFgaEvZdMaJcBCgIBBnP5c8bi8FElYfL6VZAEQuBUDSlqi8obB9dkpgO4N+oOQqAfkvkSKqbixNK3XoLnoYEcNiWoaS+Z/6hHLpDVQqLovEzjKhCujbGb0kWFruRQtb41qfxX0+CvYF9jtrEAu2+Af3Z8zxzUlFoRfkEeT3EDz2NKfsJgyOv9vxtrTx2HC3WRQpGbr0IGokO3lJpcOouSBvTuH4zHpLq+eXDpGOWadNEQQMm/GSuFnQrCSyQwEHglCF63LOO3KVMdLOSPA5NSuKfRSNfFHTDVaBrPJU920paCVxOmA8+XjqYbfJynVYHhcXWEw3vCggMr03TPh4Am3psq8e2nsrpniks15sBagCrpnuPTMUegry6hnG1ulWc/kvRf2dTX0dRDjAW4BGwhz+8lFeAaD1dZwbPDc5u1aW5zIfNGykXJ3EYCo/CIGUZjKZGf1NBUBbydIqC2vvr+AnAWCenutfstTT29YU/TXVVluRYbdSEnwLegkEx5zdrqmoKRBeItLXat35/arBnoy2jsf7UQ== 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:(13230031)(921011)(38350700005); DIR:OUT; SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?8aKdcLFP30MPVzrtwqvsIO0MH2Qc?= =?utf-8?q?ykaZydCoePOn/M0KG2LHGn4OiNi6PsvSLfFaq72GhWKCud0ZIRwgck/74H7Phhnh8?= =?utf-8?q?g0FEMsequ1agrXLFJvCuvOJ/20Izx6kH5ZRTuAgI7BQ7MGhfz+aLJ7At+ZD4qyBhT?= =?utf-8?q?Sqg8RibfvvRMA8DHSJ/45K2+lsVm+ULe3CAbHcHzVeeRDF6HV742wF+PeOZ+6lTfS?= =?utf-8?q?HakX3M7xev9cZIceI8nssrh2/QLv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q1KAu561Y0Z2qFsa1GH3gpl8PbwE0F?= =?utf-8?q?hMYRODtrr/cmW2aEof7ULClgHE2ync+Q4VcDw3PY7xRammrlc45U7p2oH7TaUQh8l?= =?utf-8?q?iBgP5RHR4CHe9OFqgwBjyydBP+SPTUZIOwLd2s9mRERczXROC28iHI0+EbZdRxo1K?= =?utf-8?q?NNzSc2T+C5+bduT0wQ1Mi0JRBb03tJgAS77UNt5VUcnq7yrNuqntlO1zlr4Hvnhzc?= =?utf-8?q?JDa1LubxJYcNFWRC0ePwZW276sIJtIg2D6dtXQOwcvOkVvDSHIIjE06ThC9K+0k6e?= =?utf-8?q?tUwvhZ2kvTW36ikxI2BDasifzIhOzZu7gvQahDv6jCnY8LzNMK+nGWuUYKKmSld/s?= =?utf-8?q?UX2+mMh2u73O6BeHuy4M2Y0wbpAqh3HsP7FxtC/uSnpSIl7lyvnNbDS06b88+2VSt?= =?utf-8?q?gF5AucOQU9NARG9NQWKLDXpV2B/EwtVsAg=3D=3D?= X-OriginatorOrg: wolfvision.net X-MS-Exchange-CrossTenant-Network-Message-Id: 8fc60e02-f154-47d8-a8bb-08dc31f7e812 X-MS-Exchange-CrossTenant-AuthSource: DU0PR08MB9155.eurprd08.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Feb 2024 09:40:00.0778 (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: BG3TkoHUU7OxCQAqiMUp+mxR8w31F/b6PUPHrNjwVyNJY6wdQ4vfFOFjW4l8sGOkqxyr3LAg1zvXHUBYZvFki+j3EA4bGOmaUkTI3LNsqrA= X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB9PR08MB6763 The different variants of the Rockchip Camera Interface may feature various ports. Add a new header file with port definitions to avoid hardcoded constants in device tree sources. Signed-off-by: Michael Riesch --- include/dt-bindings/media/rockchip-cif.h | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/include/dt-bindings/media/rockchip-cif.h b/include/dt-bindings/media/rockchip-cif.h new file mode 100644 index 000000000000..37364ee1f7bc --- /dev/null +++ b/include/dt-bindings/media/rockchip-cif.h @@ -0,0 +1,12 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */ +/* + * Copyright (C) 2023 Michael Riesch + */ + +#ifndef __DT_BINDINGS_MEDIA_ROCKCHIP_CIF_H__ +#define __DT_BINDINGS_MEDIA_ROCKCHIP_CIF_H__ + +#define MEDIA_ROCKCHIP_CIF_DVP 0 +#define MEDIA_ROCKCHIP_CIF_MIPI 1 + +#endif /* __DT_BINDINGS_MEDIA_ROCKCHIP_CIF_H__ */