]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - android-sdk/kernel-video.git/blob - arch/arm/boot/dts/omap4-sdp.dts
Merge branch 'p-ti-linux-3.8.y' into p-ti-android-3.8.y
[android-sdk/kernel-video.git] / arch / arm / boot / dts / omap4-sdp.dts
1 /*
2  * Copyright (C) 2011 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/;
10 /include/ "omap443x.dtsi"
11 /include/ "elpida_ecb240abacn.dtsi"
13 / {
14         model = "TI OMAP4 SDP board";
15         compatible = "ti,omap4-sdp", "ti,omap4430", "ti,omap4";
17         memory {
18                 device_type = "memory";
19                 reg = <0x80000000 0x40000000>; /* 1 GB */
20         };
22         vdd_eth: fixedregulator-vdd-eth {
23                 compatible = "regulator-fixed";
24                 regulator-name = "VDD_ETH";
25                 regulator-min-microvolt = <3300000>;
26                 regulator-max-microvolt = <3300000>;
27                 gpio = <&gpio2 16 0>;  /* gpio line 48 */
28                 enable-active-high;
29                 regulator-boot-on;
30         };
32         vbat: fixedregulator-vbat {
33                 compatible = "regulator-fixed";
34                 regulator-name = "VBAT";
35                 regulator-min-microvolt = <3750000>;
36                 regulator-max-microvolt = <3750000>;
37                 regulator-boot-on;
38         };
40         quart_eth: fixedregulator@1 {
41                 compatible = "regulator-fixed";
42                 regulator-name = "QUART_ETH";
43                 regulator-min-microvolt = <3300000>;
44                 regulator-max-microvolt = <3300000>;
45                 gpio = <&gpio5 10 0>;  /* gpio line 138 */
46                 enable-active-high;
47                 regulator-boot-on;
48         };
50         leds {
51                 compatible = "gpio-leds";
52                 debug0 {
53                         label = "omap4:green:debug0";
54                         gpios = <&gpio2 29 0>; /* 61 */
55                 };
57                 debug1 {
58                         label = "omap4:green:debug1";
59                         gpios = <&gpio1 30 0>; /* 30 */
60                 };
62                 debug2 {
63                         label = "omap4:green:debug2";
64                         gpios = <&gpio1 7 0>; /* 7 */
65                 };
67                 debug3 {
68                         label = "omap4:green:debug3";
69                         gpios = <&gpio1 8 0>; /* 8 */
70                 };
72                 debug4 {
73                         label = "omap4:green:debug4";
74                         gpios = <&gpio2 18 0>; /* 50 */
75                 };
77                 user1 {
78                         label = "omap4:blue:user";
79                         gpios = <&gpio6 9 0>; /* 169 */
80                 };
82                 user2 {
83                         label = "omap4:red:user";
84                         gpios = <&gpio6 10 0>; /* 170 */
85                 };
87                 user3 {
88                         label = "omap4:green:user";
89                         gpios = <&gpio5 11 0>; /* 139 */
90                 };
91         };
93         pwmleds {
94                 compatible = "pwm-leds";
95                 kpad {
96                         label = "omap4::keypad";
97                         pwms = <&twl_pwm 0 7812500>;
98                         max-brightness = <127>;
99                 };
101                 charging {
102                         label = "omap4:green:chrg";
103                         pwms = <&twl_pwmled 0 7812500>;
104                         max-brightness = <255>;
105                 };
106         };
108         backlight {
109                 compatible = "pwm-backlight";
110                 pwms = <&twl_pwm 1 7812500>;
111                 brightness-levels = <
112                                 0 10 20 30 40
113                                 50 60 70 80 90
114                                 100 110 120 127
115                                 >;
116                 default-brightness-level = <13>;
117         };
119         sound {
120                 compatible = "ti,abe-twl6040";
121                 ti,model = "SDP4430";
123                 ti,jack-detection = <1>;
124                 ti,mclk-freq = <38400000>;
126                 ti,mcpdm = <&mcpdm>;
127                 ti,dmic = <&dmic>;
128                 ti,mcasp = <&mcasp>;
129                 ti,mcbsp1 = <&mcbsp1>;
130                 ti,mcbsp2 = <&mcbsp2>;
132                 ti,twl6040 = <&twl6040>;
134                 ti,aess = <&aess>;
136                 /* Audio routing */
137                 ti,audio-routing =
138                         "Headset Stereophone", "HSOL",
139                         "Headset Stereophone", "HSOR",
140                         "Earphone Spk", "EP",
141                         "Ext Spk", "HFL",
142                         "Ext Spk", "HFR",
143                         "Line Out", "AUXL",
144                         "Line Out", "AUXR",
145                         "Vibrator", "VIBRAL",
146                         "Vibrator", "VIBRAR",
147                         "HSMIC", "Headset Mic",
148                         "Headset Mic", "Headset Mic Bias",
149                         "MAINMIC", "Main Handset Mic",
150                         "Main Handset Mic", "Main Mic Bias",
151                         "SUBMIC", "Sub Handset Mic",
152                         "Sub Handset Mic", "Main Mic Bias",
153                         "AFML", "Line In",
154                         "AFMR", "Line In",
155                         "DMic", "Digital Mic",
156                         "Digital Mic", "Digital Mic1 Bias",
157                         "Headset Playback", "PDM_DL1",
158                         "Handsfree Playback", "PDM_DL2",
159                         "PDM_UL1", "Capture",
160                         "40122000.mcbsp Playback", "BT_VX_DL",
161                         "BT_VX_UL", "40122000.mcbsp Capture",
162                         "40124000.mcbsp Playback", "MM_EXT_DL",
163                         "MM_EXT_UL", "40124000.mcbsp Capture",
164                         "DMIC0", "omap-dmic-abe.0 Capture",
165                         "omap-dmic-abe.0 Capture", "Digital Mic1 Bias",
166                         "Digital Mic1 Bias", "Digital Mic 0",
167                         "DMIC1", "omap-dmic-abe.1 Capture",
168                         "omap-dmic-abe.1 Capture", "Digital Mic1 Bias",
169                         "Digital Mic1 Bias", "Digital Mic 1",
170                         "DMIC2", "omap-dmic-abe.2 Capture",
171                         "omap-dmic-abe.2 Capture", "Digital Mic1 Bias",
172                         "Digital Mic1 Bias", "Digital Mic 2";
173         };
175         sound_hdmi {
176                 compatible = "ti,omap-hdmi-tpd12s015-audio";
177                 ti,model = "OMAP4HDMI";
179                 ti,hdmi_audio = <&hdmi>;
180                 ti,level_shifter = <&tpd12s015>;
181         };
182 };
184 &omap4_pmx_core {
185         pinctrl-names = "default";
186         pinctrl-0 = <
187                         &twl6040_pins
188                         &mcpdm_pins
189                         &dmic_pins
190                         &mcbsp1_pins
191                         &mcbsp2_pins
192                         &dss_hdmi_pins
193                         &tpd12s015_pins
194         >;
196         uart2_pins: pinmux_uart2_pins {
197                 pinctrl-single,pins = <
198                         0xd8 0x118      /* uart2_cts.uart2_cts INPUT_PULLUP | MODE0 */
199                         0xda 0          /* uart2_rts.uart2_rts OUTPUT | MODE0 */
200                         0xdc 0x118      /* uart2_rx.uart2_rx INPUT_PULLUP | MODE0 */
201                         0xde 0          /* uart2_tx.uart2_tx OUTPUT | MODE0 */
202                 >;
203         };
205         uart3_pins: pinmux_uart3_pins {
206                 pinctrl-single,pins = <
207                         0x100 0x118     /* uart3_cts_rctx.uart3_cts_rctx INPUT_PULLUP | MODE0 */
208                         0x102 0         /* uart3_rts_sd.uart3_rts_sd OUTPUT | MODE0 */
209                         0x104 0x100     /* uart3_rx_irrx.uart3_rx_irrx INPUT | MODE0 */
210                         0x106 0         /* uart3_tx_irtx.uart3_tx_irtx OUTPUT | MODE0 */
211                 >;
212         };
214         uart4_pins: pinmux_uart4_pins {
215                 pinctrl-single,pins = <
216                         0x11c 0x100     /* uart4_rx.uart4_rx INPUT | MODE0 */
217                         0x11e 0         /* uart4_tx.uart4_tx OUTPUT | MODE0 */
218                 >;
219         };
221         twl6040_pins: pinmux_twl6040_pins {
222                 pinctrl-single,pins = <
223                         0xe0 0x3        /* hdq_sio.gpio_127 OUTPUT | MODE3 */
224                         0x160 0x100     /* sys_nirq2.sys_nirq2 INPUT | MODE0 */
225                 >;
226         };
228         mcpdm_pins: pinmux_mcpdm_pins {
229                 pinctrl-single,pins = <
230                         0xc6 0x108      /* abe_pdm_ul_data.abe_pdm_ul_data INPUT PULLDOWN | MODE0 */
231                         0xc8 0x108      /* abe_pdm_dl_data.abe_pdm_dl_data INPUT PULLDOWN | MODE0 */
232                         0xca 0x118      /* abe_pdm_frame.abe_pdm_frame INPUT PULLUP | MODE0 */
233                         0xcc 0x108      /* abe_pdm_lb_clk.abe_pdm_lb_clk INPUT PULLDOWN | MODE0 */
234                         0xce 0x108      /* abe_clks.abe_clks INPUT PULLDOWN | MODE0 */
235                 >;
236         };
238         dmic_pins: pinmux_dmic_pins {
239                 pinctrl-single,pins = <
240                         0xd0 0          /* abe_dmic_clk1.abe_dmic_clk1 OUTPUT | MODE0 */
241                         0xd2 0x100      /* abe_dmic_din1.abe_dmic_din1 INPUT | MODE0 */
242                         0xd4 0x100      /* abe_dmic_din2.abe_dmic_din2 INPUT | MODE0 */
243                         0xd6 0x100      /* abe_dmic_din3.abe_dmic_din3 INPUT | MODE0 */
244                 >;
245         };
247         mcbsp1_pins: pinmux_mcbsp1_pins {
248                 pinctrl-single,pins = <
249                         0xbe 0x100      /* abe_mcbsp1_clkx.abe_mcbsp1_clkx INPUT | MODE0 */
250                         0xc0 0x108      /* abe_mcbsp1_dr.abe_mcbsp1_dr INPUT PULLDOWN | MODE0 */
251                         0xc2 0x8        /* abe_mcbsp1_dx.abe_mcbsp1_dx OUTPUT PULLDOWN | MODE0 */
252                         0xc4 0x100      /* abe_mcbsp1_fsx.abe_mcbsp1_fsx INPUT | MODE0 */
253                 >;
254         };
256         mcbsp2_pins: pinmux_mcbsp2_pins {
257                 pinctrl-single,pins = <
258                         0xb6 0x100      /* abe_mcbsp2_clkx.abe_mcbsp2_clkx INPUT | MODE0 */
259                         0xb8 0x108      /* abe_mcbsp2_dr.abe_mcbsp2_dr INPUT PULLDOWN | MODE0 */
260                         0xba 0x8        /* abe_mcbsp2_dx.abe_mcbsp2_dx OUTPUT PULLDOWN | MODE0 */
261                         0xbc 0x100      /* abe_mcbsp2_fsx.abe_mcbsp2_fsx INPUT | MODE0 */
262                 >;
263         };
265         dss_hdmi_pins: pinmux_dss_hdmi_pins {
266                 pinctrl-single,pins = <
267                         0x5a 0x118      /* hdmi_cec.hdmi_cec INPUT PULLUP | MODE 0 */
268                         0x5c 0x118      /* hdmi_scl.hdmi_scl INPUT PULLUP | MODE 0 */
269                         0x5e 0x118      /* hdmi_sda.hdmi_sda INPUT PULLUP | MODE 0 */
270                 >;
271         };
273         tpd12s015_pins: pinmux_tpd12s015_pins {
274                 pinctrl-single,pins = <
275                         0x22 0x3        /* gpmc_a17.gpio_41 OUTPUT | MODE3 */
276                         0x48 0x3        /* gpmc_nbe1.gpio_60 OUTPUT | MODE3 */
277                         0x58 0x10b      /* hdmi_hpd.gpio_63 INPUT PULLDOWN | MODE3 */
278                 >;
279         };
281         i2c1_pins: pinmux_i2c1_pins {
282                 pinctrl-single,pins = <
283                         0xe2 0x118        /* i2c1_scl PULLUP | INPUTENABLE | MODE0 */
284                         0xe4 0x118       /* i2c1_sda PULLUP | INPUTENABLE | MODE0 */
285                 >;
286         };
288         i2c2_pins: pinmux_i2c2_pins {
289                 pinctrl-single,pins = <
290                         0xe6 0x118        /* i2c2_scl PULLUP | INPUTENABLE | MODE0 */
291                         0xe8 0x118        /* i2c2_sda PULLUP | INPUTENABLE | MODE0 */
292                 >;
293         };
295         i2c3_pins: pinmux_i2c3_pins {
296                 pinctrl-single,pins = <
297                         0xea 0x118        /* i2c3_scl PULLUP | INPUTENABLE | MODE0 */
298                         0xec 0x118     /* i2c3_sda PULLUP | INPUTENABLE | MODE0 */
299                 >;
300         };
302         i2c4_pins: pinmux_i2c4_pins {
303                 pinctrl-single,pins = <
304                         0xee 0x118        /* i2c4_scl PULLUP | INPUTENABLE | MODE0 */
305                         0xf0 0x118     /* i2c4_sda PULLUP | INPUTENABLE | MODE0 */
306                 >;
307         };
308 };
310 &i2c1 {
311         pinctrl-names = "default";
312         pinctrl-0 = <&i2c1_pins>;
314         clock-frequency = <400000>;
316         twl: twl@48 {
317                 reg = <0x48>;
318                 /* SPI = 0, IRQ# = 7, 4 = active high level-sensitive */
319                 interrupts = <0 7 4>; /* IRQ_SYS_1N cascaded to gic */
320                 interrupt-parent = <&gic>;
321         };
323         twl6040: twl@4b {
324                 compatible = "ti,twl6040";
325                 reg = <0x4b>;
326                 /* SPI = 0, IRQ# = 119, 4 = active high level-sensitive */
327                 interrupts = <0 119 4>; /* IRQ_SYS_2N cascaded to gic */
328                 interrupt-parent = <&gic>;
329                 ti,audpwron-gpio = <&gpio4 31 0>;  /* gpio line 127 */
331                 vio-supply = <&v1v8>;
332                 v2v1-supply = <&v2v1>;
333                 enable-active-high;
335                 /* regulators for vibra motor */
336                 vddvibl-supply = <&vbat>;
337                 vddvibr-supply = <&vbat>;
339                 vibra {
340                         /* Vibra driver, motor resistance parameters */
341                         ti,vibldrv-res = <8>;
342                         ti,vibrdrv-res = <3>;
343                         ti,viblmotor-res = <10>;
344                         ti,vibrmotor-res = <10>;
345                 };
346                 
347                 gpo {
348                         ti,nr_gpo = <3>;
349                 };
350         };
351 };
353 /include/ "twl6030.dtsi"
355 &i2c2 {
356         pinctrl-names = "default";
357         pinctrl-0 = <&i2c2_pins>;
359         clock-frequency = <400000>;
360 };
362 &i2c3 {
363         pinctrl-names = "default";
364         pinctrl-0 = <&i2c3_pins>;
366         clock-frequency = <400000>;
368         /*
369          * Temperature Sensor
370          * http://www.ti.com/lit/ds/symlink/tmp105.pdf
371          */
372         tmp105@48 {
373                 compatible = "ti,tmp105";
374                 reg = <0x48>;
375         };
377         /*
378          * Ambient Light Sensor
379          * http://www.rohm.com/products/databook/sensor/pdf/bh1780gli-e.pdf
380          */
381         bh1780@29 {
382                 compatible = "rohm,bh1780";
383                 reg = <0x29>;
384         };
385 };
387 &i2c4 {
388         pinctrl-names = "default";
389         pinctrl-0 = <&i2c4_pins>;
391         clock-frequency = <400000>;
393         /*
394          * 3-Axis Digital Compass
395          * http://www.sparkfun.com/datasheets/Sensors/Magneto/HMC5843.pdf
396          */
397         hmc5843@1e {
398                 compatible = "honeywell,hmc5843";
399                 reg = <0x1e>;
400         };
401 };
403 &mcspi1 {
404         eth@0 {
405                 compatible = "ks8851";
406                 spi-max-frequency = <24000000>;
407                 reg = <0>;
408                 interrupt-parent = <&gpio2>;
409                 interrupts = <2 8>; /* gpio line 34, low triggered */
410                 vdd-supply = <&vdd_eth>;
411                 enable-active-high;
412         };
413 };
415 &mmc1 {
416         vmmc-supply = <&vmmc>;
417         bus-width = <8>;
418 };
420 &mmc2 {
421         vmmc-supply = <&vaux1>;
422         bus-width = <8>;
423         ti,non-removable;
424 };
426 &mmc3 {
427         status = "disabled";
428 };
430 &mmc4 {
431         status = "disabled";
432 };
434 &mmc5 {
435         bus-width = <4>;
436         ti,non-removable;
437 };
439 &emif1 {
440         cs1-used;
441         device-handle = <&elpida_ECB240ABACN>;
442 };
444 &emif2 {
445         cs1-used;
446         device-handle = <&elpida_ECB240ABACN>;
447 };
449 &keypad {
450         keypad,num-rows = <8>;
451         keypad,num-columns = <8>;
452         linux,keymap = <0x00000012      /* KEY_E */
453                         0x00010013      /* KEY_R */
454                         0x00020014      /* KEY_T */
455                         0x00030066      /* KEY_HOME */
456                         0x0004003f      /* KEY_F5 */
457                         0x000500f0      /* KEY_UNKNOWN */
458                         0x00060017      /* KEY_I */
459                         0x0007002a      /* KEY_LEFTSHIFT */
460                         0x01000020      /* KEY_D*/
461                         0x01010021      /* KEY_F */
462                         0x01020022      /* KEY_G */
463                         0x010300e7      /* KEY_SEND */
464                         0x01040040      /* KEY_F6 */
465                         0x010500f0      /* KEY_UNKNOWN */
466                         0x01060025      /* KEY_K */
467                         0x0107001c      /* KEY_ENTER */
468                         0x0200002d      /* KEY_X */
469                         0x0201002e      /* KEY_C */
470                         0x0202002f      /* KEY_V */
471                         0x0203006b      /* KEY_END */
472                         0x02040041      /* KEY_F7 */
473                         0x020500f0      /* KEY_UNKNOWN */
474                         0x02060034      /* KEY_DOT */
475                         0x0207003a      /* KEY_CAPSLOCK */
476                         0x0300002c      /* KEY_Z */
477                         0x0301004e      /* KEY_KPLUS */
478                         0x03020030      /* KEY_B */
479                         0x0303003b      /* KEY_F1 */
480                         0x03040042      /* KEY_F8 */
481                         0x030500f0      /* KEY_UNKNOWN */
482                         0x03060018      /* KEY_O */
483                         0x03070039      /* KEY_SPACE */
484                         0x04000011      /* KEY_W */
485                         0x04010015      /* KEY_Y */
486                         0x04020016      /* KEY_U */
487                         0x0403003c      /* KEY_F2 */
488                         0x04040073      /* KEY_VOLUMEUP */
489                         0x040500f0      /* KEY_UNKNOWN */
490                         0x04060026      /* KEY_L */
491                         0x04070069      /* KEY_LEFT */
492                         0x0500001f      /* KEY_S */
493                         0x05010023      /* KEY_H */
494                         0x05020024      /* KEY_J */
495                         0x0503003d      /* KEY_F3 */
496                         0x05040043      /* KEY_F9 */
497                         0x05050072      /* KEY_VOLUMEDOWN */
498                         0x05060032      /* KEY_M */
499                         0x0507006a      /* KEY_RIGHT */
500                         0x06000010      /* KEY_Q */
501                         0x0601001e      /* KEY_A */
502                         0x06020031      /* KEY_N */
503                         0x0603009e      /* KEY_BACK */
504                         0x0604000e      /* KEY_BACKSPACE */
505                         0x060500f0      /* KEY_UNKNOWN */
506                         0x06060019      /* KEY_P */
507                         0x06070067      /* KEY_UP */
508                         0x07000094      /* KEY_PROG1 */
509                         0x07010095      /* KEY_PROG2 */
510                         0x070200ca      /* KEY_PROG3 */
511                         0x070300cb      /* KEY_PROG4 */
512                         0x0704003e      /* KEY_F4 */
513                         0x070500f0      /* KEY_UNKNOWN */
514                         0x07060160      /* KEY_OK */
515                         0x0707006c>;    /* KEY_DOWN */
516         linux,input-no-autorepeat;
517 };
519 &uart2 {
520         pinctrl-names = "default";
521         pinctrl-0 = <&uart2_pins>;
522 };
524 &uart3 {
525         pinctrl-names = "default";
526         pinctrl-0 = <&uart3_pins>;
527 };
529 &uart4 {
530         pinctrl-names = "default";
531         pinctrl-0 = <&uart4_pins>;
532 };
534 &mcbsp3 {
535         status = "disabled";
536 };
538 &twl_usb_comparator {
539         usb-supply = <&vusb>;
540 };
543 &usb_otg_hs {
544         interface-type = <1>;
545         mode = <3>;
546         power = <50>;
547 };
549 &dsi1 {
550         lcd {
551                 compatible = "tpo,taal";
553                 lanes = <
554                         0       /* clk + */
555                         1       /* clk - */
556                         2       /* data1 + */
557                         3       /* data1 - */
558                         4       /* data2 + */
559                         5       /* data2 - */
560                 >;
562                 gpios = <&gpio4 6 0>;   /* 102, reset */
563         };
564 };
566 &dsi2 {
567         lcd2 {
568                 compatible = "tpo,taal";
570                 lanes = <
571                         0       /* clk + */
572                         1       /* clk - */
573                         2       /* data1 + */
574                         3       /* data1 - */
575                         4       /* data2 + */
576                         5       /* data2 - */
577                 >;
579                 gpios = <&gpio4 8 0>;   /* 104, reset */
580         };
581 };
583 &hdmi {
584         tpd12s015: tpd12s015 {
585                 compatible = "ti,tpd12s015";
587                 gpios = <&gpio2 28 0>,  /* 60, CT CP HPD */
588                         <&gpio2 9 0>,   /* 41, LS OE */
589                         <&gpio2 31 0>;  /* 63, HPD */
591                 hdmi {
592                         compatible = "ti,hdmi_panel";
593                 };
595         };
596 };