Merge tag 'timers-urgent-2020-12-27' of git://git.kernel.org/pub/scm/linux/kernel...
[linux-2.6-microblaze.git] / Documentation / devicetree / bindings / iio / potentiometer / adi,ad5272.yaml
1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/iio/potentiometer/adi,ad5272.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Analog Devices AD5272 digital potentiometer
8
9 maintainers:
10   - Phil Reid <preid@electromag.com.au>
11
12 description: |
13   Datasheet: https://www.analog.com/en/products/ad5272.html
14
15 properties:
16   compatible:
17     enum:
18       - adi,ad5272-020
19       - adi,ad5272-050
20       - adi,ad5272-100
21       - adi,ad5274-020
22       - adi,ad5274-100
23
24   reg:
25     maxItems: 1
26
27   reset-gpios:
28     description:
29       Active low signal to the AD5272 RESET input.
30
31 additionalProperties: false
32
33 required:
34   - compatible
35   - reg
36
37 examples:
38   - |
39     #include <dt-bindings/gpio/gpio.h>
40     i2c {
41         #address-cells = <1>;
42         #size-cells = <0>;
43
44         potentiometer@2f {
45             compatible = "adi,ad5272-020";
46             reg = <0x2F>;
47             reset-gpios = <&gpio3 6 GPIO_ACTIVE_LOW>;
48         };
49     };
50 ...