xref: /freebsd/sys/contrib/device-tree/Bindings/iio/potentiometer/microchip,mcp4531.yaml (revision 5ca8e32633c4ffbbcd6762e5888b6a4ba0708c6c)
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,mcp4531.yaml#
5$schema: http://devicetree.org/meta-schemas/core.yaml#
6
7title: Microchip mcp4531 and similar potentiometers.
8
9maintainers:
10  - Peter Rosin <peda@axentia.se>
11
12description: |
13  Family of I2C digital potentiometer
14  Datasheets at:
15  * volatile https://ww1.microchip.com/downloads/en/DeviceDoc/22096b.pdf
16  * non-volatile https://ww1.microchip.com/downloads/en/DeviceDoc/22107B.pdf
17  Part numbers as follows: mcp4ABC-XXX where
18  A =   5 (1 wiper), 6 (2 wipers)
19  B =   3 (7-bit, volatile), 4 (7-bit, non-volatile),
20        5 (8-bit, volatile), 6 (8-bit, non-volatile),
21  C:    1 (potentiometer), 2 (rheostat)
22  XXX = 502 (5 kOhms), 103 (10 kOhms), 503 (50 kOhms), 104 (100 kOhms)
23
24properties:
25  compatible:
26    enum:
27        # Ordering reflects part number + range, so 502 < 103 etc
28      - microchip,mcp4531-502
29      - microchip,mcp4531-103
30      - microchip,mcp4531-503
31      - microchip,mcp4531-104
32      - microchip,mcp4532-502
33      - microchip,mcp4532-103
34      - microchip,mcp4532-503
35      - microchip,mcp4532-104
36      - microchip,mcp4541-502
37      - microchip,mcp4541-103
38      - microchip,mcp4541-503
39      - microchip,mcp4541-104
40      - microchip,mcp4542-502
41      - microchip,mcp4542-103
42      - microchip,mcp4542-503
43      - microchip,mcp4542-104
44      - microchip,mcp4551-502
45      - microchip,mcp4551-103
46      - microchip,mcp4551-503
47      - microchip,mcp4551-104
48      - microchip,mcp4552-502
49      - microchip,mcp4552-103
50      - microchip,mcp4552-503
51      - microchip,mcp4552-104
52      - microchip,mcp4561-502
53      - microchip,mcp4561-103
54      - microchip,mcp4561-503
55      - microchip,mcp4561-104
56      - microchip,mcp4562-502
57      - microchip,mcp4562-103
58      - microchip,mcp4562-503
59      - microchip,mcp4562-104
60      - microchip,mcp4631-502
61      - microchip,mcp4631-103
62      - microchip,mcp4631-503
63      - microchip,mcp4631-104
64      - microchip,mcp4632-502
65      - microchip,mcp4632-103
66      - microchip,mcp4632-503
67      - microchip,mcp4632-104
68      - microchip,mcp4641-502
69      - microchip,mcp4641-103
70      - microchip,mcp4641-503
71      - microchip,mcp4641-104
72      - microchip,mcp4642-502
73      - microchip,mcp4642-103
74      - microchip,mcp4642-503
75      - microchip,mcp4642-104
76      - microchip,mcp4651-502
77      - microchip,mcp4651-103
78      - microchip,mcp4651-503
79      - microchip,mcp4651-104
80      - microchip,mcp4652-502
81      - microchip,mcp4652-103
82      - microchip,mcp4652-503
83      - microchip,mcp4652-104
84      - microchip,mcp4661-502
85      - microchip,mcp4661-103
86      - microchip,mcp4661-503
87      - microchip,mcp4661-104
88      - microchip,mcp4662-502
89      - microchip,mcp4662-103
90      - microchip,mcp4662-503
91      - microchip,mcp4662-104
92
93  reg:
94    maxItems: 1
95
96  "#io-channel-cells":
97    const: 1
98
99required:
100  - compatible
101  - reg
102
103additionalProperties: false
104
105examples:
106  - |
107    i2c {
108        #address-cells = <1>;
109        #size-cells = <0>;
110        dpot: dpot@28 {
111            compatible = "microchip,mcp4651-104";
112            reg = <0x28>;
113            #io-channel-cells = <1>;
114        };
115    };
116...
117