{"id":8818,"url":"https://patchwork.libcamera.org/api/1.1/patches/8818/?format=json","web_url":"https://patchwork.libcamera.org/patch/8818/","project":{"id":1,"url":"https://patchwork.libcamera.org/api/1.1/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":"<20200715011833.24600-13-laurent.pinchart@ideasonboard.com>","date":"2020-07-15T01:18:32","name":"[libcamera-devel,v2,12/13] dt/dtoverlays: imx219: Add parameter to set camera module rotation","commit_ref":null,"pull_url":null,"state":"accepted","archived":false,"hash":"8175cf562179a587d336ad7087598f13c722bb69","submitter":{"id":2,"url":"https://patchwork.libcamera.org/api/1.1/people/2/?format=json","name":"Laurent Pinchart","email":"laurent.pinchart@ideasonboard.com"},"delegate":{"id":14,"url":"https://patchwork.libcamera.org/api/1.1/users/14/?format=json","username":"pinchartl","first_name":"Laurent","last_name":"Pinchart","email":"laurent.pinchart@ideasonboard.com"},"mbox":"https://patchwork.libcamera.org/patch/8818/mbox/","series":[{"id":1108,"url":"https://patchwork.libcamera.org/api/1.1/series/1108/?format=json","web_url":"https://patchwork.libcamera.org/project/libcamera/list/?series=1108","date":"2020-07-15T01:18:21","name":"raspberrypi: Report sensor orientation through DT","version":2,"mbox":"https://patchwork.libcamera.org/series/1108/mbox/"}],"comments":"https://patchwork.libcamera.org/api/patches/8818/comments/","check":"pending","checks":"https://patchwork.libcamera.org/api/patches/8818/checks/","tags":{},"headers":{"Return-Path":"<libcamera-devel-bounces@lists.libcamera.org>","X-Original-To":"parsemail@patchwork.libcamera.org","Delivered-To":"parsemail@patchwork.libcamera.org","Received":["from lancelot.ideasonboard.com (lancelot.ideasonboard.com\n\t[92.243.16.209])\n\tby patchwork.libcamera.org (Postfix) with ESMTPS id 1B606BD790\n\tfor <parsemail@patchwork.libcamera.org>;\n\tWed, 15 Jul 2020 01:18:57 +0000 (UTC)","from lancelot.ideasonboard.com (localhost [IPv6:::1])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTP id DC44660981;\n\tWed, 15 Jul 2020 03:18:56 +0200 (CEST)","from perceval.ideasonboard.com (perceval.ideasonboard.com\n\t[213.167.242.64])\n\tby lancelot.ideasonboard.com (Postfix) with ESMTPS id 163BA6093B\n\tfor <libcamera-devel@lists.libcamera.org>;\n\tWed, 15 Jul 2020 03:18:50 +0200 (CEST)","from pendragon.bb.dnainternet.fi (81-175-216-236.bb.dnainternet.fi\n\t[81.175.216.236])\n\tby perceval.ideasonboard.com (Postfix) with ESMTPSA id 9DEF210F6;\n\tWed, 15 Jul 2020 03:18:49 +0200 (CEST)"],"Authentication-Results":"lancelot.ideasonboard.com;\n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=ideasonboard.com header.i=@ideasonboard.com\n\theader.b=\"lsIZdzOu\"; dkim-atps=neutral","DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com;\n\ts=mail; t=1594775929;\n\tbh=7P9NzvN+DZTuH/Nxx/FWMP8a11gb+FuiTvuL/pQzL/M=;\n\th=From:To:Cc:Subject:Date:In-Reply-To:References:From;\n\tb=lsIZdzOuMhEFUk87Th1u7xE87XBi8/9z0qSLVwHb9M0EmUzli9SCPsVBJbeGmCNd/\n\tMVn+2WAcrvVxvpWR8l1InIQ+WycSyGlChWh74gemlfzIr39u4JeuwtMnxKyMV5xOf7\n\tyJXPbM0Mmw35PzX+stg4kchVlBzeIJw1AkKmX2I0=","From":"Laurent Pinchart <laurent.pinchart@ideasonboard.com>","To":"Dave Stevenson <dave.stevenson@raspberrypi.com>","Date":"Wed, 15 Jul 2020 04:18:32 +0300","Message-Id":"<20200715011833.24600-13-laurent.pinchart@ideasonboard.com>","X-Mailer":"git-send-email 2.27.0","In-Reply-To":"<20200715011833.24600-1-laurent.pinchart@ideasonboard.com>","References":"<20200715011833.24600-1-laurent.pinchart@ideasonboard.com>","MIME-Version":"1.0","Subject":"[libcamera-devel] [PATCH v2 12/13] dt/dtoverlays: imx219: Add\n\tparameter to set camera module rotation","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>","Cc":"libcamera-devel@lists.libcamera.org","Content-Type":"text/plain; charset=\"us-ascii\"","Content-Transfer-Encoding":"7bit","Errors-To":"libcamera-devel-bounces@lists.libcamera.org","Sender":"\"libcamera-devel\" <libcamera-devel-bounces@lists.libcamera.org>"},"content":"Add a rotation DT overlay parameter to allow specifying the camera\nmodule mounting rotation. Set the default rotation to 180 as the module\nis typically mounted upside-down.\n\nSigned-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>\n---\n arch/arm/boot/dts/overlays/README             | 5 +++--\n arch/arm/boot/dts/overlays/imx219-overlay.dts | 6 ++++++\n 2 files changed, 9 insertions(+), 2 deletions(-)","diff":"diff --git a/arch/arm/boot/dts/overlays/README b/arch/arm/boot/dts/overlays/README\nindex 2e11964f33cb..914e9a34bdc2 100644\n--- a/arch/arm/boot/dts/overlays/README\n+++ b/arch/arm/boot/dts/overlays/README\n@@ -1433,8 +1433,9 @@ Name:   imx219\n Info:   Sony IMX219 camera module.\n         Uses Unicam 1, which is the standard camera connector on most Pi\n         variants.\n-Load:   dtoverlay=imx219\n-Params: <None>\n+Load:   dtoverlay=imx219,<param>=<val>\n+Params: rotation                Mounting rotation of the camera sensor (0 or\n+                                180)\n \n \n Name:   imx290\ndiff --git a/arch/arm/boot/dts/overlays/imx219-overlay.dts b/arch/arm/boot/dts/overlays/imx219-overlay.dts\nindex 3c2d3fac93d2..dce07b335c4e 100644\n--- a/arch/arm/boot/dts/overlays/imx219-overlay.dts\n+++ b/arch/arm/boot/dts/overlays/imx219-overlay.dts\n@@ -27,6 +27,8 @@\n \t\t\t\tVDIG-supply = <&imx219_vdig>;\t/* 1.8v */\n \t\t\t\tVDDL-supply = <&imx219_vddl>;\t/* 1.2v */\n \n+\t\t\t\trotation = <180>;\n+\n \t\t\t\tport {\n \t\t\t\t\timx219_0: endpoint {\n \t\t\t\t\t\tremote-endpoint = <&csi1_ep>;\n@@ -110,4 +112,8 @@\n \t\t\tcam0-pwdn      = <&imx219_vana>,\"gpio:4\";\n \t\t};\n \t};\n+\n+\t__overrides__ {\n+\t\trotation = <&imx219>,\"rotation:0\";\n+\t};\n };\n","prefixes":["libcamera-devel","v2","12/13"]}