Dongwoon Anatech DW9768 Voice Coil Motor (VCM) Lens
Schema identifier ($id): "http://devicetree.org/schemas/media/i2c/dongwoon,dw9768.yaml#"
Schema dialect ($schema): "http://devicetree.org/meta-schemas/core.yaml#"
Maintainers (maintainers): "Dongchun Zhu <dongchun.zhu@mediatek.com>"
The Dongwoon DW9768 is a single 10-bit digital-to-analog (DAC) converter with 100 mA output current sink capability. VCM current is controlled with a linear mode driver. The DAC is controlled via a 2-wire (I2C-compatible) serial interface that operates at clock rates up to 1MHz. This chip integrates Advanced Actuator Control (AAC) technology and is intended for driving voice coil lenses in camera modules.
Properties and child nodes (properties) #
compatible — required here #
Allowed values (enum): "dongwoon,dw9768", "giantec,gt9769"
reg — required here #
Maximum number of items (maxItems): 1
vin-supply — required here #
Definition of the regulator used as Digital I/O voltage supply.
vdd-supply — required here #
Definition of the regulator used as Digital core voltage supply.
dongwoon,aac-mode — not listed as required here #
Indication of AAC mode select.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 1, 2, 3, 5
Default value (default): 2
dongwoon,aac-timing — not listed as required here #
Number of AAC Timing count that controlled by one 6-bit period of vibration register AACT[5:0], the unit of which is 100 us.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Default value (default): 32
Minimum value (minimum): 0
Maximum value (maximum): 63
dongwoon,clock-presc — not listed as required here #
Indication of VCM internal clock dividing rate select, as one multiple factor to calculate VCM ring periodic time Tvib.
Shared schema rule ($ref): /schemas/types.yaml#/definitions/uint32
Allowed values (enum): 0, 1, 2, 3, 4, 5
Default value (default): 1
Required in this object (required): "compatible", "reg", "vin-supply", "vdd-supply"
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>;
dw9768: camera-lens@c {
compatible = "dongwoon,dw9768";
reg = <0x0c>;
vin-supply = <&mt6358_vcamio_reg>;
vdd-supply = <&mt6358_vcama2_reg>;
dongwoon,aac-timing = <0x39>;
};
};
Source notes #
Annotations retained from the schema source
Line 1: SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
Line 2: Copyright (c) 2020 MediaTek Inc.
Line 24: for DW9768 VCM
Line 25: for GT9769 VCM
Line 43: AAC2 mode(operation time# 0.48 x Tvib)
Line 44: AAC3 mode(operation time# 0.70 x Tvib)
Line 45: AAC4 mode(operation time# 0.75 x Tvib)
Line 46: AAC8 mode(operation time# 1.13 x Tvib)
Line 64: Dividing Rate - 2
Line 65: Dividing Rate - 1
Line 66: Dividing Rate - 1/2
Line 67: Dividing Rate - 1/4
Line 68: Dividing Rate - 8
Line 69: Dividing Rate - 4