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 compatible = "gpio-leds";
27 label = "debug::sleep";
28 gpios = <&gpio6 2 GPIO_ACTIVE_HIGH>; /* gpio162 */
29 linux,default-trigger = "default-on";
30 pinctrl-names = "default";
31 pinctrl-0 = <&debug_leds>;
36 device_type = "memory";
37 reg = <0x80000000 0x10000000>; /* 256 MB */
41 compatible = "gpio-keys";
44 label = "Camera Lens Cover";
45 gpios = <&gpio4 14 GPIO_ACTIVE_LOW>; /* 110 */
46 linux,input-type = <5>; /* EV_SW */
47 linux,code = <0x09>; /* SW_CAMERA_LENS_COVER */
52 label = "Camera Focus";
53 gpios = <&gpio3 4 GPIO_ACTIVE_LOW>; /* 68 */
54 linux,code = <0x210>; /* KEY_CAMERA_FOCUS */
59 label = "Camera Capture";
60 gpios = <&gpio3 5 GPIO_ACTIVE_LOW>; /* 69 */
61 linux,code = <0xd4>; /* KEY_CAMERA */
66 label = "Lock Button";
67 gpios = <&gpio4 17 GPIO_ACTIVE_LOW>; /* 113 */
68 linux,code = <0x98>; /* KEY_SCREENLOCK */
73 label = "Keypad Slide";
74 gpios = <&gpio3 7 GPIO_ACTIVE_LOW>; /* 71 */
75 linux,input-type = <5>; /* EV_SW */
76 linux,code = <0x0a>; /* SW_KEYPAD_SLIDE */
81 label = "Proximity Sensor";
82 gpios = <&gpio3 25 GPIO_ACTIVE_HIGH>; /* 89 */
83 linux,input-type = <5>; /* EV_SW */
84 linux,code = <0x0b>; /* SW_FRONT_PROXIMITY */
89 compatible = "nxp,isp1704";
90 nxp,enable-gpio = <&gpio3 3 GPIO_ACTIVE_HIGH>;
91 usb-phy = <&usb2_phy>;
95 compatible = "composite-connector";
99 tv_connector_in: endpoint {
100 remote-endpoint = <&venc_out>;
107 pinctrl-names = "default";
109 uart2_pins: pinmux_uart2_pins {
110 pinctrl-single,pins = <
111 0x14a (PIN_INPUT | MUX_MODE0) /* uart2_rx */
112 0x148 (PIN_OUTPUT | MUX_MODE0) /* uart2_tx */
116 uart3_pins: pinmux_uart3_pins {
117 pinctrl-single,pins = <
118 0x16e (PIN_INPUT | MUX_MODE0) /* uart3_rx */
119 0x170 (PIN_OUTPUT | MUX_MODE0) /* uart3_tx */
123 i2c1_pins: pinmux_i2c1_pins {
124 pinctrl-single,pins = <
125 0x18a (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl */
126 0x18c (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_sda */
130 i2c2_pins: pinmux_i2c2_pins {
131 pinctrl-single,pins = <
132 0x18e (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_scl */
133 0x190 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_sda */
137 i2c3_pins: pinmux_i2c3_pins {
138 pinctrl-single,pins = <
139 0x192 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_scl */
140 0x194 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda */
144 debug_leds: pinmux_debug_led_pins {
145 pinctrl-single,pins = <
146 OMAP3_CORE1_IOPAD(0x2198, PIN_OUTPUT | MUX_MODE4) /* mcbsp1_clkx.gpio_162 */
150 mmc1_pins: pinmux_mmc1_pins {
151 pinctrl-single,pins = <
152 0x114 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_clk */
153 0x116 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_cmd */
154 0x118 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat0 */
155 0x11a (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat1 */
156 0x11c (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat2 */
157 0x11e (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat3 */
161 mmc2_pins: pinmux_mmc2_pins {
162 pinctrl-single,pins = <
163 0x128 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_clk */
164 0x12a (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_cmd */
165 0x12c (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat0 */
166 0x12e (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat1 */
167 0x130 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat2 */
168 0x132 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat3 */
169 0x134 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat4 */
170 0x136 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat5 */
171 0x138 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat6 */
172 0x13a (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat7 */
176 acx565akm_pins: pinmux_acx565akm_pins {
177 pinctrl-single,pins = <
178 0x0d4 (PIN_OUTPUT | MUX_MODE4) /* RX51_LCD_RESET_GPIO */
182 dss_sdi_pins: pinmux_dss_sdi_pins {
183 pinctrl-single,pins = <
184 0x0c0 (PIN_OUTPUT | MUX_MODE1) /* dss_data10.sdi_dat1n */
185 0x0c2 (PIN_OUTPUT | MUX_MODE1) /* dss_data11.sdi_dat1p */
186 0x0c4 (PIN_OUTPUT | MUX_MODE1) /* dss_data12.sdi_dat2n */
187 0x0c6 (PIN_OUTPUT | MUX_MODE1) /* dss_data13.sdi_dat2p */
189 0x0d8 (PIN_OUTPUT | MUX_MODE1) /* dss_data22.sdi_clkp */
190 0x0da (PIN_OUTPUT | MUX_MODE1) /* dss_data23.sdi_clkn */
196 pinctrl-names = "default";
197 pinctrl-0 = <&i2c1_pins>;
199 clock-frequency = <2200000>;
203 interrupts = <7>; /* SYS_NIRQ cascaded to intc */
204 interrupt-parent = <&intc>;
208 #include "twl4030.dtsi"
209 #include "twl4030_omap3.dtsi"
212 regulator-name = "V28";
213 regulator-min-microvolt = <2800000>;
214 regulator-max-microvolt = <2800000>;
215 regulator-always-on; /* due battery cover sensor */
219 regulator-name = "VCSI";
220 regulator-min-microvolt = <1800000>;
221 regulator-max-microvolt = <1800000>;
225 regulator-name = "VMMC2_30";
226 regulator-min-microvolt = <2800000>;
227 regulator-max-microvolt = <3000000>;
231 regulator-name = "VCAM_ANA_28";
232 regulator-min-microvolt = <2800000>;
233 regulator-max-microvolt = <2800000>;
237 regulator-name = "VMMC1";
238 regulator-min-microvolt = <1850000>;
239 regulator-max-microvolt = <3150000>;
243 regulator-name = "V28_A";
244 regulator-min-microvolt = <2800000>;
245 regulator-max-microvolt = <3000000>;
246 regulator-always-on; /* due VIO leak to AIC34 VDDs */
250 regulator-name = "VPLL";
251 regulator-min-microvolt = <1800000>;
252 regulator-max-microvolt = <1800000>;
257 regulator-name = "VSDI_CSI";
258 regulator-min-microvolt = <1800000>;
259 regulator-max-microvolt = <1800000>;
264 regulator-name = "VMMC2_IO_18";
265 regulator-min-microvolt = <1800000>;
266 regulator-max-microvolt = <1800000>;
270 regulator-name = "VIO";
271 regulator-min-microvolt = <1800000>;
272 regulator-max-microvolt = <1800000>;
277 regulator-name = "VINTANA1";
278 /* fixed to 1500000 */
283 regulator-name = "VINTANA2";
284 regulator-min-microvolt = <2750000>;
285 regulator-max-microvolt = <2750000>;
290 regulator-name = "VINTDIG";
291 /* fixed to 1500000 */
297 compatible = "ti,twl4030-audio";
298 ti,enable-vibra = <1>;
303 linux,keymap = < 0x00000010 /* KEY_Q */
304 0x00010018 /* KEY_O */
305 0x00020019 /* KEY_P */
306 0x00030033 /* KEY_COMMA */
307 0x0004000e /* KEY_BACKSPACE */
308 0x0006001e /* KEY_A */
309 0x0007001f /* KEY_S */
311 0x01000011 /* KEY_W */
312 0x01010020 /* KEY_D */
313 0x01020021 /* KEY_F */
314 0x01030022 /* KEY_G */
315 0x01040023 /* KEY_H */
316 0x01050024 /* KEY_J */
317 0x01060025 /* KEY_K */
318 0x01070026 /* KEY_L */
320 0x02000012 /* KEY_E */
321 0x02010034 /* KEY_DOT */
322 0x02020067 /* KEY_UP */
323 0x0203001c /* KEY_ENTER */
324 0x0205002c /* KEY_Z */
325 0x0206002d /* KEY_X */
326 0x0207002e /* KEY_C */
327 0x02080043 /* KEY_F9 */
329 0x03000013 /* KEY_R */
330 0x0301002f /* KEY_V */
331 0x03020030 /* KEY_B */
332 0x03030031 /* KEY_N */
333 0x03040032 /* KEY_M */
334 0x03050039 /* KEY_SPACE */
335 0x03060039 /* KEY_SPACE */
336 0x03070069 /* KEY_LEFT */
338 0x04000014 /* KEY_T */
339 0x0401006c /* KEY_DOWN */
340 0x0402006a /* KEY_RIGHT */
341 0x0404001d /* KEY_LEFTCTRL */
342 0x04050064 /* KEY_RIGHTALT */
343 0x0406002a /* KEY_LEFTSHIFT */
344 0x04080044 /* KEY_F10 */
346 0x05000015 /* KEY_Y */
347 0x05080057 /* KEY_F11 */
349 0x06000016 /* KEY_U */
351 0x07000017 /* KEY_I */
352 0x07010041 /* KEY_F7 */
353 0x07020042 /* KEY_F8 */
359 ti,pulldowns = <0x03ff3f>; /* BIT(0..5) | BIT(8..17) */
363 pinctrl-names = "default";
364 pinctrl-0 = <&i2c2_pins>;
366 clock-frequency = <100000>;
368 tlv320aic3x: tlv320aic3x@18 {
369 compatible = "ti,tlv320aic3x";
371 gpio-reset = <&gpio2 28 GPIO_ACTIVE_HIGH>; /* 60 */
373 0 /* AIC3X_GPIO1_FUNC_DISABLED */
374 5 /* AIC3X_GPIO2_FUNC_DIGITAL_MIC_INPUT */
377 AVDD-supply = <&vmmc2>;
378 DRVDD-supply = <&vmmc2>;
379 IOVDD-supply = <&vio>;
380 DVDD-supply = <&vio>;
383 tlv320aic3x_aux: tlv320aic3x@19 {
384 compatible = "ti,tlv320aic3x";
386 gpio-reset = <&gpio2 28 GPIO_ACTIVE_HIGH>; /* 60 */
388 AVDD-supply = <&vmmc2>;
389 DRVDD-supply = <&vmmc2>;
390 IOVDD-supply = <&vio>;
391 DVDD-supply = <&vio>;
394 tsl2563: tsl2563@29 {
395 compatible = "amstaos,tsl2563";
398 amstaos,cover-comp-gain = <16>;
402 compatible = "national,lp5523";
404 clock-mode = /bits/ 8 <0>; /* LP55XX_CLOCK_AUTO */
405 enable-gpio = <&gpio2 9 GPIO_ACTIVE_HIGH>; /* 41 */
408 chan-name = "lp5523:kb1";
409 led-cur = /bits/ 8 <50>;
410 max-cur = /bits/ 8 <100>;
414 chan-name = "lp5523:kb2";
415 led-cur = /bits/ 8 <50>;
416 max-cur = /bits/ 8 <100>;
420 chan-name = "lp5523:kb3";
421 led-cur = /bits/ 8 <50>;
422 max-cur = /bits/ 8 <100>;
426 chan-name = "lp5523:kb4";
427 led-cur = /bits/ 8 <50>;
428 max-cur = /bits/ 8 <100>;
432 chan-name = "lp5523:b";
433 led-cur = /bits/ 8 <50>;
434 max-cur = /bits/ 8 <100>;
438 chan-name = "lp5523:g";
439 led-cur = /bits/ 8 <50>;
440 max-cur = /bits/ 8 <100>;
444 chan-name = "lp5523:r";
445 led-cur = /bits/ 8 <50>;
446 max-cur = /bits/ 8 <100>;
450 chan-name = "lp5523:kb5";
451 led-cur = /bits/ 8 <50>;
452 max-cur = /bits/ 8 <100>;
456 chan-name = "lp5523:kb6";
457 led-cur = /bits/ 8 <50>;
458 max-cur = /bits/ 8 <100>;
462 bq27200: bq27200@55 {
463 compatible = "ti,bq27200";
467 tpa6130a2: tpa6130a2@60 {
468 compatible = "ti,tpa6130a2";
471 Vdd-supply = <&vmmc2>;
473 power-gpio = <&gpio4 2 GPIO_ACTIVE_HIGH>; /* 98 */
476 bq24150a: bq24150a@6b {
477 compatible = "ti,bq24150a";
480 ti,current-limit = <100>;
481 ti,weak-battery-voltage = <3400>;
482 ti,battery-regulation-voltage = <4200>;
483 ti,charge-current = <650>;
484 ti,termination-current = <100>;
485 ti,resistor-sense = <68>;
487 ti,usb-charger-detection = <&isp1704>;
492 pinctrl-names = "default";
493 pinctrl-0 = <&i2c3_pins>;
495 clock-frequency = <400000>;
499 pinctrl-names = "default";
500 pinctrl-0 = <&mmc1_pins>;
501 vmmc-supply = <&vmmc1>;
503 cd-gpios = <&gpio6 0 GPIO_ACTIVE_HIGH>; /* 160 */
506 /* most boards use vaux3, only some old versions use vmmc2 instead */
508 pinctrl-names = "default";
509 pinctrl-0 = <&mmc2_pins>;
510 vmmc-supply = <&vaux3>;
511 vmmc_aux-supply = <&vsim>;
521 ranges = <0 0 0x04000000 0x10000000>; /* 256MB */
523 /* gpio-irq for dma: 65 */
526 #address-cells = <1>;
528 reg = <0 0 0x10000000>;
532 gpmc,burst-length = <16>;
536 gpmc,device-width = <2>; /* GPMC_DEVWIDTH_16BIT */
537 gpmc,mux-add-data = <2>; /* GPMC_MUX_AD */
539 gpmc,cs-rd-off-ns = <87>;
540 gpmc,cs-wr-off-ns = <87>;
541 gpmc,adv-on-ns = <0>;
542 gpmc,adv-rd-off-ns = <10>;
543 gpmc,adv-wr-off-ns = <10>;
544 gpmc,oe-on-ns = <15>;
545 gpmc,oe-off-ns = <87>;
547 gpmc,we-off-ns = <87>;
548 gpmc,rd-cycle-ns = <112>;
549 gpmc,wr-cycle-ns = <112>;
550 gpmc,access-ns = <81>;
551 gpmc,page-burst-access-ns = <15>;
552 gpmc,bus-turnaround-ns = <0>;
553 gpmc,cycle2cycle-delay-ns = <0>;
554 gpmc,wait-monitoring-ns = <0>;
555 gpmc,clk-activation-ns = <5>;
556 gpmc,wr-data-mux-bus-ns = <30>;
557 gpmc,wr-access-ns = <81>;
558 gpmc,sync-clk-ps = <15000>;
561 * MTD partition table corresponding to Nokia's
562 * Maemo 5 (Fremantle) release.
565 label = "bootloader";
566 reg = <0x00000000 0x00020000>;
571 reg = <0x00020000 0x00060000>;
575 reg = <0x00080000 0x00040000>;
579 reg = <0x000c0000 0x00200000>;
583 reg = <0x002c0000 0x00200000>;
587 reg = <0x004c0000 0x0fb40000>;
594 * For some reason, touchscreen is necessary for screen to work at
595 * all on real hw. It works well without it on emulator.
597 * Also... order in the device tree actually matters here.
600 compatible = "tsc2005";
601 spi-max-frequency = <6000000>;
606 compatible = "sony,acx565akm";
607 spi-max-frequency = <6000000>;
610 pinctrl-names = "default";
611 pinctrl-0 = <&acx565akm_pins>;
614 reset-gpios = <&gpio3 26 GPIO_ACTIVE_HIGH>; /* 90 */
618 remote-endpoint = <&sdi_out>;
625 interface-type = <0>;
626 usb-phy = <&usb2_phy>;
628 phy-names = "usb2-phy";
638 interrupts-extended = <&intc 73 &omap3_pmx_core OMAP3_UART2_RX>;
639 pinctrl-names = "default";
640 pinctrl-0 = <&uart2_pins>;
644 interrupts-extended = <&intc 74 &omap3_pmx_core OMAP3_UART3_RX>;
645 pinctrl-names = "default";
646 pinctrl-0 = <&uart3_pins>;
652 pinctrl-names = "default";
653 pinctrl-0 = <&dss_sdi_pins>;
655 vdds_sdi-supply = <&vaux1>;
658 #address-cells = <1>;
665 remote-endpoint = <&lcd_in>;
675 vdda-supply = <&vdac>;
679 remote-endpoint = <&tv_connector_in>;