From patchwork Sun Feb 27 20:33:50 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 12762125 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 C60FFC433F5 for ; Sun, 27 Feb 2022 20:35:40 +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: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:In-Reply-To:References: List-Owner; bh=T8a9ecfRdvkmcWtOHd3zmnYCKIzQKZsPCrC4ITsEGmw=; b=K8mMq4n6GayWvS uUYy3+d9sdJGflcMBObiuq9PMLthdN7lWxZtOsE+MekvPzh4A3w+388M4tuKuAlUWYqSe7yMXf8MQ chrTrjz1Bu3JOLaOgiesiKskSlIXd+fz+RC9cdWU+NWFaPZIxJJr2hnllkoavCQrdj4cFMQ08MZID bcDhMv3SX0NAuvnfgXxInkqbl7JUXriDJIPu8/JCICzW+fSW5AYrVG9RzBnOQHi+xpzXKG/mh7DA0 iq/Xl3eVe17Q8OqHtk1lnkPvsYeAAzy6OSY0UhGV/3EVJUxYxQs2CUUuvQi0RuG8Br2xKCF6Hp5ku CViYxzT9BSqe1IF0ZCSA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1nOQFT-00A59P-SA; Sun, 27 Feb 2022 20:34:31 +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 1nOQF9-00A55Q-HB for linux-arm-kernel@lists.infradead.org; Sun, 27 Feb 2022 20:34:13 +0000 Received: from pendragon.lan (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 95841478; Sun, 27 Feb 2022 21:34:06 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1645994047; bh=dCm4hvIp+vzGElq2BpdvN8zxpXQC5nkO6nbJPgScX3Y=; h=From:To:Cc:Subject:Date:From; b=ac94/InGRSFx08w8zNBRAbNzIWko02IMkzsgcHGTyOo9QF9upj0ieoH3W4sGVM4LF +c3gVv3JVY4ixPcWRZmAu/uaUUuam1qFNBPFqPbhywjbzJWP+zyoXY+YyJpP0m3jJJ SzgEzaQQGTyo0UkWEPXenNd5IIxabQSDuza2mYVc= 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 0/2] dt-bindings: Add macros for video interface bus types Date: Sun, 27 Feb 2022 22:33:50 +0200 Message-Id: <20220227203352.17314-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220227_123411_774575_48CE9A0C X-CRM114-Status: GOOD ( 11.39 ) 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 Hello, This small patch series is the result of me getting a bus-type numerical value wrong in a device tree file and spending too long debugging the issue. Hopefully there's nothing controversial here. If the idea is accepted, and if desired, I can convert the DT sources to use the new macros. How should I then split that, one big patch, one patch per SoC vendor (easy for arm64, but how about arm ?), ... ? Laurent Pinchart (2): dt-bindings: media: Add macros for video interface bus types dt-bindings: Use new video interface bus type macros in examples .../display/bridge/analogix,anx7625.yaml | 3 ++- .../devicetree/bindings/media/i2c/mipi-ccs.yaml | 3 ++- .../bindings/media/i2c/ovti,ov772x.yaml | 3 ++- .../bindings/media/marvell,mmp2-ccic.yaml | 3 ++- .../bindings/media/microchip,xisc.yaml | 3 ++- .../devicetree/bindings/media/st,stm32-dcmi.yaml | 4 +++- include/dt-bindings/media/video-interfaces.h | 16 ++++++++++++++++ 7 files changed, 29 insertions(+), 6 deletions(-) create mode 100644 include/dt-bindings/media/video-interfaces.h