From: Danila Tikhonov <danila@mainlining.org>
To: Griffin Kroah-Hartman <griffin.kroah@fairphone.com>,
Sakari Ailus <sakari.ailus@linux.intel.com>,
Luca Weiss <luca.weiss@fairphone.com>
Cc: "Mauro Carvalho Chehab" <mchehab@kernel.org>,
"Rob Herring" <robh@kernel.org>,
"Krzysztof Kozlowski" <krzk+dt@kernel.org>,
"Conor Dooley" <conor+dt@kernel.org>,
"André Apitzsch" <git@apitzsch.eu>,
"Daniel Scally" <dan.scally@ideasonboard.com>,
"Bjorn Andersson" <andersson@kernel.org>,
"Konrad Dybcio" <konradybcio@kernel.org>,
"Eugene Lepshy" <fekz115@gmail.com>,
"Vasiliy Doylov" <neko@altlinux.org>,
"Achill Gilgenast" <achill@achill.org>,
linux-media@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org,
~postmarketos/upstreaming@lists.sr.ht
Subject: Re: [PATCH RFT 2/3] media: i2c: dw9719: Add DW9800W support
Date: Sat, 8 Aug 2026 15:42:14 +0300 [thread overview]
Message-ID: <dc1040f9-0ffc-4e64-a154-ece99b16eea5@mainlining.org> (raw)
In-Reply-To: <3554d8d1-65f7-4556-8b99-1c03e0cdca53@fairphone.com>
Hi Griffin, Sakari,
Thank you for the clarification.
On 07/08/2026 17:30, Griffin Kroah-Hartman wrote:
> Hello Sakari, Danilla,
>
> On 05/08/2026 13:29, Sakari Ailus wrote:
>> Hi Danila, Griffin,
>>
>> On Tue, Aug 04, 2026 at 09:27:01PM +0300, Danila Tikhonov wrote:
>>> Hi Sakari,
>>>
>>> Thank you for your comment.
>>>
>>> On 04/08/2026 11:40, Sakari Ailus wrote:
>>>> Hi Danila,
>>>>
>>>> Thank you for the patch.
>>>>
>>>> On Sat, Aug 01, 2026 at 09:04:15PM +0300, Danila Tikhonov wrote:
>>>>> The DW9800W uses the same chip ID and register layout as the DW9800K,
>>>>> but requires different default VCM frequency value.
>>>> Is this a real difference between the two models or what fits for the
>>>> attached lens? Too bad the datasheet isn't publicly available. :-(
>>>>
>>>> At least the differing default and constraints for
>>>> dongwoon,vcm-prescale
>>>> needs to be documented in bindings.
>>> I share your skepticism and have essentially the same concerns. Since I
>>> do not have the DW9800K datasheet, I cannot say with certainty how it
>>> differs from the DW9800W.
>> Indeed. The limits should have been added for dw9800k, too, but I
>> guess I
>> missed this in review. :-\
>>
>>> In particular, the parameter referred to as the VCM frequency in the
>>> driver is used to derive the SACT value. For the DW9800W, SACT[5:0]
>>> defines the actuator resonance period in SAC mode and the one-step
>>> period in LSC mode. The datasheet gives the corresponding formulas as:
>>> - tVIB = 6.3 ms + SACT * 0.1 ms
>>> - LSC 1-step period = 252 µs + SACT * 4 µs
>>>
>>> Therefore, the default value may differ between the DW9800K and DW9800W
>>> if the formulas or timing characteristics used to calculate SACT are
>>> different.
>> Griffin, would you be able to comment this?
>
> After checking on my side, DW9800W and K are almost identical in both
> structure
> and register values, including how tVIB and tLSC are calculated,
> DW9800K has an extra
> register that can change the output current to 130mA but we don't ever
> use that.
>
> We didn't have a datasheet when working on the DW9800k so we had to go
> off of
> the downstream driver during runtime to get our register values. The
> datasheet is a
> much more reliable source to be using for this instead.
>
> My colleague has already identified ways to fix the bindings, which we
> will
> tackle ourselves.
>
I'm glad you were able to clarify the situation, as this should help us
handle both IC variants correctly.
>> Another matter: the comment on dw9800k says there's no device ID. So is
>> there a device ID that wasn't just checked earlier or is there really no
>> device ID?
>
> Indeed, it turns out the DW9800K DOES have an info register, which
> should be
> 0xEB, that's on us for not updating it after we received more
> documentation.
>
Given this, and assuming everyone agrees, I think it would make sense
for me to leave the DW9800K untouched in the next version of this patch
series. Since it turns out that the DW9800K has a different Chip ID, you
can fix the Chip ID check for it separately based on the information you
have.
One point is still unclear to me, though: is the default VCM frequency
the same for both ICs, or does it differ between them?
> Thanks for drawing our attention to this! Nice patch.
>
> Griffin
>
---
Best regards,
Danila
next prev parent reply other threads:[~2026-08-08 12:42 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-01 18:04 [PATCH RFT 0/3] Add UW Camera Actuator support for Nothing Phone (1) Danila Tikhonov
2026-08-01 18:04 ` [PATCH RFT 1/3] dt-bindings: media: i2c: dw9719: Document DW9800W Danila Tikhonov
2026-08-04 8:29 ` Krzysztof Kozlowski
2026-08-01 18:04 ` [PATCH RFT 2/3] media: i2c: dw9719: Add DW9800W support Danila Tikhonov
2026-08-01 19:03 ` Neko
2026-08-04 8:40 ` Sakari Ailus
2026-08-04 18:27 ` Danila Tikhonov
2026-08-05 11:29 ` Sakari Ailus
2026-08-07 14:30 ` Griffin Kroah-Hartman
2026-08-08 12:42 ` Danila Tikhonov [this message]
2026-08-01 18:04 ` [PATCH RFT 3/3] arm64: dts: qcom: sm7325-nothing-spacewar: Add UW camera actuator Danila Tikhonov
2026-08-01 19:02 ` Neko
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=dc1040f9-0ffc-4e64-a154-ece99b16eea5@mainlining.org \
--to=danila@mainlining.org \
--cc=achill@achill.org \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=dan.scally@ideasonboard.com \
--cc=devicetree@vger.kernel.org \
--cc=fekz115@gmail.com \
--cc=git@apitzsch.eu \
--cc=griffin.kroah@fairphone.com \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=linux-arm-msm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=luca.weiss@fairphone.com \
--cc=mchehab@kernel.org \
--cc=neko@altlinux.org \
--cc=robh@kernel.org \
--cc=sakari.ailus@linux.intel.com \
--cc=~postmarketos/upstreaming@lists.sr.ht \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox