diff options
author | Viresh Kumar <viresh.linux@gmail.com> | 2012-05-29 22:18:51 +0400 |
---|---|---|
committer | Len Brown <len.brown@intel.com> | 2012-06-02 09:49:38 +0400 |
commit | b9c7aff481f19dd655ae3ce6513817d625e2d47c (patch) | |
tree | d84338cd776c68891522e60e7faa30ac7ad09a91 /Documentation/devicetree/bindings/thermal/spear-thermal.txt | |
parent | 76e10d158efb6d4516018846f60c2ab5501900bc (diff) | |
download | linux-b9c7aff481f19dd655ae3ce6513817d625e2d47c.tar.xz |
drivers/thermal/spear_thermal.c: add Device Tree probing capability
SPEAr platforms now support DT and so must convert all drivers to support
DT. This patch adds DT probing support for SPEAr thermal sensor driver
and updates its documentation too.
Also, as SPEAr is the only user of this driver and is only available with
DT, make this an only DT driver. So, platform_data is completely removed
and passed via DT now.
Signed-off-by: Viresh Kumar <viresh.kumar@st.com>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Vincenzo Frascino <vincenzo.frascino@st.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'Documentation/devicetree/bindings/thermal/spear-thermal.txt')
-rw-r--r-- | Documentation/devicetree/bindings/thermal/spear-thermal.txt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/thermal/spear-thermal.txt b/Documentation/devicetree/bindings/thermal/spear-thermal.txt new file mode 100644 index 000000000000..93e3b67c102d --- /dev/null +++ b/Documentation/devicetree/bindings/thermal/spear-thermal.txt @@ -0,0 +1,14 @@ +* SPEAr Thermal + +Required properties: +- compatible : "st,thermal-spear1340" +- reg : Address range of the thermal registers +- st,thermal-flags: flags used to enable thermal sensor + +Example: + + thermal@fc000000 { + compatible = "st,thermal-spear1340"; + reg = <0xfc000000 0x1000>; + st,thermal-flags = <0x7000>; + }; |