Re: [PATCH v4 1/3] dt-bindings: media: i2c: dw9800: Redocument DW9800K
From: Griffin Kroah-Hartman
Date: Mon Nov 30 2026 - 10:37:39 EST
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@xxxxxxxxxxxxx>
---
.../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@xxxxxxxxxxxxx>
+ - Griffin Kroah-Hartman <griffin.kroah@xxxxxxxxxxxxx>
+
+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