Re: [PATCH 3/3] lm90: register with thermal zones

Rob Herring
2016-01-22T22:45:42Z

On Thu, Jan 21, 2016 at 08:34:37PM +0100, Stéphan Kochen wrote:
> Any lm90-driven node in the device tree can now be referenced in thermal
> zones. One thermal zone device is registered for each sensor present.
>
> Signed-off-by: Stéphan Kochen <stephan-j6uo2F6POYhmR6Xm/wNWPw@public.gmane.org>
> ---
> Documentation/devicetree/bindings/hwmon/lm90.txt | 8 ++++
> drivers/hwmon/lm90.c | 54 ++++++++++++++++++++++++
> 2 files changed, 62 insertions(+)
>
> diff --git a/Documentation/devicetree/bindings/hwmon/lm90.txt b/Documentation/devicetree/bindings/hwmon/lm90.txt
> index 045e94b..da9aae7 100644
> --- a/Documentation/devicetree/bindings/hwmon/lm90.txt
> +++ b/Documentation/devicetree/bindings/hwmon/lm90.txt
> @@ -28,6 +28,13 @@ Required node properties:
>
> - vcc-supply: vcc regulator for the supply voltage.
>
> +- #thermal-sensor-cells: Should be 1. See ../../thermal/thermal.txt for a
> + description of this property. Use the following
> + values to refer to a specific sensor:
> + 0: chip internal sensor
> + 1: external sensor
> + 2: second external sensor, if present

From my read of an LM90 datasheet, there is only an onchip sensor and a
single external one.

Rob