ARM: dts: OMAP2+: Simplify NAND support
[sfrench/cifs-2.6.git] / arch / arm / boot / dts / omap3430-sdp.dts
1 /*
2  * Copyright (C) 2013 Texas Instruments Incorporated - http://www.ti.com/
3  *
4  * This program is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  */
8 /dts-v1/;
9
10 /include/ "omap34xx.dtsi"
11
12 / {
13         model = "TI OMAP3430 SDP";
14         compatible = "ti,omap3430-sdp", "ti,omap3";
15
16         memory {
17                 device_type = "memory";
18                 reg = <0x80000000 0x10000000>; /* 256 MB */
19         };
20 };
21
22 &i2c1 {
23         clock-frequency = <2600000>;
24
25         twl: twl@48 {
26                 reg = <0x48>;
27                 interrupts = <7>; /* SYS_NIRQ cascaded to intc */
28         };
29 };
30
31 /include/ "twl4030.dtsi"
32
33 &mmc1 {
34         vmmc-supply = <&vmmc1>;
35         vmmc_aux-supply = <&vsim>;
36         bus-width = <8>;
37 };
38
39 &mmc2 {
40         status = "disabled";
41 };
42
43 &mmc3 {
44         status = "disabled";
45 };
46
47 &gpmc {
48         ranges = <0 0 0x10000000 0x08000000>,
49                  <1 0 0x28000000 0x08000000>,
50                  <2 0 0x20000000 0x10000000>;
51
52         nor@0,0 {
53                 compatible = "cfi-flash";
54                 linux,mtd-name= "intel,pf48f6000m0y1be";
55                 #address-cells = <1>;
56                 #size-cells = <1>;
57                 reg = <0 0 0x08000000>;
58                 bank-width = <2>;
59
60                 gpmc,mux-add-data = <2>;
61                 gpmc,cs-on-ns = <0>;
62                 gpmc,cs-rd-off-ns = <186>;
63                 gpmc,cs-wr-off-ns = <186>;
64                 gpmc,adv-on-ns = <12>;
65                 gpmc,adv-rd-off-ns = <48>;
66                 gpmc,adv-wr-off-ns = <48>;
67                 gpmc,oe-on-ns = <54>;
68                 gpmc,oe-off-ns = <168>;
69                 gpmc,we-on-ns = <54>;
70                 gpmc,we-off-ns = <168>;
71                 gpmc,rd-cycle-ns = <186>;
72                 gpmc,wr-cycle-ns = <186>;
73                 gpmc,access-ns = <114>;
74                 gpmc,page-burst-access-ns = <6>;
75                 gpmc,bus-turnaround-ns = <12>;
76                 gpmc,cycle2cycle-delay-ns = <18>;
77                 gpmc,wr-data-mux-bus-ns = <90>;
78                 gpmc,wr-access-ns = <186>;
79                 gpmc,cycle2cycle-samecsen;
80                 gpmc,cycle2cycle-diffcsen;
81
82                 partition@0 {
83                         label = "bootloader-nor";
84                         reg = <0 0x40000>;
85                 };
86                 partition@0x40000 {
87                         label = "params-nor";
88                         reg = <0x40000 0x40000>;
89                 };
90                 partition@0x80000 {
91                         label = "kernel-nor";
92                         reg = <0x80000 0x200000>;
93                 };
94                 partition@0x280000 {
95                         label = "filesystem-nor";
96                         reg = <0x240000 0x7d80000>;
97                 };
98         };
99
100         nand@1,0 {
101                 linux,mtd-name= "micron,mt29f1g08abb";
102                 #address-cells = <1>;
103                 #size-cells = <1>;
104                 reg = <1 0 0x08000000>;
105                 nand-bus-width = <8>;
106
107                 ti,nand-ecc-opt = "sw";
108                 gpmc,cs-on-ns = <0>;
109                 gpmc,cs-rd-off-ns = <36>;
110                 gpmc,cs-wr-off-ns = <36>;
111                 gpmc,adv-on-ns = <6>;
112                 gpmc,adv-rd-off-ns = <24>;
113                 gpmc,adv-wr-off-ns = <36>;
114                 gpmc,oe-on-ns = <6>;
115                 gpmc,oe-off-ns = <48>;
116                 gpmc,we-on-ns = <6>;
117                 gpmc,we-off-ns = <30>;
118                 gpmc,rd-cycle-ns = <72>;
119                 gpmc,wr-cycle-ns = <72>;
120                 gpmc,access-ns = <54>;
121                 gpmc,wr-access-ns = <30>;
122
123                 partition@0 {
124                         label = "xloader-nand";
125                         reg = <0 0x80000>;
126                 };
127                 partition@0x80000 {
128                         label = "bootloader-nand";
129                         reg = <0x80000 0x140000>;
130                 };
131                 partition@0x1c0000 {
132                         label = "params-nand";
133                         reg = <0x1c0000 0xc0000>;
134                 };
135                 partition@0x280000 {
136                         label = "kernel-nand";
137                         reg = <0x280000 0x500000>;
138                 };
139                 partition@0x780000 {
140                         label = "filesystem-nand";
141                         reg = <0x780000 0x7880000>;
142                 };
143         };
144
145         onenand@2,0 {
146                 linux,mtd-name= "samsung,kfm2g16q2m-deb8";
147                 #address-cells = <1>;
148                 #size-cells = <1>;
149                 reg = <2 0 0x10000000>;
150
151                 gpmc,device-width = <2>;
152                 gpmc,mux-add-data = <2>;
153                 gpmc,cs-on-ns = <0>;
154                 gpmc,cs-rd-off-ns = <84>;
155                 gpmc,cs-wr-off-ns = <72>;
156                 gpmc,adv-on-ns = <0>;
157                 gpmc,adv-rd-off-ns = <18>;
158                 gpmc,adv-wr-off-ns = <18>;
159                 gpmc,oe-on-ns = <30>;
160                 gpmc,oe-off-ns = <84>;
161                 gpmc,we-on-ns = <0>;
162                 gpmc,we-off-ns = <42>;
163                 gpmc,rd-cycle-ns = <108>;
164                 gpmc,wr-cycle-ns = <96>;
165                 gpmc,access-ns = <78>;
166                 gpmc,wr-data-mux-bus-ns = <30>;
167
168                 partition@0 {
169                         label = "xloader-onenand";
170                         reg = <0 0x80000>;
171                 };
172                 partition@0x80000 {
173                         label = "bootloader-onenand";
174                         reg = <0x80000 0x40000>;
175                 };
176                 partition@0xc0000 {
177                         label = "params-onenand";
178                         reg = <0xc0000 0x20000>;
179                 };
180                 partition@0xe0000 {
181                         label = "kernel-onenand";
182                         reg = <0xe0000 0x200000>;
183                 };
184                 partition@0x2e0000 {
185                         label = "filesystem-onenand";
186                         reg = <0x2e0000 0xfd20000>;
187                 };
188         };
189 };