Dongwoon Anatech DW9719 Voice Coil Motor (VCM) Controller

Schema identifier ($id): "http://devicetree.org/schemas/media/i2c/dongwoon,dw9719.yaml#"

Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"

Maintainers (maintainers): "André Apitzsch <git@apitzsch.eu>"

The Dongwoon DW9718S/9719/9761 is a single 10-bit digital-to-analog converter with 100 mA output current sink capability, designed for linear control of voice coil motors (VCM) in camera lenses. This chip provides a Smart Actuator Control (SAC) mode intended for driving voice coil lenses in camera modules.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "dongwoon,dw9718s", "dongwoon,dw9719", "dongwoon,dw9761", "dongwoon,dw9800k"

reg — required here #

Maximum number of items (maxItems): 1

vdd-supply — required here #

VDD power supply

dongwoon,sac-mode — not listed as required here #

Slew Rate Control mode to use: direct, LSC (Linear Slope Control) or SAC1-SAC6 (Smart Actuator Control).

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Allowed values (enum): 0, 1, 2, 3, 4, 5, 6, 7

Default value (default): 4

dongwoon,vcm-prescale — not listed as required here #

Indication of VCM switching frequency dividing rate select.

Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32

Required in this object (required): "compatible", "reg", "vdd-supply"

All of these rules must match (allOf) #

Rule 1 #

Condition (if) #

Properties and child nodes (properties)

compatible — not listed as required here

Rule for matching array elements (contains)

Exact value (const): "dongwoon,dw9718s"

When the condition matches (then) #

Properties and child nodes (properties)

dongwoon,vcm-prescale — not listed as required here

The final frequency is 10 MHz divided by (value + 2).

Maximum value (maximum): 15

Default value (default): 0

Properties not matched by properties or patternProperties in this schema (additionalProperties) #

false

Not allowed by this rule.

Examples (examples) #

i2c {
    #address-cells = <1>;
    #size-cells = <0>;

    actuator@c {
        compatible = "dongwoon,dw9718s";
        reg = <0x0c>;

        vdd-supply = <&pm8937_l17>;

        dongwoon,sac-mode = <4>;
        dongwoon,vcm-prescale = <0>;
    };
};

Source notes #

Annotations retained from the schema source

Line 1: SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

Line 38: Direct mode

Line 39: LSC mode

Line 40: SAC1 mode (operation time# 0.32 x Tvib)

Line 41: SAC2 mode (operation time# 0.48 x Tvib)

Line 42: SAC3 mode (operation time# 0.72 x Tvib)

Line 43: SAC4 mode (operation time# 1.20 x Tvib)

Line 44: SAC5 mode (operation time# 1.64 x Tvib)

Line 45: SAC6 mode (operation time# 1.88 x Tvib)

Edit this page