63f4f48fe3e3859ad1fb203fc5c54f7c01ca8609
[deliverable/linux.git] / arch / arm / boot / dts / omap3-gta04.dtsi
1 /*
2 * Copyright (C) 2013 Marek Belisko <marek@goldelico.com>
3 *
4 * Based on omap3-beagle-xm.dts
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */
10 /dts-v1/;
11
12 #include "omap36xx.dtsi"
13
14 / {
15 model = "OMAP3 GTA04";
16 compatible = "ti,omap3-gta04", "ti,omap36xx", "ti,omap3";
17
18 cpus {
19 cpu@0 {
20 cpu0-supply = <&vcc>;
21 };
22 };
23
24 memory {
25 device_type = "memory";
26 reg = <0x80000000 0x20000000>; /* 512 MB */
27 };
28
29 aliases {
30 display0 = &lcd;
31 };
32
33 gpio-keys {
34 compatible = "gpio-keys";
35
36 aux-button {
37 label = "aux";
38 linux,code = <169>;
39 gpios = <&gpio1 7 GPIO_ACTIVE_HIGH>;
40 gpio-key,wakeup;
41 };
42 };
43
44 sound {
45 compatible = "ti,omap-twl4030";
46 ti,model = "gta04";
47
48 ti,mcbsp = <&mcbsp2>;
49 ti,codec = <&twl_audio>;
50 };
51
52 spi_lcd {
53 compatible = "spi-gpio";
54 #address-cells = <0x1>;
55 #size-cells = <0x0>;
56 pinctrl-names = "default";
57 pinctrl-0 = <&spi_gpio_pins>;
58
59 gpio-sck = <&gpio1 12 0>;
60 gpio-miso = <&gpio1 18 0>;
61 gpio-mosi = <&gpio1 20 0>;
62 cs-gpios = <&gpio1 19 0>;
63 num-chipselects = <1>;
64
65 /* lcd panel */
66 lcd: td028ttec1@0 {
67 compatible = "toppoly,td028ttec1";
68 reg = <0>;
69 spi-max-frequency = <100000>;
70 spi-cpol;
71 spi-cpha;
72
73 label = "lcd";
74 port {
75 lcd_in: endpoint {
76 remote-endpoint = <&dpi_out>;
77 };
78 };
79 };
80 };
81
82 hsusb2_phy: hsusb2_phy {
83 compatible = "usb-nop-xceiv";
84 reset-gpios = <&gpio6 14 GPIO_ACTIVE_LOW>;
85 };
86
87 tv0: connector@1 {
88 compatible = "svideo-connector";
89 label = "tv";
90
91 port {
92 tv_connector_in: endpoint {
93 remote-endpoint = <&opa_out>;
94 };
95 };
96 };
97
98 tv_amp: opa362 {
99 compatible = "ti,opa362";
100 enable-gpios = <&gpio1 23 0>;
101
102 ports {
103 #address-cells = <1>;
104 #size-cells = <0>;
105
106 port@0 {
107 reg = <0>;
108 opa_in: endpoint@0 {
109 remote-endpoint = <&venc_out>;
110 };
111 };
112
113 port@1 {
114 reg = <1>;
115 opa_out: endpoint@0 {
116 remote-endpoint = <&tv_connector_in>;
117 };
118 };
119 };
120 };
121 };
122
123 &omap3_pmx_core {
124 pinctrl-names = "default";
125 pinctrl-0 = <
126 &hsusb2_pins
127 >;
128
129 hsusb2_pins: pinmux_hsusb2_pins {
130 pinctrl-single,pins = <
131 OMAP3_CORE1_IOPAD(0x21d4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi1_cs3.hsusb2_data2 */
132 OMAP3_CORE1_IOPAD(0x21d6, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_clk.hsusb2_data7 */
133 OMAP3_CORE1_IOPAD(0x21d8, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_simo.hsusb2_data4 */
134 OMAP3_CORE1_IOPAD(0x21da, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_somi.hsusb2_data5 */
135 OMAP3_CORE1_IOPAD(0x21dc, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs0.hsusb2_data6 */
136 OMAP3_CORE1_IOPAD(0x21de, PIN_INPUT_PULLDOWN | MUX_MODE3) /* mcspi2_cs1.hsusb2_data3 */
137 >;
138 };
139
140 uart1_pins: pinmux_uart1_pins {
141 pinctrl-single,pins = <
142 OMAP3_CORE1_IOPAD(0x2182, PIN_INPUT | MUX_MODE0) /* uart1_rx.uart1_rx */
143 OMAP3_CORE1_IOPAD(0x217c, PIN_OUTPUT | MUX_MODE0) /* uart1_tx.uart1_tx */
144 >;
145 };
146
147 uart2_pins: pinmux_uart2_pins {
148 pinctrl-single,pins = <
149 OMAP3_CORE1_IOPAD(0x217a, PIN_INPUT | MUX_MODE0) /* uart2_rx.uart2_rx */
150 OMAP3_CORE1_IOPAD(0x2178, PIN_OUTPUT | MUX_MODE0) /* uart2_tx.uart2_tx */
151 >;
152 };
153
154 uart3_pins: pinmux_uart3_pins {
155 pinctrl-single,pins = <
156 OMAP3_CORE1_IOPAD(0x219e, PIN_INPUT | MUX_MODE0) /* uart3_rx.uart3_rx */
157 OMAP3_CORE1_IOPAD(0x21a0, PIN_OUTPUT | MUX_MODE0) /* uart3_tx.uart3_tx */
158 >;
159 };
160
161 mmc1_pins: pinmux_mmc1_pins {
162 pinctrl-single,pins = <
163 OMAP3_CORE1_IOPAD(0x2144, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_clk.sdmmc1_clk */
164 OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_cmd.sdmmc1_cmd */
165 OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat0.sdmmc1_dat0 */
166 OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat1.sdmmc1_dat1 */
167 OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat2.sdmmc1_dat2 */
168 OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat3.sdmmc1_dat3 */
169 >;
170 };
171
172 dss_dpi_pins: pinmux_dss_dpi_pins {
173 pinctrl-single,pins = <
174 OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT | MUX_MODE0) /* dss_pclk.dss_pclk */
175 OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT | MUX_MODE0) /* dss_hsync.dss_hsync */
176 OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT | MUX_MODE0) /* dss_vsync.dss_vsync */
177 OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT | MUX_MODE0) /* dss_acbias.dss_acbias */
178 OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT | MUX_MODE0) /* dss_data0.dss_data0 */
179 OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT | MUX_MODE0) /* dss_data1.dss_data1 */
180 OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT | MUX_MODE0) /* dss_data2.dss_data2 */
181 OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE0) /* dss_data3.dss_data3 */
182 OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT | MUX_MODE0) /* dss_data4.dss_data4 */
183 OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT | MUX_MODE0) /* dss_data5.dss_data5 */
184 OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT | MUX_MODE0) /* dss_data6.dss_data6 */
185 OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT | MUX_MODE0) /* dss_data7.dss_data7 */
186 OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT | MUX_MODE0) /* dss_data8.dss_data8 */
187 OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT | MUX_MODE0) /* dss_data9.dss_data9 */
188 OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT | MUX_MODE0) /* dss_data10.dss_data10 */
189 OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT | MUX_MODE0) /* dss_data11.dss_data11 */
190 OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT | MUX_MODE0) /* dss_data12.dss_data12 */
191 OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT | MUX_MODE0) /* dss_data13.dss_data13 */
192 OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT | MUX_MODE0) /* dss_data14.dss_data14 */
193 OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT | MUX_MODE0) /* dss_data15.dss_data15 */
194 OMAP3_CORE1_IOPAD(0x20fc, PIN_OUTPUT | MUX_MODE0) /* dss_data16.dss_data16 */
195 OMAP3_CORE1_IOPAD(0x20fe, PIN_OUTPUT | MUX_MODE0) /* dss_data17.dss_data17 */
196 OMAP3_CORE1_IOPAD(0x2100, PIN_OUTPUT | MUX_MODE0) /* dss_data18.dss_data18 */
197 OMAP3_CORE1_IOPAD(0x2102, PIN_OUTPUT | MUX_MODE0) /* dss_data19.dss_data19 */
198 OMAP3_CORE1_IOPAD(0x2104, PIN_OUTPUT | MUX_MODE0) /* dss_data20.dss_data20 */
199 OMAP3_CORE1_IOPAD(0x2106, PIN_OUTPUT | MUX_MODE0) /* dss_data21.dss_data21 */
200 OMAP3_CORE1_IOPAD(0x2108, PIN_OUTPUT | MUX_MODE0) /* dss_data22.dss_data22 */
201 OMAP3_CORE1_IOPAD(0x210a, PIN_OUTPUT | MUX_MODE0) /* dss_data23.dss_data23 */
202 >;
203 };
204 };
205
206 &omap3_pmx_core2 {
207 pinctrl-names = "default";
208 pinctrl-0 = <
209 &hsusb2_2_pins
210 >;
211
212 hsusb2_2_pins: pinmux_hsusb2_2_pins {
213 pinctrl-single,pins = <
214 OMAP3630_CORE2_IOPAD(0x25f0, PIN_OUTPUT | MUX_MODE3) /* etk_d10.hsusb2_clk */
215 OMAP3630_CORE2_IOPAD(0x25f2, PIN_OUTPUT | MUX_MODE3) /* etk_d11.hsusb2_stp */
216 OMAP3630_CORE2_IOPAD(0x25f4, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d12.hsusb2_dir */
217 OMAP3630_CORE2_IOPAD(0x25f6, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d13.hsusb2_nxt */
218 OMAP3630_CORE2_IOPAD(0x25f8, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d14.hsusb2_data0 */
219 OMAP3630_CORE2_IOPAD(0x25fa, PIN_INPUT_PULLDOWN | MUX_MODE3) /* etk_d15.hsusb2_data1 */
220 >;
221 };
222
223 spi_gpio_pins: spi_gpio_pinmux {
224 pinctrl-single,pins = <
225 OMAP3630_CORE2_IOPAD(0x25d8, PIN_OUTPUT | MUX_MODE4) /* clk */
226 OMAP3630_CORE2_IOPAD(0x25e6, PIN_OUTPUT | MUX_MODE4) /* cs */
227 OMAP3630_CORE2_IOPAD(0x25e8, PIN_OUTPUT | MUX_MODE4) /* tx */
228 OMAP3630_CORE2_IOPAD(0x25e4, PIN_INPUT | MUX_MODE4) /* rx */
229 >;
230 };
231 };
232
233 &i2c1 {
234 clock-frequency = <2600000>;
235
236 twl: twl@48 {
237 reg = <0x48>;
238 interrupts = <7>; /* SYS_NIRQ cascaded to intc */
239 interrupt-parent = <&intc>;
240
241 twl_audio: audio {
242 compatible = "ti,twl4030-audio";
243 ti,enable-vibra = <1>;
244 codec {
245 };
246 };
247 };
248 };
249
250 #include "twl4030.dtsi"
251 #include "twl4030_omap3.dtsi"
252
253 &i2c2 {
254 clock-frequency = <400000>;
255
256 /* pressure sensor */
257 bmp085@77 {
258 compatible = "bosch,bmp085";
259 reg = <0x77>;
260 interrupt-parent = <&gpio4>;
261 interrupts = <17 IRQ_TYPE_EDGE_RISING>;
262 };
263
264 /* accelerometer */
265 bma180@41 {
266 compatible = "bosch,bma180";
267 reg = <0x41>;
268 interrupt-parent = <&gpio3>;
269 interrupts = <19 IRQ_TYPE_LEVEL_HIGH>;
270 };
271
272 /* leds */
273 tca6507@45 {
274 compatible = "ti,tca6507";
275 #address-cells = <1>;
276 #size-cells = <0>;
277 reg = <0x45>;
278
279 gpio-controller;
280 #gpio-cells = <2>;
281
282 gta04_led0: red_aux@0 {
283 label = "gta04:red:aux";
284 reg = <0x0>;
285 };
286
287 gta04_led1: green_aux@1 {
288 label = "gta04:green:aux";
289 reg = <0x1>;
290 };
291
292 gta04_led3: red_power@3 {
293 label = "gta04:red:power";
294 reg = <0x3>;
295 linux,default-trigger = "default-on";
296 };
297
298 gta04_led4: green_power@4 {
299 label = "gta04:green:power";
300 reg = <0x4>;
301 };
302
303 wifi_reset: wifi_reset@6 {
304 reg = <0x6>;
305 compatible = "gpio";
306 };
307 };
308
309 /* compass aka magnetometer */
310 hmc5843@1e {
311 compatible = "honeywell,hmc5883l";
312 reg = <0x1e>;
313 };
314
315 /* touchscreen */
316 tsc2007@48 {
317 compatible = "ti,tsc2007";
318 reg = <0x48>;
319 interrupt-parent = <&gpio6>;
320 interrupts = <0 IRQ_TYPE_EDGE_FALLING>;
321 gpios = <&gpio6 0 GPIO_ACTIVE_LOW>;
322 ti,x-plate-ohms = <600>;
323 };
324 };
325
326 &i2c3 {
327 clock-frequency = <100000>;
328 };
329
330 &usb_otg_hs {
331 interface-type = <0>;
332 usb-phy = <&usb2_phy>;
333 phys = <&usb2_phy>;
334 phy-names = "usb2-phy";
335 mode = <3>;
336 power = <50>;
337 };
338
339 &usbhshost {
340 port2-mode = "ehci-phy";
341 };
342
343 &usbhsehci {
344 phys = <0 &hsusb2_phy>;
345 };
346
347 &mmc1 {
348 pinctrl-names = "default";
349 pinctrl-0 = <&mmc1_pins>;
350 vmmc-supply = <&vmmc1>;
351 bus-width = <4>;
352 ti,non-removable;
353 };
354
355 &mmc2 {
356 vmmc-supply = <&vaux4>;
357 bus-width = <4>;
358 ti,non-removable;
359 };
360
361 &mmc3 {
362 status = "disabled";
363 };
364
365 &uart1 {
366 pinctrl-names = "default";
367 pinctrl-0 = <&uart1_pins>;
368 };
369
370 &uart2 {
371 pinctrl-names = "default";
372 pinctrl-0 = <&uart2_pins>;
373 };
374
375 &uart3 {
376 pinctrl-names = "default";
377 pinctrl-0 = <&uart3_pins>;
378 };
379
380 &charger {
381 ti,bb-uvolt = <3200000>;
382 ti,bb-uamp = <150>;
383 };
384
385 /* spare */
386 &vaux1 {
387 regulator-min-microvolt = <2500000>;
388 regulator-max-microvolt = <3000000>;
389 };
390
391 /* sensors */
392 &vaux2 {
393 regulator-min-microvolt = <2800000>;
394 regulator-max-microvolt = <2800000>;
395 regulator-always-on;
396 };
397
398 /* camera */
399 &vaux3 {
400 regulator-min-microvolt = <2500000>;
401 regulator-max-microvolt = <2500000>;
402 };
403
404 /* WLAN/BT */
405 &vaux4 {
406 regulator-min-microvolt = <2800000>;
407 regulator-max-microvolt = <3150000>;
408 };
409
410 /* GPS LNA */
411 &vsim {
412 regulator-min-microvolt = <2800000>;
413 regulator-max-microvolt = <3150000>;
414 };
415
416 /* Needed to power the DPI pins */
417 &vpll2 {
418 regulator-always-on;
419 };
420
421 &dss {
422 pinctrl-names = "default";
423 pinctrl-0 = < &dss_dpi_pins >;
424
425 status = "okay";
426
427 port {
428 dpi_out: endpoint {
429 remote-endpoint = <&lcd_in>;
430 data-lines = <24>;
431 };
432 };
433 };
434
435 &venc {
436 status = "okay";
437
438 vdda-supply = <&vdac>;
439
440 port {
441 venc_out: endpoint {
442 remote-endpoint = <&opa_in>;
443 ti,channels = <2>;
444 ti,invert-polarity;
445 };
446 };
447 };
448
449 &gpmc {
450 ranges = <0 0 0x30000000 0x1000000>; /* CS0: 16MB for NAND */
451
452 nand@0,0 {
453 reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
454 nand-bus-width = <16>;
455 ti,nand-ecc-opt = "bch8";
456
457 gpmc,sync-clk-ps = <0>;
458 gpmc,cs-on-ns = <0>;
459 gpmc,cs-rd-off-ns = <44>;
460 gpmc,cs-wr-off-ns = <44>;
461 gpmc,adv-on-ns = <6>;
462 gpmc,adv-rd-off-ns = <34>;
463 gpmc,adv-wr-off-ns = <44>;
464 gpmc,we-off-ns = <40>;
465 gpmc,oe-off-ns = <54>;
466 gpmc,access-ns = <64>;
467 gpmc,rd-cycle-ns = <82>;
468 gpmc,wr-cycle-ns = <82>;
469 gpmc,wr-access-ns = <40>;
470 gpmc,wr-data-mux-bus-ns = <0>;
471 gpmc,device-width = <2>;
472
473 #address-cells = <1>;
474 #size-cells = <1>;
475
476 x-loader@0 {
477 label = "X-Loader";
478 reg = <0 0x80000>;
479 };
480
481 bootloaders@80000 {
482 label = "U-Boot";
483 reg = <0x80000 0x1e0000>;
484 };
485
486 bootloaders_env@260000 {
487 label = "U-Boot Env";
488 reg = <0x260000 0x20000>;
489 };
490
491 kernel@280000 {
492 label = "Kernel";
493 reg = <0x280000 0x400000>;
494 };
495
496 filesystem@680000 {
497 label = "File System";
498 reg = <0x680000 0xf980000>;
499 };
500 };
501 };
502
503 &mcbsp2 {
504 status = "okay";
505 };
This page took 0.04117 seconds and 4 git commands to generate.