-
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: gpmi: add device tree support to gpmi-nand
This patch just adds the DT support to gpmi-nand. Signed-off-by: Huang Shijie <b32955@freescale.com> Signed-off-by: Huang Shijie <shijie8@gmail.com> Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
- Loading branch information
Huang Shijie
authored and
David Woodhouse
committed
May 14, 2012
1 parent
279f08d
commit e10db1f
Showing
5 changed files
with
105 additions
and
73 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 @@ | ||
* Freescale General-Purpose Media Interface (GPMI) | ||
|
||
The GPMI nand controller provides an interface to control the | ||
NAND flash chips. We support only one NAND chip now. | ||
|
||
Required properties: | ||
- compatible : should be "fsl,<chip>-gpmi-nand" | ||
- reg : should contain registers location and length for gpmi and bch. | ||
- reg-names: Should contain the reg names "gpmi-nand" and "bch" | ||
- interrupts : The first is the DMA interrupt number for GPMI. | ||
The second is the BCH interrupt number. | ||
- interrupt-names : The interrupt names "gpmi-dma", "bch"; | ||
- fsl,gpmi-dma-channel : Should contain the dma channel it uses. | ||
|
||
The device tree may optionally contain sub-nodes describing partitions of the | ||
address space. See partition.txt for more detail. | ||
|
||
Examples: | ||
|
||
gpmi-nand@8000c000 { | ||
compatible = "fsl,imx28-gpmi-nand"; | ||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
reg = <0x8000c000 2000>, <0x8000a000 2000>; | ||
reg-names = "gpmi-nand", "bch"; | ||
interrupts = <88>, <41>; | ||
interrupt-names = "gpmi-dma", "bch"; | ||
fsl,gpmi-dma-channel = <4>; | ||
|
||
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
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