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