From: Dmitry Osipenko <digetx@gmail.com>
To: Linus Walleij <linus.walleij@linaro.org>,
Jonathan Cameron <jic23@kernel.org>,
"linux-iio@vger.kernel.org" <linux-iio@vger.kernel.org>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Svyatoslav Ryhel <clamor95@gmail.com>
Subject: BUG: iio: mpu3050: Wrong temperature scale
Date: Mon, 19 Apr 2021 09:06:13 +0300 [thread overview]
Message-ID: <483ac17b-705a-38c3-54ee-7f0089262c03@gmail.com> (raw)
Hello,
Svyatoslav and me found that the MPU3050 IIO driver reports temperature
that is x10 larger than it should be on Asus Transformer TF201 and Acer
A500 tablet devices running mainline kernel. The driver uses
(x+23000)/280 formula for the conversion of raw temperature value, which
gives 82C for x=0, thus apparently formula is wrong because x=50000
should give us ~25C.
I tried to search for the datasheet with the formula, but couldn't find it.
Linus, will you be able to check whether the formula used by the driver
is correct? Thanks in advance.
next reply other threads:[~2021-04-19 6:06 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-19 6:06 Dmitry Osipenko [this message]
2021-04-19 10:07 ` BUG: iio: mpu3050: Wrong temperature scale Linus Walleij
2021-04-20 21:26 ` Dmitry Osipenko
2021-04-21 9:54 ` Linus Walleij
2021-04-21 19:05 ` Andy Shevchenko
2021-04-21 19:41 ` Andy Shevchenko
2021-04-21 20:00 ` Lars-Peter Clausen
2021-04-21 20:02 ` Andy Shevchenko
2021-04-21 20:04 ` Andy Shevchenko
2021-04-21 20:58 ` Dmitry Osipenko
2021-04-21 20:11 ` Andy Shevchenko
2021-04-21 23:02 ` Linus Walleij
2021-04-21 23:10 ` Dmitry Osipenko
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=483ac17b-705a-38c3-54ee-7f0089262c03@gmail.com \
--to=digetx@gmail.com \
--cc=clamor95@gmail.com \
--cc=jic23@kernel.org \
--cc=linus.walleij@linaro.org \
--cc=linux-iio@vger.kernel.org \
--cc=linux-kernel@vger.kernel.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