From: robh@kernel.org (Rob Herring)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH V5 2/2] thermal: imx: add i.MX7 thermal sensor support
Date: Thu, 1 Mar 2018 15:22:53 -0600 [thread overview]
Message-ID: <20180301212253.fp4gxes57t2m2tg2@rob-hp-laptop> (raw)
In-Reply-To: <1519859380-15878-2-git-send-email-Anson.Huang@nxp.com>
On Thu, Mar 01, 2018 at 07:09:40AM +0800, Anson Huang wrote:
> This patch adds i.MX7 thermal sensor support, most
> of the i.MX7 thermal sensor functions are same with
> i.MX6 except the registers offset/layout, so we move
> those registers offset/layout definitions to soc data
> structure.
>
> i.MX7 uses single calibration data @25C, the calibration
> data is located at OCOTP offset 0x4F0, bit[17:9], the
> formula is as below:
>
> Tmeas = (Nmeas - n1) + 25; n1 is the fuse value for 25C.
>
> Signed-off-by: Anson Huang <Anson.Huang@nxp.com>
> Signed-off-by: Bai Ping <ping.bai@nxp.com>
> Acked-by: Dong Aisheng <aisheng.dong@nxp.com>
> Acked-by: Shawn Guo <shawnguo@kernel.org>
> ---
> changes since V4:
> drop direct OCOTP register access for i.mx7d since it is a new added platform,
> only support reading ocotp values through the ocotp nvmem driver which handles clock.
> .../devicetree/bindings/thermal/imx-thermal.txt | 9 +-
> drivers/thermal/imx_thermal.c | 295 ++++++++++++++++-----
> 2 files changed, 239 insertions(+), 65 deletions(-)
Please add ack/reviewed-by's when posting new versions.
Rob
next prev parent reply other threads:[~2018-03-01 21:22 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-28 23:09 [PATCH V5 1/2] ARM: dts: imx7s: add temperature monitor support Anson Huang
2018-02-28 23:09 ` [PATCH V5 2/2] thermal: imx: add i.MX7 thermal sensor support Anson Huang
2018-03-01 21:22 ` Rob Herring [this message]
2018-03-02 2:03 ` Anson Huang
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=20180301212253.fp4gxes57t2m2tg2@rob-hp-laptop \
--to=robh@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox