From patchwork Sun Feb 27 20:33:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 12762127 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 69FDDC433F5 for ; Sun, 27 Feb 2022 20:35:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=l79FqJJelXLmXI4sZBfjAck7NbvlkgpcI08W6ni5HTM=; b=xvoKDeQgq69+JD t5Ajkt/X7qwI4t5cq0yBjNPaQPy/98jxqf59vKzZZSK3t2y+DZ/A/BVPrwjgMlWbD7s7cwhmjoH9a MAKyfeLC9GVQRp+f16uQ+RDJhvzlygmtnxbCPG5dLV8vwPDow/VGd1SzHYemzfeYgvCqMlLy1eslX 12qLmR0GPJ/LqHmMyvCiEKsawofW7UsJggaZjM/1F0/7FV67r6y/2q5KsEHhn/2TtadE94qFsGf1R eXWodf/DpfLR8GbKfrvMQunNhRE2johSO3yypGCLkrxWQRVu7Gf/x3WqT9Xp4AYnP/ua/+6PtFIRJ BgcngDsVMSixM1xMKyMw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nOQFB-00A56V-Lj; Sun, 27 Feb 2022 20:34:13 +0000 Received: from perceval.ideasonboard.com ([213.167.242.64]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1nOQF8-00A55R-Kn for linux-arm-kernel@lists.infradead.org; Sun, 27 Feb 2022 20:34:12 +0000 Received: from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 8C0B247C; Sun, 27 Feb 2022 21:34:07 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1645994048; bh=Rr8utHrbX6O5PABBy2xdpCwhkVudslIAeti8w/BasdM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=crGsVO2wWIVaIlUiPIpoSNipplBIBHyYjsQw3/ak0i6Mvl9Ua9BaVtrVPJgf6HPcA VCnkDvWK549xIYpsmeggdbGwWfhxQrk+xwzvTgXBcjA2xluYMJcGeUb6GRfbu+KMAt QiAyt/bVuk2rwaMdoTM+oe4XRb8nFW2OV9QpQ3ig= From: Laurent Pinchart To: devicetree@vger.kernel.org, linux-media@vger.kernel.org Cc: linux-arm-kernel@lists.infradead.org, Rob Herring , Sakari Ailus , Jacopo Mondi , Eugen Hristev , Hugues Fruchet , Maxime Coquelin , Alexandre Torgue Subject: [PATCH 1/2] dt-bindings: media: Add macros for video interface bus types Date: Sun, 27 Feb 2022 22:33:51 +0200 Message-Id: <20220227203352.17314-2-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220227203352.17314-1-laurent.pinchart@ideasonboard.com> References: <20220227203352.17314-1-laurent.pinchart@ideasonboard.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220227_123410_898889_776A440B X-CRM114-Status: GOOD ( 12.87 ) 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 a new dt-bindings/media/video-interfaces.h header that defines macros corresponding to the bus types from media/video-interfaces.yaml. This allows avoiding hardcoded constants in device tree sources. Signed-off-by: Laurent Pinchart --- include/dt-bindings/media/video-interfaces.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 include/dt-bindings/media/video-interfaces.h diff --git a/include/dt-bindings/media/video-interfaces.h b/include/dt-bindings/media/video-interfaces.h new file mode 100644 index 000000000000..e38058e1cca7 --- /dev/null +++ b/include/dt-bindings/media/video-interfaces.h @@ -0,0 +1,16 @@ +/* SPDX-License-Identifier: GPL-2.0-only */ +/* + * Copyright (C) 2022 Laurent Pinchart + */ + +#ifndef __DT_BINDINGS_MEDIA_VIDEO_INTERFACES_H__ +#define __DT_BINDINGS_MEDIA_VIDEO_INTERFACES_H__ + +#define MEDIA_BUS_TYPE_CSI2_CPHY 1 +#define MEDIA_BUS_TYPE_CSI1 2 +#define MEDIA_BUS_TYPE_CCP2 3 +#define MEDIA_BUS_TYPE_CSI2_DPHY 4 +#define MEDIA_BUS_TYPE_PARALLEL 5 +#define MEDIA_BUS_TYPE_BT656 6 + +#endif /* __DT_BINDINGS_MEDIA_VIDEO_INTERFACES_H__ */