All of lore.kernel.org
 help / color / mirror / Atom feed
From: Volodymyr Kharuk <vkh@melexis.com>
To: Benjamin Mugnier <benjamin.mugnier@foss.st.com>
Cc: Sakari Ailus <sakari.ailus@linux.intel.com>,
	Laurent Pinchart <laurent.pinchart@ideasonboard.com>,
	Andrii Kyselov <ays@melexis.com>,
	linux-media@vger.kernel.org,
	Mauro Carvalho Chehab <mchehab@kernel.org>,
	Rob Herring <robh+dt@kernel.org>,
	Krzysztof Kozlowski <krzysztof.kozlowski+dt@linaro.org>,
	devicetree@vger.kernel.org,
	Hans Verkuil <hverkuil-cisco@xs4all.nl>
Subject: Re: [PATCH v4 0/8] media: i2c: mlx7502x ToF camera support
Date: Mon, 6 Feb 2023 11:53:09 +0200	[thread overview]
Message-ID: <Y+DOBR0vLJHgONM1@melexis.com> (raw)
In-Reply-To: <f71e9386-8a6e-a546-fa26-5abe55e3eeff@foss.st.com>

Hi Benjamin,

> By the way, was the mailing list dropped from cc by mistake ?
No, I just wanted to send a remind about the patch to Sakari and Laurent.
Now it looks that this thread became more technical, so I am adding cc again.

> >> I took a glance already and the driver seems reasonably good but I'm
> >> concerned of the interface. How generic is it? I can't say to be an expert
> >> on these devices and we don't have any other ToF cameras yet. Is the
> >> precision (8 bits) of the control values enough?
> > Fairly, that it is an interesting question.
> > The frequency modulation defines the maximum range of object detection.
> > 1 MHz precision is what we need usually, as the maximum range is from
> > 1.5m(100Mhz) till 150(1MHz) meters then.
> > Usually, user applications use 60-80MHz(max range is 1.8 - 2.5meters).
> > Also, it is possible to have smaller step then 1 MHz, but it is not that practical.
> > I am ok switch to Hz and use u32. In that case we will not be limited for generic case.
> > 
> > Benjamin, what precision is better for frequency modulation in your case?
> 
> Good catch, we do require Hz precision for some frequencies we use.
> In other systems we use floats expressed as Mhz for this. As Linux only
> supports integers, switching it to u32 and express it as Hz is a good idea.
Ok, then I'll redo in next version.

-- 
--
BR,
Volodymyr Kharuk


      parent reply	other threads:[~2023-02-06  9:54 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-02 16:07 [PATCH v4 0/8] media: i2c: mlx7502x ToF camera support Volodymyr Kharuk
2022-12-02 16:07 ` [PATCH v4 1/8] media: uapi: ctrls: Add Time of Flight class controls Volodymyr Kharuk
2022-12-02 16:07 ` [PATCH v4 2/8] media: v4l: ctrls: Fill V4L2_CID_TOF_CLASS controls Volodymyr Kharuk
2022-12-02 16:07 ` [PATCH v4 3/8] media: Documentation: v4l: Add TOF class controls Volodymyr Kharuk
2022-12-02 16:07 ` [PATCH v4 4/8] media: v4l: ctrls-api: Allow array update in __v4l2_ctrl_modify_range Volodymyr Kharuk
2022-12-02 16:07 ` [PATCH v4 5/8] media: v4l: ctrls: Add user control base for mlx7502x Volodymyr Kharuk
2022-12-02 16:07 ` [PATCH v4 6/8] media: uapi: Add mlx7502x header file Volodymyr Kharuk
2022-12-02 16:07 ` [PATCH v4 7/8] media: dt-bindings: Add mlx7502x camera sensor Volodymyr Kharuk
2022-12-02 16:07 ` [PATCH v4 8/8] media: i2c: Add driver for mlx7502x ToF sensor Volodymyr Kharuk
2023-01-02 13:27 ` [PATCH v4 0/8] media: i2c: mlx7502x ToF camera support Volodymyr Kharuk
2023-01-02 13:48   ` Benjamin Mugnier
     [not found] ` <Y9DvUDQb84nz3qVc@melexis.com>
     [not found]   ` <Y9EW2jqRa47UZezR@kekkonen.localdomain>
     [not found]     ` <Y9E+hJ604i/ss/xR@melexis.com>
     [not found]       ` <f71e9386-8a6e-a546-fa26-5abe55e3eeff@foss.st.com>
2023-02-06  9:53         ` Volodymyr Kharuk [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=Y+DOBR0vLJHgONM1@melexis.com \
    --to=vkh@melexis.com \
    --cc=ays@melexis.com \
    --cc=benjamin.mugnier@foss.st.com \
    --cc=devicetree@vger.kernel.org \
    --cc=hverkuil-cisco@xs4all.nl \
    --cc=krzysztof.kozlowski+dt@linaro.org \
    --cc=laurent.pinchart@ideasonboard.com \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@kernel.org \
    --cc=robh+dt@kernel.org \
    --cc=sakari.ailus@linux.intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.