From patchwork Thu Jul 14 08:34:45 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Volodymyr Kharuk X-Patchwork-Id: 12917481 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 C6C40C433EF for ; Thu, 14 Jul 2022 08:35:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235697AbiGNIfF (ORCPT ); Thu, 14 Jul 2022 04:35:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58828 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235301AbiGNIfC (ORCPT ); Thu, 14 Jul 2022 04:35:02 -0400 Received: from mail-wr1-x430.google.com (mail-wr1-x430.google.com [IPv6:2a00:1450:4864:20::430]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 918DB3DBD2 for ; Thu, 14 Jul 2022 01:35:01 -0700 (PDT) Received: by mail-wr1-x430.google.com with SMTP id bu1so1540268wrb.9 for ; Thu, 14 Jul 2022 01:35:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=melexis.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HIfVkfWDWEihtJOSMcOP3bxYCtkKaDBe3n5wTHFJ/g8=; b=r303vIAhOO24cg7W65OvThs26PX6Nn5/U2NEc7XcX9hkQJr76/eAchj6ugb2t4L63L 2w5D4tzJbQs3l7c890pU+bkGASqz7EwUvmJ3Pv9hPs/Yhv6EPZqWFP1wKOFuFGyIQ+Zq cDzY2U6LpOOcJzeJsHDQtdwFTM1hY0obx/QiIE8BsOOzGjdhq+LHRbtgmeuYXIegTZ9I ZabiQG7Q1eUZs8eDEI0ibGatZTiKSRRFLlJarr0JJHEZOLk17D2qrUEEyH/8lRPS6aPn 9Z/CErdZyEAtUY0dGsI8JypFWiRtuhqjXD61Kiw+J/DY4SUvEBaKp6EEP2waUAfkmVbD LXkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HIfVkfWDWEihtJOSMcOP3bxYCtkKaDBe3n5wTHFJ/g8=; b=UUNpRovKFgDMaZxq8f1V0TKmsWqg1TU/DLKSfFr7cnmiWrvvxh5Pj2rSYiinfwjUWd 48nXqJnaehT995SQC7rvDmUya7y10m72EOluWY/mokqpkKkzMHPwmRg1pClGRLo2kAif 43YK23Ybpi40ULa0jIctLZCw3ubKtXt2eq7HuIyNOmEhpLWmZvIk2Xc+A5giNjg1G/qy HfgiNgWAiRjvt/C9+3do0xqn8zBpg5gKadfPHmUqzfzGf3YZiwsJ3lmc4XgxUYIKTmzo eyq4NtUyh4/TH8MjoQvv9DlEe+txA2ENpzuoXnwwUEfp2uGwQfqFEHfE71ycX1XqV684 hkUw== X-Gm-Message-State: AJIora+SW3Xsn4X9h7f1cudD9YoN2VxHDAw+ZzDeeMlWb2DdVYs46lNr jcvCPl6fd8jchwWFMdKJ3zrlOAiDl++vNTXcdZmDieRmDMKvKWcs3nZ7Q8YQpnhvZlQ2i2YQp7J bD4hA8S7NsViKYBWTW6Pe6y7sm5XAHCGer1j14f2XJUfTSHitGM0m+vJzBPGbDBHUj8p/2Cch X-Google-Smtp-Source: AGRyM1t2s6arbrxJoeBRWY8Kzvb9ENF8TacREy/uNg7ZYGfKwvIXxc8b0bPmKuD7ULZqNjQ+ixN5Gg== X-Received: by 2002:a05:6000:1367:b0:21d:75cd:5ae8 with SMTP id q7-20020a056000136700b0021d75cd5ae8mr7204188wrz.282.1657787700128; Thu, 14 Jul 2022 01:35:00 -0700 (PDT) Received: from melexis ([194.44.50.167]) by smtp.gmail.com with ESMTPSA id f1-20020adff981000000b0021d6d74a0ecsm843890wrr.96.2022.07.14.01.34.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Jul 2022 01:34:59 -0700 (PDT) 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 v2 3/6] media: v4l: ctrls: Add user control base for mlx7502x Date: Thu, 14 Jul 2022 11:34:45 +0300 Message-Id: <756a637c14f95b9a52c4feb0a00b8f90c221e94c.1657786765.git.vkh@melexis.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: References: MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 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 */