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>
This commit is contained in:
Christian Lamparter
2017-02-10 17:12:29 +01:00
committed by Guenter Roeck
parent e531ffc0ff
commit 87d08b11b1
3 changed files with 19 additions and 0 deletions

View File

@@ -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