Analog Devices AD5820 autofocus coil

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

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

Maintainers (maintainers): "Pavel Machek <pavel@ucw.cz>"

The AD5820 is a current sink driver designed for precise control of voice coil motors (VCMs) in camera autofocus systems.

Properties and child nodes (properties) #

compatible — required here #

Allowed values (enum): "adi,ad5820", "adi,ad5821", "adi,ad5823"

reg — required here #

Maximum number of items (maxItems): 1

enable-gpios — not listed as required here #

Maximum number of items (maxItems): 1

GPIO spec for the XSHUTDOWN pin. The XSHUTDOWN signal is active low, a high level on the pin enables the device.

VANA-supply — required here #

supply of voltage for VANA pin

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

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

false

Not allowed by this rule.

Examples (examples) #

#include <dt-bindings/gpio/gpio.h>

i2c {
    #address-cells = <1>;
    #size-cells = <0>;
    coil@c {
        compatible = "adi,ad5820";
        reg = <0x0c>;

        enable-gpios = <&msmgpio 26 GPIO_ACTIVE_HIGH>;
        VANA-supply = <&vaux4>;
    };
};

Source notes #

Annotations retained from the schema source

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

Edit this page