1c66ec88fSEmmanuel Vadot# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 2c66ec88fSEmmanuel Vadot# Copyright (c) 2020 MediaTek Inc. 3c66ec88fSEmmanuel Vadot%YAML 1.2 4c66ec88fSEmmanuel Vadot--- 5c66ec88fSEmmanuel Vadot$id: http://devicetree.org/schemas/media/i2c/dongwoon,dw9768.yaml# 6c66ec88fSEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml# 7c66ec88fSEmmanuel Vadot 88bab661aSEmmanuel Vadottitle: Dongwoon Anatech DW9768 Voice Coil Motor (VCM) Lens 9c66ec88fSEmmanuel Vadot 10c66ec88fSEmmanuel Vadotmaintainers: 11c66ec88fSEmmanuel Vadot - Dongchun Zhu <dongchun.zhu@mediatek.com> 12c66ec88fSEmmanuel Vadot 13c66ec88fSEmmanuel Vadotdescription: |- 14c66ec88fSEmmanuel Vadot The Dongwoon DW9768 is a single 10-bit digital-to-analog (DAC) converter 15c66ec88fSEmmanuel Vadot with 100 mA output current sink capability. VCM current is controlled with 16c66ec88fSEmmanuel Vadot a linear mode driver. The DAC is controlled via a 2-wire (I2C-compatible) 17c66ec88fSEmmanuel Vadot serial interface that operates at clock rates up to 1MHz. This chip 18c66ec88fSEmmanuel Vadot integrates Advanced Actuator Control (AAC) technology and is intended for 19c66ec88fSEmmanuel Vadot driving voice coil lenses in camera modules. 20c66ec88fSEmmanuel Vadot 21c66ec88fSEmmanuel Vadotproperties: 22c66ec88fSEmmanuel Vadot compatible: 23c66ec88fSEmmanuel Vadot enum: 24c66ec88fSEmmanuel Vadot - dongwoon,dw9768 # for DW9768 VCM 25c66ec88fSEmmanuel Vadot - giantec,gt9769 # for GT9769 VCM 26c66ec88fSEmmanuel Vadot 27c66ec88fSEmmanuel Vadot reg: 28c66ec88fSEmmanuel Vadot maxItems: 1 29c66ec88fSEmmanuel Vadot 30c66ec88fSEmmanuel Vadot vin-supply: 31c66ec88fSEmmanuel Vadot description: 32c66ec88fSEmmanuel Vadot Definition of the regulator used as Digital I/O voltage supply. 33c66ec88fSEmmanuel Vadot 34c66ec88fSEmmanuel Vadot vdd-supply: 35c66ec88fSEmmanuel Vadot description: 36c66ec88fSEmmanuel Vadot Definition of the regulator used as Digital core voltage supply. 37c66ec88fSEmmanuel Vadot 38c66ec88fSEmmanuel Vadot dongwoon,aac-mode: 39c66ec88fSEmmanuel Vadot description: 40c66ec88fSEmmanuel Vadot Indication of AAC mode select. 41*fac71e4eSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 42c66ec88fSEmmanuel Vadot enum: 43c66ec88fSEmmanuel Vadot - 1 # AAC2 mode(operation time# 0.48 x Tvib) 44c66ec88fSEmmanuel Vadot - 2 # AAC3 mode(operation time# 0.70 x Tvib) 45c66ec88fSEmmanuel Vadot - 3 # AAC4 mode(operation time# 0.75 x Tvib) 46c66ec88fSEmmanuel Vadot - 5 # AAC8 mode(operation time# 1.13 x Tvib) 47c66ec88fSEmmanuel Vadot default: 2 48c66ec88fSEmmanuel Vadot 49c66ec88fSEmmanuel Vadot dongwoon,aac-timing: 50c66ec88fSEmmanuel Vadot description: 51c66ec88fSEmmanuel Vadot Number of AAC Timing count that controlled by one 6-bit period of 52c66ec88fSEmmanuel Vadot vibration register AACT[5:0], the unit of which is 100 us. 53*fac71e4eSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 54c66ec88fSEmmanuel Vadot default: 0x20 55c66ec88fSEmmanuel Vadot minimum: 0x00 56c66ec88fSEmmanuel Vadot maximum: 0x3f 57c66ec88fSEmmanuel Vadot 58c66ec88fSEmmanuel Vadot dongwoon,clock-presc: 59c66ec88fSEmmanuel Vadot description: 60c66ec88fSEmmanuel Vadot Indication of VCM internal clock dividing rate select, as one multiple 61c66ec88fSEmmanuel Vadot factor to calculate VCM ring periodic time Tvib. 62*fac71e4eSEmmanuel Vadot $ref: /schemas/types.yaml#/definitions/uint32 63c66ec88fSEmmanuel Vadot enum: 64c66ec88fSEmmanuel Vadot - 0 # Dividing Rate - 2 65c66ec88fSEmmanuel Vadot - 1 # Dividing Rate - 1 66c66ec88fSEmmanuel Vadot - 2 # Dividing Rate - 1/2 67c66ec88fSEmmanuel Vadot - 3 # Dividing Rate - 1/4 68c66ec88fSEmmanuel Vadot - 4 # Dividing Rate - 8 69c66ec88fSEmmanuel Vadot - 5 # Dividing Rate - 4 70c66ec88fSEmmanuel Vadot default: 1 71c66ec88fSEmmanuel Vadot 72c66ec88fSEmmanuel Vadotrequired: 73c66ec88fSEmmanuel Vadot - compatible 74c66ec88fSEmmanuel Vadot - reg 75c66ec88fSEmmanuel Vadot - vin-supply 76c66ec88fSEmmanuel Vadot - vdd-supply 77c66ec88fSEmmanuel Vadot 78c66ec88fSEmmanuel VadotadditionalProperties: false 79c66ec88fSEmmanuel Vadot 80c66ec88fSEmmanuel Vadotexamples: 81c66ec88fSEmmanuel Vadot - | 82c66ec88fSEmmanuel Vadot 83c66ec88fSEmmanuel Vadot i2c { 84c66ec88fSEmmanuel Vadot #address-cells = <1>; 85c66ec88fSEmmanuel Vadot #size-cells = <0>; 86c66ec88fSEmmanuel Vadot 87c66ec88fSEmmanuel Vadot dw9768: camera-lens@c { 88c66ec88fSEmmanuel Vadot compatible = "dongwoon,dw9768"; 89c66ec88fSEmmanuel Vadot reg = <0x0c>; 90c66ec88fSEmmanuel Vadot 91c66ec88fSEmmanuel Vadot vin-supply = <&mt6358_vcamio_reg>; 92c66ec88fSEmmanuel Vadot vdd-supply = <&mt6358_vcama2_reg>; 93c66ec88fSEmmanuel Vadot dongwoon,aac-timing = <0x39>; 94c66ec88fSEmmanuel Vadot }; 95c66ec88fSEmmanuel Vadot }; 96c66ec88fSEmmanuel Vadot 97c66ec88fSEmmanuel Vadot... 98