blob: 5d8fa527c496a1e29674064805c66461b20f2eed [file] [log] [blame]
Ezequiel Garcia75d36252013-01-25 09:23:11 -03001Device tree bindings for GPMC connected OneNANDs
2
3GPMC connected OneNAND (found on OMAP boards) are represented as child nodes of
4the GPMC controller with a name of "onenand".
5
6All timing relevant properties as well as generic gpmc child properties are
7explained in a separate documents - please refer to
8Documentation/devicetree/bindings/bus/ti-gpmc.txt
9
10Required properties:
11
12 - reg: The CS line the peripheral is connected to
Jon Hunter32cde0b2013-02-25 11:37:58 -060013 - gpmc,device-width Width of the ONENAND device connected to the GPMC
14 in bytes. Must be 1 or 2.
Ezequiel Garcia75d36252013-01-25 09:23:11 -030015
16Optional properties:
17
18 - dma-channel: DMA Channel index
19
Carlos Garciac98be0c2014-04-04 22:31:00 -040020For inline partition table parsing (optional):
Ezequiel Garcia75d36252013-01-25 09:23:11 -030021
22 - #address-cells: should be set to 1
23 - #size-cells: should be set to 1
24
25Example 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 Hunter32cde0b2013-02-25 11:37:58 -060039 gpmc,device-width = <2>;
Ezequiel Garcia75d36252013-01-25 09:23:11 -030040
41 #address-cells = <1>;
42 #size-cells = <1>;
43
44 /* partitions go here */
45 };
46 };