summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/devicetree/bindings/hwmon/lm90.txt6
-rw-r--r--MAINTAINERS1
-rw-r--r--include/dt-bindings/thermal/lm90.h12
3 files changed, 19 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/hwmon/lm90.txt b/Documentation/devicetree/bindings/hwmon/lm90.txt
index e8632486b9ef..97581266e329 100644
--- a/Documentation/devicetree/bindings/hwmon/lm90.txt
+++ b/Documentation/devicetree/bindings/hwmon/lm90.txt
@@ -33,6 +33,11 @@ Optional properties:
33 LM90 "-ALERT" pin output. 33 LM90 "-ALERT" pin output.
34 See interrupt-controller/interrupts.txt for the format. 34 See interrupt-controller/interrupts.txt for the format.
35 35
36- #thermal-sensor-cells: should be set to 1. See thermal/thermal.txt for
37 details. See <include/dt-bindings/thermal/lm90.h> for the
38 definition of the local, remote and 2nd remote sensor index
39 constants.
40
36Example LM90 node: 41Example LM90 node:
37 42
38temp-sensor { 43temp-sensor {
@@ -41,4 +46,5 @@ temp-sensor {
41 vcc-supply = <&palmas_ldo6_reg>; 46 vcc-supply = <&palmas_ldo6_reg>;
42 interrupt-parent = <&gpio>; 47 interrupt-parent = <&gpio>;
43 interrupts = <TEGRA_GPIO(O, 4) IRQ_TYPE_LEVEL_LOW>; 48 interrupts = <TEGRA_GPIO(O, 4) IRQ_TYPE_LEVEL_LOW>;
49 #thermal-sensor-cells = <1>;
44} 50}
diff --git a/MAINTAINERS b/MAINTAINERS
index cfff2c9e3d94..ad5bfb441dec 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -7527,6 +7527,7 @@ S: Maintained
7527F: Documentation/hwmon/lm90 7527F: Documentation/hwmon/lm90
7528F: Documentation/devicetree/bindings/hwmon/lm90.txt 7528F: Documentation/devicetree/bindings/hwmon/lm90.txt
7529F: drivers/hwmon/lm90.c 7529F: drivers/hwmon/lm90.c
7530F: include/dt-bindings/thermal/lm90.h
7530 7531
7531LM95234 HARDWARE MONITOR DRIVER 7532LM95234 HARDWARE MONITOR DRIVER
7532M: Guenter Roeck <linux@roeck-us.net> 7533M: Guenter Roeck <linux@roeck-us.net>
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 @@
1/*
2 * This header provides constants for the LM90 thermal bindings.
3 */
4
5#ifndef _DT_BINDINGS_THERMAL_LM90_H_
6#define _DT_BINDINGS_THERMAL_LM90_H_
7
8#define LM90_LOCAL_TEMPERATURE 0
9#define LM90_REMOTE_TEMPERATURE 1
10#define LM90_REMOTE2_TEMPERATURE 2
11
12#endif