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 |
Jon Hunter | 32cde0b | 2013-02-25 11:37:58 -0600 | [diff] [blame] | 13 | - gpmc,device-width Width of the ONENAND device connected to the GPMC |
| 14 | in bytes. Must be 1 or 2. |
Ezequiel Garcia | 75d3625 | 2013-01-25 09:23:11 -0300 | [diff] [blame] | 15 | |
| 16 | Optional properties: |
| 17 | |
| 18 | - dma-channel: DMA Channel index |
| 19 | |
| 20 | For inline partiton table parsing (optional): |
| 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 */ |
Jon Hunter | 32cde0b | 2013-02-25 11:37:58 -0600 | [diff] [blame] | 39 | gpmc,device-width = <2>; |
Ezequiel Garcia | 75d3625 | 2013-01-25 09:23:11 -0300 | [diff] [blame] | 40 | |
| 41 | #address-cells = <1>; |
| 42 | #size-cells = <1>; |
| 43 | |
| 44 | /* partitions go here */ |
| 45 | }; |
| 46 | }; |