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