xref: /src/sys/contrib/device-tree/Bindings/media/i2c/adi,ad5820.yaml (revision 9c151e1fbf1a71a4912afa9693a39d55a00db4eb)
1# SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/media/i2c/adi,ad5820.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Analog Devices AD5820 autofocus coil
8
9maintainers:
10  - Pavel Machek <pavel@ucw.cz>
11
12description:
13  The AD5820 is a current sink driver designed for precise control of
14  voice coil motors (VCMs) in camera autofocus systems.
15
16properties:
17  compatible:
18    enum:
19      - adi,ad5820
20      - adi,ad5821
21      - adi,ad5823
22
23  reg:
24    maxItems: 1
25
26  enable-gpios:
27    maxItems: 1
28    description:
29      GPIO spec for the XSHUTDOWN pin. The XSHUTDOWN signal is active low,
30      a high level on the pin enables the device.
31
32  VANA-supply:
33    description: supply of voltage for VANA pin
34
35required:
36  - compatible
37  - reg
38  - VANA-supply
39
40additionalProperties: false
41
42examples:
43  - |
44    #include <dt-bindings/gpio/gpio.h>
45
46    i2c {
47        #address-cells = <1>;
48        #size-cells = <0>;
49        coil@c {
50            compatible = "adi,ad5820";
51            reg = <0x0c>;
52
53            enable-gpios = <&msmgpio 26 GPIO_ACTIVE_HIGH>;
54            VANA-supply = <&vaux4>;
55        };
56    };
57