Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp1627252rdb; Tue, 20 Feb 2024 01:53:54 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUc5lHGY4iSl3V6OmLPG2x5FdCLqJBlQN5J7cfuvf84DJYoQ4cJQjaxQkYr9ih3Dc/XmL9NxZ7lD/2mQ7Nik21UltcoRCYQstFBGbLkBA== X-Google-Smtp-Source: AGHT+IEq1TZTSY8mGH0D0ORAo51oCLnEe3v/SSyeZQCwygC5/5sTOsJEYqZzYEtEENzucg16X82x X-Received: by 2002:a05:6358:5719:b0:176:5c75:b348 with SMTP id a25-20020a056358571900b001765c75b348mr17800001rwf.4.1708422834599; Tue, 20 Feb 2024 01:53:54 -0800 (PST) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id b11-20020a056a000a8b00b006e0f47da0e4si6102964pfl.280.2024.02.20.01.53.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 01:53:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-72710-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@wolfvision.net header.s=selector2 header.b=QZ8b+tbu; arc=fail (signature failed); spf=pass (google.com: domain of linux-kernel+bounces-72710-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-72710-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=wolfvision.net Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id E98F8B2160A for ; Tue, 20 Feb 2024 09:40:46 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 376E85FDD3; Tue, 20 Feb 2024 09:40:06 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=wolfvision.net header.i=@wolfvision.net header.b="QZ8b+tbu" 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 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 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit 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-kernel@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?B?OGFLZGNMRlAzME1QVnpydHdxdnNJTzBNSDJRY3lrYVp5ZENvZVBPbi9NMEtH?= =?utf-8?B?MkxIR240T2lOaTZQc3ZTTGZGYXE3MkdoV0tDdWQwWklSd2djay83NEg3UGho?= =?utf-8?B?bmg4ZzBGRU1zZXF1MWFnclhMRkp2Q3V2T0ovMjBJeng2a0g1WlJUdUFnSTdC?= =?utf-8?B?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FczNmlreEkyQkRhc2lmeklo?= =?utf-8?B?T3padTdndlFhaER2NmpDblk4THpOTUsrbkdXdVVZS0ttU2xkL3NVWDIrbU1o?= =?utf-8?B?MnU3M082QmVIdXk0TTJZMHdicEFxaDNIc1A3Rnh0Qy91U25wU0lsN2x5dm5O?= =?utf-8?B?YkRTMDZiODgrMlZTdGdGNUF1Y09RVTlOQVJHOU5RV0tMRFhwVjJCL0V3dFZz?= =?utf-8?B?QWc9PQ==?= 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__ */ -- 2.30.2