-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Viresh Kumar
authored and
Len Brown
committed
Jun 2, 2012
1 parent
76e10d1
commit b9c7aff
Showing
4 changed files
with
31 additions
and
36 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
Documentation/devicetree/bindings/thermal/spear-thermal.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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>; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.