mm: hugetlb: fix hugepage memory leak caused by wrong reserve count
[linux/fpc-iii.git] / arch / arm / boot / dts / omap3-ldp.dts
blobd2fab8c0d4f87109f8994a64ff8653e6e3ef95f3
1 /*
2  * Copyright (C) 2013 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 <dt-bindings/input/input.h>
11 #include "omap34xx.dtsi"
12 #include "omap-gpmc-smsc911x.dtsi"
14 / {
15         model = "TI OMAP3430 LDP (Zoom1 Labrador)";
16         compatible = "ti,omap3-ldp", "ti,omap3";
18         memory {
19                 device_type = "memory";
20                 reg = <0x80000000 0x8000000>; /* 128 MB */
21         };
23         cpus {
24                 cpu@0 {
25                         cpu0-supply = <&vcc>;
26                 };
27         };
29         gpio_keys {
30                 compatible = "gpio-keys";
31                 pinctrl-names = "default";
32                 pinctrl-0 = <&gpio_key_pins>;
34                 key_enter {
35                         label = "enter";
36                         gpios = <&gpio4 5 GPIO_ACTIVE_LOW>; /* gpio101 */
37                         linux,code = <KEY_ENTER>;
38                         gpio-key,wakeup;
39                 };
41                 key_f1 {
42                         label = "f1";
43                         gpios = <&gpio4 6 GPIO_ACTIVE_LOW>; /* gpio102 */
44                         linux,code = <KEY_F1>;
45                         gpio-key,wakeup;
46                 };
48                 key_f2 {
49                         label = "f2";
50                         gpios = <&gpio4 7 GPIO_ACTIVE_LOW>; /* gpio103 */
51                         linux,code = <KEY_F2>;
52                         gpio-key,wakeup;
53                 };
55                 key_f3 {
56                         label = "f3";
57                         gpios = <&gpio4 8 GPIO_ACTIVE_LOW>; /* gpio104 */
58                         linux,code = <KEY_F3>;
59                         gpio-key,wakeup;
60                 };
62                 key_f4 {
63                         label = "f4";
64                         gpios = <&gpio4 9 GPIO_ACTIVE_LOW>; /* gpio105 */
65                         linux,code = <KEY_F4>;
66                         gpio-key,wakeup;
67                 };
69                 key_left {
70                         label = "left";
71                         gpios = <&gpio4 10 GPIO_ACTIVE_LOW>; /* gpio106 */
72                         linux,code = <KEY_LEFT>;
73                         gpio-key,wakeup;
74                 };
76                 key_right {
77                         label = "right";
78                         gpios = <&gpio4 11 GPIO_ACTIVE_LOW>; /* gpio107 */
79                         linux,code = <KEY_RIGHT>;
80                         gpio-key,wakeup;
81                 };
83                 key_up {
84                         label = "up";
85                         gpios = <&gpio4 12 GPIO_ACTIVE_LOW>; /* gpio108 */
86                         linux,code = <KEY_UP>;
87                         gpio-key,wakeup;
88                 };
90                 key_down {
91                         label = "down";
92                         gpios = <&gpio4 13 GPIO_ACTIVE_LOW>; /* gpio109 */
93                         linux,code = <KEY_DOWN>;
94                         gpio-key,wakeup;
95                 };
96         };
99 &gpmc {
100         ranges = <0 0 0x00000000 0x01000000>,
101                  <1 0 0x08000000 0x01000000>;
103         nand@0,0 {
104                 linux,mtd-name= "micron,nand";
105                 reg = <0 0 4>;  /* CS0, offset 0, IO size 4 */
106                 nand-bus-width = <16>;
107                 gpmc,device-width = <2>;
108                 ti,nand-ecc-opt = "bch8";
110                 gpmc,sync-clk-ps = <0>;
111                 gpmc,cs-on-ns = <0>;
112                 gpmc,cs-rd-off-ns = <44>;
113                 gpmc,cs-wr-off-ns = <44>;
114                 gpmc,adv-on-ns = <6>;
115                 gpmc,adv-rd-off-ns = <34>;
116                 gpmc,adv-wr-off-ns = <44>;
117                 gpmc,we-off-ns = <40>;
118                 gpmc,oe-off-ns = <54>;
119                 gpmc,access-ns = <64>;
120                 gpmc,rd-cycle-ns = <82>;
121                 gpmc,wr-cycle-ns = <82>;
122                 gpmc,wr-access-ns = <40>;
123                 gpmc,wr-data-mux-bus-ns = <0>;
125                 #address-cells = <1>;
126                 #size-cells = <1>;
128                 partition@0 {
129                         label = "X-Loader";
130                         reg = <0 0x80000>;
131                 };
132                 partition@80000 {
133                         label = "U-Boot";
134                         reg = <0x80000 0x140000>;
135                 };
136                 partition@1c0000 {
137                         label = "Environment";
138                         reg = <0x1c0000 0x40000>;
139                 };
140                 partition@200000 {
141                         label = "Kernel";
142                         reg = <0x200000 0x1e00000>;
143                 };
144                 partition@2000000 {
145                         label = "Filesystem";
146                         reg = <0x2000000 0x6000000>;
147                 };
148         };
150         ethernet@gpmc {
151                 interrupt-parent = <&gpio5>;
152                 interrupts = <24 IRQ_TYPE_LEVEL_LOW>;
153                 reg = <1 0 0xff>;
154         };
157 &i2c1 {
158         clock-frequency = <2600000>;
160         twl: twl@48 {
161                 reg = <0x48>;
162                 interrupts = <7>; /* SYS_NIRQ cascaded to intc */
163                 interrupt-parent = <&intc>;
165                 twl_power: power {
166                         compatible = "ti,twl4030-power-idle";
167                         ti,use_poweroff;
168                 };
169         };
172 #include "twl4030.dtsi"
173 #include "twl4030_omap3.dtsi"
174 #include "omap3-panel-sharp-ls037v7dw01.dtsi"
176 &backlight0 {
177         gpios = <&twl_gpio 7 GPIO_ACTIVE_HIGH>;
180 &i2c2 {
181         clock-frequency = <400000>;
184 &i2c3 {
185         clock-frequency = <400000>;
188 /* tps61130rsa enabled by twl4030 regen */
189 &lcd_3v3 {
190         regulator-always-on;
193 &lcd0 {
194         enable-gpios = <&twl_gpio 15 GPIO_ACTIVE_HIGH>; /* lcd INI */
195         reset-gpios = <&gpio2 23 GPIO_ACTIVE_HIGH>;     /* gpio55, lcd RESB */
196         mode-gpios = <&gpio2 24 GPIO_ACTIVE_HIGH>;      /* gpio56, lcd MO */
199 &mcspi1 {
200         tsc2046@0 {
201                 interrupt-parent = <&gpio2>;
202                 interrupts = <22 0>;            /* gpio54 */
203                 pendown-gpio = <&gpio2 22 GPIO_ACTIVE_HIGH>;
204         };
207 &mmc1 {
208         /* See 35xx errata 2.1.1.128 in SPRZ278F */
209         compatible = "ti,omap3-pre-es3-hsmmc";
210         vmmc-supply = <&vmmc1>;
211         bus-width = <4>;
212         pinctrl-names = "default";
213         pinctrl-0 = <&mmc1_pins>;
216 &mmc2 {
217         status="disabled";
220 &mmc3 {
221         status="disabled";
224 &omap3_pmx_core {
225         gpio_key_pins: pinmux_gpio_key_pins {
226                 pinctrl-single,pins = <
227                         0xea (PIN_INPUT | MUX_MODE4)    /* cam_d2.gpio_101 */
228                         0xec (PIN_INPUT | MUX_MODE4)    /* cam_d3.gpio_102 */
229                         0xee (PIN_INPUT | MUX_MODE4)    /* cam_d4.gpio_103 */
230                         0xf0 (PIN_INPUT | MUX_MODE4)    /* cam_d5.gpio_104 */
231                         0xf2 (PIN_INPUT | MUX_MODE4)    /* cam_d6.gpio_105 */
232                         0xf4 (PIN_INPUT | MUX_MODE4)    /* cam_d7.gpio_106 */
233                         0xf6 (PIN_INPUT | MUX_MODE4)    /* cam_d8.gpio_107 */
234                         0xf8 (PIN_INPUT | MUX_MODE4)    /* cam_d9.gpio_108 */
235                         0xfa (PIN_INPUT | MUX_MODE4)    /* cam_d10.gpio_109 */
236                 >;
237         };
239         musb_pins: pinmux_musb_pins {
240                 pinctrl-single,pins = <
241                         0x172 (PIN_INPUT | MUX_MODE0)   /* hsusb0_clk.hsusb0_clk */
242                         0x17a (PIN_INPUT | MUX_MODE0)   /* hsusb0_data0.hsusb0_data0 */
243                         0x17c (PIN_INPUT | MUX_MODE0)   /* hsusb0_data1.hsusb0_data1 */
244                         0x17e (PIN_INPUT | MUX_MODE0)   /* hsusb0_data2.hsusb0_data2 */
245                         0x180 (PIN_INPUT | MUX_MODE0)   /* hsusb0_data3.hsusb0_data3 */
246                         0x182 (PIN_INPUT | MUX_MODE0)   /* hsusb0_data4.hsusb0_data4 */
247                         0x184 (PIN_INPUT | MUX_MODE0)   /* hsusb0_data5.hsusb0_data5 */
248                         0x186 (PIN_INPUT | MUX_MODE0)   /* hsusb0_data6.hsusb0_data6 */
249                         0x188 (PIN_INPUT | MUX_MODE0)   /* hsusb0_data7.hsusb0_data7 */
250                         0x176 (PIN_INPUT | MUX_MODE0)   /* hsusb0_dir.hsusb0_dir */
251                         0x178 (PIN_INPUT | MUX_MODE0)   /* hsusb0_nxt.hsusb0_nxt */
252                         0x174 (PIN_OUTPUT | MUX_MODE0)  /* hsusb0_stp.hsusb0_stp */
253                 >;
254         };
256         mmc1_pins: pinmux_mmc1_pins {
257                 pinctrl-single,pins = <
258                         OMAP3_CORE1_IOPAD(0x2144, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_clk.mmc1_clk */
259                         OMAP3_CORE1_IOPAD(0x2146, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_cmd.mmc1_cmd */
260                         OMAP3_CORE1_IOPAD(0x2148, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat0.mmc1_dat0 */
261                         OMAP3_CORE1_IOPAD(0x214A, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat1.mmc1_dat1 */
262                         OMAP3_CORE1_IOPAD(0x214C, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat2.mmc1_dat2 */
263                         OMAP3_CORE1_IOPAD(0x214e, PIN_INPUT_PULLUP | MUX_MODE0) /* mmc1_dat3.mmc1_dat3 */
264                 >;
265         };
268 &twl_keypad {
269         linux,keymap = <MATRIX_KEY(0, 0, KEY_1)
270                         MATRIX_KEY(0, 1, KEY_2)
271                         MATRIX_KEY(0, 2, KEY_3)
272                         MATRIX_KEY(1, 0, KEY_4)
273                         MATRIX_KEY(1, 1, KEY_5)
274                         MATRIX_KEY(1, 2, KEY_6)
275                         MATRIX_KEY(1, 3, KEY_F5)
276                         MATRIX_KEY(2, 0, KEY_7)
277                         MATRIX_KEY(2, 1, KEY_8)
278                         MATRIX_KEY(2, 2, KEY_9)
279                         MATRIX_KEY(2, 3, KEY_F6)
280                         MATRIX_KEY(3, 0, KEY_F7)
281                         MATRIX_KEY(3, 1, KEY_0)
282                         MATRIX_KEY(3, 2, KEY_F8)
283                         MATRIX_KEY(5, 4, KEY_RESERVED)
284                         MATRIX_KEY(4, 4, KEY_VOLUMEUP)
285                         MATRIX_KEY(5, 5, KEY_VOLUMEDOWN)>;
288 &uart3 {
289         interrupts-extended = <&intc 74 &omap3_pmx_core OMAP3_UART3_RX>;
292 &usb_otg_hs {
293         pinctrl-names = "default";
294         pinctrl-0 = <&musb_pins>;
295         interface-type = <0>;
296         usb-phy = <&usb2_phy>;
297         mode = <3>;
298         power = <50>;
301 &vaux1 {
302         /* Needed for ads7846 */
303         regulator-name = "vcc";