forked from torvalds/linux
-
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: sdhci-esdhc-imx: add device tree probe support
The patch adds device tree probe support for sdhci-esdhc-imx driver. Signed-off-by: Shawn Guo <[email protected]> Cc: Wolfram Sang <[email protected]> Cc: Chris Ball <[email protected]> Cc: Grant Likely <[email protected]> Acked-by: Grant Likely <[email protected]> Acked-by: Chris Ball <[email protected]>
- Loading branch information
Showing
2 changed files
with
103 additions
and
9 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,34 @@ | ||
* Freescale Enhanced Secure Digital Host Controller (eSDHC) for i.MX | ||
|
||
The Enhanced Secure Digital Host Controller on Freescale i.MX family | ||
provides an interface for MMC, SD, and SDIO types of memory cards. | ||
|
||
Required properties: | ||
- compatible : Should be "fsl,<chip>-esdhc" | ||
- reg : Should contain eSDHC registers location and length | ||
- interrupts : Should contain eSDHC interrupt | ||
|
||
Optional properties: | ||
- fsl,card-wired : Indicate the card is wired to host permanently | ||
- fsl,cd-internal : Indicate to use controller internal card detection | ||
- fsl,wp-internal : Indicate to use controller internal write protection | ||
- cd-gpios : Specify GPIOs for card detection | ||
- wp-gpios : Specify GPIOs for write protection | ||
|
||
Examples: | ||
|
||
esdhc@70004000 { | ||
compatible = "fsl,imx51-esdhc"; | ||
reg = <0x70004000 0x4000>; | ||
interrupts = <1>; | ||
fsl,cd-internal; | ||
fsl,wp-internal; | ||
}; | ||
|
||
esdhc@70008000 { | ||
compatible = "fsl,imx51-esdhc"; | ||
reg = <0x70008000 0x4000>; | ||
interrupts = <2>; | ||
cd-gpios = <&gpio0 6 0>; /* GPIO1_6 */ | ||
wp-gpios = <&gpio0 5 0>; /* GPIO1_5 */ | ||
}; |
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