mm: hugetlb: fix hugepage memory leak caused by wrong reserve count
[linux/fpc-iii.git] / arch / arm / boot / dts / omap3-pandora-common.dtsi
blobcfe140c657e7c6b5d051f621536a565a99c41fe9
1 /*
2  * Copyright (C) 2015
3  *   Nikolaus Schaller <hns@goldelico.com>
4  *
5  * Common device tree include for OpenPandora devices.
6  *
7  * This program is free software; you can redistribute it and/or modify
8  * it under the terms of the GNU General Public License version 2 as
9  * published by the Free Software Foundation.
10  */
12 #include <dt-bindings/input/input.h>
14 / {
15         cpus {
16                 cpu@0 {
17                         cpu0-supply = <&vcc>;
18                 };
19         };
21         memory {
22                 device_type = "memory";
23                 reg = <0x80000000 0x20000000>; /* 512 MB */
24         };
26         aliases {
27                 display0 = &lcd;
28         };
30         tv: connector@1 {
31                 compatible = "connector-analog-tv";
32                 label = "tv";
34                 port {
35                         tv_connector_in: endpoint {
36                                 remote-endpoint = <&venc_out>;
37                         };
38                 };
39         };
41         gpio-leds {
43                 compatible = "gpio-leds";
45                 pinctrl-names = "default";
46                 pinctrl-0 = <&led_pins>;
48                 led@1 {
49                         label = "pandora::sd1";
50                         gpios = <&gpio5 0 GPIO_ACTIVE_HIGH>;    /* GPIO_128 */
51                         linux,default-trigger = "mmc0";
52                         default-state = "off";
53                 };
55                 led@2 {
56                         label = "pandora::sd2";
57                         gpios = <&gpio5 1 GPIO_ACTIVE_HIGH>;    /* GPIO_129 */
58                         linux,default-trigger = "mmc1";
59                         default-state = "off";
60                 };
62                 led@3 {
63                         label = "pandora::bluetooth";
64                         gpios = <&gpio5 30 GPIO_ACTIVE_HIGH>;   /* GPIO_158 */
65                         linux,default-trigger = "heartbeat";
66                         default-state = "off";
67                 };
69                 led@4 {
70                         label = "pandora::wifi";
71                         gpios = <&gpio5 31 GPIO_ACTIVE_HIGH>;   /* GPIO_159 */
72                         linux,default-trigger = "mmc2";
73                         default-state = "off";
74                 };
75         };
77         gpio-keys {
78                 compatible = "gpio-keys";
80                 pinctrl-names = "default";
81                 pinctrl-0 = <&button_pins>;
83                 up-button {
84                         label = "up";
85                         linux,code = <KEY_UP>;
86                         gpios = <&gpio4 14 GPIO_ACTIVE_LOW>;    /* GPIO_110 */
87                         gpio-key,wakeup;
88                 };
90                 down-button {
91                         label = "down";
92                         linux,code = <KEY_DOWN>;
93                         gpios = <&gpio4 7 GPIO_ACTIVE_LOW>;     /* GPIO_103 */
94                         gpio-key,wakeup;
95                 };
97                 left-button {
98                         label = "left";
99                         linux,code = <KEY_LEFT>;
100                         gpios = <&gpio4 0 GPIO_ACTIVE_LOW>;     /* GPIO_96 */
101                         gpio-key,wakeup;
102                 };
104                 right-button {
105                         label = "right";
106                         linux,code = <KEY_RIGHT>;
107                         gpios = <&gpio4 2 GPIO_ACTIVE_LOW>;     /* GPIO_98 */
108                         gpio-key,wakeup;
109                 };
111                 pageup-button {
112                         label = "game 1";
113                         linux,code = <KEY_PAGEUP>;
114                         gpios = <&gpio4 13 GPIO_ACTIVE_LOW>;    /* GPIO_109 */
115                         gpio-key,wakeup;
116                 };
118                 pagedown-button {
119                         label = "game 3";
120                         linux,code = <KEY_PAGEDOWN>;
121                         gpios = <&gpio4 10 GPIO_ACTIVE_LOW>;    /* GPIO_106 */
122                         gpio-key,wakeup;
123                 };
125                 home-button {
126                         label = "game 4";
127                         linux,code = <KEY_HOME>;
128                         gpios = <&gpio4 5 GPIO_ACTIVE_LOW>;     /* GPIO_101 */
129                         gpio-key,wakeup;
130                 };
132                 end-button {
133                         label = "game 2";
134                         linux,code = <KEY_END>;
135                         gpios = <&gpio4 15 GPIO_ACTIVE_LOW>;    /* GPIO_111 */
136                         gpio-key,wakeup;
137                 };
139                 right-shift {
140                         label = "l";
141                         linux,code = <KEY_RIGHTSHIFT>;
142                         gpios = <&gpio4 6 GPIO_ACTIVE_LOW>;     /* GPIO_102 */
143                         gpio-key,wakeup;
144                 };
146                 kp-plus {
147                         label = "l2";
148                         linux,code = <KEY_KPPLUS>;
149                         gpios = <&gpio4 1 GPIO_ACTIVE_LOW>;     /* GPIO_97 */
150                         gpio-key,wakeup;
151                 };
153                 right-ctrl {
154                         label = "r";
155                         linux,code = <KEY_RIGHTCTRL>;
156                         gpios = <&gpio4 9 GPIO_ACTIVE_LOW>;     /* GPIO_105 */
157                         gpio-key,wakeup;
158                 };
160                 kp-minus {
161                         label = "r2";
162                         linux,code = <KEY_KPMINUS>;
163                         gpios = <&gpio4 11 GPIO_ACTIVE_LOW>;    /* GPIO_107 */
164                         gpio-key,wakeup;
165                 };
167                 left-ctrl {
168                         label = "ctrl";
169                         linux,code = <KEY_LEFTCTRL>;
170                         gpios = <&gpio4 8 GPIO_ACTIVE_LOW>;     /* GPIO_104 */
171                         gpio-key,wakeup;
172                 };
174                 menu {
175                         label = "menu";
176                         linux,code = <KEY_MENU>;
177                         gpios = <&gpio4 3 GPIO_ACTIVE_LOW>;     /* GPIO_99 */
178                         gpio-key,wakeup;
179                 };
181                 hold {
182                         label = "hold";
183                         linux,code = <KEY_COFFEE>;
184                         gpios = <&gpio6 16 GPIO_ACTIVE_LOW>;    /* GPIO_176 */
185                         gpio-key,wakeup;
186                 };
188                 left-alt {
189                         label = "alt";
190                         linux,code = <KEY_LEFTALT>;
191                         gpios = <&gpio4 4 GPIO_ACTIVE_HIGH>;    /* GPIO_100 */
192                         gpio-key,wakeup;
193                 };
195                 lid {
196                         label = "lid";
197                         linux,code = <0x00>;    /* SW_LID lid shut */
198                         linux,input-type = <0x05>;    /* EV_SW */
199                         gpios = <&gpio4 12 GPIO_ACTIVE_HIGH>;   /* GPIO_108 */
200                 };
201         };
203         /* HS USB Host PHY on PORT 2 */
204         hsusb2_phy: hsusb2_phy {
205                 compatible = "usb-nop-xceiv";
206                 reset-gpios = <&gpio1 16 GPIO_ACTIVE_LOW>; /* GPIO_16 */
207                 vcc-supply = <&vaux2>;
208         };
210         /* HS USB Host VBUS supply
211          * disabling this regulator causes current leakage, and LCD flicker
212          * on earlier (CC) board revisions, so keep it always on */
213         usb_host_5v: fixed-regulator-usb_host_5v {
214                 compatible = "regulator-fixed";
215                 regulator-name = "usb_host_5v";
216                 regulator-min-microvolt = <5000000>;
217                 regulator-max-microvolt = <5000000>;
218                 regulator-always-on;
219                 regulator-boot-on;
220                 enable-active-high;
221                 gpio = <&gpio6 4 GPIO_ACTIVE_HIGH>;     /* GPIO_164 */
222         };
224         /* wg7210 (wifi+bt module) 32k clock buffer */
225         wg7210_32k: fixed-regulator-wg7210_32k {
226                 compatible = "regulator-fixed";
227                 regulator-name = "wg7210_32k";
228                 regulator-min-microvolt = <1800000>;
229                 regulator-max-microvolt = <1800000>;
230                 regulator-always-on;
231                 enable-active-high;
232                 gpio = <&twl_gpio 13 GPIO_ACTIVE_HIGH>;
233         };
236 &omap3_pmx_core {
238         mmc1_pins: pinmux_mmc1_pins {
239                 pinctrl-single,pins = <
240                         OMAP3_CORE1_IOPAD(0x2144, PIN_INPUT_PULLUP | MUX_MODE0)         /* sdmmc1_clk.sdmmc1_clk */
241                         OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT_PULLUP | MUX_MODE0)         /* sdmmc1_cmd.sdmmc1_cmd */
242                         OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT_PULLUP | MUX_MODE0)         /* sdmmc1_dat0.sdmmc1_dat0 */
243                         OMAP3_CORE1_IOPAD(0x214a, PIN_INPUT_PULLUP | MUX_MODE0)         /* sdmmc1_dat1.sdmmc1_dat1 */
244                         OMAP3_CORE1_IOPAD(0x214c, PIN_INPUT_PULLUP | MUX_MODE0)         /* sdmmc1_dat2.sdmmc1_dat2 */
245                         OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0)         /* sdmmc1_dat3.sdmmc1_dat3 */
246                 >;
247         };
249         mmc2_pins: pinmux_mmc2_pins {
250                 pinctrl-single,pins = <
251                         OMAP3_CORE1_IOPAD(0x2158, PIN_INPUT_PULLUP | MUX_MODE0)         /* sdmmc2_clk.sdmmc2_clk */
252                         OMAP3_CORE1_IOPAD(0x215a, PIN_INPUT_PULLUP | MUX_MODE0)         /* sdmmc2_cmd.sdmmc2_cmd */
253                         OMAP3_CORE1_IOPAD(0x215c, PIN_INPUT_PULLUP | MUX_MODE0)         /* sdmmc2_dat0.sdmmc2_dat0 */
254                         OMAP3_CORE1_IOPAD(0x215e, PIN_INPUT_PULLUP | MUX_MODE0)         /* sdmmc2_dat1.sdmmc2_dat1 */
255                         OMAP3_CORE1_IOPAD(0x2160, PIN_INPUT_PULLUP | MUX_MODE0)         /* sdmmc2_dat2.sdmmc2_dat2 */
256                         OMAP3_CORE1_IOPAD(0x2162, PIN_INPUT_PULLUP | MUX_MODE0)         /* sdmmc2_dat3.sdmmc2_dat3 */
257                         OMAP3_CORE1_IOPAD(0x2164, PIN_OUTPUT_PULLUP | MUX_MODE1)        /* sdmmc2_dat4.sdmmc2_dirdat0 */
258                         OMAP3_CORE1_IOPAD(0x2166, PIN_OUTPUT_PULLUP | MUX_MODE1)        /* sdmmc2_dat5.sdmmc2_dirdat1 */
259                         OMAP3_CORE1_IOPAD(0x2168, PIN_OUTPUT_PULLUP | MUX_MODE1)        /* sdmmc2_dat6.sdmmc2_dircmd */
260                         OMAP3_CORE1_IOPAD(0x216a, PIN_INPUT_PULLUP | MUX_MODE1)         /* sdmmc2_dat7.sdmmc2_clkin */
261                 >;
262         };
264         dss_dpi_pins: pinmux_dss_dpi_pins {
265                 pinctrl-single,pins = <
266                         OMAP3_CORE1_IOPAD(0x20d4, PIN_OUTPUT | MUX_MODE0)       /* dss_pclk.dss_pclk */
267                         OMAP3_CORE1_IOPAD(0x20d6, PIN_OUTPUT | MUX_MODE0)       /* dss_hsync.dss_hsync */
268                         OMAP3_CORE1_IOPAD(0x20d8, PIN_OUTPUT | MUX_MODE0)       /* dss_vsync.dss_vsync */
269                         OMAP3_CORE1_IOPAD(0x20da, PIN_OUTPUT | MUX_MODE0)       /* dss_acbias.dss_acbias */
270                         OMAP3_CORE1_IOPAD(0x20dc, PIN_OUTPUT | MUX_MODE0)       /* dss_data0.dss_data0 */
271                         OMAP3_CORE1_IOPAD(0x20de, PIN_OUTPUT | MUX_MODE0)       /* dss_data1.dss_data1 */
272                         OMAP3_CORE1_IOPAD(0x20e0, PIN_OUTPUT | MUX_MODE0)       /* dss_data2.dss_data2 */
273                         OMAP3_CORE1_IOPAD(0x20e2, PIN_OUTPUT | MUX_MODE0)       /* dss_data3.dss_data3 */
274                         OMAP3_CORE1_IOPAD(0x20e4, PIN_OUTPUT | MUX_MODE0)       /* dss_data4.dss_data4 */
275                         OMAP3_CORE1_IOPAD(0x20e6, PIN_OUTPUT | MUX_MODE0)       /* dss_data5.dss_data5 */
276                         OMAP3_CORE1_IOPAD(0x20e8, PIN_OUTPUT | MUX_MODE0)       /* dss_data6.dss_data6 */
277                         OMAP3_CORE1_IOPAD(0x20ea, PIN_OUTPUT | MUX_MODE0)       /* dss_data7.dss_data7 */
278                         OMAP3_CORE1_IOPAD(0x20ec, PIN_OUTPUT | MUX_MODE0)       /* dss_data8.dss_data8 */
279                         OMAP3_CORE1_IOPAD(0x20ee, PIN_OUTPUT | MUX_MODE0)       /* dss_data9.dss_data9 */
280                         OMAP3_CORE1_IOPAD(0x20f0, PIN_OUTPUT | MUX_MODE0)       /* dss_data10.dss_data10 */
281                         OMAP3_CORE1_IOPAD(0x20f2, PIN_OUTPUT | MUX_MODE0)       /* dss_data11.dss_data11 */
282                         OMAP3_CORE1_IOPAD(0x20f4, PIN_OUTPUT | MUX_MODE0)       /* dss_data12.dss_data12 */
283                         OMAP3_CORE1_IOPAD(0x20f6, PIN_OUTPUT | MUX_MODE0)       /* dss_data13.dss_data13 */
284                         OMAP3_CORE1_IOPAD(0x20f8, PIN_OUTPUT | MUX_MODE0)       /* dss_data14.dss_data14 */
285                         OMAP3_CORE1_IOPAD(0x20fa, PIN_OUTPUT | MUX_MODE0)       /* dss_data15.dss_data15 */
286                         OMAP3_CORE1_IOPAD(0x20fc, PIN_OUTPUT | MUX_MODE0)       /* dss_data16.dss_data16 */
287                         OMAP3_CORE1_IOPAD(0x20fe, PIN_OUTPUT | MUX_MODE0)       /* dss_data17.dss_data17 */
288                         OMAP3_CORE1_IOPAD(0x2100, PIN_OUTPUT | MUX_MODE0)       /* dss_data18.dss_data18 */
289                         OMAP3_CORE1_IOPAD(0x2102, PIN_OUTPUT | MUX_MODE0)       /* dss_data19.dss_data19 */
290                         OMAP3_CORE1_IOPAD(0x2104, PIN_OUTPUT | MUX_MODE0)       /* dss_data20.dss_data20 */
291                         OMAP3_CORE1_IOPAD(0x2106, PIN_OUTPUT | MUX_MODE0)       /* dss_data21.dss_data21 */
292                         OMAP3_CORE1_IOPAD(0x2108, PIN_OUTPUT | MUX_MODE0)       /* dss_data22.dss_data22 */
293                         OMAP3_CORE1_IOPAD(0x210a, PIN_OUTPUT | MUX_MODE0)       /* dss_data23.dss_data23 */
294                         OMAP3_CORE1_IOPAD(0x218e, PIN_OUTPUT | MUX_MODE4)       /* GPIO_157 = lcd reset */
295                 >;
296         };
298         uart3_pins: pinmux_uart3_pins {
299                 pinctrl-single,pins = <
300                         OMAP3_CORE1_IOPAD(0x219e, PIN_INPUT | PIN_OFF_WAKEUPENABLE | MUX_MODE0) /* uart3_rx_irrx.uart3_rx_irrx */
301                         OMAP3_CORE1_IOPAD(0x21a0, PIN_OUTPUT | MUX_MODE0) /* uart3_tx_irtx.uart3_tx_irtx */
302                 >;
303         };
305         led_pins: pinmux_leds_pins {
306                 pinctrl-single,pins = <
307                         OMAP3_CORE1_IOPAD(0x2154, PIN_OUTPUT | MUX_MODE4)       /* GPIO_128 */
308                         OMAP3_CORE1_IOPAD(0x2156, PIN_OUTPUT | MUX_MODE4)       /* GPIO_129 */
309                         OMAP3_CORE1_IOPAD(0x2190, PIN_OUTPUT | MUX_MODE4)       /* GPIO_158 */
310                         OMAP3_CORE1_IOPAD(0x2192, PIN_OUTPUT | MUX_MODE4)       /* GPIO_159 */
311                 >;
312         };
314         button_pins: pinmux_button_pins {
315                 pinctrl-single,pins = <
316                         OMAP3_CORE1_IOPAD(0x2110, PIN_INPUT | MUX_MODE4)        /* GPIO_96 */
317                         OMAP3_CORE1_IOPAD(0x2112, PIN_INPUT | MUX_MODE4)        /* GPIO_97 */
318                         OMAP3_CORE1_IOPAD(0x2114, PIN_INPUT | MUX_MODE4)        /* GPIO_98 */
319                         OMAP3_CORE1_IOPAD(0x2116, PIN_INPUT | MUX_MODE4)        /* GPIO_99 */
320                         OMAP3_CORE1_IOPAD(0x2118, PIN_INPUT | MUX_MODE4)        /* GPIO_100 */
321                         OMAP3_CORE1_IOPAD(0x211a, PIN_INPUT | MUX_MODE4)        /* GPIO_101 */
322                         OMAP3_CORE1_IOPAD(0x211c, PIN_INPUT | MUX_MODE4)        /* GPIO_102 */
323                         OMAP3_CORE1_IOPAD(0x211e, PIN_INPUT | MUX_MODE4)        /* GPIO_103 */
324                         OMAP3_CORE1_IOPAD(0x2120, PIN_INPUT | MUX_MODE4)        /* GPIO_104 */
325                         OMAP3_CORE1_IOPAD(0x2122, PIN_INPUT | MUX_MODE4)        /* GPIO_105 */
326                         OMAP3_CORE1_IOPAD(0x2124, PIN_INPUT | MUX_MODE4)        /* GPIO_106 */
327                         OMAP3_CORE1_IOPAD(0x2126, PIN_INPUT | MUX_MODE4)        /* GPIO_107 */
328                         OMAP3_CORE1_IOPAD(0x2128, PIN_INPUT | MUX_MODE4)        /* GPIO_108 */
329                         OMAP3_CORE1_IOPAD(0x212a, PIN_INPUT | MUX_MODE4)        /* GPIO_109 */
330                         OMAP3_CORE1_IOPAD(0x212c, PIN_INPUT | MUX_MODE4)        /* GPIO_110 */
331                         OMAP3_CORE1_IOPAD(0x212e, PIN_INPUT | MUX_MODE4)        /* GPIO_111 */
332                         OMAP3_CORE1_IOPAD(0x21d2, PIN_INPUT | MUX_MODE4)        /* GPIO_176 */
333                 >;
334         };
336         penirq_pins: pinmux_penirq_pins {
337                 pinctrl-single,pins = <
338                         /* here we could enable to wakeup the cpu from suspend by a pen touch */
339                         OMAP3_CORE1_IOPAD(0x210c, PIN_INPUT | MUX_MODE4)        /* GPIO_94 */
340                 >;
341         };
345 &omap3_pmx_core2 {
346         /* define in CPU specific file that includes this one
347          * use either OMAP3430_CORE2_IOPAD() or OMAP3630_CORE2_IOPAD()
348          */
351 &i2c1 {
352         clock-frequency = <2600000>;
354         twl: twl@48 {
355                 reg = <0x48>;
356                 interrupts = <7>; /* SYS_NIRQ cascaded to intc */
357                 interrupt-parent = <&intc>;
359                 twl_power: power {
360                         compatible = "ti,twl4030-power-reset";
361                         ti,use_poweroff;
362                 };
364                 twl_audio: audio {
365                         compatible = "ti,twl4030-audio";
367                         codec {
368                                 ti,ramp_delay_value = <3>;
369                         };
370                 };
371         };
374 #include "twl4030.dtsi"
375 #include "twl4030_omap3.dtsi"
377 &twl_keypad {
378         keypad,num-rows = <8>;
379         keypad,num-columns = <6>;
380         linux,keymap = <
381                 MATRIX_KEY(0, 0, KEY_9)
382                 MATRIX_KEY(0, 1, KEY_8)
383                 MATRIX_KEY(0, 2, KEY_I)
384                 MATRIX_KEY(0, 3, KEY_J)
385                 MATRIX_KEY(0, 4, KEY_N)
386                 MATRIX_KEY(0, 5, KEY_M)
387                 MATRIX_KEY(1, 0, KEY_0)
388                 MATRIX_KEY(1, 1, KEY_7)
389                 MATRIX_KEY(1, 2, KEY_U)
390                 MATRIX_KEY(1, 3, KEY_H)
391                 MATRIX_KEY(1, 4, KEY_B)
392                 MATRIX_KEY(1, 5, KEY_SPACE)
393                 MATRIX_KEY(2, 0, KEY_BACKSPACE)
394                 MATRIX_KEY(2, 1, KEY_6)
395                 MATRIX_KEY(2, 2, KEY_Y)
396                 MATRIX_KEY(2, 3, KEY_G)
397                 MATRIX_KEY(2, 4, KEY_V)
398                 MATRIX_KEY(2, 5, KEY_FN)
399                 MATRIX_KEY(3, 0, KEY_O)
400                 MATRIX_KEY(3, 1, KEY_5)
401                 MATRIX_KEY(3, 2, KEY_T)
402                 MATRIX_KEY(3, 3, KEY_F)
403                 MATRIX_KEY(3, 4, KEY_C)
404                 MATRIX_KEY(4, 0, KEY_P)
405                 MATRIX_KEY(4, 1, KEY_4)
406                 MATRIX_KEY(4, 2, KEY_R)
407                 MATRIX_KEY(4, 3, KEY_D)
408                 MATRIX_KEY(4, 4, KEY_X)
409                 MATRIX_KEY(5, 0, KEY_K)
410                 MATRIX_KEY(5, 1, KEY_3)
411                 MATRIX_KEY(5, 2, KEY_E)
412                 MATRIX_KEY(5, 3, KEY_S)
413                 MATRIX_KEY(5, 4, KEY_Z)
414                 MATRIX_KEY(6, 0, KEY_L)
415                 MATRIX_KEY(6, 1, KEY_2)
416                 MATRIX_KEY(6, 2, KEY_W)
417                 MATRIX_KEY(6, 3, KEY_A)
418                 MATRIX_KEY(6, 4, KEY_RIGHTBRACE)
419                 MATRIX_KEY(7, 0, KEY_ENTER)
420                 MATRIX_KEY(7, 1, KEY_1)
421                 MATRIX_KEY(7, 2, KEY_Q)
422                 MATRIX_KEY(7, 3, KEY_LEFTSHIFT)
423                 MATRIX_KEY(7, 4, KEY_LEFTBRACE )
424          >;
427 /* backup battery charger */
428 &charger {
429         ti,bb-uvolt = <3200000>;
430         ti,bb-uamp = <150>;
433 /* MMC2 */
434 &vmmc2 {
435         regulator-min-microvolt = <1850000>;
436         regulator-max-microvolt = <3150000>;
439 /* LCD */
440 &vaux1 {
441         regulator-min-microvolt = <3000000>;
442         regulator-max-microvolt = <3000000>;
445 /* USB Host PHY */
446 &vaux2 {
447         regulator-min-microvolt = <1800000>;
448         regulator-max-microvolt = <1800000>;
451 /* available on expansion connector */
452 &vaux3 {
453         regulator-min-microvolt = <2800000>;
454         regulator-max-microvolt = <2800000>;
457 /* ADS7846 and nubs */
458 &vaux4 {
459         regulator-min-microvolt = <2800000>;
460         regulator-max-microvolt = <2800000>;
463 /* power audio DAC and LID sensor */
464 &vsim {
465         regulator-min-microvolt = <2800000>;
466         regulator-max-microvolt = <2800000>;
467         regulator-always-on;
470 &i2c2 {
471         clock-frequency = <100000>;
472         /* no clients so we should disable clock */
475 &i2c3 {
476         clock-frequency = <100000>;
478         bq27500@55 {
479                 compatible = "ti,bq27500";
480                 reg = <0x55>;
481         };
485 &usb_otg_hs {
486         interface-type = <0>;
487         usb-phy = <&usb2_phy>;
488         phys = <&usb2_phy>;
489         phy-names = "usb2-phy";
490         mode = <3>;
491         power = <50>;
495  * Many pandora boards have been produced with defective write-protect switches
496  * on either slot, so it was decided not to use this feature. If you know
497  * your board has good switches, feel free to uncomment wp-gpios below.
498  */
499 &mmc1 {
500         pinctrl-names = "default";
501         pinctrl-0 = <&mmc1_pins>;
502         vmmc-supply = <&vmmc1>;
503         bus-width = <4>;
504         cd-gpios = <&twl_gpio 0 GPIO_ACTIVE_LOW>;
505         /*wp-gpios = <&gpio4 30 GPIO_ACTIVE_HIGH>;*/    /* GPIO_126 */
508 &mmc2 {
509         pinctrl-names = "default";
510         pinctrl-0 = <&mmc2_pins>;
511         vmmc-supply = <&vmmc2>;
512         bus-width = <4>;
513         cd-gpios = <&twl_gpio 1 GPIO_ACTIVE_LOW>;
514         /*wp-gpios = <&gpio4 31 GPIO_ACTIVE_HIGH>;*/    /* GPIO_127 */
517 /* mmc3 is probed using pdata-quirks to pass wl1251 card data */
518 &mmc3 {
519         status = "disabled";
522 /* bluetooth*/
523 &uart1 {
526 /* spare (expansion connector) */
527 &uart2 {
530 /* console (expansion connector) */
531 &uart3 {
532         pinctrl-names = "default";
533         pinctrl-0 = <&uart3_pins>;
534         interrupts-extended = <&intc 74 &omap3_pmx_core OMAP3_UART3_RX>;
537 &usbhshost {
538         port2-mode = "ehci-phy";
541 &usbhsehci {
542         phys = <0 &hsusb2_phy>;
545 &gpmc {
546         ranges = <0 0 0x30000000 0x1000000>; /* CS0: 16MB for NAND */
548         nand@0,0 {
549                 reg = <0 0 4>; /* CS0, offset 0, IO size 4 */
550                 nand-bus-width = <16>;
551                 ti,nand-ecc-opt = "sw";
553                 gpmc,sync-clk-ps = <0>;
554                 gpmc,cs-on-ns = <0>;
555                 gpmc,cs-rd-off-ns = <44>;
556                 gpmc,cs-wr-off-ns = <44>;
557                 gpmc,adv-on-ns = <6>;
558                 gpmc,adv-rd-off-ns = <34>;
559                 gpmc,adv-wr-off-ns = <44>;
560                 gpmc,we-off-ns = <40>;
561                 gpmc,oe-off-ns = <54>;
562                 gpmc,access-ns = <64>;
563                 gpmc,rd-cycle-ns = <82>;
564                 gpmc,wr-cycle-ns = <82>;
565                 gpmc,wr-access-ns = <40>;
566                 gpmc,wr-data-mux-bus-ns = <0>;
567                 gpmc,device-width = <2>;
569                 #address-cells = <1>;
570                 #size-cells = <1>;
572                 /* u-boot uses mtdparts=nand:512k(xloader),1920k(uboot),128k(uboot-env),10m(boot),-(rootfs) */
574                 x-loader@0 {
575                         label = "xloader";
576                         reg = <0 0x80000>;
577                 };
579                 bootloaders@80000 {
580                         label = "uboot";
581                         reg = <0x80000 0x1e0000>;
582                 };
584                 bootloaders_env@260000 {
585                         label = "uboot-env";
586                         reg = <0x260000 0x20000>;
587                 };
589                 kernel@280000 {
590                         label = "boot";
591                         reg = <0x280000 0xa00000>;
592                 };
594                 filesystem@c80000 {
595                         label = "rootfs";
596                         reg = <0xc80000 0>;     /* 0 = MTDPART_SIZ_FULL */
597                 };
598         };
601 &mcspi1 {
602         tsc2046@0 {
603                 reg = <0>;      /* CS0 */
604                 compatible = "ti,tsc2046";
605                 spi-max-frequency = <1000000>;
606                 pinctrl-names = "default";
607                 pinctrl-0 = <&penirq_pins>;
608                 interrupt-parent = <&gpio3>;
609                 interrupts = <30 0>;    /* GPIO_94 */
610                 pendown-gpio = <&gpio3 30 GPIO_ACTIVE_HIGH>;
611                 vcc-supply = <&vaux4>;
613                 ti,x-min = /bits/ 16 <0>;
614                 ti,x-max = /bits/ 16 <8000>;
615                 ti,y-min = /bits/ 16 <0>;
616                 ti,y-max = /bits/ 16 <4800>;
617                 ti,x-plate-ohms = /bits/ 16 <40>;
618                 ti,pressure-max = /bits/ 16 <255>;
620                 linux,wakeup;
621         };
623         lcd: lcd@1 {
624                 reg = <1>;      /* CS1 */
625                 compatible =    "omapdss,tpo,td043mtea1";
626                 spi-max-frequency = <100000>;
627                 spi-cpol;
628                 spi-cpha;
630                 label = "lcd";
631                 reset-gpios = <&gpio5 29 GPIO_ACTIVE_LOW>;      /* GPIO_157 */
632                 vcc-supply = <&vaux1>;
634                 port {
635                         lcd_in: endpoint {
636                                 remote-endpoint = <&dpi_out>;
637                         };
638                 };
639         };
644 /* n/a - used as GPIOs */
645 &mcbsp1 {
648 /* audio DAC */
649 &mcbsp2 {
652 /* bluetooth */
653 &mcbsp3 {
656 /* to twl4030*/
657 &mcbsp4 {
660 &venc {
661         status = "ok";
663         vdda-supply = <&vdac>;
665         port {
666                 venc_out: endpoint {
667                         remote-endpoint = <&tv_connector_in>;
668                         ti,channels = <2>;
669                 };
670         };
673 &dss {
674         pinctrl-names = "default";
675         pinctrl-0 = < &dss_dpi_pins >;
677         status = "ok";
678         vdds_dsi-supply = <&vpll2>;
680         port {
681                 dpi_out: endpoint {
682                         remote-endpoint = <&lcd_in>;
683                         data-lines = <24>;
684                 };
685         };