Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp5463126rwr; Tue, 9 May 2023 01:38:10 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ4XqlB7KQB0hOGNdMs+fMXpiTPLpY6rmVGy4SuJ28W90fcTLiUCn08t6SbOiKbheScXTi5d X-Received: by 2002:a17:90a:a595:b0:247:14ac:4d3a with SMTP id b21-20020a17090aa59500b0024714ac4d3amr15149186pjq.20.1683621490491; Tue, 09 May 2023 01:38:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1683621490; cv=none; d=google.com; s=arc-20160816; b=O/DUCK1WL3RUNZ7hj87E2/c/GjwwLjj5DQoCjxNjNrq7CatKUktdLhukOS36+lr8S0 3XjbHK8/gClauYmfF9h5tLInRPQecZPMlaJS/RT6El67VUGa3ZGB+5EqzoeJ1DyQt/So a4TQol+dcBvUr080tc5AcTRGkqqfHTkaeU05CFd6AmDheZVmtXyq9GXPZEROU6ucH3WK RDx3BVrxlm+5QCPvM8WrHSg/5aeU6yy3MI4rG/y8K7ybnseHps0z3poe926xMdyGqLSN YuaXHpQCc7NO/QWzdUpg7yC9H5tTyA0XKPh9GGwRfzkWoGz17FQ1Bc9DqAtxDz8IeOPs /iPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:date:cc:to:from:subject:message-id:dkim-signature; bh=e/2yoJcSRuISeHduk4bEY1EayDoG+wyXuIJUSvaZUNw=; b=wzmVl5KR5WBcF5kCIbzyZ0XNyRgqSV2iPCn87CWPJ6znxItrf/5W7OOtBKqpgcOXFO Jt0JR089oAr5z45FGFIvuj4/wOr08xJ+Vmi0Ox4Rct/mPHUR3YW3mEWSNE/RnLwjRFzL 0tmdRsg9iwUdwjKG5GFed9XHFJf6l5spu5dXWPX9X2cpifrxuw1qplykXhpJe6EWgo6C KKTkDFzLEZAbytBRFa+7RUEQQbwmbEwHIMRCgGb4262Cli+0zE05QAglKcU7a6jqPdX2 B2XvcaK6uyi9BHnI6K41nswkhY8AhrkYFhrF3zpWxJngdghs++YW15OtfUYdOaFcAWq5 xbpg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kwkE+CAR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f28-20020a63381c000000b0052c6200e5e1si1030064pga.649.2023.05.09.01.37.55; Tue, 09 May 2023 01:38:10 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=kwkE+CAR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234655AbjEIIZn (ORCPT + 99 others); Tue, 9 May 2023 04:25:43 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40388 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229520AbjEIIZD (ORCPT ); Tue, 9 May 2023 04:25:03 -0400 Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A094CD87C; Tue, 9 May 2023 01:24:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1683620698; x=1715156698; h=message-id:subject:from:to:cc:date:mime-version: content-transfer-encoding; bh=I6eWs+Z/cQ7dIAU3foLfsuSl4im8KJV9KCABsD9OpQQ=; b=kwkE+CARt1v3T+fvTOzva53dCuJHQ2BBe59sz3CyIBKZG7upq3LI/t4b mFdtsqwYCLInUd/w+IQLZp0BSKcjCS0w5WdjM/JZRvPvATUoSHK6pbMBr mJ0AovI15O2UMRVt4ttCmdX6HLmP+9R240+cpenYb3UI64bVT2vfNLZZV t7vTISu8lwMmherc2DZ+e4n6PDq6qBM2J/FYW95nNh8hERLKMjr5Vo5PF zaayY7DSe25Htw+2ygS5rkrBag/Rq72VQxFuS5FAQGtEEaq0A6o4fOpQE dcYz/xrmsptmw1bS4kyNIVLmKNy9vKaJwMlyHN8AK+4R8I7+a9I2dEO/s w==; X-IronPort-AV: E=McAfee;i="6600,9927,10704"; a="334285812" X-IronPort-AV: E=Sophos;i="5.99,261,1677571200"; d="scan'208";a="334285812" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 May 2023 01:24:58 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10704"; a="873082191" X-IronPort-AV: E=Sophos;i="5.99,261,1677571200"; d="scan'208";a="873082191" Received: from dperchan-mobl1.ger.corp.intel.com (HELO terminus) ([143.185.115.141]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 May 2023 01:24:55 -0700 Message-ID: Subject: [PATCH v2] media: uapi: v4l: Intel metadata format update From: Dmitry Perchanov To: linux-media@vger.kernel.org Cc: mchehab@kernel.org, linux-kernel@vger.kernel.org, sakari.ailus@iki.fi, laurent.pinchart@ideasonboard.com, evgeni.raikhel@intel.com, demisrael@gmail.com, sakari.ailus@intel.com Date: Tue, 09 May 2023 11:24:53 +0300 User-Agent: Evolution 3.36.5-0ubuntu1 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE, SPF_NONE,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Update metadata structure for Intel RealSense UVC/MIPI cameras. Compliant to Intel Configuration version 3. Signed-off-by: Dmitry Perchanov --- .../media/v4l/pixfmt-meta-d4xx.rst | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/Documentation/userspace-api/media/v4l/pixfmt-meta-d4xx.rst b/D= ocumentation/userspace-api/media/v4l/pixfmt-meta-d4xx.rst index 4e437ba97a0e..b5decde640c1 100644 --- a/Documentation/userspace-api/media/v4l/pixfmt-meta-d4xx.rst +++ b/Documentation/userspace-api/media/v4l/pixfmt-meta-d4xx.rst @@ -12,7 +12,7 @@ Intel D4xx UVC Cameras Metadata Description =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D = -Intel D4xx (D435 and other) cameras include per-frame metadata in their UVC +Intel D4xx (D435, D455 and others) cameras include per-frame metadata in t= heir UVC payload headers, following the Microsoft(R) UVC extension proposal [1_]. T= hat means, that the private D4XX metadata, following the standard UVC header, = is organised in blocks. D4XX cameras implement several standard block types, @@ -26,6 +26,8 @@ V4L2_META_FMT_UVC with the only difference, that it also = includes proprietary payload header data. D4xx cameras use bulk transfers and only send one pay= load per frame, therefore their headers cannot be larger than 255 bytes. = +This document implements Intel Configuration version 3. + Below are proprietary Microsoft style metadata types, used by D4xx cameras, where all fields are in little endian order: = @@ -43,7 +45,7 @@ where all fields are in little endian order: * - __u32 ID - 0x80000000 * - __u32 Size - - Size in bytes (currently 56) + - Size in bytes (currently 60) * - __u32 Version - Version of this structure. The documentation herein corresponds to version xxx. The version number will be incremented when new field= s are @@ -72,8 +74,11 @@ where all fields are in little endian order: - Bottom border of the AE Region of Interest * - __u32 Preset - Preset selector value, default: 0, unless changed by the user - * - __u32 Laser mode + * - __u8 Emitter mode - 0: off, 1: on + * - __u8 RFU byte + * - __u16 LED Power + - Led power value 0-360 (F416 SKU) * - :cspan:`1` *Capture Timing* * - __u32 ID - 0x80000001 @@ -124,6 +129,14 @@ where all fields are in little endian order: - Requested frame rate per second * - __u16 Trigger - Byte 0: bit 0: depth and RGB are synchronised, bit 1: external tri= gger + * - __u16 Calibration count + * - __u8 GPIO input data + - GPIO readout + - Supported from FW 5.12.7.0 + * - __u32 Sub-preset info + - Sub-preset choice information + * - __u8 reserved + - RFU byte. = .. _1: = -- = 2.25.1 --------------------------------------------------------------------- Intel Israel (74) Limited This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.