xref: /linux/Documentation/devicetree/bindings/iio/potentiometer/microchip,mcp41010.yaml (revision cf21f328fcafacf4f96e7a30ef9dceede1076378)
1# SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
2%YAML 1.2
3---
4$id: http://devicetree.org/schemas/iio/potentiometer/microchip,mcp41010.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Microchip MCP41010/41050/41100/42010/42050/42100 Digital Potentiometer
8
9maintainers:
10  - Chris Coffey <cmc@babblebit.net>
11
12description: |
13  Datasheet: https://ww1.microchip.com/downloads/en/devicedoc/11195c.pdf
14
15properties:
16  compatible:
17    enum:
18      - microchip,mcp41010
19      - microchip,mcp41050
20      - microchip,mcp41100
21      - microchip,mcp42010
22      - microchip,mcp42050
23      - microchip,mcp42100
24
25  reg:
26    maxItems: 1
27
28required:
29  - compatible
30  - reg
31
32allOf:
33  - $ref: /schemas/spi/spi-peripheral-props.yaml#
34
35unevaluatedProperties: false
36
37examples:
38  - |
39    spi {
40        #address-cells = <1>;
41        #size-cells = <0>;
42
43        potentiometer@0 {
44            compatible = "microchip,mcp41010";
45            reg = <0>;
46            spi-max-frequency = <500000>;
47        };
48    };
49...
50