Commit | Line | Data |
---|---|---|
a4d4b153 PM |
1 | /* |
2 | * Copyright (C) 2013 Pavel Machek <pavel@ucw.cz> | |
c3580bc1 | 3 | * Copyright (C) 2013-2014 Aaro Koskinen <aaro.koskinen@iki.fi> |
a4d4b153 PM |
4 | * |
5 | * This program is free software; you can redistribute it and/or modify | |
6 | * it under the terms of the GNU General Public License version 2 (or later) as | |
7 | * published by the Free Software Foundation. | |
8 | */ | |
9 | ||
10 | /dts-v1/; | |
11 | ||
f2e2c9d9 | 12 | #include "omap34xx-hs.dtsi" |
a4d4b153 PM |
13 | |
14 | / { | |
15 | model = "Nokia N900"; | |
c3580bc1 | 16 | compatible = "nokia,omap3-n900", "ti,omap3430", "ti,omap3"; |
a4d4b153 PM |
17 | |
18 | cpus { | |
19 | cpu@0 { | |
20 | cpu0-supply = <&vcc>; | |
21 | }; | |
22 | }; | |
23 | ||
24 | memory { | |
25 | device_type = "memory"; | |
26 | reg = <0x80000000 0x10000000>; /* 256 MB */ | |
27 | }; | |
28 | ||
3931c839 SR |
29 | gpio_keys { |
30 | compatible = "gpio-keys"; | |
31 | ||
32 | camera_lens_cover { | |
33 | label = "Camera Lens Cover"; | |
34 | gpios = <&gpio4 14 GPIO_ACTIVE_LOW>; /* 110 */ | |
35 | linux,input-type = <5>; /* EV_SW */ | |
36 | linux,code = <0x09>; /* SW_CAMERA_LENS_COVER */ | |
37 | gpio-key,wakeup; | |
38 | }; | |
39 | ||
40 | camera_focus { | |
41 | label = "Camera Focus"; | |
42 | gpios = <&gpio3 4 GPIO_ACTIVE_LOW>; /* 68 */ | |
43 | linux,code = <0x210>; /* KEY_CAMERA_FOCUS */ | |
44 | gpio-key,wakeup; | |
45 | }; | |
46 | ||
47 | camera_capture { | |
48 | label = "Camera Capture"; | |
49 | gpios = <&gpio3 5 GPIO_ACTIVE_LOW>; /* 69 */ | |
50 | linux,code = <0xd4>; /* KEY_CAMERA */ | |
51 | gpio-key,wakeup; | |
52 | }; | |
53 | ||
54 | lock_button { | |
55 | label = "Lock Button"; | |
56 | gpios = <&gpio4 17 GPIO_ACTIVE_LOW>; /* 113 */ | |
57 | linux,code = <0x98>; /* KEY_SCREENLOCK */ | |
58 | gpio-key,wakeup; | |
59 | }; | |
60 | ||
61 | keypad_slide { | |
62 | label = "Keypad Slide"; | |
63 | gpios = <&gpio3 7 GPIO_ACTIVE_LOW>; /* 71 */ | |
64 | linux,input-type = <5>; /* EV_SW */ | |
65 | linux,code = <0x0a>; /* SW_KEYPAD_SLIDE */ | |
66 | gpio-key,wakeup; | |
67 | }; | |
68 | ||
69 | proximity_sensor { | |
70 | label = "Proximity Sensor"; | |
71 | gpios = <&gpio3 25 GPIO_ACTIVE_HIGH>; /* 89 */ | |
72 | linux,input-type = <5>; /* EV_SW */ | |
73 | linux,code = <0x0b>; /* SW_FRONT_PROXIMITY */ | |
74 | }; | |
75 | }; | |
76 | ||
e17337a2 SR |
77 | isp1704: isp1704 { |
78 | compatible = "nxp,isp1704"; | |
79 | nxp,enable-gpio = <&gpio3 3 GPIO_ACTIVE_HIGH>; | |
80 | usb-phy = <&usb2_phy>; | |
81 | }; | |
1133420f TV |
82 | |
83 | tv: connector { | |
84 | compatible = "composite-connector"; | |
85 | label = "tv"; | |
86 | ||
87 | port { | |
88 | tv_connector_in: endpoint { | |
89 | remote-endpoint = <&venc_out>; | |
90 | }; | |
91 | }; | |
92 | }; | |
a4d4b153 PM |
93 | }; |
94 | ||
ac888a88 SR |
95 | &omap3_pmx_core { |
96 | pinctrl-names = "default"; | |
97 | ||
7a89eecf SR |
98 | uart2_pins: pinmux_uart2_pins { |
99 | pinctrl-single,pins = < | |
100 | 0x14a (PIN_INPUT | MUX_MODE0) /* uart2_rx */ | |
101 | 0x148 (PIN_OUTPUT | MUX_MODE0) /* uart2_tx */ | |
102 | >; | |
103 | }; | |
104 | ||
105 | uart3_pins: pinmux_uart3_pins { | |
106 | pinctrl-single,pins = < | |
107 | 0x16e (PIN_INPUT | MUX_MODE0) /* uart3_rx */ | |
108 | 0x170 (PIN_OUTPUT | MUX_MODE0) /* uart3_tx */ | |
109 | >; | |
110 | }; | |
111 | ||
ac888a88 SR |
112 | i2c1_pins: pinmux_i2c1_pins { |
113 | pinctrl-single,pins = < | |
114 | 0x18a (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl */ | |
115 | 0x18c (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_sda */ | |
116 | >; | |
117 | }; | |
118 | ||
119 | i2c2_pins: pinmux_i2c2_pins { | |
120 | pinctrl-single,pins = < | |
121 | 0x18e (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_scl */ | |
122 | 0x190 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_sda */ | |
123 | >; | |
124 | }; | |
125 | ||
126 | i2c3_pins: pinmux_i2c3_pins { | |
127 | pinctrl-single,pins = < | |
128 | 0x192 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_scl */ | |
129 | 0x194 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda */ | |
130 | >; | |
131 | }; | |
f1751cff | 132 | |
c1ad2206 SR |
133 | mcspi4_pins: pinmux_mcspi4_pins { |
134 | pinctrl-single,pins = < | |
135 | 0x15c (PIN_INPUT_PULLDOWN | MUX_MODE1) /* mcspi4_clk */ | |
136 | 0x162 (PIN_INPUT_PULLDOWN | MUX_MODE1) /* mcspi4_somi */ | |
137 | 0x160 (PIN_OUTPUT | MUX_MODE1) /* mcspi4_simo */ | |
138 | 0x166 (PIN_OUTPUT | MUX_MODE1) /* mcspi4_cs0 */ | |
139 | >; | |
140 | }; | |
141 | ||
f1751cff SR |
142 | mmc1_pins: pinmux_mmc1_pins { |
143 | pinctrl-single,pins = < | |
144 | 0x114 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_clk */ | |
145 | 0x116 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_cmd */ | |
146 | 0x118 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat0 */ | |
147 | 0x11a (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat1 */ | |
148 | 0x11c (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat2 */ | |
149 | 0x11e (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat3 */ | |
150 | >; | |
151 | }; | |
d1e6f516 | 152 | |
edd5eb4e TL |
153 | mmc2_pins: pinmux_mmc2_pins { |
154 | pinctrl-single,pins = < | |
155 | 0x128 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_clk */ | |
156 | 0x12a (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_cmd */ | |
157 | 0x12c (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat0 */ | |
158 | 0x12e (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat1 */ | |
159 | 0x130 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat2 */ | |
160 | 0x132 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat3 */ | |
161 | 0x134 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat4 */ | |
162 | 0x136 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat5 */ | |
163 | 0x138 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat6 */ | |
164 | 0x13a (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat7 */ | |
165 | >; | |
166 | }; | |
167 | ||
1133420f | 168 | acx565akm_pins: pinmux_acx565akm_pins { |
d1e6f516 SR |
169 | pinctrl-single,pins = < |
170 | 0x0d4 (PIN_OUTPUT | MUX_MODE4) /* RX51_LCD_RESET_GPIO */ | |
171 | >; | |
172 | }; | |
1133420f TV |
173 | |
174 | dss_sdi_pins: pinmux_dss_sdi_pins { | |
175 | pinctrl-single,pins = < | |
176 | 0x0c0 (PIN_OUTPUT | MUX_MODE1) /* dss_data10.sdi_dat1n */ | |
177 | 0x0c2 (PIN_OUTPUT | MUX_MODE1) /* dss_data11.sdi_dat1p */ | |
178 | 0x0c4 (PIN_OUTPUT | MUX_MODE1) /* dss_data12.sdi_dat2n */ | |
179 | 0x0c6 (PIN_OUTPUT | MUX_MODE1) /* dss_data13.sdi_dat2p */ | |
180 | ||
181 | 0x0d8 (PIN_OUTPUT | MUX_MODE1) /* dss_data22.sdi_clkp */ | |
182 | 0x0da (PIN_OUTPUT | MUX_MODE1) /* dss_data23.sdi_clkn */ | |
183 | >; | |
184 | }; | |
c1ad2206 SR |
185 | |
186 | wl1251_pins: pinmux_wl1251 { | |
187 | pinctrl-single,pins = < | |
188 | 0x0ce (PIN_OUTPUT | MUX_MODE4) /* gpio 87 => wl1251 enable */ | |
189 | 0x05a (PIN_INPUT | MUX_MODE4) /* gpio 42 => wl1251 irq */ | |
190 | >; | |
191 | }; | |
ac888a88 SR |
192 | }; |
193 | ||
a4d4b153 | 194 | &i2c1 { |
ac888a88 SR |
195 | pinctrl-names = "default"; |
196 | pinctrl-0 = <&i2c1_pins>; | |
197 | ||
a4d4b153 PM |
198 | clock-frequency = <2200000>; |
199 | ||
200 | twl: twl@48 { | |
201 | reg = <0x48>; | |
202 | interrupts = <7>; /* SYS_NIRQ cascaded to intc */ | |
203 | interrupt-parent = <&intc>; | |
204 | }; | |
205 | }; | |
206 | ||
207 | #include "twl4030.dtsi" | |
ac888a88 | 208 | #include "twl4030_omap3.dtsi" |
a4d4b153 | 209 | |
9cdbbadd SR |
210 | &vaux1 { |
211 | regulator-name = "V28"; | |
212 | regulator-min-microvolt = <2800000>; | |
213 | regulator-max-microvolt = <2800000>; | |
214 | regulator-always-on; /* due battery cover sensor */ | |
215 | }; | |
216 | ||
217 | &vaux2 { | |
218 | regulator-name = "VCSI"; | |
219 | regulator-min-microvolt = <1800000>; | |
220 | regulator-max-microvolt = <1800000>; | |
221 | }; | |
222 | ||
223 | &vaux3 { | |
224 | regulator-name = "VMMC2_30"; | |
225 | regulator-min-microvolt = <2800000>; | |
226 | regulator-max-microvolt = <3000000>; | |
227 | }; | |
228 | ||
229 | &vaux4 { | |
230 | regulator-name = "VCAM_ANA_28"; | |
231 | regulator-min-microvolt = <2800000>; | |
232 | regulator-max-microvolt = <2800000>; | |
233 | }; | |
234 | ||
235 | &vmmc1 { | |
236 | regulator-name = "VMMC1"; | |
237 | regulator-min-microvolt = <1850000>; | |
238 | regulator-max-microvolt = <3150000>; | |
239 | }; | |
240 | ||
241 | &vmmc2 { | |
242 | regulator-name = "V28_A"; | |
243 | regulator-min-microvolt = <2800000>; | |
244 | regulator-max-microvolt = <3000000>; | |
245 | regulator-always-on; /* due VIO leak to AIC34 VDDs */ | |
246 | }; | |
247 | ||
248 | &vpll1 { | |
249 | regulator-name = "VPLL"; | |
250 | regulator-min-microvolt = <1800000>; | |
251 | regulator-max-microvolt = <1800000>; | |
252 | regulator-always-on; | |
253 | }; | |
254 | ||
255 | &vpll2 { | |
256 | regulator-name = "VSDI_CSI"; | |
257 | regulator-min-microvolt = <1800000>; | |
258 | regulator-max-microvolt = <1800000>; | |
259 | regulator-always-on; | |
260 | }; | |
261 | ||
262 | &vsim { | |
263 | regulator-name = "VMMC2_IO_18"; | |
264 | regulator-min-microvolt = <1800000>; | |
265 | regulator-max-microvolt = <1800000>; | |
266 | }; | |
267 | ||
268 | &vio { | |
269 | regulator-name = "VIO"; | |
270 | regulator-min-microvolt = <1800000>; | |
271 | regulator-max-microvolt = <1800000>; | |
272 | ||
273 | }; | |
274 | ||
275 | &vintana1 { | |
276 | regulator-name = "VINTANA1"; | |
277 | /* fixed to 1500000 */ | |
278 | regulator-always-on; | |
279 | }; | |
280 | ||
281 | &vintana2 { | |
282 | regulator-name = "VINTANA2"; | |
283 | regulator-min-microvolt = <2750000>; | |
284 | regulator-max-microvolt = <2750000>; | |
285 | regulator-always-on; | |
286 | }; | |
287 | ||
288 | &vintdig { | |
289 | regulator-name = "VINTDIG"; | |
290 | /* fixed to 1500000 */ | |
291 | regulator-always-on; | |
292 | }; | |
293 | ||
06ba7a61 SR |
294 | &twl { |
295 | twl_audio: audio { | |
296 | compatible = "ti,twl4030-audio"; | |
297 | ti,enable-vibra = <1>; | |
298 | }; | |
299 | }; | |
300 | ||
85c215f3 SR |
301 | &twl_keypad { |
302 | linux,keymap = < 0x00000010 /* KEY_Q */ | |
303 | 0x00010018 /* KEY_O */ | |
304 | 0x00020019 /* KEY_P */ | |
305 | 0x00030033 /* KEY_COMMA */ | |
306 | 0x0004000e /* KEY_BACKSPACE */ | |
307 | 0x0006001e /* KEY_A */ | |
308 | 0x0007001f /* KEY_S */ | |
309 | ||
310 | 0x01000011 /* KEY_W */ | |
311 | 0x01010020 /* KEY_D */ | |
312 | 0x01020021 /* KEY_F */ | |
313 | 0x01030022 /* KEY_G */ | |
314 | 0x01040023 /* KEY_H */ | |
315 | 0x01050024 /* KEY_J */ | |
316 | 0x01060025 /* KEY_K */ | |
317 | 0x01070026 /* KEY_L */ | |
318 | ||
319 | 0x02000012 /* KEY_E */ | |
320 | 0x02010034 /* KEY_DOT */ | |
321 | 0x02020067 /* KEY_UP */ | |
322 | 0x0203001c /* KEY_ENTER */ | |
323 | 0x0205002c /* KEY_Z */ | |
324 | 0x0206002d /* KEY_X */ | |
325 | 0x0207002e /* KEY_C */ | |
326 | 0x02080043 /* KEY_F9 */ | |
327 | ||
328 | 0x03000013 /* KEY_R */ | |
329 | 0x0301002f /* KEY_V */ | |
330 | 0x03020030 /* KEY_B */ | |
331 | 0x03030031 /* KEY_N */ | |
332 | 0x03040032 /* KEY_M */ | |
333 | 0x03050039 /* KEY_SPACE */ | |
334 | 0x03060039 /* KEY_SPACE */ | |
335 | 0x03070069 /* KEY_LEFT */ | |
336 | ||
337 | 0x04000014 /* KEY_T */ | |
338 | 0x0401006c /* KEY_DOWN */ | |
339 | 0x0402006a /* KEY_RIGHT */ | |
340 | 0x0404001d /* KEY_LEFTCTRL */ | |
341 | 0x04050064 /* KEY_RIGHTALT */ | |
342 | 0x0406002a /* KEY_LEFTSHIFT */ | |
343 | 0x04080044 /* KEY_F10 */ | |
344 | ||
345 | 0x05000015 /* KEY_Y */ | |
346 | 0x05080057 /* KEY_F11 */ | |
347 | ||
348 | 0x06000016 /* KEY_U */ | |
349 | ||
350 | 0x07000017 /* KEY_I */ | |
351 | 0x07010041 /* KEY_F7 */ | |
352 | 0x07020042 /* KEY_F8 */ | |
353 | >; | |
354 | }; | |
355 | ||
a4d4b153 PM |
356 | &twl_gpio { |
357 | ti,pullups = <0x0>; | |
358 | ti,pulldowns = <0x03ff3f>; /* BIT(0..5) | BIT(8..17) */ | |
359 | }; | |
360 | ||
361 | &i2c2 { | |
ac888a88 SR |
362 | pinctrl-names = "default"; |
363 | pinctrl-0 = <&i2c2_pins>; | |
364 | ||
48fc9864 | 365 | clock-frequency = <100000>; |
b2b9b258 | 366 | |
14e3e295 SR |
367 | tlv320aic3x: tlv320aic3x@18 { |
368 | compatible = "ti,tlv320aic3x"; | |
369 | reg = <0x18>; | |
370 | gpio-reset = <&gpio2 28 GPIO_ACTIVE_HIGH>; /* 60 */ | |
371 | ai3x-gpio-func = < | |
372 | 0 /* AIC3X_GPIO1_FUNC_DISABLED */ | |
373 | 5 /* AIC3X_GPIO2_FUNC_DIGITAL_MIC_INPUT */ | |
374 | >; | |
375 | ||
376 | AVDD-supply = <&vmmc2>; | |
377 | DRVDD-supply = <&vmmc2>; | |
378 | IOVDD-supply = <&vio>; | |
379 | DVDD-supply = <&vio>; | |
380 | }; | |
381 | ||
382 | tlv320aic3x_aux: tlv320aic3x@19 { | |
383 | compatible = "ti,tlv320aic3x"; | |
384 | reg = <0x19>; | |
385 | gpio-reset = <&gpio2 28 GPIO_ACTIVE_HIGH>; /* 60 */ | |
386 | ||
387 | AVDD-supply = <&vmmc2>; | |
388 | DRVDD-supply = <&vmmc2>; | |
389 | IOVDD-supply = <&vio>; | |
390 | DVDD-supply = <&vio>; | |
391 | }; | |
392 | ||
12f2f873 SR |
393 | tsl2563: tsl2563@29 { |
394 | compatible = "amstaos,tsl2563"; | |
395 | reg = <0x29>; | |
396 | ||
397 | amstaos,cover-comp-gain = <16>; | |
398 | }; | |
399 | ||
a0bf1f3e SR |
400 | lp5523: lp5523@32 { |
401 | compatible = "national,lp5523"; | |
402 | reg = <0x32>; | |
403 | clock-mode = /bits/ 8 <0>; /* LP55XX_CLOCK_AUTO */ | |
404 | enable-gpio = <&gpio2 9 GPIO_ACTIVE_HIGH>; /* 41 */ | |
405 | ||
406 | chan0 { | |
407 | chan-name = "lp5523:kb1"; | |
408 | led-cur = /bits/ 8 <50>; | |
409 | max-cur = /bits/ 8 <100>; | |
410 | }; | |
411 | ||
412 | chan1 { | |
413 | chan-name = "lp5523:kb2"; | |
414 | led-cur = /bits/ 8 <50>; | |
415 | max-cur = /bits/ 8 <100>; | |
416 | }; | |
417 | ||
418 | chan2 { | |
419 | chan-name = "lp5523:kb3"; | |
420 | led-cur = /bits/ 8 <50>; | |
421 | max-cur = /bits/ 8 <100>; | |
422 | }; | |
423 | ||
424 | chan3 { | |
425 | chan-name = "lp5523:kb4"; | |
426 | led-cur = /bits/ 8 <50>; | |
427 | max-cur = /bits/ 8 <100>; | |
428 | }; | |
429 | ||
430 | chan4 { | |
431 | chan-name = "lp5523:b"; | |
432 | led-cur = /bits/ 8 <50>; | |
433 | max-cur = /bits/ 8 <100>; | |
434 | }; | |
435 | ||
436 | chan5 { | |
437 | chan-name = "lp5523:g"; | |
438 | led-cur = /bits/ 8 <50>; | |
439 | max-cur = /bits/ 8 <100>; | |
440 | }; | |
441 | ||
442 | chan6 { | |
443 | chan-name = "lp5523:r"; | |
444 | led-cur = /bits/ 8 <50>; | |
445 | max-cur = /bits/ 8 <100>; | |
446 | }; | |
447 | ||
448 | chan7 { | |
449 | chan-name = "lp5523:kb5"; | |
450 | led-cur = /bits/ 8 <50>; | |
451 | max-cur = /bits/ 8 <100>; | |
452 | }; | |
453 | ||
454 | chan8 { | |
455 | chan-name = "lp5523:kb6"; | |
456 | led-cur = /bits/ 8 <50>; | |
457 | max-cur = /bits/ 8 <100>; | |
458 | }; | |
459 | }; | |
460 | ||
b2b9b258 SR |
461 | bq27200: bq27200@55 { |
462 | compatible = "ti,bq27200"; | |
463 | reg = <0x55>; | |
464 | }; | |
9e2367c8 SR |
465 | |
466 | tpa6130a2: tpa6130a2@60 { | |
467 | compatible = "ti,tpa6130a2"; | |
468 | reg = <0x60>; | |
469 | ||
470 | Vdd-supply = <&vmmc2>; | |
471 | ||
472 | power-gpio = <&gpio4 2 GPIO_ACTIVE_HIGH>; /* 98 */ | |
473 | }; | |
334a09c8 SR |
474 | |
475 | bq24150a: bq24150a@6b { | |
476 | compatible = "ti,bq24150a"; | |
477 | reg = <0x6b>; | |
478 | ||
479 | ti,current-limit = <100>; | |
480 | ti,weak-battery-voltage = <3400>; | |
481 | ti,battery-regulation-voltage = <4200>; | |
482 | ti,charge-current = <650>; | |
483 | ti,termination-current = <100>; | |
484 | ti,resistor-sense = <68>; | |
485 | ||
486 | ti,usb-charger-detection = <&isp1704>; | |
487 | }; | |
a4d4b153 PM |
488 | }; |
489 | ||
490 | &i2c3 { | |
ac888a88 SR |
491 | pinctrl-names = "default"; |
492 | pinctrl-0 = <&i2c3_pins>; | |
493 | ||
48fc9864 | 494 | clock-frequency = <400000>; |
a4d4b153 PM |
495 | }; |
496 | ||
497 | &mmc1 { | |
f1751cff SR |
498 | pinctrl-names = "default"; |
499 | pinctrl-0 = <&mmc1_pins>; | |
500 | vmmc-supply = <&vmmc1>; | |
501 | bus-width = <4>; | |
502 | cd-gpios = <&gpio6 0 GPIO_ACTIVE_HIGH>; /* 160 */ | |
a4d4b153 PM |
503 | }; |
504 | ||
edd5eb4e | 505 | /* most boards use vaux3, only some old versions use vmmc2 instead */ |
a4d4b153 | 506 | &mmc2 { |
edd5eb4e TL |
507 | pinctrl-names = "default"; |
508 | pinctrl-0 = <&mmc2_pins>; | |
509 | vmmc-supply = <&vaux3>; | |
510 | vmmc_aux-supply = <&vsim>; | |
511 | bus-width = <8>; | |
512 | non-removable; | |
a4d4b153 PM |
513 | }; |
514 | ||
515 | &mmc3 { | |
516 | status = "disabled"; | |
517 | }; | |
518 | ||
8699d2dd SR |
519 | &gpmc { |
520 | ranges = <0 0 0x04000000 0x10000000>; /* 256MB */ | |
521 | ||
522 | /* gpio-irq for dma: 65 */ | |
523 | ||
524 | onenand@0,0 { | |
525 | #address-cells = <1>; | |
526 | #size-cells = <1>; | |
527 | reg = <0 0 0x10000000>; | |
528 | ||
529 | gpmc,sync-read; | |
530 | gpmc,sync-write; | |
531 | gpmc,burst-length = <16>; | |
532 | gpmc,burst-read; | |
533 | gpmc,burst-wrap; | |
534 | gpmc,burst-write; | |
535 | gpmc,device-width = <2>; /* GPMC_DEVWIDTH_16BIT */ | |
536 | gpmc,mux-add-data = <2>; /* GPMC_MUX_AD */ | |
537 | gpmc,cs-on-ns = <0>; | |
538 | gpmc,cs-rd-off-ns = <87>; | |
539 | gpmc,cs-wr-off-ns = <87>; | |
540 | gpmc,adv-on-ns = <0>; | |
541 | gpmc,adv-rd-off-ns = <10>; | |
542 | gpmc,adv-wr-off-ns = <10>; | |
543 | gpmc,oe-on-ns = <15>; | |
544 | gpmc,oe-off-ns = <87>; | |
545 | gpmc,we-on-ns = <0>; | |
546 | gpmc,we-off-ns = <87>; | |
547 | gpmc,rd-cycle-ns = <112>; | |
548 | gpmc,wr-cycle-ns = <112>; | |
549 | gpmc,access-ns = <81>; | |
550 | gpmc,page-burst-access-ns = <15>; | |
551 | gpmc,bus-turnaround-ns = <0>; | |
552 | gpmc,cycle2cycle-delay-ns = <0>; | |
553 | gpmc,wait-monitoring-ns = <0>; | |
554 | gpmc,clk-activation-ns = <5>; | |
555 | gpmc,wr-data-mux-bus-ns = <30>; | |
556 | gpmc,wr-access-ns = <81>; | |
557 | gpmc,sync-clk-ps = <15000>; | |
558 | ||
559 | /* | |
560 | * MTD partition table corresponding to Nokia's | |
561 | * Maemo 5 (Fremantle) release. | |
562 | */ | |
563 | partition@0 { | |
564 | label = "bootloader"; | |
565 | reg = <0x00000000 0x00020000>; | |
566 | read-only; | |
567 | }; | |
568 | partition@1 { | |
569 | label = "config"; | |
570 | reg = <0x00020000 0x00060000>; | |
571 | }; | |
572 | partition@2 { | |
573 | label = "log"; | |
574 | reg = <0x00080000 0x00040000>; | |
575 | }; | |
576 | partition@3 { | |
577 | label = "kernel"; | |
578 | reg = <0x000c0000 0x00200000>; | |
579 | }; | |
580 | partition@4 { | |
581 | label = "initfs"; | |
582 | reg = <0x002c0000 0x00200000>; | |
583 | }; | |
584 | partition@5 { | |
585 | label = "rootfs"; | |
586 | reg = <0x004c0000 0x0fb40000>; | |
587 | }; | |
588 | }; | |
589 | }; | |
590 | ||
a4d4b153 PM |
591 | &mcspi1 { |
592 | /* | |
593 | * For some reason, touchscreen is necessary for screen to work at | |
594 | * all on real hw. It works well without it on emulator. | |
595 | * | |
596 | * Also... order in the device tree actually matters here. | |
597 | */ | |
598 | tsc2005@0 { | |
599 | compatible = "tsc2005"; | |
600 | spi-max-frequency = <6000000>; | |
601 | reg = <0>; | |
602 | }; | |
1133420f TV |
603 | |
604 | acx565akm@2 { | |
605 | compatible = "sony,acx565akm"; | |
a4d4b153 PM |
606 | spi-max-frequency = <6000000>; |
607 | reg = <2>; | |
d1e6f516 SR |
608 | |
609 | pinctrl-names = "default"; | |
1133420f TV |
610 | pinctrl-0 = <&acx565akm_pins>; |
611 | ||
612 | label = "lcd"; | |
613 | reset-gpios = <&gpio3 26 GPIO_ACTIVE_HIGH>; /* 90 */ | |
614 | ||
615 | port { | |
616 | lcd_in: endpoint { | |
617 | remote-endpoint = <&sdi_out>; | |
618 | }; | |
619 | }; | |
a4d4b153 PM |
620 | }; |
621 | }; | |
622 | ||
c1ad2206 SR |
623 | &mcspi4 { |
624 | pinctrl-names = "default"; | |
625 | pinctrl-0 = <&mcspi4_pins>; | |
626 | ||
627 | wl1251@0 { | |
628 | pinctrl-names = "default"; | |
629 | pinctrl-0 = <&wl1251_pins>; | |
630 | ||
631 | vio-supply = <&vio>; | |
632 | ||
633 | compatible = "ti,wl1251"; | |
634 | reg = <0>; | |
635 | spi-max-frequency = <48000000>; | |
636 | ||
637 | spi-cpol; | |
638 | spi-cpha; | |
639 | ||
640 | ti,power-gpio = <&gpio3 23 GPIO_ACTIVE_HIGH>; /* 87 */ | |
641 | ||
642 | interrupt-parent = <&gpio2>; | |
643 | interrupts = <10 IRQ_TYPE_NONE>; /* gpio line 42 */ | |
644 | }; | |
645 | }; | |
646 | ||
a4d4b153 PM |
647 | &usb_otg_hs { |
648 | interface-type = <0>; | |
649 | usb-phy = <&usb2_phy>; | |
d2afcf09 RQ |
650 | phys = <&usb2_phy>; |
651 | phy-names = "usb2-phy"; | |
a4d4b153 PM |
652 | mode = <2>; |
653 | power = <50>; | |
654 | }; | |
7a89eecf SR |
655 | |
656 | &uart1 { | |
657 | status = "disabled"; | |
658 | }; | |
659 | ||
660 | &uart2 { | |
661 | pinctrl-names = "default"; | |
662 | pinctrl-0 = <&uart2_pins>; | |
663 | }; | |
664 | ||
665 | &uart3 { | |
666 | pinctrl-names = "default"; | |
667 | pinctrl-0 = <&uart3_pins>; | |
668 | }; | |
1133420f TV |
669 | |
670 | &dss { | |
671 | status = "ok"; | |
672 | ||
673 | pinctrl-names = "default"; | |
674 | pinctrl-0 = <&dss_sdi_pins>; | |
675 | ||
676 | vdds_sdi-supply = <&vaux1>; | |
677 | ||
678 | ports { | |
679 | #address-cells = <1>; | |
680 | #size-cells = <0>; | |
681 | ||
682 | port@1 { | |
683 | reg = <1>; | |
684 | ||
685 | sdi_out: endpoint { | |
686 | remote-endpoint = <&lcd_in>; | |
687 | datapairs = <2>; | |
688 | }; | |
689 | }; | |
690 | }; | |
691 | }; | |
692 | ||
693 | &venc { | |
694 | status = "ok"; | |
695 | ||
696 | vdda-supply = <&vdac>; | |
697 | ||
698 | port { | |
699 | venc_out: endpoint { | |
700 | remote-endpoint = <&tv_connector_in>; | |
701 | ti,channels = <1>; | |
702 | }; | |
703 | }; | |
704 | }; |