-
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.
mtd: Add device-tree support to fsmc_nand
This patch adds support to configure the FSMC NAND driver (used amongst others on SPEAr platforms) via device-tree instead of platform_data. Signed-off-by: Stefan Roese <sr@denx.de> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
- Loading branch information
Stefan Roese
authored and
David Woodhouse
committed
Mar 27, 2012
1 parent
30053b8
commit eea6281
Showing
3 changed files
with
91 additions
and
3 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 @@ | ||
* FSMC NAND | ||
|
||
Required properties: | ||
- compatible : "st,spear600-fsmc-nand" | ||
- reg : Address range of the mtd chip | ||
- reg-names: Should contain the reg names "fsmc_regs" and "nand_data" | ||
- st,ale-off : Chip specific offset to ALE | ||
- st,cle-off : Chip specific offset to CLE | ||
|
||
Optional properties: | ||
- bank-width : Width (in bytes) of the device. If not present, the width | ||
defaults to 1 byte | ||
- nand-skip-bbtscan: Indicates the the BBT scanning should be skipped | ||
|
||
Example: | ||
|
||
fsmc: flash@d1800000 { | ||
compatible = "st,spear600-fsmc-nand"; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
reg = <0xd1800000 0x1000 /* FSMC Register */ | ||
0xd2000000 0x4000>; /* NAND Base */ | ||
reg-names = "fsmc_regs", "nand_data"; | ||
st,ale-off = <0x20000>; | ||
st,cle-off = <0x10000>; | ||
|
||
bank-width = <1>; | ||
nand-skip-bbtscan; | ||
|
||
partition@0 { | ||
... | ||
}; | ||
}; |
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