From patchwork Sat Jul 4 00:40:16 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Laurent Pinchart X-Patchwork-Id: 8591 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 D940CBFFE2 for ; Sat, 4 Jul 2020 00:40:38 +0000 (UTC) Received: from lancelot.ideasonboard.com (localhost [IPv6:::1]) by lancelot.ideasonboard.com (Postfix) with ESMTP id E4BA060D4D; Sat, 4 Jul 2020 02:40:37 +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="vCJiWRCu"; dkim-atps=neutral Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [IPv6:2001:4b98:dc2:55:216:3eff:fef7:d647]) by lancelot.ideasonboard.com (Postfix) with ESMTPS id 432C0603BB for ; Sat, 4 Jul 2020 02:40:36 +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 997ED29E; Sat, 4 Jul 2020 02:40:35 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1593823235; bh=xI5BrCM6GQAsDrf9gclhrGOFOwJE6zphDbSNSHfnqWo=; h=From:To:Cc:Subject:Date:From; b=vCJiWRCu/6c5E/svKc/t5QbjA2r8AGoDZrHuUbitQIYrPk91zqx35uihXnXfotUuF k2Bk0K1TLniMk8aK8g7HF0/V+5gpWF8S1aMIH3p/GeDsP5ssFh0BmtGjJh6Ml/gwPC 1zz+x2r59AbaS1SB8gcLgakTqSpgWavejIKZnIKk= From: Laurent Pinchart To: Dave Stevenson Date: Sat, 4 Jul 2020 03:40:16 +0300 Message-Id: <20200704004028.21153-1-laurent.pinchart@ideasonboard.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Subject: [libcamera-devel] [PATCH 00/12] raspberrypi: Report sensor orientation through DT 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" Hi Dave, This patch series reports sensor orientation through DT for the OV5647, IMX219 and IMX477. The first 8 patches are backported from mainline, while the last 4 patches are new. Patch 09/12 could possibly be skipped for now, as we don't use the rotation property in the ov5647 DT overlay. The patches are based on top of rpi-5.4.y. libcamera patches will follow shortly. Jacopo Mondi (8): media: dt-bindings: video-interfaces: Document 'orientation' property media: dt-bindings: video-interface: Replace 'rotation' description media: v4l2-ctrl: Document V4L2_CID_CAMERA_ORIENTATION media: v4l2-ctrl: Document V4L2_CID_CAMERA_SENSOR_ROTATION media: v4l2-ctrls: Add camera orientation and rotation media: v4l2-fwnode: Add helper to parse device properties media: v4l2-ctrls: Add helper to register properties media: i2c: imx219: Parse and register properties Laurent Pinchart (4): media: i2c: ov5647: Parse and register properties media: i2c: imx477: Parse and register properties dt/dtoverlays: imx219: Set sensor rotation dt/dtoverlays: imx477: Set sensor rotation .../bindings/media/video-interfaces.txt | 370 +++++++++++++++++- .../media/uapi/v4l/ext-ctrls-camera.rst | 151 +++++++ arch/arm/boot/dts/overlays/imx219-overlay.dts | 2 + arch/arm/boot/dts/overlays/imx477-overlay.dts | 2 + drivers/media/i2c/imx219.c | 12 +- drivers/media/i2c/imx477.c | 12 +- drivers/media/i2c/ov5647.c | 13 +- drivers/media/v4l2-core/v4l2-ctrls.c | 53 +++ drivers/media/v4l2-core/v4l2-fwnode.c | 42 ++ include/media/v4l2-ctrls.h | 26 ++ include/media/v4l2-fwnode.h | 47 +++ include/uapi/linux/v4l2-controls.h | 7 + 12 files changed, 731 insertions(+), 6 deletions(-)