Ezequiel Garcia | 75d3625 | 2013-01-25 09:23:11 -0300 | [diff] [blame] | 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 |
| 13 | |
| 14 | Optional properties: |
| 15 | |
| 16 | - dma-channel: DMA Channel index |
| 17 | |
| 18 | For inline partiton table parsing (optional): |
| 19 | |
| 20 | - #address-cells: should be set to 1 |
| 21 | - #size-cells: should be set to 1 |
| 22 | |
| 23 | Example for an OMAP3430 board: |
| 24 | |
| 25 | gpmc: gpmc@6e000000 { |
| 26 | compatible = "ti,omap3430-gpmc"; |
| 27 | ti,hwmods = "gpmc"; |
| 28 | reg = <0x6e000000 0x1000000>; |
| 29 | interrupts = <20>; |
| 30 | gpmc,num-cs = <8>; |
| 31 | gpmc,num-waitpins = <4>; |
| 32 | #address-cells = <2>; |
| 33 | #size-cells = <1>; |
| 34 | |
| 35 | onenand@0 { |
| 36 | reg = <0 0 0>; /* CS0, offset 0 */ |
| 37 | |
| 38 | #address-cells = <1>; |
| 39 | #size-cells = <1>; |
| 40 | |
| 41 | /* partitions go here */ |
| 42 | }; |
| 43 | }; |