GNU Linux-libre 6.1.90-gnu
[releases.git] / Documentation / devicetree / bindings / hwmon / microchip,mcp3021.yaml
1 # SPDX-License-Identifier: GPL-2.0-only or BSD-2-Clause
2 %YAML 1.2
3 ---
4 $id: http://devicetree.org/schemas/hwmon/microchip,mcp3021.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
6
7 title: Microchip MCP3021 A/D converter
8
9 maintainers:
10   - Krzysztof Kozlowski <krzk@kernel.org>
11
12 properties:
13   compatible:
14     enum:
15       - microchip,mcp3021
16       - microchip,mcp3221
17
18   reg:
19     maxItems: 1
20
21   reference-voltage-microvolt:
22     description:
23       VDD supply power and reference voltage
24
25 required:
26   - compatible
27   - reg
28
29 additionalProperties: false
30
31 examples:
32   - |
33     i2c {
34         #address-cells = <1>;
35         #size-cells = <0>;
36
37         adc@4d {
38             compatible = "microchip,mcp3021";
39             reg = <0x4d>;
40
41             reference-voltage-microvolt = <4500000>; /* 4.5 V */
42         };
43     };