thermal: introduce device tree parser
authorEduardo Valentin <eduardo.valentin@ti.com>
Wed, 3 Jul 2013 19:35:39 +0000 (15:35 -0400)
committerChanho Park <chanho61.park@samsung.com>
Tue, 18 Nov 2014 03:00:53 +0000 (12:00 +0900)
commit7344576fd691b2cd242cc67cfe31967bec17adb0
tree5f6916d5a2174b5f0528f17993c2fabbe1a881c5
parent01e30a22f095cc88adc7114b8869f8988a2dbfca
thermal: introduce device tree parser

This patch introduces a device tree bindings for
describing the hardware thermal behavior and limits.
Also a parser to read and interpret the data and feed
it in the thermal framework is presented.

This patch introduces a thermal data parser for device
tree. The parsed data is used to build thermal zones
and thermal binding parameters. The output data
can then be used to deploy thermal policies.

This patch adds also documentation regarding this
API and how to define tree nodes to use
this infrastructure.

Note that, in order to be able to have control
on the sensor registration on the DT thermal zone,
it was required to allow changing the thermal zone
.get_temp callback. For this reason, this patch
also removes the 'const' modifier from the .ops
field of thermal zone devices.

Change-Id: Iaecd480e8a5e21f0d3154cc9bf782bbfd051d40a
Cc: Zhang Rui <rui.zhang@intel.com>
Cc: linux-pm@vger.kernel.org
Cc: linux-kernel@vger.kernel.org
Acked-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Eduardo Valentin <eduardo.valentin@ti.com>
Documentation/devicetree/bindings/thermal/thermal.txt [new file with mode: 0644]
drivers/thermal/Kconfig
drivers/thermal/Makefile
drivers/thermal/of-thermal.c [new file with mode: 0644]
drivers/thermal/thermal_core.c
drivers/thermal/thermal_core.h
include/dt-bindings/thermal/thermal.h [new file with mode: 0644]
include/linux/thermal.h