aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/boot/dts/am335x-evm.dts
diff options
context:
space:
mode:
authorPhilip Avinash <avinashphilip@ti.com>2013-05-31 03:49:05 -0400
committerBenoit Cousson <benoit.cousson@linaro.org>2013-06-18 19:53:37 -0400
commitfdc6a2ddd8ee033ffcd8a63ea81a96272587da04 (patch)
tree07f5376833bfacef4700cbcfc18fcec4b403154a /arch/arm/boot/dts/am335x-evm.dts
parent15e8246bd61bf4723bf39af9811b593a87b1cb38 (diff)
ARM: dts: AM33XX: Add NAND flash device tree data to am335x-evm
GPMC controller on AM335x-EVM has a NAND flash connected to it. This patch updates following in am335x-evm.dts: - adds nandflash specific pin-mux configs - adds nand node as child of GPMC contoller, with information about NAND flash interface, NAND partition table, ECC scheme, elm handle id. - updates GPMC node for newer GPMC DT properties added in linux-3.10. Signed-off-by: Philip Avinash <avinashphilip@ti.com> Signed-off-by: Gupta, Pekon <pekon@ti.com> Signed-off-by: Benoit Cousson <benoit.cousson@linaro.org>
Diffstat (limited to 'arch/arm/boot/dts/am335x-evm.dts')
-rw-r--r--arch/arm/boot/dts/am335x-evm.dts105
1 files changed, 105 insertions, 0 deletions
diff --git a/arch/arm/boot/dts/am335x-evm.dts b/arch/arm/boot/dts/am335x-evm.dts
index 896d392dc14d..4dc46fa7ce1c 100644
--- a/arch/arm/boot/dts/am335x-evm.dts
+++ b/arch/arm/boot/dts/am335x-evm.dts
@@ -71,6 +71,26 @@
71 0x1b4 0x03 /* xdma_event_intr1.clkout2 OMAP_MUX_MODE3 | AM33XX_PIN_OUTPUT */ 71 0x1b4 0x03 /* xdma_event_intr1.clkout2 OMAP_MUX_MODE3 | AM33XX_PIN_OUTPUT */
72 >; 72 >;
73 }; 73 };
74
75 nandflash_pins_s0: nandflash_pins_s0 {
76 pinctrl-single,pins = <
77 0x0 0x30 /* gpmc_ad0.gpmc_ad0, INPUT | PULLUP | MODE0 */
78 0x4 0x30 /* gpmc_ad1.gpmc_ad1, INPUT | PULLUP | MODE0 */
79 0x8 0x30 /* gpmc_ad2.gpmc_ad2, INPUT | PULLUP | MODE0 */
80 0xc 0x30 /* gpmc_ad3.gpmc_ad3, INPUT | PULLUP | MODE0 */
81 0x10 0x30 /* gpmc_ad4.gpmc_ad4, INPUT | PULLUP | MODE0 */
82 0x14 0x30 /* gpmc_ad5.gpmc_ad5, INPUT | PULLUP | MODE0 */
83 0x18 0x30 /* gpmc_ad6.gpmc_ad6, INPUT | PULLUP | MODE0 */
84 0x1c 0x30 /* gpmc_ad7.gpmc_ad7, INPUT | PULLUP | MODE0 */
85 0x70 0x30 /* gpmc_wait0.gpmc_wait0, INPUT | PULLUP | MODE0 */
86 0x74 0x37 /* gpmc_wpn.gpio0_30, INPUT | PULLUP | MODE7 */
87 0x7c 0x8 /* gpmc_csn0.gpmc_csn0, PULL DISA */
88 0x90 0x8 /* gpmc_advn_ale.gpmc_advn_ale, PULL DISA */
89 0x94 0x8 /* gpmc_oen_ren.gpmc_oen_ren, PULL DISA */
90 0x98 0x8 /* gpmc_wen.gpmc_wen, PULL DISA */
91 0x9c 0x8 /* gpmc_be0n_cle.gpmc_be0n_cle, PULL DISA */
92 >;
93 };
74 }; 94 };
75 95
76 ocp { 96 ocp {
@@ -138,6 +158,91 @@
138 reg = <0x48>; 158 reg = <0x48>;
139 }; 159 };
140 }; 160 };
161
162 elm: elm@48080000 {
163 status = "okay";
164 };
165
166 gpmc: gpmc@50000000 {
167 status = "okay";
168 pinctrl-names = "default";
169 pinctrl-0 = <&nandflash_pins_s0>;
170 ranges = <0 0 0x08000000 0x10000000>; /* CS0: NAND */
171 nand@0,0 {
172 reg = <0 0 0>; /* CS0, offset 0 */
173 nand-bus-width = <8>;
174 ti,nand-ecc-opt = "bch8";
175 gpmc,device-nand = "true";
176 gpmc,device-width = <1>;
177 gpmc,sync-clk-ps = <0>;
178 gpmc,cs-on-ns = <0>;
179 gpmc,cs-rd-off-ns = <44>;
180 gpmc,cs-wr-off-ns = <44>;
181 gpmc,adv-on-ns = <6>;
182 gpmc,adv-rd-off-ns = <34>;
183 gpmc,adv-wr-off-ns = <44>;
184 gpmc,we-on-ns = <0>;
185 gpmc,we-off-ns = <40>;
186 gpmc,oe-on-ns = <0>;
187 gpmc,oe-off-ns = <54>;
188 gpmc,access-ns = <64>;
189 gpmc,rd-cycle-ns = <82>;
190 gpmc,wr-cycle-ns = <82>;
191 gpmc,wait-on-read = "true";
192 gpmc,wait-on-write = "true";
193 gpmc,bus-turnaround-ns = <0>;
194 gpmc,cycle2cycle-delay-ns = <0>;
195 gpmc,clk-activation-ns = <0>;
196 gpmc,wait-monitoring-ns = <0>;
197 gpmc,wr-access-ns = <40>;
198 gpmc,wr-data-mux-bus-ns = <0>;
199
200 #address-cells = <1>;
201 #size-cells = <1>;
202 elm_id = <&elm>;
203
204 /* MTD partition table */
205 partition@0 {
206 label = "SPL1";
207 reg = <0x00000000 0x000020000>;
208 };
209
210 partition@1 {
211 label = "SPL2";
212 reg = <0x00020000 0x00020000>;
213 };
214
215 partition@2 {
216 label = "SPL3";
217 reg = <0x00040000 0x00020000>;
218 };
219
220 partition@3 {
221 label = "SPL4";
222 reg = <0x00060000 0x00020000>;
223 };
224
225 partition@4 {
226 label = "U-boot";
227 reg = <0x00080000 0x001e0000>;
228 };
229
230 partition@5 {
231 label = "environment";
232 reg = <0x00260000 0x00020000>;
233 };
234
235 partition@6 {
236 label = "Kernel";
237 reg = <0x00280000 0x00500000>;
238 };
239
240 partition@7 {
241 label = "File-System";
242 reg = <0x00780000 0x0F880000>;
243 };
244 };
245 };
141 }; 246 };
142 247
143 vbat: fixedregulator@0 { 248 vbat: fixedregulator@0 {