[PATCH 1/3] dt-bindings: media: i2c: dw9800: Redocument DW9800K
From: Griffin Kroah-Hartman
Date: Thu Sep 10 2026 - 11:43:56 EST
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 it's updated properties.
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 8e8d62436e0d..38db0764c0f7 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 000000000000..046c0a88bcef
--- /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)
+ default: 3
+
+ dongwoon,clock-presc:
+ 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
+ $ref: /schemas/types.yaml#/definitions/uint32
+ minimum: 0x00
+ maximum: 0x3f
+ default: 0x20
+
+required:
+ - compatible
+ - reg
+ - vdd-supply
+
+additionalProperties: false
+
+examples:
+ - |
+ i2c {
+ #address-cells = <1>;
+ #size-cells = <0>;
+
+ actuator@c {
+ compatible = "dongwoon,dw9800k";
+ reg = <0x0c>;
+
+ vdd-supply = <&pm8937_l17>;
+
+ dongwoon,sac-mode = <4>;
+ dongwoon,clock-presc = <0>;
+ dongwoon,timing-control = <16>;
+ };
+ };
--
2.55.0