devicetree.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] lm90: device tree and thermal zone support
@ 2016-01-21 19:34 Stéphan Kochen
       [not found] ` <1453404877-17897-1-git-send-email-stephan-j6uo2F6POYhmR6Xm/wNWPw@public.gmane.org>
  0 siblings, 1 reply; 16+ messages in thread
From: Stéphan Kochen @ 2016-01-21 19:34 UTC (permalink / raw)
  To: Jean Delvare
  Cc: Stéphan Kochen, Rob Herring, Pawel Moll, Mark Rutland,
	Ian Campbell, Kumar Gala, Guenter Roeck,
	lm-sensors-GZX6beZjE8VD60Wz+7aTrA,
	devicetree-u79uwXL29TY76Z2rM5mHXA

This patchset adds support to the lm90 driver for initialising sensor
parameters from a device tree, as well as using the sensor in thermal zones
specified in a device tree.

The patchset is extracted from an ongoing personal project to get mainline
running on the Ouya console. The git repository is available at:

  https://github.com/stephank/linux.git

This particular patchset can also be pulled from the 'lm90-of' branch there.

The Ouya has a single GPIO fan, and an ON NCT1008 temperature sensor. With this
patchset, the kernel can do active cooling through a thermal zone, and set
sensible sensor alert parameters without user-space assistance.

There's still something amiss with alerts, though. When the temperature exceeds
one of the bounds, the machine bogs down and the log is flooded with warning
messages. (An interrupt flood? I'm not too concerned at this point, active
cooling should keep us far from the configured sensor alert bounds during
normal operation.)

Please note that these are my very first kernel patches. Hoping I get it right
the first time!

Stéphan Kochen (3):
  lm90: separate register accessors from sysfs
  lm90: initialize parameters from devicetree
  lm90: register with thermal zones

 Documentation/devicetree/bindings/hwmon/lm90.txt |  48 ++
 drivers/hwmon/lm90.c                             | 618 +++++++++++++++--------
 2 files changed, 453 insertions(+), 213 deletions(-)

-- 
2.5.0

--
To unsubscribe from this list: send the line "unsubscribe devicetree" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2016-01-29  0:16 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-21 19:34 [PATCH 0/3] lm90: device tree and thermal zone support Stéphan Kochen
     [not found] ` <1453404877-17897-1-git-send-email-stephan-j6uo2F6POYhmR6Xm/wNWPw@public.gmane.org>
2016-01-21 19:34   ` [PATCH 1/3] lm90: separate register accessors from sysfs Stéphan Kochen
     [not found]     ` <1453404877-17897-2-git-send-email-stephan-j6uo2F6POYhmR6Xm/wNWPw@public.gmane.org>
2016-01-22 14:42       ` Guenter Roeck
     [not found]         ` <56A23FD2.9040009-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
2016-01-22 22:00           ` Stéphan Kochen
     [not found]             ` <20160122220056.GA21534-3Ql6wuUqVi7fKcxHm0zdRv8+0UxHXcjY@public.gmane.org>
2016-01-25  9:41               ` [lm-sensors] " Jean Delvare
2016-01-21 19:34   ` [PATCH 2/3] lm90: initialize parameters from devicetree Stéphan Kochen
     [not found]     ` <1453404877-17897-3-git-send-email-stephan-j6uo2F6POYhmR6Xm/wNWPw@public.gmane.org>
2016-01-22 14:53       ` Guenter Roeck
     [not found]         ` <56A24278.8050909-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
2016-01-22 22:32           ` Stéphan Kochen
2016-01-23  2:53             ` Guenter Roeck
     [not found]               ` <56A2EB3E.4080002-0h96xk9xTtrk1uMJSBkQmQ@public.gmane.org>
2016-01-27 21:18                 ` Interrupt driven thermal OF sensors (was: [PATCH 2/3] lm90: initialize parameters from devicetree) Stéphan Kochen
2016-01-28  5:05                   ` Interrupt driven thermal OF sensors Guenter Roeck
2016-01-29  0:16                     ` Stéphan Kochen
2016-01-21 19:34   ` [PATCH 3/3] lm90: register with thermal zones Stéphan Kochen
     [not found]     ` <1453404877-17897-4-git-send-email-stephan-j6uo2F6POYhmR6Xm/wNWPw@public.gmane.org>
2016-01-22 22:45       ` Rob Herring
2016-01-22 23:02         ` Stéphan Kochen
     [not found]           ` <20160122230239.GA22301-3Ql6wuUqVi7fKcxHm0zdRv8+0UxHXcjY@public.gmane.org>
2016-01-22 23:11             ` Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).