Received: by 2002:a05:7412:798b:b0:fc:a2b0:25d7 with SMTP id fb11csp673977rdb; Thu, 22 Feb 2024 16:28:50 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUkomsQr6mxnVHuLfeDkHbOHiKjYSKyC4rrPmF0JH68/ncU248G7QX1LLS30v9vLtr0CMb0urm398Kk1xs4rtHQQ+2/txumzschR2FCHg== X-Google-Smtp-Source: AGHT+IFyJihA+k0SnZdzeQdVhDP/9wZ8OiMQPZloaJ5StAOT0bmzPKgUB0Cu/eA6WecJAcclyntn X-Received: by 2002:a05:622a:1009:b0:42c:7e8d:9972 with SMTP id d9-20020a05622a100900b0042c7e8d9972mr861000qte.2.1708648130518; Thu, 22 Feb 2024 16:28:50 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708648130; cv=pass; d=google.com; s=arc-20160816; b=dAWNjgxWBhdJEy0Dt8obOmhL53+eXkA/vNI394IMNr+FC5ctxj6eAMTv8CtD3XoLeD u1HxAdmmOGrqaRrxgMGjyapV4KPvz2mlDyAxHl0Sku9JqjCA/CsvOHbknJ6PW3ZhoqtW c5z61uZB6ozg3Gxez0EvV5TxeqU7cN7sRpv74f207slO5llPXoC70Y8WY68IJxYRF+Ve IkZQ14Mraiz4aW3j6MFE5cDfs+DywA2oJxt3gWDhNEyuaEziIsNKtfrjadKQwyR5eFXV dnSkwPuKRF97Pkx9kwQsYbGzZKqVBqQ2FZ78LkLPYLZKfF+4i+9WHhKR5ZJEDw/1TTTz a3bg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=4j2/sVj1OsdLR7SCMj83162DnO59YoB6c4Ioy6/XcEE=; fh=hkjtrie/i33NJWqYI9hYbBhkrvCtL/FZVBs0KdZgXHk=; b=cRRcii/EwFtsJ7tGMJivgiiqjpymNY36WFClKIfowHHxnYjmBI934bQA5MtGXGFTYD Rypt1KOz6/Rf2CfDCQOmY3gvjoFL0Ekfn4iTXJkx3vq5EQOrbMFHfwrd2LkE5+Y3owdw 658itwUmef9+XJMr7nwdBN/JMwdnhSzSbS9YdoABM1t2UAuIwzqXUl3pk1a7NawdWxYd tunfoAdeqS5nbkY/RJJaFiyAV5J2bgqQG/3aDsFpWrpLhwPBjIFIuplmYL74VEvjgJPr Cf/LlHavr4a0Xlle88XALdaOiUFPfyt+556S7CHpT+f9BqWbgcTKbBz8r9le6YZFHBtE D5/A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=M5QhEg8l; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-77577-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77577-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id y16-20020a05622a005000b0042dfd040b70si13672194qtw.110.2024.02.22.16.28.50 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Feb 2024 16:28:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-77577-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=M5QhEg8l; arc=pass (i=1 dkim=pass dkdomain=kernel.org); spf=pass (google.com: domain of linux-kernel+bounces-77577-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-77577-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org 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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 486B01C21F61 for ; Fri, 23 Feb 2024 00:28:50 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C31CF28EB; Fri, 23 Feb 2024 00:28:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="M5QhEg8l" Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 E6412372; Fri, 23 Feb 2024 00:28:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708648119; cv=none; b=iMrnr1O1RDKcTaEatDHm8K1xgbNgRry/dxar4tQRy2P2nhNEQOXt9IbTL7xaFJrBESaCXsOHp5cWs2SskMGqBEBxzRv7Z5VMn0dK5iz3WWITUAzjzq8Ev5kIzeuK3Y1uOjrTxX6k/LDE0K2SBs0g8W1pw9ljOK3iFpfCBYrYEQ4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708648119; c=relaxed/simple; bh=BIOShrfId+PvEScAHDccqecR5fsM4CjTGwPiQXwonvc=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=MrdJ+HiWhCQLVfTcPDUCoH3hTFTcFPXQSRAh0g7wshzT+kJsoT+H+9zjIXnIci/zMELgMo+YNR0aKARAnrB7IcTrp3h2PrPp5kItgTpKn+zw0oIKrAv5rkdogjhg1aK8awpgRgILwJr6BVuwuHSL6Hxxhs9nPbc5LCFZEffbLD4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=M5QhEg8l; arc=none smtp.client-ip=10.30.226.201 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1B646C433F1; Fri, 23 Feb 2024 00:28:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1708648118; bh=BIOShrfId+PvEScAHDccqecR5fsM4CjTGwPiQXwonvc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=M5QhEg8lYLfgHGOKjgLHo6tSne8/LTwZ5azFG7lFyilAjxip/d6iBXu9+fJFWMqPL PFm581Emk9QWzSse2+F+vpiBeTjnFnf3S8kntyM7axnA48cnU5Uiw2rJeNwBuWDt+v nmBlbkU39Nz9rGE56HCClBQK81Tf1vjWXdDGdd0beRo/vdyfDoySSz+UXgj6RjfY5u Z1TsM8MfdZSEJV7FG2mwW320NplpUd3IcUIfSExX/O4ra9NziqUxe+qKVhf3WwAK4Y pH/KmJ8SaVDY2F+bDagNIPjNc365gBAAwPYN9cN5b23Xv6qVN68QIUuPPKknu3F9d/ 4mbjfL/DJs1LA== Date: Thu, 22 Feb 2024 17:28:34 -0700 From: Rob Herring To: Michael Riesch Cc: Mehdi Djait , =?iso-8859-1?Q?Th=E9o?= Lebrun , Thomas Petazzoni , Laurent Pinchart , Mauro Carvalho Chehab , Krzysztof Kozlowski , Conor Dooley , Heiko Stuebner , Sakari Ailus , 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 Subject: Re: [PATCH 02/14] media: dt-bindings: media: rockchip-cif: add port definitions Message-ID: <20240223002834.GA3933946-robh@kernel.org> References: <20240220-v6-8-topic-rk3568-vicap-v1-0-2680a1fa640b@wolfvision.net> <20240220-v6-8-topic-rk3568-vicap-v1-2-2680a1fa640b@wolfvision.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240220-v6-8-topic-rk3568-vicap-v1-2-2680a1fa640b@wolfvision.net> On Tue, Feb 20, 2024 at 10:39:12AM +0100, Michael Riesch wrote: > 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. We generally don't do defines for 'port' numbering. I don't see a reason to start. > > 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 >