diff options
author | Clemens Gruber <clemens.gruber@pqgruber.com> | 2016-10-28 01:33:44 +0300 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2016-12-03 00:28:09 +0300 |
commit | 10de07f446a6aea66c9fea937f8e3a498b1b6766 (patch) | |
tree | b61a6cd0bb6e70ec908931655fd93723ce97d542 /Documentation/devicetree/bindings/hwmon | |
parent | 00a0c905ab4b2b47372be8da6a8442dcd3681903 (diff) | |
download | linux-10de07f446a6aea66c9fea937f8e3a498b1b6766.tar.xz |
hwmon: (mcp3021) add devicetree bindings documentation
Document the devicetree bindings for the Microchip MCP3021/3221.
Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'Documentation/devicetree/bindings/hwmon')
-rw-r--r-- | Documentation/devicetree/bindings/hwmon/mcp3021.txt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/hwmon/mcp3021.txt b/Documentation/devicetree/bindings/hwmon/mcp3021.txt new file mode 100644 index 000000000000..294318ba6914 --- /dev/null +++ b/Documentation/devicetree/bindings/hwmon/mcp3021.txt @@ -0,0 +1,21 @@ +mcp3021 properties + +Required properties: +- compatible: Must be one of the following: + - "microchip,mcp3021" for mcp3021 + - "microchip,mcp3221" for mcp3221 +- reg: I2C address + +Optional properties: + +- reference-voltage-microvolt + Reference voltage in microvolt (uV) + +Example: + +mcp3021@4d { + compatible = "microchip,mcp3021"; + reg = <0x4d>; + + reference-voltage-microvolt = <4500000>; /* 4.5 V */ +}; |