From patchwork Wed Dec 4 09:10:45 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jacopo Mondi X-Patchwork-Id: 11272495 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 5DB81138D for ; Wed, 4 Dec 2019 09:08:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 451F0206DF for ; Wed, 4 Dec 2019 09:08:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726313AbfLDJI5 (ORCPT ); Wed, 4 Dec 2019 04:08:57 -0500 Received: from relay11.mail.gandi.net ([217.70.178.231]:51721 "EHLO relay11.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725922AbfLDJI5 (ORCPT ); Wed, 4 Dec 2019 04:08:57 -0500 Received: from uno.lan (93-34-114-233.ip49.fastwebnet.it [93.34.114.233]) (Authenticated sender: jacopo@jmondi.org) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 38B3110000D; Wed, 4 Dec 2019 09:08:54 +0000 (UTC) From: Jacopo Mondi To: Mauro Carvalho Chehab , Hans Verkuil , Sakari Ailus , Laurent Pinchart , tfiga@google.com, pavel@ucw.cz Cc: Jacopo Mondi , linux-media@vger.kernel.org (open list:MEDIA INPUT INFRASTRUCTURE (V4L/DVB)) Subject: [PATCH v6 00/11] media: Report camera sensor properties Date: Wed, 4 Dec 2019 10:10:45 +0100 Message-Id: <20191204091056.4842-1-jacopo@jmondi.org> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Hello, this last iteration adds Rob's tag to the dt-bindings patches, Tomasz ack to the introduction of 'location' property and addresses some minor issues pointed out by Sakari. I would be glad if this series could be finally collected, as it has been extensively discussed already. v5 -> v6: - Add Rob's and Tomasz's tags - Return hdl->error from v4l2_ctrl_new_fwnode_properties() as suggested by Sakari - Update v4l2_fwnode_device_parse() documentation as suggested by Sakari v4 -> v5: - cc device tree mailing list on relevant patches - s/num-cols/max-col and s/num-lines/max-row in 4/11 v3 -> v4: - Minor reword in documentation of location and rotation properties - Fix V4L2_CID_CAMERA_SENSOR_ROTATION control documentation - Renamed helper in v4l2_ctrl_new_fwnode_properties() v2->v3: - Expand 'rotation' property description - s/device/system in properties description to make them applicable to cameras and flash LEDs - Expand the rotation control description - Split helper to parse properties and helper to register properties - Drop the example coreboot patch that add properties to the Soraka device ACPI tables Patches for the coreboot provided ACPI tables for two example sensors: https://jmondi.org/cgit/coreboot/commit/?id=53a5fc6450bd45992f14a41848b72350f257c151 https://jmondi.org/cgit/coreboot/commit/?id=2a6b9b51f0e2e7b4ca5f4eadf21df8468ebc1b3f Thanks j Jacopo Mondi (11): dt-bindings: video-interfaces: Document 'location' property media: v4l2-ctrl: Document V4L2_CID_CAMERA_SENSOR_LOCATION dt-bindings: video-interface: Expand rotation description media: v4l2-ctrl: Document V4L2_CID_CAMERA_SENSOR_ROTATION media: v4l2-ctrls: Add camera location and rotation media: v4l2-fwnode: Add helper to parse device properties include: v4l2-ctrl: Sort forward declarations media: v4l2-ctrls: Sort includes alphabetically media: v4l2-ctrls: Add helper to register properties media: i2c: ov5670: Parse and register properties media: i2c: ov13858: Parse and register properties .../bindings/media/video-interfaces.txt | 21 ++- .../media/uapi/v4l/ext-ctrls-camera.rst | 148 ++++++++++++++++++ drivers/media/i2c/ov13858.c | 11 ++ drivers/media/i2c/ov5670.c | 12 ++ drivers/media/v4l2-core/v4l2-ctrls.c | 52 +++++- drivers/media/v4l2-core/v4l2-fwnode.c | 42 +++++ include/media/v4l2-ctrls.h | 34 +++- include/media/v4l2-fwnode.h | 47 ++++++ include/uapi/linux/v4l2-controls.h | 7 + 9 files changed, 362 insertions(+), 12 deletions(-) --- 2.23.0