Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1510752
| From | Clemens Gruber <clemens.gruber@pqgruber.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH v2 2/3] hwmon: (mcp3021) add devicetree bindings documentation |
| Date | 2016-10-28 00:50 +0200 |
| Message-ID | <sx1EJ-80D-1@gated-at.bofh.it> (permalink) |
| References | <sx1v4-7Xf-5@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
Document the devicetree bindings for the Microchip MCP3021/3221.
Signed-off-by: Clemens Gruber <clemens.gruber@pqgruber.com>
---
Documentation/devicetree/bindings/hwmon/mcp3021.txt | 21 +++++++++++++++++++++
1 file changed, 21 insertions(+)
create mode 100644 Documentation/devicetree/bindings/hwmon/mcp3021.txt
diff --git a/Documentation/devicetree/bindings/hwmon/mcp3021.txt b/Documentation/devicetree/bindings/hwmon/mcp3021.txt
new file mode 100644
index 0000000..294318b
--- /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 */
+};
--
2.10.1
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH v2 1/3] hwmon: (mcp3021) rework for DT support Clemens Gruber <clemens.gruber@pqgruber.com> - 2016-10-28 00:40 +0200
[PATCH v2 2/3] hwmon: (mcp3021) add devicetree bindings documentation Clemens Gruber <clemens.gruber@pqgruber.com> - 2016-10-28 00:50 +0200
Re: [PATCH v2 2/3] hwmon: (mcp3021) add devicetree bindings documentation Rob Herring <robh@kernel.org> - 2016-10-31 07:10 +0100
Re: [PATCH v2 1/3] hwmon: (mcp3021) rework for DT support Guenter Roeck <linux@roeck-us.net> - 2016-11-09 13:00 +0100
csiph-web