-
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.
mmc: omap_hsmmc: Convert hsmmc driver to use device tree
Define dt bindings for the ti-omap-hsmmc, and adapt the driver to extract data (which was earlier passed as platform_data) from device tree. Signed-off-by: Rajendra Nayak <rnayak@ti.com> Acked-by: Rob Herring <rob.herring@calxeda.com> Signed-off-by: Chris Ball <cjb@laptop.org>
- Loading branch information
Rajendra Nayak
authored and
Chris Ball
committed
Mar 27, 2012
1 parent
f3c55a7
commit 46856a6
Showing
2 changed files
with
106 additions
and
0 deletions.
There are no files selected for viewing
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,33 @@ | ||
* TI Highspeed MMC host controller for OMAP | ||
|
||
The Highspeed MMC Host Controller on TI OMAP family | ||
provides an interface for MMC, SD, and SDIO types of memory cards. | ||
|
||
Required properties: | ||
- compatible: | ||
Should be "ti,omap2-hsmmc", for OMAP2 controllers | ||
Should be "ti,omap3-hsmmc", for OMAP3 controllers | ||
Should be "ti,omap4-hsmmc", for OMAP4 controllers | ||
- ti,hwmods: Must be "mmc<n>", n is controller instance starting 1 | ||
- reg : should contain hsmmc registers location and length | ||
|
||
Optional properties: | ||
ti,dual-volt: boolean, supports dual voltage cards | ||
<supply-name>-supply: phandle to the regulator device tree node | ||
"supply-name" examples are "vmmc", "vmmc_aux" etc | ||
ti,bus-width: Number of data lines, default assumed is 1 if the property is missing. | ||
cd-gpios: GPIOs for card detection | ||
wp-gpios: GPIOs for write protection | ||
ti,non-removable: non-removable slot (like eMMC) | ||
ti,needs-special-reset: Requires a special softreset sequence | ||
|
||
Example: | ||
mmc1: mmc@0x4809c000 { | ||
compatible = "ti,omap4-hsmmc"; | ||
reg = <0x4809c000 0x400>; | ||
ti,hwmods = "mmc1"; | ||
ti,dual-volt; | ||
ti,bus-width = <4>; | ||
vmmc-supply = <&vmmc>; /* phandle to regulator node */ | ||
ti,non-removable; | ||
}; |
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