Commit | Line | Data |
---|---|---|
75d3625e EG |
1 | Device tree bindings for GPMC connected OneNANDs |
2 | ||
3 | GPMC connected OneNAND (found on OMAP boards) are represented as child nodes of | |
4 | the GPMC controller with a name of "onenand". | |
5 | ||
6 | All timing relevant properties as well as generic gpmc child properties are | |
7 | explained in a separate documents - please refer to | |
8 | Documentation/devicetree/bindings/bus/ti-gpmc.txt | |
9 | ||
10 | Required properties: | |
11 | ||
12 | - reg: The CS line the peripheral is connected to | |
32cde0b5 JH |
13 | - gpmc,device-width Width of the ONENAND device connected to the GPMC |
14 | in bytes. Must be 1 or 2. | |
75d3625e EG |
15 | |
16 | Optional properties: | |
17 | ||
18 | - dma-channel: DMA Channel index | |
19 | ||
c98be0c9 | 20 | For inline partition table parsing (optional): |
75d3625e EG |
21 | |
22 | - #address-cells: should be set to 1 | |
23 | - #size-cells: should be set to 1 | |
24 | ||
25 | Example for an OMAP3430 board: | |
26 | ||
27 | gpmc: gpmc@6e000000 { | |
28 | compatible = "ti,omap3430-gpmc"; | |
29 | ti,hwmods = "gpmc"; | |
30 | reg = <0x6e000000 0x1000000>; | |
31 | interrupts = <20>; | |
32 | gpmc,num-cs = <8>; | |
33 | gpmc,num-waitpins = <4>; | |
34 | #address-cells = <2>; | |
35 | #size-cells = <1>; | |
36 | ||
37 | onenand@0 { | |
38 | reg = <0 0 0>; /* CS0, offset 0 */ | |
32cde0b5 | 39 | gpmc,device-width = <2>; |
75d3625e EG |
40 | |
41 | #address-cells = <1>; | |
42 | #size-cells = <1>; | |
43 | ||
44 | /* partitions go here */ | |
45 | }; | |
46 | }; |