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
7title: Microchip MCP3021 A/D converter
8
9maintainers:
10  - Krzysztof Kozlowski <krzk@kernel.org>
11
12properties:
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
25required:
26  - compatible
27  - reg
28
29additionalProperties: false
30
31examples:
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    };
44