From patchwork Wed Jul 15 01:18:31 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 8817 X-Patchwork-Delegate: laurent.pinchart@ideasonboard.com Return-Path: X-Original-To: parsemail@patchwork.libcamera.org Delivered-To: parsemail@patchwork.libcamera.org Received: from lancelot.ideasonboard.com (lancelot.ideasonboard.com [92.243.16.209]) by patchwork.libcamera.org (Postfix) with ESMTPS id B24E8BDB1C for ; Wed, 15 Jul 2020 01:18:56 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id 8437660994; Wed, 15 Jul 2020 03:18:56 +0200 (CEST) Authentication-Results: lancelot.ideasonboard.com; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="TzFjN5/X"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id AB57360944 for ; Wed, 15 Jul 2020 03:18:49 +0200 (CEST) Received: from pendragon.bb.dnainternet.fi (81-175-216-236.bb.dnainternet.fi [81.175.216.236]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 45BD1124E; Wed, 15 Jul 2020 03:18:49 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1594775929; bh=1diU5aE5DWuYtywAGz6dXOrc3H+M3QA/o5tlH1+0aFo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=TzFjN5/XFFmlCK+uenZUpt7VjveGUAfs7CxKWlkxQTSI49KO7DWHAkTYCQhTZAIiM +J7DFwCdCRthERfuX4BJAUZFFWLV91Q2NFm37n7aDxcjcypGE7Pj4LDDjdQy3w4DlH +soaayHY+zaSrR9dOhUUF7JIMkNkaUfMSdTZ5/C0= From: Laurent Pinchart To: Dave Stevenson Date: Wed, 15 Jul 2020 04:18:31 +0300 Message-Id: <20200715011833.24600-12-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 11/13] dt/dtoverlays: ov5647: Add parameter to set camera module rotation X-BeenThere: libcamera-devel@lists.libcamera.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: libcamera-devel@lists.libcamera.org Errors-To: libcamera-devel-bounces@lists.libcamera.org Sender: "libcamera-devel" Add a rotation DT overlay parameter to allow specifying the camera module mounting rotation. Signed-off-by: Laurent Pinchart --- arch/arm/boot/dts/overlays/README | 5 +++-- arch/arm/boot/dts/overlays/ov5647-overlay.dts | 4 ++++ 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/arch/arm/boot/dts/overlays/README b/arch/arm/boot/dts/overlays/README index eb561ef272e0..2e11964f33cb 100644 --- a/arch/arm/boot/dts/overlays/README +++ b/arch/arm/boot/dts/overlays/README @@ -1809,8 +1809,9 @@ Name: ov5647 Info: Omnivision OV5647 camera module. Uses Unicam 1, which is the standard camera connector on most Pi variants. -Load: dtoverlay=ov5647 -Params: +Load: dtoverlay=ov5647,= +Params: rotation Mounting rotation of the camera sensor (0 or + 180) Name: ov7251 diff --git a/arch/arm/boot/dts/overlays/ov5647-overlay.dts b/arch/arm/boot/dts/overlays/ov5647-overlay.dts index 5eba3cb9fb91..e721eab38eea 100644 --- a/arch/arm/boot/dts/overlays/ov5647-overlay.dts +++ b/arch/arm/boot/dts/overlays/ov5647-overlay.dts @@ -83,4 +83,8 @@ }; }; }; + + __overrides__ { + rotation = <&ov5647>,"rotation:0"; + }; };