summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorChristian Lamparter <chunkeey@googlemail.com>2017-02-10 17:12:29 +0100
committerGuenter Roeck <linux@roeck-us.net>2017-02-10 21:35:08 -0800
commit87d08b11b1616cbc70c28c9d3601bd1a3642bae5 (patch)
tree41788a697924d73ce3048f89960ba437deb8bb28 /include
parente531ffc0ff796eca578367b1924b03103abdcca4 (diff)
downloadtalos-op-linux-87d08b11b1616cbc70c28c9d3601bd1a3642bae5.tar.gz
talos-op-linux-87d08b11b1616cbc70c28c9d3601bd1a3642bae5.zip
devicetree: add lm90 thermal_zone sensor support
This patch updates the LM90's devicetree definition to include the #thermal-sensor-cells property as well as the sensor constants in include/dt-bindings/thermal/lm90.h. Cc: Wei Ni <wni@nvidia.com> Acked-by: Rob Herring <robh@kernel.org> Signed-off-by: Christian Lamparter <chunkeey@googlemail.com> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'include')
-rw-r--r--include/dt-bindings/thermal/lm90.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/dt-bindings/thermal/lm90.h b/include/dt-bindings/thermal/lm90.h
new file mode 100644
index 000000000000..8c2e3095f704
--- /dev/null
+++ b/include/dt-bindings/thermal/lm90.h
@@ -0,0 +1,12 @@
+/*
+ * This header provides constants for the LM90 thermal bindings.
+ */
+
+#ifndef _DT_BINDINGS_THERMAL_LM90_H_
+#define _DT_BINDINGS_THERMAL_LM90_H_
+
+#define LM90_LOCAL_TEMPERATURE 0
+#define LM90_REMOTE_TEMPERATURE 1
+#define LM90_REMOTE2_TEMPERATURE 2
+
+#endif
OpenPOWER on IntegriCloud