From: Jean-Francois Dagenais <jeff.dagenais@gmail.com>
To: linux-pm@vger.kernel.org
Cc: daniel.lezcano@linaro.org, edubezval@gmail.com,
rui.zhang@intel.com,
Jean-Francois Dagenais <jeff.dagenais@gmail.com>
Subject: [PATCH 2/2] dt-bindings: thermal: generic-adc: make lookup-table optional
Date: Thu, 18 Apr 2019 12:37:33 -0400 [thread overview]
Message-ID: <20190418163733.17414-2-jeff.dagenais@gmail.com> (raw)
In-Reply-To: <20190418163733.17414-1-jeff.dagenais@gmail.com>
Signed-off-by: Jean-Francois Dagenais <jeff.dagenais@gmail.com>
---
.../devicetree/bindings/thermal/thermal-generic-adc.txt | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
diff --git a/Documentation/devicetree/bindings/thermal/thermal-generic-adc.txt b/Documentation/devicetree/bindings/thermal/thermal-generic-adc.txt
index d72355502b78..691a09db2fef 100644
--- a/Documentation/devicetree/bindings/thermal/thermal-generic-adc.txt
+++ b/Documentation/devicetree/bindings/thermal/thermal-generic-adc.txt
@@ -8,16 +8,22 @@ temperature using voltage-temperature lookup table.
Required properties:
===================
- compatible: Must be "generic-adc-thermal".
+- #thermal-sensor-cells: Should be 1. See ./thermal.txt for a description
+ of this property.
+Optional properties:
+===================
- temperature-lookup-table: Two dimensional array of Integer; lookup table
to map the relation between ADC value and
temperature. When ADC is read, the value is
looked up on the table to get the equivalent
temperature.
+
The first value of the each row of array is the
temperature in milliCelsius and second value of
the each row of array is the ADC read value.
-- #thermal-sensor-cells: Should be 1. See ./thermal.txt for a description
- of this property.
+
+ If not specified, driver assumes the ADC channel
+ gives milliCelsius directly.
Example :
#include <dt-bindings/thermal/thermal.h>
--
2.11.0
next prev parent reply other threads:[~2019-04-18 16:38 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-18 16:37 [PATCH 1/2] thermal: generic-adc: make lookup table optional Jean-Francois Dagenais
2019-04-18 16:37 ` Jean-Francois Dagenais [this message]
2019-05-11 18:56 ` [PATCH 2/2] dt-bindings: thermal: generic-adc: make lookup-table optional Eduardo Valentin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20190418163733.17414-2-jeff.dagenais@gmail.com \
--to=jeff.dagenais@gmail.com \
--cc=daniel.lezcano@linaro.org \
--cc=edubezval@gmail.com \
--cc=linux-pm@vger.kernel.org \
--cc=rui.zhang@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.