From: Cengiz Can <cengiz@kernel.wtf>
To: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: "Alexandru Ardelean" <ardeleanalex@gmail.com>,
"Ekin Böke" <ekin_boke@arcelik.com>,
linux-iio@vger.kernel.org
Subject: Re: Control Register device tree binding request for Opt3001
Date: Thu, 18 Feb 2021 15:38:15 +0300 [thread overview]
Message-ID: <4e0b8e47a2644d304b2d1e6b2e087136@kernel.wtf> (raw)
In-Reply-To: <20210218121502.00002014@Huawei.com>
Hello Jonathan, Alexandru and Ekin
On 2021-02-18 15:15, Jonathan Cameron wrote:
>
> As described, what you want to control here is policy, not a
> characteristic
> of the hardware. Normally we don't use DT to make such decisions, as
> it should
> be controlled at runtime.
I'm by no means an expert on sensors and I don't fully understand the
distinction
of policy vs characteristic in this context.
Can you clarify a bit?
For example, many TFT drivers allow maximum-minimum brightness values in
devicetree
and even set a default brightness value. Totally within the specs of
vendor of course.
Since this is just a hardware register that can be changed, and possibly
never to be
modified (depending on the use case of course) during runtime, I would
like to be able
to set it once during initialization and forget about it.
Currently I have a oneshot systemd unit that echo's my desired
integration value and
I think that's a bit late for my application. (even with all the
priority and orderings set).
>
> So basically what Alex said :)
>
> Jonathan
>
Thank you
--
Cengiz Can
@cengiz_io
next prev parent reply other threads:[~2021-02-18 15:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-02-18 5:18 Control Register device tree binding request for Opt3001 Ekin Böke
2021-02-18 8:31 ` Matt Ranostay
2021-02-18 8:35 ` Alexandru Ardelean
2021-02-18 12:15 ` Jonathan Cameron
2021-02-18 12:38 ` Cengiz Can [this message]
2021-02-21 12:26 ` Jonathan Cameron
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=4e0b8e47a2644d304b2d1e6b2e087136@kernel.wtf \
--to=cengiz@kernel.wtf \
--cc=Jonathan.Cameron@huawei.com \
--cc=ardeleanalex@gmail.com \
--cc=ekin_boke@arcelik.com \
--cc=linux-iio@vger.kernel.org \
/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.