2 * Copyright (C) 2013 Pavel Machek <pavel@ucw.cz>
3 * Copyright (C) 2013-2014 Aaro Koskinen <aaro.koskinen@iki.fi>
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.
12 #include "omap34xx-hs.dtsi"
16 compatible = "nokia,omap3-n900", "ti,omap3430", "ti,omap3";
25 device_type = "memory";
26 reg = <0x80000000 0x10000000>; /* 256 MB */
30 compatible = "gpio-keys";
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 */
41 label = "Camera Focus";
42 gpios = <&gpio3 4 GPIO_ACTIVE_LOW>; /* 68 */
43 linux,code = <0x210>; /* KEY_CAMERA_FOCUS */
48 label = "Camera Capture";
49 gpios = <&gpio3 5 GPIO_ACTIVE_LOW>; /* 69 */
50 linux,code = <0xd4>; /* KEY_CAMERA */
55 label = "Lock Button";
56 gpios = <&gpio4 17 GPIO_ACTIVE_LOW>; /* 113 */
57 linux,code = <0x98>; /* KEY_SCREENLOCK */
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 */
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 */
78 compatible = "nxp,isp1704";
79 nxp,enable-gpio = <&gpio3 3 GPIO_ACTIVE_HIGH>;
80 usb-phy = <&usb2_phy>;
85 pinctrl-names = "default";
87 uart2_pins: pinmux_uart2_pins {
88 pinctrl-single,pins = <
89 0x14a (PIN_INPUT | MUX_MODE0) /* uart2_rx */
90 0x148 (PIN_OUTPUT | MUX_MODE0) /* uart2_tx */
94 uart3_pins: pinmux_uart3_pins {
95 pinctrl-single,pins = <
96 0x16e (PIN_INPUT | MUX_MODE0) /* uart3_rx */
97 0x170 (PIN_OUTPUT | MUX_MODE0) /* uart3_tx */
101 i2c1_pins: pinmux_i2c1_pins {
102 pinctrl-single,pins = <
103 0x18a (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl */
104 0x18c (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_sda */
108 i2c2_pins: pinmux_i2c2_pins {
109 pinctrl-single,pins = <
110 0x18e (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_scl */
111 0x190 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_sda */
115 i2c3_pins: pinmux_i2c3_pins {
116 pinctrl-single,pins = <
117 0x192 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_scl */
118 0x194 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda */
122 mmc1_pins: pinmux_mmc1_pins {
123 pinctrl-single,pins = <
124 0x114 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_clk */
125 0x116 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_cmd */
126 0x118 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat0 */
127 0x11a (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat1 */
128 0x11c (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat2 */
129 0x11e (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat3 */
133 mmc2_pins: pinmux_mmc2_pins {
134 pinctrl-single,pins = <
135 0x128 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_clk */
136 0x12a (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_cmd */
137 0x12c (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat0 */
138 0x12e (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat1 */
139 0x130 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat2 */
140 0x132 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat3 */
141 0x134 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat4 */
142 0x136 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat5 */
143 0x138 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat6 */
144 0x13a (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat7 */
148 display_pins: pinmux_display_pins {
149 pinctrl-single,pins = <
150 0x0d4 (PIN_OUTPUT | MUX_MODE4) /* RX51_LCD_RESET_GPIO */
156 pinctrl-names = "default";
157 pinctrl-0 = <&i2c1_pins>;
159 clock-frequency = <2200000>;
163 interrupts = <7>; /* SYS_NIRQ cascaded to intc */
164 interrupt-parent = <&intc>;
168 #include "twl4030.dtsi"
169 #include "twl4030_omap3.dtsi"
172 regulator-name = "V28";
173 regulator-min-microvolt = <2800000>;
174 regulator-max-microvolt = <2800000>;
175 regulator-always-on; /* due battery cover sensor */
179 regulator-name = "VCSI";
180 regulator-min-microvolt = <1800000>;
181 regulator-max-microvolt = <1800000>;
185 regulator-name = "VMMC2_30";
186 regulator-min-microvolt = <2800000>;
187 regulator-max-microvolt = <3000000>;
191 regulator-name = "VCAM_ANA_28";
192 regulator-min-microvolt = <2800000>;
193 regulator-max-microvolt = <2800000>;
197 regulator-name = "VMMC1";
198 regulator-min-microvolt = <1850000>;
199 regulator-max-microvolt = <3150000>;
203 regulator-name = "V28_A";
204 regulator-min-microvolt = <2800000>;
205 regulator-max-microvolt = <3000000>;
206 regulator-always-on; /* due VIO leak to AIC34 VDDs */
210 regulator-name = "VPLL";
211 regulator-min-microvolt = <1800000>;
212 regulator-max-microvolt = <1800000>;
217 regulator-name = "VSDI_CSI";
218 regulator-min-microvolt = <1800000>;
219 regulator-max-microvolt = <1800000>;
224 regulator-name = "VMMC2_IO_18";
225 regulator-min-microvolt = <1800000>;
226 regulator-max-microvolt = <1800000>;
230 regulator-name = "VIO";
231 regulator-min-microvolt = <1800000>;
232 regulator-max-microvolt = <1800000>;
237 regulator-name = "VINTANA1";
238 /* fixed to 1500000 */
243 regulator-name = "VINTANA2";
244 regulator-min-microvolt = <2750000>;
245 regulator-max-microvolt = <2750000>;
250 regulator-name = "VINTDIG";
251 /* fixed to 1500000 */
257 compatible = "ti,twl4030-audio";
258 ti,enable-vibra = <1>;
263 linux,keymap = < 0x00000010 /* KEY_Q */
264 0x00010018 /* KEY_O */
265 0x00020019 /* KEY_P */
266 0x00030033 /* KEY_COMMA */
267 0x0004000e /* KEY_BACKSPACE */
268 0x0006001e /* KEY_A */
269 0x0007001f /* KEY_S */
271 0x01000011 /* KEY_W */
272 0x01010020 /* KEY_D */
273 0x01020021 /* KEY_F */
274 0x01030022 /* KEY_G */
275 0x01040023 /* KEY_H */
276 0x01050024 /* KEY_J */
277 0x01060025 /* KEY_K */
278 0x01070026 /* KEY_L */
280 0x02000012 /* KEY_E */
281 0x02010034 /* KEY_DOT */
282 0x02020067 /* KEY_UP */
283 0x0203001c /* KEY_ENTER */
284 0x0205002c /* KEY_Z */
285 0x0206002d /* KEY_X */
286 0x0207002e /* KEY_C */
287 0x02080043 /* KEY_F9 */
289 0x03000013 /* KEY_R */
290 0x0301002f /* KEY_V */
291 0x03020030 /* KEY_B */
292 0x03030031 /* KEY_N */
293 0x03040032 /* KEY_M */
294 0x03050039 /* KEY_SPACE */
295 0x03060039 /* KEY_SPACE */
296 0x03070069 /* KEY_LEFT */
298 0x04000014 /* KEY_T */
299 0x0401006c /* KEY_DOWN */
300 0x0402006a /* KEY_RIGHT */
301 0x0404001d /* KEY_LEFTCTRL */
302 0x04050064 /* KEY_RIGHTALT */
303 0x0406002a /* KEY_LEFTSHIFT */
304 0x04080044 /* KEY_F10 */
306 0x05000015 /* KEY_Y */
307 0x05080057 /* KEY_F11 */
309 0x06000016 /* KEY_U */
311 0x07000017 /* KEY_I */
312 0x07010041 /* KEY_F7 */
313 0x07020042 /* KEY_F8 */
319 ti,pulldowns = <0x03ff3f>; /* BIT(0..5) | BIT(8..17) */
323 pinctrl-names = "default";
324 pinctrl-0 = <&i2c2_pins>;
326 clock-frequency = <100000>;
328 tlv320aic3x: tlv320aic3x@18 {
329 compatible = "ti,tlv320aic3x";
331 gpio-reset = <&gpio2 28 GPIO_ACTIVE_HIGH>; /* 60 */
333 0 /* AIC3X_GPIO1_FUNC_DISABLED */
334 5 /* AIC3X_GPIO2_FUNC_DIGITAL_MIC_INPUT */
337 AVDD-supply = <&vmmc2>;
338 DRVDD-supply = <&vmmc2>;
339 IOVDD-supply = <&vio>;
340 DVDD-supply = <&vio>;
343 tlv320aic3x_aux: tlv320aic3x@19 {
344 compatible = "ti,tlv320aic3x";
346 gpio-reset = <&gpio2 28 GPIO_ACTIVE_HIGH>; /* 60 */
348 AVDD-supply = <&vmmc2>;
349 DRVDD-supply = <&vmmc2>;
350 IOVDD-supply = <&vio>;
351 DVDD-supply = <&vio>;
354 tsl2563: tsl2563@29 {
355 compatible = "amstaos,tsl2563";
358 amstaos,cover-comp-gain = <16>;
362 compatible = "national,lp5523";
364 clock-mode = /bits/ 8 <0>; /* LP55XX_CLOCK_AUTO */
365 enable-gpio = <&gpio2 9 GPIO_ACTIVE_HIGH>; /* 41 */
368 chan-name = "lp5523:kb1";
369 led-cur = /bits/ 8 <50>;
370 max-cur = /bits/ 8 <100>;
374 chan-name = "lp5523:kb2";
375 led-cur = /bits/ 8 <50>;
376 max-cur = /bits/ 8 <100>;
380 chan-name = "lp5523:kb3";
381 led-cur = /bits/ 8 <50>;
382 max-cur = /bits/ 8 <100>;
386 chan-name = "lp5523:kb4";
387 led-cur = /bits/ 8 <50>;
388 max-cur = /bits/ 8 <100>;
392 chan-name = "lp5523:b";
393 led-cur = /bits/ 8 <50>;
394 max-cur = /bits/ 8 <100>;
398 chan-name = "lp5523:g";
399 led-cur = /bits/ 8 <50>;
400 max-cur = /bits/ 8 <100>;
404 chan-name = "lp5523:r";
405 led-cur = /bits/ 8 <50>;
406 max-cur = /bits/ 8 <100>;
410 chan-name = "lp5523:kb5";
411 led-cur = /bits/ 8 <50>;
412 max-cur = /bits/ 8 <100>;
416 chan-name = "lp5523:kb6";
417 led-cur = /bits/ 8 <50>;
418 max-cur = /bits/ 8 <100>;
422 bq27200: bq27200@55 {
423 compatible = "ti,bq27200";
427 tpa6130a2: tpa6130a2@60 {
428 compatible = "ti,tpa6130a2";
431 Vdd-supply = <&vmmc2>;
433 power-gpio = <&gpio4 2 GPIO_ACTIVE_HIGH>; /* 98 */
436 bq24150a: bq24150a@6b {
437 compatible = "ti,bq24150a";
440 ti,current-limit = <100>;
441 ti,weak-battery-voltage = <3400>;
442 ti,battery-regulation-voltage = <4200>;
443 ti,charge-current = <650>;
444 ti,termination-current = <100>;
445 ti,resistor-sense = <68>;
447 ti,usb-charger-detection = <&isp1704>;
452 pinctrl-names = "default";
453 pinctrl-0 = <&i2c3_pins>;
455 clock-frequency = <400000>;
459 pinctrl-names = "default";
460 pinctrl-0 = <&mmc1_pins>;
461 vmmc-supply = <&vmmc1>;
463 cd-gpios = <&gpio6 0 GPIO_ACTIVE_HIGH>; /* 160 */
466 /* most boards use vaux3, only some old versions use vmmc2 instead */
468 pinctrl-names = "default";
469 pinctrl-0 = <&mmc2_pins>;
470 vmmc-supply = <&vaux3>;
471 vmmc_aux-supply = <&vsim>;
481 ranges = <0 0 0x04000000 0x10000000>; /* 256MB */
483 /* gpio-irq for dma: 65 */
486 #address-cells = <1>;
488 reg = <0 0 0x10000000>;
492 gpmc,burst-length = <16>;
496 gpmc,device-width = <2>; /* GPMC_DEVWIDTH_16BIT */
497 gpmc,mux-add-data = <2>; /* GPMC_MUX_AD */
499 gpmc,cs-rd-off-ns = <87>;
500 gpmc,cs-wr-off-ns = <87>;
501 gpmc,adv-on-ns = <0>;
502 gpmc,adv-rd-off-ns = <10>;
503 gpmc,adv-wr-off-ns = <10>;
504 gpmc,oe-on-ns = <15>;
505 gpmc,oe-off-ns = <87>;
507 gpmc,we-off-ns = <87>;
508 gpmc,rd-cycle-ns = <112>;
509 gpmc,wr-cycle-ns = <112>;
510 gpmc,access-ns = <81>;
511 gpmc,page-burst-access-ns = <15>;
512 gpmc,bus-turnaround-ns = <0>;
513 gpmc,cycle2cycle-delay-ns = <0>;
514 gpmc,wait-monitoring-ns = <0>;
515 gpmc,clk-activation-ns = <5>;
516 gpmc,wr-data-mux-bus-ns = <30>;
517 gpmc,wr-access-ns = <81>;
518 gpmc,sync-clk-ps = <15000>;
521 * MTD partition table corresponding to Nokia's
522 * Maemo 5 (Fremantle) release.
525 label = "bootloader";
526 reg = <0x00000000 0x00020000>;
531 reg = <0x00020000 0x00060000>;
535 reg = <0x00080000 0x00040000>;
539 reg = <0x000c0000 0x00200000>;
543 reg = <0x002c0000 0x00200000>;
547 reg = <0x004c0000 0x0fb40000>;
554 * For some reason, touchscreen is necessary for screen to work at
555 * all on real hw. It works well without it on emulator.
557 * Also... order in the device tree actually matters here.
560 compatible = "tsc2005";
561 spi-max-frequency = <6000000>;
565 compatible = "acx565akm";
566 spi-max-frequency = <6000000>;
569 pinctrl-names = "default";
570 pinctrl-0 = <&display_pins>;
575 interface-type = <0>;
576 usb-phy = <&usb2_phy>;
578 phy-names = "usb2-phy";
588 pinctrl-names = "default";
589 pinctrl-0 = <&uart2_pins>;
593 pinctrl-names = "default";
594 pinctrl-0 = <&uart3_pins>;