Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 87d08b11 authored by Christian Lamparter's avatar Christian Lamparter Committed by Guenter Roeck
Browse files

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: default avatarRob Herring <robh@kernel.org>
Signed-off-by: default avatarChristian Lamparter <chunkeey@googlemail.com>
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent e531ffc0
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -33,6 +33,11 @@ Optional properties:
              LM90 "-ALERT" pin output.
              See interrupt-controller/interrupts.txt for the format.

- #thermal-sensor-cells: should be set to 1. See thermal/thermal.txt for
	      details. See <include/dt-bindings/thermal/lm90.h> for the
	      definition of the local, remote and 2nd remote sensor index
	      constants.

Example LM90 node:

temp-sensor {
@@ -41,4 +46,5 @@ temp-sensor {
	vcc-supply = <&palmas_ldo6_reg>;
	interrupt-parent = <&gpio>;
	interrupts = <TEGRA_GPIO(O, 4) IRQ_TYPE_LEVEL_LOW>;
	#thermal-sensor-cells = <1>;
}
+1 −0
Original line number Diff line number Diff line
@@ -7527,6 +7527,7 @@ S: Maintained
F:	Documentation/hwmon/lm90
F:	Documentation/devicetree/bindings/hwmon/lm90.txt
F:	drivers/hwmon/lm90.c
F:	include/dt-bindings/thermal/lm90.h

LM95234 HARDWARE MONITOR DRIVER
M:	Guenter Roeck <linux@roeck-us.net>
+12 −0
Original line number Diff line number Diff line
/*
 * 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