From: Griffin Kroah-Hartman <griffin.kroah@fairphone.com>
To: Krzysztof Kozlowski <krzk@kernel.org>
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>,
"Luca Weiss" <luca.weiss@fairphone.com>,
"Daniel Scally" <dan.scally@ideasonboard.com>,
"Sakari Ailus" <sakari.ailus@linux.intel.com>,
"Bjorn Andersson" <andersson@kernel.org>,
"Konrad Dybcio" <konradybcio@kernel.org>,
"Hans Verkuil" <hverkuil+cisco@kernel.org>,
linux-media@vger.kernel.org, devicetree@vger.kernel.org,
linux-kernel@vger.kernel.org, linux-arm-msm@vger.kernel.org,
stable@vger.kernel.org
Subject: Re: [PATCH v4 1/3] dt-bindings: media: i2c: dw9800: Redocument DW9800K
Date: Mon, 30 Nov 2026 16:37:28 +0100 [thread overview]
Message-ID: <0cbd841d-dbc0-4937-b9fe-9f6316cc48d3@fairphone.com> (raw)
In-Reply-To: <20261121-judicious-vengeful-ant-f9bcb1@quoll>
Hi Krzysztof,
On 11/21/26 11:43, Krzysztof Kozlowski wrote:
> On Thu, Nov 19, 2026 at 10:51:23AM +0100, Griffin Kroah-Hartman wrote:
>> The DW9800K's properties are too different to justify sharing the same
>> bindings file as the dw9719, Create a separate bindings documentation
>> for the Dongwoon Anatech DW9800K with its updated properties.
>>
>> More specifically:
>>
>> The DW9800K did not share the SAC1 and SAC6 modes
>> that the DW9719 used.
>>
>> Description of vcm-prescale does not match the calculations labeled in
>> the DW9800K datasheet for how clock diving rate is computed.
>>
>> New property timing-control introduced to offer more fine-tuned dividing
>> options available to the DW9800K.
>>
>> Signed-off-by: Griffin Kroah-Hartman <griffin.kroah@fairphone.com>
>> ---
>> .../bindings/media/i2c/dongwoon,dw9719.yaml | 1 -
>> .../bindings/media/i2c/dongwoon,dw9800k.yaml | 91 ++++++++++++++++++++++
>> 2 files changed, 91 insertions(+), 1 deletion(-)
>>
>> diff --git a/Documentation/devicetree/bindings/media/i2c/dongwoon,dw9719.yaml b/Documentation/devicetree/bindings/media/i2c/dongwoon,dw9719.yaml
>> index 8e8d62436e0d0c4f9af9e52262b23881abd37cec..38db0764c0f70ad49295dcddc182b7e100a68b29 100644
>> --- a/Documentation/devicetree/bindings/media/i2c/dongwoon,dw9719.yaml
>> +++ b/Documentation/devicetree/bindings/media/i2c/dongwoon,dw9719.yaml
>> @@ -21,7 +21,6 @@ properties:
>> - dongwoon,dw9718s
>> - dongwoon,dw9719
>> - dongwoon,dw9761
>> - - dongwoon,dw9800k
>>
>> reg:
>> maxItems: 1
>> diff --git a/Documentation/devicetree/bindings/media/i2c/dongwoon,dw9800k.yaml b/Documentation/devicetree/bindings/media/i2c/dongwoon,dw9800k.yaml
>> new file mode 100644
>> index 0000000000000000000000000000000000000000..99f3b506cf12c63ddef1e3d18fd59179a5e7800c
>> --- /dev/null
>> +++ b/Documentation/devicetree/bindings/media/i2c/dongwoon,dw9800k.yaml
>> @@ -0,0 +1,91 @@
>> +# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
>> +%YAML 1.2
>> +---
>> +$id: http://devicetree.org/schemas/media/i2c/dongwoon,dw9800k.yaml#
>> +$schema: http://devicetree.org/meta-schemas/core.yaml#
>> +
>> +title: Dongwoon Anatech DW9800K Bi-Direction Voice Coil Motor (Bi-VCM) Controller
>> +
>> +maintainers:
>> + - Luca Weiss <luca.weiss@fairphone.com>
>> + - Griffin Kroah-Hartman <griffin.kroah@fairphone.com>
>> +
>> +description:
>> + The Dongwoon DW9800K is a single 10-bit digital-to-analog converter with
>> + +-130 mA output current sink capability, designed for linear control of
>> + bi-directional voice coil motors (Bi-VCM) in camera lenses. This chip
>> + provides a Smart Actuator Control (SAC) mode intended for minimizing
>> + mechanical vibration.
>> +
>> +properties:
>> + compatible:
>> + enum:
>> + - dongwoon,dw9800k
>> +
>> + reg:
>> + maxItems: 1
>> +
>> + vdd-supply:
>> + description: VDD power supply, can range from 2.3V to 4.8V
>> +
>> + dongwoon,sac-mode:
>> + description: >
>> + Slew Rate Control mode to use: direct, LSC (Linear Slope Control) or
>> + SAC2-SAC5 (Smart Actuator Control).
>> + $ref: /schemas/types.yaml#/definitions/uint32
>> + enum:
>> + - 0 # Direct mode
>> + - 1 # LSC mode
>> + - 2 # SAC2 mode (operation time# 0.48 x Tvib)
>> + - 3 # SAC3 mode (operation time# 0.72 x Tvib)
>> + - 4 # SAC4 mode (operation time# 1.20 x Tvib)
>> + - 5 # SAC5 mode (operation time# 1.64 x Tvib)
>
> That's ABI break, although you explained the reasons, but ABI was
> released and I think this can easily support older ABI while fixing
> things: simply use old values without SAC1 and SAC6.
> OTOH, how did DTS work with value =2 (so SAC1) and =7 (SAC6)?
>
>
>> + default: 3
>> +
>> + dongwoon,vcm-prescale:
>> + description:
>> + Indication of VCM internal clock dividing rate select, as one multiple
>> + factor to calculate VCM ring periodic time Tvib.
>> + $ref: /schemas/types.yaml#/definitions/uint32
>> + enum:
>> + - 0 # Dividing Rate - 2
>> + - 1 # Dividing Rate - 1
>> + - 2 # Dividing Rate - 1/2
>> + - 3 # Dividing Rate - 1/4
>> + - 4 # Dividing Rate - 8
>> + - 5 # Dividing Rate - 4
>> + default: 1
>> +
>> + dongwoon,timing-control:
>> + description:
>> + In LSC mode (252 + value * 4) * divider value in microseconds
>> + In SAC mode (6.3 + value * 0.1) * divider value in milliseconds
>
> This should use property units, so microseconds.
>
> Best regards,
> Krzysztof
I dont have time to finish the next revision yet, but is this updated
bindings more in line with your perspective?
dongwoon,sac-scheme:
description: >
Slew Rate Control mode to use: direct, LSC (Linear Slope Control) or
SAC2-SAC5 (Smart Actuator Control).
$ref: /schemas/types.yaml#/definitions/string
enum:
- direct
- lsc # (operation time# Tvib)
- sac2 # (operation time# 0.48 x Tvib)
- sac3 # (operation time# 0.72 x Tvib)
- sac4 # (operation time# 1.20 x Tvib)
- sac5 # (operation time# 1.64 x Tvib)
dongwoon,vibration-period-us:
description:
Vibration period of the actuator (Tvib).
minimum: 1575
maximum: 100800
Thanks,
Griffin
next prev parent reply other threads:[~2026-11-30 15:37 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-19 9:51 [PATCH v4 0/3] Dongwoon DW9800K update patchset Griffin Kroah-Hartman
2026-11-19 9:51 ` [PATCH v4 1/3] dt-bindings: media: i2c: dw9800: Redocument DW9800K Griffin Kroah-Hartman
2026-11-21 10:43 ` Krzysztof Kozlowski
2026-11-30 15:37 ` Griffin Kroah-Hartman [this message]
2026-11-19 9:51 ` [PATCH v4 2/3] media: i2c: dw9719: Update DW9800K driver Griffin Kroah-Hartman
2026-11-21 10:45 ` Krzysztof Kozlowski
2026-11-19 9:51 ` [PATCH v4 3/3] arm64: dts: qcom: qcm6490-fairphone-fp5: Fix DW9800K support Griffin Kroah-Hartman
2026-11-20 8:35 ` Abel Vesa
2026-11-21 10:36 ` Krzysztof Kozlowski
2026-11-21 17:18 ` Abel Vesa
2026-11-21 10:37 ` Krzysztof Kozlowski
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=0cbd841d-dbc0-4937-b9fe-9f6316cc48d3@fairphone.com \
--to=griffin.kroah@fairphone.com \
--cc=andersson@kernel.org \
--cc=conor+dt@kernel.org \
--cc=dan.scally@ideasonboard.com \
--cc=devicetree@vger.kernel.org \
--cc=git@apitzsch.eu \
--cc=hverkuil+cisco@kernel.org \
--cc=konradybcio@kernel.org \
--cc=krzk+dt@kernel.org \
--cc=krzk@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=robh@kernel.org \
--cc=sakari.ailus@linux.intel.com \
--cc=stable@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®