hwmon: (ltc4151) Add devicetree binding for ltc4151
authorDaniel Golle <daniel@makrotopia.org>
Mon, 1 Aug 2016 10:08:58 +0000 (12:08 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 9 Sep 2016 04:34:16 +0000 (21:34 -0700)
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Documentation/devicetree/bindings/hwmon/ltc4151.txt [new file with mode: 0644]

diff --git a/Documentation/devicetree/bindings/hwmon/ltc4151.txt b/Documentation/devicetree/bindings/hwmon/ltc4151.txt
new file mode 100644 (file)
index 0000000..d008a5e
--- /dev/null
@@ -0,0 +1,18 @@
+LTC4151 High Voltage I2C Current and Voltage Monitor
+
+Required properties:
+- compatible: Must be "lltc,ltc4151"
+- reg: I2C address
+
+Optional properties:
+- shunt-resistor-micro-ohms
+       Shunt resistor value in micro-Ohms
+       Defaults to <1000> if unset.
+
+Example:
+
+ltc4151@6e {
+       compatible = "lltc,ltc4151";
+       reg = <0x6e>;
+       shunt-resistor-micro-ohms = <1500>;
+};