{"id":3738,"url":"https://patchwork.libcamera.org/api/patches/3738/?format=json","web_url":"https://patchwork.libcamera.org/patch/3738/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/projects/1/?format=json","name":"libcamera","link_name":"libcamera","list_id":"libcamera_core","list_email":"libcamera-devel@lists.libcamera.org","web_url":"","scm_url":"","webscm_url":""},"msgid":"<20200509090456.3496481-14-jacopo@jmondi.org>","date":"2020-05-09T09:04:56","name":"[libcamera-devel,v11,13/13] dt-bindings: Add media properties","commit_ref":null,"pull_url":null,"state":"not-applicable","archived":false,"hash":"a2beafab20c6f9c6eb62107141f2c918978c8d46","submitter":{"id":3,"url":"https://patchwork.libcamera.org/api/people/3/?format=json","name":"Jacopo Mondi","email":"jacopo@jmondi.org"},"delegate":{"id":15,"url":"https://patchwork.libcamera.org/api/users/15/?format=json","username":"jmondi","first_name":"Jacopo","last_name":"Mondi","email":"jacopo@jmondi.org"},"mbox":"https://patchwork.libcamera.org/patch/3738/mbox/","series":[{"id":889,"url":"https://patchwork.libcamera.org/api/series/889/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=889","date":"2020-05-09T09:04:43","name":"media: report camera properties","version":11,"mbox":"https://patchwork.libcamera.org/series/889/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/3738/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/3738/checks/","tags":{},"headers":{"Return-Path":"<jacopo@jmondi.org>","Received":["from relay5-d.mail.gandi.net (relay5-d.mail.gandi.net\n\t[217.70.183.197])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id A5CA2603E2\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tSat,  9 May 2020 11:02:29 +0200 (CEST)","from uno.homenet.telecomitalia.it (a-ur1-85.tin.it\n\t[212.216.150.148]) (Authenticated sender: jacopo@jmondi.org)\n\tby relay5-d.mail.gandi.net (Postfix) with ESMTPSA id E0AF91C0003;\n\tSat,  9 May 2020 09:02:26 +0000 (UTC)"],"X-Originating-IP":"212.216.150.148","From":"Jacopo Mondi <jacopo@jmondi.org>","To":"linux-media@vger.kernel.org (open list:MEDIA INPUT INFRASTRUCTURE\n\t(V4L/DVB)), libcamera-devel@lists.libcamera.org,\n\tMauro Carvalho Chehab <mchehab@kernel.org>,\n\tHans Verkuil <hverkuil-cisco@xs4all.nl>,\n\tSakari Ailus <sakari.ailus@linux.intel.com>,\n\tLaurent Pinchart <laurent.pinchart@ideasonboard.com>,\n\tRob Herring <robh@kernel.org>","Cc":"Jacopo Mondi <jacopo@jmondi.org>, tfiga@google.com, pavel@ucw.cz,\n\tdevicetree@vger.kernel.org","Date":"Sat,  9 May 2020 11:04:56 +0200","Message-Id":"<20200509090456.3496481-14-jacopo@jmondi.org>","X-Mailer":"git-send-email 2.26.1","In-Reply-To":"<20200509090456.3496481-1-jacopo@jmondi.org>","References":"<20200509090456.3496481-1-jacopo@jmondi.org>","MIME-Version":"1.0","Content-Transfer-Encoding":"8bit","Subject":"[libcamera-devel] [PATCH v11 13/13] dt-bindings: Add media\n\tproperties","X-BeenThere":"libcamera-devel@lists.libcamera.org","X-Mailman-Version":"2.1.29","Precedence":"list","List-Id":"<libcamera-devel.lists.libcamera.org>","List-Unsubscribe":"<https://lists.libcamera.org/options/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=unsubscribe>","List-Archive":"<https://lists.libcamera.org/pipermail/libcamera-devel/>","List-Post":"<mailto:libcamera-devel@lists.libcamera.org>","List-Help":"<mailto:libcamera-devel-request@lists.libcamera.org?subject=help>","List-Subscribe":"<https://lists.libcamera.org/listinfo/libcamera-devel>,\n\t<mailto:libcamera-devel-request@lists.libcamera.org?subject=subscribe>","X-List-Received-Date":"Sat, 09 May 2020 09:02:29 -0000"},"content":"Add a DT header file to contain definitions for standard media properties.\n\nThe file is named after:\nDocumentation/devicetree/bindings/media/video-interfaces.txt\nwhich contains the standard media properties definitions.\n\nInitially add three macros to define the supported 'orientation'\nproperty values.\n\nSigned-off-by: Jacopo Mondi <jacopo@jmondi.org>\n---\n\nI currently don't have users in mainline for this, I understand this implies\nthis is probably not going to be accepted. At the same time we don't have a\ncommon place for media-related definitions, which support properties defined in\nvideo-interfaces.txt\n\nI leave it here at the end of the series for discussions, but I'm fine dropping\nit from the series.\n\nThanks\n  j\n\n---\n include/dt-bindings/media/video-interfaces.h | 15 +++++++++++++++\n 1 file changed, 15 insertions(+)\n create mode 100644 include/dt-bindings/media/video-interfaces.h\n\n--\n2.26.1","diff":"diff --git a/include/dt-bindings/media/video-interfaces.h b/include/dt-bindings/media/video-interfaces.h\nnew file mode 100644\nindex 0000000000000..404c697d6bd6e\n--- /dev/null\n+++ b/include/dt-bindings/media/video-interfaces.h\n@@ -0,0 +1,15 @@\n+/* SPDX-License-Identifier: GPL-2.0-only */\n+/*\n+ * include/dt-bindings/media/video-interfaces.h\n+ *\n+ * Copyright (C) 2020 Jacopo Mondi <jacopo@jmondi.org>\n+ */\n+\n+#ifndef __DT_BINDINGS_MEDIA_VIDEO_INTERFACES_H__\n+#define __DT_BINDINGS_MEDIA_VIDEO_INTERFACES_H__\n+\n+#define FRONT_CAMERA\t\t<0>\n+#define BACK_CAMERA\t\t<1>\n+#define EXTERNAL_CAMERA\t\t<2>\n+\n+#endif /* __DT_BINDINGS_MEDIA_VIDEO_INTERFACES_H__ */\n","prefixes":["libcamera-devel","v11","13/13"]}