forked from raspberrypi/linux
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ARM: OMAP2+: gpmc: add DT bindings for OneNAND
This patch adds device tree bindings for OMAP OneNAND devices. Tested on an OMAP3 3430 IGEPv2 board. Signed-off-by: Ezequiel Garcia <[email protected]> Signed-off-by: Tony Lindgren <[email protected]>
- Loading branch information
1 parent
faf5d2f
commit 75d3625
Showing
2 changed files
with
88 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,43 @@ | ||
Device tree bindings for GPMC connected OneNANDs | ||
|
||
GPMC connected OneNAND (found on OMAP boards) are represented as child nodes of | ||
the GPMC controller with a name of "onenand". | ||
|
||
All timing relevant properties as well as generic gpmc child properties are | ||
explained in a separate documents - please refer to | ||
Documentation/devicetree/bindings/bus/ti-gpmc.txt | ||
|
||
Required properties: | ||
|
||
- reg: The CS line the peripheral is connected to | ||
|
||
Optional properties: | ||
|
||
- dma-channel: DMA Channel index | ||
|
||
For inline partiton table parsing (optional): | ||
|
||
- #address-cells: should be set to 1 | ||
- #size-cells: should be set to 1 | ||
|
||
Example for an OMAP3430 board: | ||
|
||
gpmc: gpmc@6e000000 { | ||
compatible = "ti,omap3430-gpmc"; | ||
ti,hwmods = "gpmc"; | ||
reg = <0x6e000000 0x1000000>; | ||
interrupts = <20>; | ||
gpmc,num-cs = <8>; | ||
gpmc,num-waitpins = <4>; | ||
#address-cells = <2>; | ||
#size-cells = <1>; | ||
|
||
onenand@0 { | ||
reg = <0 0 0>; /* CS0, offset 0 */ | ||
|
||
#address-cells = <1>; | ||
#size-cells = <1>; | ||
|
||
/* partitions go here */ | ||
}; | ||
}; |
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