]>
Commit | Line | Data |
---|---|---|
4bfe6341 AK |
1 | /* |
2 | * Author: Anil Kumar <anilk4.v@gmail.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 | ||
ab00639e AB |
10 | #include <dt-bindings/input/input.h> |
11 | ||
98ef7957 | 12 | #include "omap34xx.dtsi" |
4bfe6341 AK |
13 | / { |
14 | model = "TimLL OMAP3 Devkit8000"; | |
15 | compatible = "timll,omap3-devkit8000", "ti,omap3"; | |
16 | ||
17 | memory { | |
18 | device_type = "memory"; | |
19 | reg = <0x80000000 0x10000000>; /* 256 MB */ | |
20 | }; | |
21 | ||
22 | leds { | |
23 | compatible = "gpio-leds"; | |
24 | ||
25 | heartbeat { | |
26 | label = "devkit8000::led1"; | |
6d624eab | 27 | gpios = <&gpio6 26 GPIO_ACTIVE_HIGH>; /* 186 -> LED1 */ |
4bfe6341 AK |
28 | default-state = "on"; |
29 | linux,default-trigger = "heartbeat"; | |
30 | }; | |
31 | ||
32 | mmc { | |
33 | label = "devkit8000::led2"; | |
6d624eab | 34 | gpios = <&gpio6 3 GPIO_ACTIVE_HIGH>; /* 163 -> LED2 */ |
4bfe6341 AK |
35 | default-state = "on"; |
36 | linux,default-trigger = "none"; | |
37 | }; | |
38 | ||
39 | usr { | |
40 | label = "devkit8000::led3"; | |
6d624eab | 41 | gpios = <&gpio6 4 GPIO_ACTIVE_HIGH>; /* 164 -> LED3 */ |
4bfe6341 AK |
42 | default-state = "on"; |
43 | linux,default-trigger = "usr"; | |
f6787907 | 44 | }; |
4bfe6341 | 45 | |
f6787907 AB |
46 | pmu_stat { |
47 | label = "devkit8000::pmu_stat"; | |
48 | gpios = <&twl_gpio 19 GPIO_ACTIVE_HIGH>; /* LEDB */ | |
49 | }; | |
4bfe6341 | 50 | }; |
e82be16b AK |
51 | |
52 | sound { | |
53 | compatible = "ti,omap-twl4030"; | |
54 | ti,model = "devkit8000"; | |
55 | ||
56 | ti,mcbsp = <&mcbsp2>; | |
e82be16b AK |
57 | ti,audio-routing = |
58 | "Ext Spk", "PREDRIVEL", | |
59 | "Ext Spk", "PREDRIVER", | |
60 | "MAINMIC", "Main Mic", | |
61 | "Main Mic", "Mic Bias 1"; | |
62 | }; | |
ab00639e AB |
63 | |
64 | gpio_keys { | |
65 | compatible = "gpio-keys"; | |
66 | ||
67 | user { | |
68 | label = "user"; | |
69 | gpios = <&gpio1 26 GPIO_ACTIVE_HIGH>; | |
70 | linux,code = <BTN_EXTRA>; | |
71 | gpio-key,wakeup; | |
72 | }; | |
73 | }; | |
4bfe6341 AK |
74 | }; |
75 | ||
76 | &i2c1 { | |
77 | clock-frequency = <2600000>; | |
78 | ||
79 | twl: twl@48 { | |
80 | reg = <0x48>; | |
81 | interrupts = <7>; /* SYS_NIRQ cascaded to intc */ | |
e82be16b AK |
82 | |
83 | twl_audio: audio { | |
84 | compatible = "ti,twl4030-audio"; | |
85 | codec { | |
86 | }; | |
87 | }; | |
4bfe6341 AK |
88 | }; |
89 | }; | |
90 | ||
91 | &i2c2 { | |
92 | status = "disabled"; | |
93 | }; | |
94 | ||
95 | &i2c3 { | |
96 | status = "disabled"; | |
97 | }; | |
98 | ||
98ef7957 | 99 | #include "twl4030.dtsi" |
f9688457 | 100 | #include "twl4030_omap3.dtsi" |
4bfe6341 AK |
101 | |
102 | &mmc1 { | |
103 | vmmc-supply = <&vmmc1>; | |
104 | vmmc_aux-supply = <&vsim>; | |
105 | bus-width = <8>; | |
106 | }; | |
107 | ||
108 | &mmc2 { | |
109 | status = "disabled"; | |
110 | }; | |
111 | ||
112 | &mmc3 { | |
113 | status = "disabled"; | |
114 | }; | |
115 | ||
f6787907 AB |
116 | &twl_gpio { |
117 | ti,use-leds; | |
118 | /* | |
119 | * pulldowns: | |
120 | * BIT(1), BIT(2), BIT(6), BIT(7), BIT(8), BIT(13) | |
121 | * BIT(15), BIT(16), BIT(17) | |
122 | */ | |
123 | ti,pulldowns = <0x03a1c6>; | |
124 | }; | |
125 | ||
26fa8923 AB |
126 | &twl_keypad { |
127 | linux,keymap = <MATRIX_KEY(0, 0, KEY_1) | |
128 | MATRIX_KEY(1, 0, KEY_2) | |
129 | MATRIX_KEY(2, 0, KEY_3) | |
130 | MATRIX_KEY(0, 1, KEY_4) | |
131 | MATRIX_KEY(1, 1, KEY_5) | |
132 | MATRIX_KEY(2, 1, KEY_6) | |
133 | MATRIX_KEY(3, 1, KEY_F5) | |
134 | MATRIX_KEY(0, 2, KEY_7) | |
135 | MATRIX_KEY(1, 2, KEY_8) | |
136 | MATRIX_KEY(2, 2, KEY_9) | |
137 | MATRIX_KEY(3, 2, KEY_F6) | |
138 | MATRIX_KEY(0, 3, KEY_F7) | |
139 | MATRIX_KEY(1, 3, KEY_0) | |
140 | MATRIX_KEY(2, 3, KEY_F8) | |
141 | MATRIX_KEY(4, 5, KEY_RESERVED) | |
142 | MATRIX_KEY(4, 4, KEY_VOLUMEUP) | |
143 | MATRIX_KEY(5, 5, KEY_VOLUMEDOWN) | |
144 | >; | |
145 | }; | |
146 | ||
4bfe6341 AK |
147 | &wdt2 { |
148 | status = "disabled"; | |
149 | }; | |
150 | ||
726322ce PU |
151 | &mcbsp2 { |
152 | status = "okay"; | |
4bfe6341 | 153 | }; |
2f3bb9c4 AK |
154 | |
155 | &gpmc { | |
e2c5eb78 | 156 | ranges = <0 0 0x30000000 0x1000000>; /* CS0: 16MB for NAND */ |
2f3bb9c4 AK |
157 | |
158 | nand@0,0 { | |
e2c5eb78 | 159 | reg = <0 0 4>; /* CS0, offset 0, IO size 4 */ |
2f3bb9c4 | 160 | nand-bus-width = <16>; |
ed38c657 AB |
161 | gpmc,device-width = <2>; |
162 | ti,nand-ecc-opt = "sw"; | |
2f3bb9c4 | 163 | |
6283513b | 164 | gpmc,sync-clk-ps = <0>; |
49423500 FV |
165 | gpmc,cs-on-ns = <0>; |
166 | gpmc,cs-rd-off-ns = <44>; | |
167 | gpmc,cs-wr-off-ns = <44>; | |
168 | gpmc,adv-on-ns = <6>; | |
169 | gpmc,adv-rd-off-ns = <34>; | |
170 | gpmc,adv-wr-off-ns = <44>; | |
171 | gpmc,we-off-ns = <40>; | |
172 | gpmc,oe-off-ns = <54>; | |
173 | gpmc,access-ns = <64>; | |
174 | gpmc,rd-cycle-ns = <82>; | |
175 | gpmc,wr-cycle-ns = <82>; | |
176 | gpmc,wr-access-ns = <40>; | |
177 | gpmc,wr-data-mux-bus-ns = <0>; | |
2f3bb9c4 AK |
178 | |
179 | #address-cells = <1>; | |
180 | #size-cells = <1>; | |
181 | ||
182 | x-loader@0 { | |
183 | label = "X-Loader"; | |
184 | reg = <0 0x80000>; | |
185 | }; | |
186 | ||
187 | bootloaders@80000 { | |
188 | label = "U-Boot"; | |
189 | reg = <0x80000 0x1e0000>; | |
190 | }; | |
191 | ||
192 | bootloaders_env@260000 { | |
193 | label = "U-Boot Env"; | |
194 | reg = <0x260000 0x20000>; | |
195 | }; | |
196 | ||
197 | kernel@280000 { | |
198 | label = "Kernel"; | |
199 | reg = <0x280000 0x400000>; | |
200 | }; | |
201 | ||
202 | filesystem@680000 { | |
203 | label = "File System"; | |
204 | reg = <0x680000 0xf980000>; | |
205 | }; | |
206 | }; | |
207 | }; | |
e04beeb7 AB |
208 | |
209 | &gpmc { | |
210 | ranges = <6 0 0x2c000000 0x1000000>; /* CS6: 16MB for DM9000 */ | |
211 | ||
212 | ethernet@0,0 { | |
213 | compatible = "davicom,dm9000"; | |
214 | reg = <6 0x000 2 | |
215 | 6 0x400 2>; /* CS6, offset 0 and 0x400, IO size 2 */ | |
216 | bank-width = <2>; | |
217 | interrupt-parent = <&gpio1>; | |
218 | interrupts = <25 IRQ_TYPE_LEVEL_LOW>; | |
219 | davicom,no-eeprom; | |
220 | ||
221 | gpmc,mux-add-data = <0>; | |
222 | gpmc,device-width = <1>; | |
223 | gpmc,wait-pin = <0>; | |
224 | gpmc,cycle2cycle-samecsen = <1>; | |
225 | gpmc,cycle2cycle-diffcsen = <1>; | |
226 | ||
227 | gpmc,cs-on-ns = <6>; | |
228 | gpmc,cs-rd-off-ns = <180>; | |
229 | gpmc,cs-wr-off-ns = <180>; | |
230 | gpmc,adv-on-ns = <0>; | |
231 | gpmc,adv-rd-off-ns = <18>; | |
232 | gpmc,adv-wr-off-ns = <48>; | |
233 | gpmc,oe-on-ns = <54>; | |
234 | gpmc,oe-off-ns = <168>; | |
235 | gpmc,we-on-ns = <54>; | |
236 | gpmc,we-off-ns = <168>; | |
237 | gpmc,rd-cycle-ns = <186>; | |
238 | gpmc,wr-cycle-ns = <186>; | |
239 | gpmc,access-ns = <144>; | |
240 | gpmc,page-burst-access-ns = <24>; | |
241 | gpmc,bus-turnaround-ns = <90>; | |
242 | gpmc,cycle2cycle-delay-ns = <90>; | |
243 | gpmc,wait-monitoring-ns = <0>; | |
244 | gpmc,clk-activation-ns = <0>; | |
245 | gpmc,wr-data-mux-bus-ns = <0>; | |
246 | gpmc,wr-access-ns = <0>; | |
247 | }; | |
248 | }; |