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 <[email protected]>
Acked-by: Rob Herring <[email protected]>
Signed-off-by: Christian Lamparter <[email protected]>
Signed-off-by: Guenter Roeck <[email protected]>
This commit is contained in:
Christian Lamparter 2017-02-10 17:12:29 +01:00 • committed by Guenter Roeck
commit 87d08b11b1
3 changed files with 19 additions and 0 deletions

View file

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