hwmon: (lm70) add device tree support
authorRabin Vincent <rabin@rab.in>
Sat, 18 Jul 2015 22:29:14 +0000 (00:29 +0200)
committerGuenter Roeck <linux@roeck-us.net>
Sun, 9 Aug 2015 20:44:27 +0000 (13:44 -0700)
Allow the lm70 to be probed from a device tree.

Signed-off-by: Rabin Vincent <rabin@rab.in>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Documentation/devicetree/bindings/hwmon/lm70.txt [new file with mode: 0644]
drivers/hwmon/lm70.c

diff --git a/Documentation/devicetree/bindings/hwmon/lm70.txt b/Documentation/devicetree/bindings/hwmon/lm70.txt
new file mode 100644 (file)
index 0000000..e7fd921
--- /dev/null
@@ -0,0 +1,21 @@
+* LM70/TMP121/LM71/LM74 thermometer.
+
+Required properties:
+- compatible: one of
+               "ti,lm70"
+               "ti,tmp121"
+               "ti,lm71"
+               "ti,lm74"
+
+See Documentation/devicetree/bindings/spi/spi-bus.txt for more required and
+optional properties.
+
+Example:
+
+spi_master {
+       temperature-sensor@0 {
+               compatible = "ti,lm70";
+               reg = <0>;
+               spi-max-frequency = <1000000>;
+       };
+};
Simple merge