xref: /freebsd/sys/contrib/device-tree/Bindings/hwmon/microchip,mcp3021.yaml (revision aa1a8ff2d6dbc51ef058f46f3db5a8bb77967145)
1*aa1a8ff2SEmmanuel Vadot# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
28cc087a1SEmmanuel Vadot%YAML 1.2
38cc087a1SEmmanuel Vadot---
48cc087a1SEmmanuel Vadot$id: http://devicetree.org/schemas/hwmon/microchip,mcp3021.yaml#
58cc087a1SEmmanuel Vadot$schema: http://devicetree.org/meta-schemas/core.yaml#
68cc087a1SEmmanuel Vadot
78cc087a1SEmmanuel Vadottitle: Microchip MCP3021 A/D converter
88cc087a1SEmmanuel Vadot
98cc087a1SEmmanuel Vadotmaintainers:
10c9ccf3a3SEmmanuel Vadot  - Krzysztof Kozlowski <krzk@kernel.org>
118cc087a1SEmmanuel Vadot
128cc087a1SEmmanuel Vadotproperties:
138cc087a1SEmmanuel Vadot  compatible:
148cc087a1SEmmanuel Vadot    enum:
158cc087a1SEmmanuel Vadot      - microchip,mcp3021
168cc087a1SEmmanuel Vadot      - microchip,mcp3221
178cc087a1SEmmanuel Vadot
188cc087a1SEmmanuel Vadot  reg:
198cc087a1SEmmanuel Vadot    maxItems: 1
208cc087a1SEmmanuel Vadot
218cc087a1SEmmanuel Vadot  reference-voltage-microvolt:
228cc087a1SEmmanuel Vadot    description:
238cc087a1SEmmanuel Vadot      VDD supply power and reference voltage
248cc087a1SEmmanuel Vadot
258cc087a1SEmmanuel Vadotrequired:
268cc087a1SEmmanuel Vadot  - compatible
278cc087a1SEmmanuel Vadot  - reg
288cc087a1SEmmanuel Vadot
298cc087a1SEmmanuel VadotadditionalProperties: false
308cc087a1SEmmanuel Vadot
318cc087a1SEmmanuel Vadotexamples:
328cc087a1SEmmanuel Vadot  - |
338cc087a1SEmmanuel Vadot    i2c {
348cc087a1SEmmanuel Vadot        #address-cells = <1>;
358cc087a1SEmmanuel Vadot        #size-cells = <0>;
368cc087a1SEmmanuel Vadot
378cc087a1SEmmanuel Vadot        adc@4d {
388cc087a1SEmmanuel Vadot            compatible = "microchip,mcp3021";
398cc087a1SEmmanuel Vadot            reg = <0x4d>;
408cc087a1SEmmanuel Vadot
418cc087a1SEmmanuel Vadot            reference-voltage-microvolt = <4500000>; /* 4.5 V */
428cc087a1SEmmanuel Vadot        };
438cc087a1SEmmanuel Vadot    };
44