From patchwork Sun Mar 6 17:39:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 12770758 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 A1DC9C433F5 for ; Sun, 6 Mar 2022 17:40:44 +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=Y3nDMYO5Dd5wavDH+T6mzlc+qhVkC34oGyw4xv3Qza0=; b=cw290qkhPmZ/UM 2+9tgw/1u609QPkPB4kb7+GqD2XEHPeDx3pKxjL1IKozPm/EaEcBPT9mkfLFyNDewG6GnwYPvQvmZ qrfWvl+utTbI8vvuhvQLyCcYSnYabyH3PjmxZFPfIukIzIxhHcoJfCbHz2GM9ZLwxb2tT90/+e/DW /zOhgAUDtOOjnfy9BGmGeHDljXZHN96P9UeJxUWg2MSqUwTF30hBVLgE7GUEVW+q4ompqhxRQ0ZSi 5gSd5ErcituocjXIRZqFlRxtJu6Hciq0c/7doXbjjxf9+TV93y5OyUGKnnrYsFQra151mLNMUdWk2 trL6WFWdtticgC9zF41w==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nQur5-00F4uO-6S; Sun, 06 Mar 2022 17:39:39 +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 1nQuqq-00F4md-0Q for linux-arm-kernel@lists.infradead.org; Sun, 06 Mar 2022 17:39:25 +0000 Received: from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 74A4F741; Sun, 6 Mar 2022 18:39:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1646588362; bh=ZiTUCPVoH8QCGEvf/MOMQSiOW/5yefTSHer42RcOTUQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=ml66c9gOGpYO7NklaJ8SsXCSwpOCDlRE5xvD5yyt148wxQn/sR3JKbiFPHEa19GY/ gUnxp1PRTpnhz7vNnivbxfW6gVFWwlO1CSshsewkLvBCwTkQ2b5nVLz58nEdzSCZcy 5egducbCvF6ON/YpI+RmFlQKkbTaWmicat2WxgK8= From: Laurent Pinchart To: devicetree@vger.kernel.org, linux-media@vger.kernel.org, dri-devel@lists.freedesktop.org Cc: linux-arm-kernel@lists.infradead.org, Rob Herring , Sakari Ailus , Jacopo Mondi , Eugen Hristev , Hugues Fruchet , Maxime Coquelin , Alexandre Torgue , Lad Prabhakar , Fabio Estevam , Shawn Guo Subject: [PATCH v2 1/3] dt-bindings: media: Add macros for video interface bus types Date: Sun, 6 Mar 2022 19:39:03 +0200 Message-Id: <20220306173905.22990-2-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20220306173905.22990-1-laurent.pinchart@ideasonboard.com> References: <20220306173905.22990-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-20220306_093924_222280_154425B0 X-CRM114-Status: GOOD ( 12.53 ) 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 --- Changes since v1: - Dual-license under GPL-2.0-only or MIT - Rename PARALLEL TO BT601 --- 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..4c3810edff4c --- /dev/null +++ b/include/dt-bindings/media/video-interfaces.h @@ -0,0 +1,16 @@ +/* SPDX-License-Identifier: (GPL-2.0-only OR MIT) */ +/* + * 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_BT601 5 +#define MEDIA_BUS_TYPE_BT656 6 + +#endif /* __DT_BINDINGS_MEDIA_VIDEO_INTERFACES_H__ */