Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1210863

Re: [PATCH 2/3] thermal: Add Mediatek thermal controller support

From Sascha Hauer <s.hauer@pengutronix.de>
Newsgroups linux.kernel
Subject Re: [PATCH 2/3] thermal: Add Mediatek thermal controller support
Date 2015-08-21 07:10 +0200
Message-ID <pZMKu-2ca-7@gated-at.bofh.it> (permalink)
References <pZt57-7r8-15@gated-at.bofh.it> <pZt58-7r8-39@gated-at.bofh.it> <pZGvo-1vS-7@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Thu, Aug 20, 2015 at 03:20:52PM -0700, Eduardo Valentin wrote:
> On Thu, Aug 20, 2015 at 10:06:01AM +0200, Sascha Hauer wrote:
> > +
> > +	/*
> > +	 * These calibration values should finally be provided by the
> > +	 * firmware or fuses. For now use default values.
> > +	 */
> > +	mt->calib_slope = -123;
> > +	mt->calib_offset = 465124;
> 
> Would it make sense to use the coefficients device tree property to
> describe the sensor slope and offset?
> 

The values shall ultimately be stored in fuses in the SoC. The current
bootloader cannot convert these values into device tree properties. Also
there is the new nvmem framework landing. This will allow us to put a
description into the device tree where in the fuses the calibration
values are found, rather than putting the calibration values themselves
into the device tree. This all needs some discussion and work, so I left
this topic for later.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH v5] Add Mediatek thermal support Sascha Hauer <s.hauer@pengutronix.de> - 2015-08-20 10:10 +0200
  [PATCH 2/3] thermal: Add Mediatek thermal controller support Sascha Hauer <s.hauer@pengutronix.de> - 2015-08-20 10:10 +0200
    Re: [PATCH 2/3] thermal: Add Mediatek thermal controller support Eduardo Valentin <edubezval@gmail.com> - 2015-08-21 00:30 +0200
      Re: [PATCH 2/3] thermal: Add Mediatek thermal controller support Daniel Lezcano <daniel.lezcano@linaro.org> - 2015-08-21 00:30 +0200
      Re: [PATCH 2/3] thermal: Add Mediatek thermal controller support Sascha Hauer <s.hauer@pengutronix.de> - 2015-08-21 07:10 +0200
    Re: [PATCH 2/3] thermal: Add Mediatek thermal controller support Daniel Lezcano <daniel.lezcano@linaro.org> - 2015-08-21 01:20 +0200
      Re: [PATCH 2/3] thermal: Add Mediatek thermal controller support Sascha Hauer <s.hauer@pengutronix.de> - 2015-08-26 16:00 +0200
        Re: [PATCH 2/3] thermal: Add Mediatek thermal controller support Daniel Lezcano <daniel.lezcano@linaro.org> - 2015-08-26 16:10 +0200
    Re: [PATCH 2/3] thermal: Add Mediatek thermal controller support Daniel Kurtz <djkurtz@chromium.org> - 2015-08-25 19:50 +0200
  [PATCH 1/3] dt-bindings: thermal: Add binding document for Mediatek thermal controller Sascha Hauer <s.hauer@pengutronix.de> - 2015-08-20 10:10 +0200

csiph-web