From patchwork Mon Jun 20 16:25:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Volodymyr Kharuk X-Patchwork-Id: 12887927 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 B4D9DCCA480 for ; Mon, 20 Jun 2022 16:27:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238891AbiFTQ1Z (ORCPT ); Mon, 20 Jun 2022 12:27:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S241950AbiFTQZ1 (ORCPT ); Mon, 20 Jun 2022 12:25:27 -0400 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55B631CFE3 for ; Mon, 20 Jun 2022 09:25:25 -0700 (PDT) Received: by mail-lf1-x134.google.com with SMTP id t24so5851260lfr.4 for ; Mon, 20 Jun 2022 09:25:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=melexis.com; s=google; h=date:from:to:subject:message-id:mime-version:content-disposition; bh=z6IG7iDBYEWEIDyzAV2E3paapBXfICc0LLMhOvCSlcU=; b=VRq/Z5ys7q4JNZX+amks9AomyDFhvNIfn6dMqEl6My09wXSqd7WVRQGYW6CwFcDP9y 5ySUJhKiXSG9/mHAH6NKGvDp1tbeLGdQVwegPMJfMbev0/u6mGBYqA9EX3N/u4hoF1Ey kTOkOFni6N6Ds/kONDaQlhGWcW813uG8GBPpkuh/BrFPzBtaughtTGQHC5uKeBUaAYHj gUvJpcvh/buBss7u5JkWoww/kxEJB9QzJDs/0JsKSEEPW/6u/ZNSj8yMfo8Pdek2YOYE 2fvQTEplN5DeCCAnSh66r/wbb6tYDr4Yy2usYTPvaY2bgAByZs9NSBldtyBJuVZeejhc XgnA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition; bh=z6IG7iDBYEWEIDyzAV2E3paapBXfICc0LLMhOvCSlcU=; b=m6NpOJeP3LrGkrM1Yj7pzDgZWiHYhyNMLQxOvFvZu+AYT5kVplkuCJn0FWr5TAUsPD cJryiFXy+5sasK3C1wshX16g7aDvcKBj5rcYAyRbB5jPvZg+RcvUrxMp/2oR1ew/lPoP Jxp5jxPL8r/Ii8Sgt9C0T/KakQHEQI84b0N2NT7nqnzU9+EjbKHuCoSLufia1zdlUPeS bQt3UZM5mb8WFMjftwQEeOoHFt8qKOud1Rcd9d7aM3dxOH0flXnJxAnc73i0e2XGdObn NajsvKpVIHA8fz4z8LMpFPziMsJU5Rnae8e4y9wbAr/MMu6vAILkjDL7MVgilBdQEMRw nViw== X-Gm-Message-State: AJIora/LmWE8LkEF+E8w/OUPFlJUN7K1aKrsZS8dtSOlOoHNKPa5lK6U YjFltLED6nwiFVE42oNylgF3YEVfu5uPqVOkmXfrYVcuK4E6rdOYOtD90LTul5D2HFusC2mf8px 8IKjXb+5n0NAep/GtIxar2q9Qn/cAlYeV7rhSO9lnCySsUwrj/vlDPfyuce4Y638dhd33vWlZ X-Google-Smtp-Source: AGRyM1v+2XFtjZxyC3uxBTsqXyxyHmRBuOXlXfXu2NQFnmnp3JAe1U6G7qBBr4EbFYDcZPZDoFxPhA== X-Received: by 2002:a05:6512:1385:b0:47f:781d:abc9 with SMTP id p5-20020a056512138500b0047f781dabc9mr1319050lfa.687.1655742323609; Mon, 20 Jun 2022 09:25:23 -0700 (PDT) Received: from vkh-ThinkPad-T490 ([91.192.183.26]) by smtp.gmail.com with ESMTPSA id v7-20020ac25b07000000b0047f6e91d4fesm552264lfn.141.2022.06.20.09.25.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 Jun 2022 09:25:23 -0700 (PDT) Date: Mon, 20 Jun 2022 19:25:21 +0300 From: Volodymyr Kharuk To: linux-media@vger.kernel.org, vkh@melexis.com, ays@melexis.com, mchehab@kernel.org, robh+dt@kernel.org, krzysztof.kozlowski+dt@linaro.org, hyun.kwon@xilinx.com, laurent.pinchart@ideasonboard.com, michal.simek@xilinx.com, kieran.bingham+renesas@ideasonboard.com, devicetree@vger.kernel.org Subject: [PATCH 3/6] media: v4l: ctrls: Add user control base for mlx7502x Message-ID: <20220620162521.GA14017@vkh-ThinkPad-T490> MIME-Version: 1.0 Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org From: Volodymyr Kharuk To: linux-media@vger.kernel.org Cc: Volodymyr Kharuk , Andrii Kyselov , Mauro Carvalho Chehab , Rob Herring , Krzysztof Kozlowski , Hyun Kwon , Laurent Pinchart , Michal Simek , Kieran Bingham , devicetree@vger.kernel.org Subject: [PATCH 3/6] media: v4l: ctrls: Add user control base for mlx7502x Date: Mon, 20 Jun 2022 19:24:34 +0300 Message-Id: X-Mailer: git-send-email 2.36.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Add a control base for mlx7502x and reserve 16 controls. ToF sensor requires a bunch of new user controls. Signed-off-by: Volodymyr Kharuk --- include/uapi/linux/v4l2-controls.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/uapi/linux/v4l2-controls.h b/include/uapi/linux/v4l2-controls.h index dfff69ed88f7..8f68d5b53430 100644 --- a/include/uapi/linux/v4l2-controls.h +++ b/include/uapi/linux/v4l2-controls.h @@ -225,6 +225,12 @@ enum v4l2_colorfx { */ #define V4L2_CID_USER_ISL7998X_BASE (V4L2_CID_USER_BASE + 0x1180) +/* + * The base for Melexis ToF 7502x driver controls. + * We reserve 16 controls for this driver. + */ +#define V4L2_CID_USER_MLX7502X_BASE (V4L2_CID_USER_BASE + 0x1190) + /* MPEG-class control IDs */ /* The MPEG controls are applicable to all codec controls * and the 'MPEG' part of the define is historical */