From patchwork Fri Nov 25 13:34:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Volodymyr Kharuk X-Patchwork-Id: 628676 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F3B14C43217 for ; Fri, 25 Nov 2022 13:34:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229770AbiKYNes (ORCPT ); Fri, 25 Nov 2022 08:34:48 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229772AbiKYNep (ORCPT ); Fri, 25 Nov 2022 08:34:45 -0500 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [IPv6:2a00:1450:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4396E27DE4 for ; Fri, 25 Nov 2022 05:34:40 -0800 (PST) Received: by mail-ej1-x629.google.com with SMTP id fy37so10340588ejc.11 for ; Fri, 25 Nov 2022 05:34:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=melexis.com; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=J0guOMRRiU07S3RCRZZ/cRWsp96Z6dhNpDXoYbOXm+g=; b=ahJYtAdDLUM+n1hPKrTLhTGAfZbGOD3xjHkwQBycyRtxueoLFUOn48XBdu+c40jA/6 r9QM8ZrRFLWbIiXKAt4pUECs28dfHpB26cDUbW9JnAugrlALb4UgxEJGlaMozIqM5U0Q p8ub1JuVQxZSZ/OonG5lISxn8qiKQz8wJjN3H7261Cr8kcmtrVnVkYoOvMTg4yjoho0P 6kSFhoC5OPpSJO17O686RWkq1RzC6KnF9JGNLwdyRUZByP3b3XZODcwtpErQpC57B8DA OK66TUS8NcfWmzN3yRIgjpDviwTvI+01CPjHHqkOTCIrzyc7EUjPriCh7R9Yq/xqz+We TP6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=J0guOMRRiU07S3RCRZZ/cRWsp96Z6dhNpDXoYbOXm+g=; b=vVwQEfv8B2tzT3vjUJgRtkCPP/U6mEbZmnDRvle7FN3Vabh709XK0IOVc//EK5YU80 2rhTTNZg/ddJPlgTVfb+SepPUVQs+kOO+l8DF6BxqNe0+s8ZZbyATJY7d57EtgPqsK0S qZP3V0TjXZQ6mjMB+di66+bwcGNxdlXXbjA3gDMNJd8smqf6Avg5u13OPQ2KzwyCWvnq jKsqnPD2YbyQsfVJMuyP5mrCyCakntye1AS6uJrAQFBl414qR0awQdOcMivnCkVZmM6s wnfWw/io4uQGrvWtzRbh/vUgVr3IhCEFxSEQi2st6kqjw3FrwNG9l8zSlGQhkesBStz5 xFIw== X-Gm-Message-State: ANoB5pmyf5vppI5BGKgsxQbBCwsUC4a/noDHmb8vwhJxnoOgGqlp/89R 3oCqwiI1csyql6+dDxAL1aQ39g== X-Google-Smtp-Source: AA0mqf6DCPpDHDCWR7DTpsK5Xjz8JfSjT4rihB0XHjie7PwbaFHPh/vaJpYLFMkTCPIXmsz7Y5DoTw== X-Received: by 2002:a17:906:79c4:b0:778:e3e2:8311 with SMTP id m4-20020a17090679c400b00778e3e28311mr17715291ejo.342.1669383278745; Fri, 25 Nov 2022 05:34:38 -0800 (PST) Received: from melexis ([2a02:2378:1085:b41d:1fad:f315:d8eb:738b]) by smtp.gmail.com with ESMTPSA id u13-20020aa7d88d000000b0045cf4f72b04sm1768648edq.94.2022.11.25.05.34.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Nov 2022 05:34:38 -0800 (PST) From: Volodymyr Kharuk To: Cc: Andrii Kyselov , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Laurent Pinchart , devicetree@vger.kernel.org, Hans Verkuil , Sakari Ailus , Benjamin Mugnier , Volodymyr Kharuk Subject: [PATCH v3 6/8] media: uapi: Add mlx7502x header file Date: Fri, 25 Nov 2022 15:34:09 +0200 Message-Id: X-Mailer: git-send-email 2.38.0 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@vger.kernel.org Define user controls for mlx7502x driver, add its documentation and update MAINTAINERS Signed-off-by: Volodymyr Kharuk --- .../userspace-api/media/drivers/index.rst | 1 + .../userspace-api/media/drivers/mlx7502x.rst | 28 +++++++++++++++++++ MAINTAINERS | 2 ++ include/uapi/linux/mlx7502x.h | 20 +++++++++++++ 4 files changed, 51 insertions(+) create mode 100644 Documentation/userspace-api/media/drivers/mlx7502x.rst create mode 100644 include/uapi/linux/mlx7502x.h diff --git a/Documentation/userspace-api/media/drivers/index.rst b/Documentation/userspace-api/media/drivers/index.rst index 32f82aed47d9..f49e1b64c256 100644 --- a/Documentation/userspace-api/media/drivers/index.rst +++ b/Documentation/userspace-api/media/drivers/index.rst @@ -37,5 +37,6 @@ For more details see the file COPYING in the source distribution of Linux. imx-uapi max2175 meye-uapi + mlx7502x omap3isp-uapi uvcvideo diff --git a/Documentation/userspace-api/media/drivers/mlx7502x.rst b/Documentation/userspace-api/media/drivers/mlx7502x.rst new file mode 100644 index 000000000000..6f4874ec010d --- /dev/null +++ b/Documentation/userspace-api/media/drivers/mlx7502x.rst @@ -0,0 +1,28 @@ +.. SPDX-License-Identifier: GPL-2.0 + +Melexis mlx7502x ToF camera sensor driver +========================================= + +The mlx7502x driver implements the following driver-specific controls: + +``V4L2_CID_MLX7502X_OUTPUT_MODE (menu)`` +---------------------------------------- + The sensor has two taps, which gather reflected light: A and B. + The control sets the way data should be put in a buffer. The most + common output mode is A-B which provides the best sunlight robustness. + +.. flat-table:: + :header-rows: 0 + :stub-columns: 0 + :widths: 1 4 + + * - ``(0)`` + - A minus B + * - ``(1)`` + - A plus B + * - ``(2)`` + - only A + * - ``(3)`` + - only B + * - ``(4)`` + - A and B (this config will change PAD format) diff --git a/MAINTAINERS b/MAINTAINERS index a2bc2ce53056..0a6dda8da6bc 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -13116,7 +13116,9 @@ M: Volodymyr Kharuk L: linux-media@vger.kernel.org S: Supported W: http://www.melexis.com +F: Documentation/userspace-api/media/drivers/mlx7502x.rst F: Documentation/userspace-api/media/v4l/ext-ctrls-tof.rst +F: include/uapi/linux/mlx7502x.h MELFAS MIP4 TOUCHSCREEN DRIVER M: Sangwon Jee diff --git a/include/uapi/linux/mlx7502x.h b/include/uapi/linux/mlx7502x.h new file mode 100644 index 000000000000..68014f550ed2 --- /dev/null +++ b/include/uapi/linux/mlx7502x.h @@ -0,0 +1,20 @@ +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ +/* + * Melexis 7502x ToF cameras driver. + * + * Copyright (C) 2021 Melexis N.V. + * + */ + +#ifndef __UAPI_MLX7502X_H_ +#define __UAPI_MLX7502X_H_ + +#include + +/* + * this is related to the taps in ToF cameras, + * usually A minus B is the best option + */ +#define V4L2_CID_MLX7502X_OUTPUT_MODE (V4L2_CID_USER_MLX7502X_BASE + 0) + +#endif /* __UAPI_MLX7502X_H_ */