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"
13 #include <dt-bindings/input/input.h>
17 compatible = "nokia,omap3-n900", "ti,omap3430", "ti,omap3";
26 device_type = "memory";
27 reg = <0x80000000 0x10000000>; /* 256 MB */
31 compatible = "gpio-keys";
34 label = "Camera Lens Cover";
35 gpios = <&gpio4 14 GPIO_ACTIVE_LOW>; /* 110 */
36 linux,input-type = <5>; /* EV_SW */
37 linux,code = <0x09>; /* SW_CAMERA_LENS_COVER */
42 label = "Camera Focus";
43 gpios = <&gpio3 4 GPIO_ACTIVE_LOW>; /* 68 */
44 linux,code = <0x210>; /* KEY_CAMERA_FOCUS */
49 label = "Camera Capture";
50 gpios = <&gpio3 5 GPIO_ACTIVE_LOW>; /* 69 */
51 linux,code = <0xd4>; /* KEY_CAMERA */
56 label = "Lock Button";
57 gpios = <&gpio4 17 GPIO_ACTIVE_LOW>; /* 113 */
58 linux,code = <0x98>; /* KEY_SCREENLOCK */
63 label = "Keypad Slide";
64 gpios = <&gpio3 7 GPIO_ACTIVE_LOW>; /* 71 */
65 linux,input-type = <5>; /* EV_SW */
66 linux,code = <0x0a>; /* SW_KEYPAD_SLIDE */
71 label = "Proximity Sensor";
72 gpios = <&gpio3 25 GPIO_ACTIVE_HIGH>; /* 89 */
73 linux,input-type = <5>; /* EV_SW */
74 linux,code = <0x0b>; /* SW_FRONT_PROXIMITY */
79 compatible = "nxp,isp1704";
80 nxp,enable-gpio = <&gpio3 3 GPIO_ACTIVE_HIGH>;
81 usb-phy = <&usb2_phy>;
85 compatible = "composite-connector";
89 tv_connector_in: endpoint {
90 remote-endpoint = <&venc_out>;
96 compatible = "nokia,n900-audio";
98 nokia,cpu-dai = <&mcbsp2>;
99 nokia,audio-codec = <&tlv320aic3x>, <&tlv320aic3x_aux>;
100 nokia,headphone-amplifier = <&tpa6130a2>;
102 tvout-selection-gpios = <&gpio2 8 GPIO_ACTIVE_HIGH>; /* 40 */
103 jack-detection-gpios = <&gpio6 17 GPIO_ACTIVE_HIGH>; /* 177 */
104 eci-switch-gpios = <&gpio6 22 GPIO_ACTIVE_HIGH>; /* 182 */
105 speaker-amplifier-gpios = <&twl_gpio 7 GPIO_ACTIVE_HIGH>;
110 pinctrl-names = "default";
112 uart2_pins: pinmux_uart2_pins {
113 pinctrl-single,pins = <
114 0x14a (PIN_INPUT | MUX_MODE0) /* uart2_rx */
115 0x148 (PIN_OUTPUT | MUX_MODE0) /* uart2_tx */
119 uart3_pins: pinmux_uart3_pins {
120 pinctrl-single,pins = <
121 0x16e (PIN_INPUT | MUX_MODE0) /* uart3_rx */
122 0x170 (PIN_OUTPUT | MUX_MODE0) /* uart3_tx */
126 i2c1_pins: pinmux_i2c1_pins {
127 pinctrl-single,pins = <
128 0x18a (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_scl */
129 0x18c (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c1_sda */
133 i2c2_pins: pinmux_i2c2_pins {
134 pinctrl-single,pins = <
135 0x18e (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_scl */
136 0x190 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c2_sda */
140 i2c3_pins: pinmux_i2c3_pins {
141 pinctrl-single,pins = <
142 0x192 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_scl */
143 0x194 (PIN_INPUT_PULLUP | MUX_MODE0) /* i2c3_sda */
147 mcspi4_pins: pinmux_mcspi4_pins {
148 pinctrl-single,pins = <
149 0x15c (PIN_INPUT_PULLDOWN | MUX_MODE1) /* mcspi4_clk */
150 0x162 (PIN_INPUT_PULLDOWN | MUX_MODE1) /* mcspi4_somi */
151 0x160 (PIN_OUTPUT | MUX_MODE1) /* mcspi4_simo */
152 0x166 (PIN_OUTPUT | MUX_MODE1) /* mcspi4_cs0 */
156 mmc1_pins: pinmux_mmc1_pins {
157 pinctrl-single,pins = <
158 0x114 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_clk */
159 0x116 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_cmd */
160 0x118 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat0 */
161 0x11a (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat1 */
162 0x11c (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat2 */
163 0x11e (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat3 */
167 mmc2_pins: pinmux_mmc2_pins {
168 pinctrl-single,pins = <
169 0x128 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_clk */
170 0x12a (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_cmd */
171 0x12c (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat0 */
172 0x12e (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat1 */
173 0x130 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat2 */
174 0x132 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat3 */
175 0x134 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat4 */
176 0x136 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat5 */
177 0x138 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat6 */
178 0x13a (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat7 */
182 acx565akm_pins: pinmux_acx565akm_pins {
183 pinctrl-single,pins = <
184 0x0d4 (PIN_OUTPUT | MUX_MODE4) /* RX51_LCD_RESET_GPIO */
188 dss_sdi_pins: pinmux_dss_sdi_pins {
189 pinctrl-single,pins = <
190 0x0c0 (PIN_OUTPUT | MUX_MODE1) /* dss_data10.sdi_dat1n */
191 0x0c2 (PIN_OUTPUT | MUX_MODE1) /* dss_data11.sdi_dat1p */
192 0x0c4 (PIN_OUTPUT | MUX_MODE1) /* dss_data12.sdi_dat2n */
193 0x0c6 (PIN_OUTPUT | MUX_MODE1) /* dss_data13.sdi_dat2p */
195 0x0d8 (PIN_OUTPUT | MUX_MODE1) /* dss_data22.sdi_clkp */
196 0x0da (PIN_OUTPUT | MUX_MODE1) /* dss_data23.sdi_clkn */
200 wl1251_pins: pinmux_wl1251 {
201 pinctrl-single,pins = <
202 0x0ce (PIN_OUTPUT | MUX_MODE4) /* gpio 87 => wl1251 enable */
203 0x05a (PIN_INPUT | MUX_MODE4) /* gpio 42 => wl1251 irq */
209 pinctrl-names = "default";
210 pinctrl-0 = <&i2c1_pins>;
212 clock-frequency = <2200000>;
216 interrupts = <7>; /* SYS_NIRQ cascaded to intc */
217 interrupt-parent = <&intc>;
221 #include "twl4030.dtsi"
222 #include "twl4030_omap3.dtsi"
225 regulator-name = "V28";
226 regulator-min-microvolt = <2800000>;
227 regulator-max-microvolt = <2800000>;
228 regulator-always-on; /* due battery cover sensor */
232 regulator-name = "VCSI";
233 regulator-min-microvolt = <1800000>;
234 regulator-max-microvolt = <1800000>;
238 regulator-name = "VMMC2_30";
239 regulator-min-microvolt = <2800000>;
240 regulator-max-microvolt = <3000000>;
244 regulator-name = "VCAM_ANA_28";
245 regulator-min-microvolt = <2800000>;
246 regulator-max-microvolt = <2800000>;
250 regulator-name = "VMMC1";
251 regulator-min-microvolt = <1850000>;
252 regulator-max-microvolt = <3150000>;
256 regulator-name = "V28_A";
257 regulator-min-microvolt = <2800000>;
258 regulator-max-microvolt = <3000000>;
259 regulator-always-on; /* due VIO leak to AIC34 VDDs */
263 regulator-name = "VPLL";
264 regulator-min-microvolt = <1800000>;
265 regulator-max-microvolt = <1800000>;
270 regulator-name = "VSDI_CSI";
271 regulator-min-microvolt = <1800000>;
272 regulator-max-microvolt = <1800000>;
277 regulator-name = "VMMC2_IO_18";
278 regulator-min-microvolt = <1800000>;
279 regulator-max-microvolt = <1800000>;
283 regulator-name = "VIO";
284 regulator-min-microvolt = <1800000>;
285 regulator-max-microvolt = <1800000>;
290 regulator-name = "VINTANA1";
291 /* fixed to 1500000 */
296 regulator-name = "VINTANA2";
297 regulator-min-microvolt = <2750000>;
298 regulator-max-microvolt = <2750000>;
303 regulator-name = "VINTDIG";
304 /* fixed to 1500000 */
310 compatible = "ti,twl4030-audio";
311 ti,enable-vibra = <1>;
316 linux,keymap = < MATRIX_KEY(0x00, 0x00, KEY_Q)
317 MATRIX_KEY(0x00, 0x01, KEY_O)
318 MATRIX_KEY(0x00, 0x02, KEY_P)
319 MATRIX_KEY(0x00, 0x03, KEY_COMMA)
320 MATRIX_KEY(0x00, 0x04, KEY_BACKSPACE)
321 MATRIX_KEY(0x00, 0x06, KEY_A)
322 MATRIX_KEY(0x00, 0x07, KEY_S)
324 MATRIX_KEY(0x01, 0x00, KEY_W)
325 MATRIX_KEY(0x01, 0x01, KEY_D)
326 MATRIX_KEY(0x01, 0x02, KEY_F)
327 MATRIX_KEY(0x01, 0x03, KEY_G)
328 MATRIX_KEY(0x01, 0x04, KEY_H)
329 MATRIX_KEY(0x01, 0x05, KEY_J)
330 MATRIX_KEY(0x01, 0x06, KEY_K)
331 MATRIX_KEY(0x01, 0x07, KEY_L)
333 MATRIX_KEY(0x02, 0x00, KEY_E)
334 MATRIX_KEY(0x02, 0x01, KEY_DOT)
335 MATRIX_KEY(0x02, 0x02, KEY_UP)
336 MATRIX_KEY(0x02, 0x03, KEY_ENTER)
337 MATRIX_KEY(0x02, 0x05, KEY_Z)
338 MATRIX_KEY(0x02, 0x06, KEY_X)
339 MATRIX_KEY(0x02, 0x07, KEY_C)
340 MATRIX_KEY(0x02, 0x08, KEY_F9)
342 MATRIX_KEY(0x03, 0x00, KEY_R)
343 MATRIX_KEY(0x03, 0x01, KEY_V)
344 MATRIX_KEY(0x03, 0x02, KEY_B)
345 MATRIX_KEY(0x03, 0x03, KEY_N)
346 MATRIX_KEY(0x03, 0x04, KEY_M)
347 MATRIX_KEY(0x03, 0x05, KEY_SPACE)
348 MATRIX_KEY(0x03, 0x06, KEY_SPACE)
349 MATRIX_KEY(0x03, 0x07, KEY_LEFT)
351 MATRIX_KEY(0x04, 0x00, KEY_T)
352 MATRIX_KEY(0x04, 0x01, KEY_DOWN)
353 MATRIX_KEY(0x04, 0x02, KEY_RIGHT)
354 MATRIX_KEY(0x04, 0x04, KEY_LEFTCTRL)
355 MATRIX_KEY(0x04, 0x05, KEY_RIGHTALT)
356 MATRIX_KEY(0x04, 0x06, KEY_LEFTSHIFT)
357 MATRIX_KEY(0x04, 0x08, KEY_F10)
359 MATRIX_KEY(0x05, 0x00, KEY_Y)
360 MATRIX_KEY(0x05, 0x08, KEY_F11)
362 MATRIX_KEY(0x06, 0x00, KEY_U)
364 MATRIX_KEY(0x07, 0x00, KEY_I)
365 MATRIX_KEY(0x07, 0x01, KEY_F7)
366 MATRIX_KEY(0x07, 0x02, KEY_F8)
372 ti,pulldowns = <0x03ff3f>; /* BIT(0..5) | BIT(8..17) */
376 pinctrl-names = "default";
377 pinctrl-0 = <&i2c2_pins>;
379 clock-frequency = <100000>;
381 tlv320aic3x: tlv320aic3x@18 {
382 compatible = "ti,tlv320aic3x";
384 gpio-reset = <&gpio2 28 GPIO_ACTIVE_HIGH>; /* 60 */
386 0 /* AIC3X_GPIO1_FUNC_DISABLED */
387 5 /* AIC3X_GPIO2_FUNC_DIGITAL_MIC_INPUT */
390 AVDD-supply = <&vmmc2>;
391 DRVDD-supply = <&vmmc2>;
392 IOVDD-supply = <&vio>;
393 DVDD-supply = <&vio>;
396 tlv320aic3x_aux: tlv320aic3x@19 {
397 compatible = "ti,tlv320aic3x";
399 gpio-reset = <&gpio2 28 GPIO_ACTIVE_HIGH>; /* 60 */
401 AVDD-supply = <&vmmc2>;
402 DRVDD-supply = <&vmmc2>;
403 IOVDD-supply = <&vio>;
404 DVDD-supply = <&vio>;
407 tsl2563: tsl2563@29 {
408 compatible = "amstaos,tsl2563";
411 amstaos,cover-comp-gain = <16>;
415 compatible = "national,lp5523";
417 clock-mode = /bits/ 8 <0>; /* LP55XX_CLOCK_AUTO */
418 enable-gpio = <&gpio2 9 GPIO_ACTIVE_HIGH>; /* 41 */
421 chan-name = "lp5523:kb1";
422 led-cur = /bits/ 8 <50>;
423 max-cur = /bits/ 8 <100>;
427 chan-name = "lp5523:kb2";
428 led-cur = /bits/ 8 <50>;
429 max-cur = /bits/ 8 <100>;
433 chan-name = "lp5523:kb3";
434 led-cur = /bits/ 8 <50>;
435 max-cur = /bits/ 8 <100>;
439 chan-name = "lp5523:kb4";
440 led-cur = /bits/ 8 <50>;
441 max-cur = /bits/ 8 <100>;
445 chan-name = "lp5523:b";
446 led-cur = /bits/ 8 <50>;
447 max-cur = /bits/ 8 <100>;
451 chan-name = "lp5523:g";
452 led-cur = /bits/ 8 <50>;
453 max-cur = /bits/ 8 <100>;
457 chan-name = "lp5523:r";
458 led-cur = /bits/ 8 <50>;
459 max-cur = /bits/ 8 <100>;
463 chan-name = "lp5523:kb5";
464 led-cur = /bits/ 8 <50>;
465 max-cur = /bits/ 8 <100>;
469 chan-name = "lp5523:kb6";
470 led-cur = /bits/ 8 <50>;
471 max-cur = /bits/ 8 <100>;
475 bq27200: bq27200@55 {
476 compatible = "ti,bq27200";
480 tpa6130a2: tpa6130a2@60 {
481 compatible = "ti,tpa6130a2";
484 Vdd-supply = <&vmmc2>;
486 power-gpio = <&gpio4 2 GPIO_ACTIVE_HIGH>; /* 98 */
489 bq24150a: bq24150a@6b {
490 compatible = "ti,bq24150a";
493 ti,current-limit = <100>;
494 ti,weak-battery-voltage = <3400>;
495 ti,battery-regulation-voltage = <4200>;
496 ti,charge-current = <650>;
497 ti,termination-current = <100>;
498 ti,resistor-sense = <68>;
500 ti,usb-charger-detection = <&isp1704>;
505 pinctrl-names = "default";
506 pinctrl-0 = <&i2c3_pins>;
508 clock-frequency = <400000>;
512 pinctrl-names = "default";
513 pinctrl-0 = <&mmc1_pins>;
514 vmmc-supply = <&vmmc1>;
516 cd-gpios = <&gpio6 0 GPIO_ACTIVE_HIGH>; /* 160 */
519 /* most boards use vaux3, only some old versions use vmmc2 instead */
521 pinctrl-names = "default";
522 pinctrl-0 = <&mmc2_pins>;
523 vmmc-supply = <&vaux3>;
524 vmmc_aux-supply = <&vsim>;
534 ranges = <0 0 0x04000000 0x10000000>; /* 256MB */
536 /* gpio-irq for dma: 65 */
539 #address-cells = <1>;
541 reg = <0 0 0x10000000>;
545 gpmc,burst-length = <16>;
549 gpmc,device-width = <2>; /* GPMC_DEVWIDTH_16BIT */
550 gpmc,mux-add-data = <2>; /* GPMC_MUX_AD */
552 gpmc,cs-rd-off-ns = <87>;
553 gpmc,cs-wr-off-ns = <87>;
554 gpmc,adv-on-ns = <0>;
555 gpmc,adv-rd-off-ns = <10>;
556 gpmc,adv-wr-off-ns = <10>;
557 gpmc,oe-on-ns = <15>;
558 gpmc,oe-off-ns = <87>;
560 gpmc,we-off-ns = <87>;
561 gpmc,rd-cycle-ns = <112>;
562 gpmc,wr-cycle-ns = <112>;
563 gpmc,access-ns = <81>;
564 gpmc,page-burst-access-ns = <15>;
565 gpmc,bus-turnaround-ns = <0>;
566 gpmc,cycle2cycle-delay-ns = <0>;
567 gpmc,wait-monitoring-ns = <0>;
568 gpmc,clk-activation-ns = <5>;
569 gpmc,wr-data-mux-bus-ns = <30>;
570 gpmc,wr-access-ns = <81>;
571 gpmc,sync-clk-ps = <15000>;
574 * MTD partition table corresponding to Nokia's
575 * Maemo 5 (Fremantle) release.
578 label = "bootloader";
579 reg = <0x00000000 0x00020000>;
584 reg = <0x00020000 0x00060000>;
588 reg = <0x00080000 0x00040000>;
592 reg = <0x000c0000 0x00200000>;
596 reg = <0x002c0000 0x00200000>;
600 reg = <0x004c0000 0x0fb40000>;
607 * For some reason, touchscreen is necessary for screen to work at
608 * all on real hw. It works well without it on emulator.
610 * Also... order in the device tree actually matters here.
613 compatible = "tsc2005";
614 spi-max-frequency = <6000000>;
619 compatible = "sony,acx565akm";
620 spi-max-frequency = <6000000>;
623 pinctrl-names = "default";
624 pinctrl-0 = <&acx565akm_pins>;
627 reset-gpios = <&gpio3 26 GPIO_ACTIVE_HIGH>; /* 90 */
631 remote-endpoint = <&sdi_out>;
638 pinctrl-names = "default";
639 pinctrl-0 = <&mcspi4_pins>;
642 pinctrl-names = "default";
643 pinctrl-0 = <&wl1251_pins>;
647 compatible = "ti,wl1251";
649 spi-max-frequency = <48000000>;
654 ti,power-gpio = <&gpio3 23 GPIO_ACTIVE_HIGH>; /* 87 */
656 interrupt-parent = <&gpio2>;
657 interrupts = <10 IRQ_TYPE_NONE>; /* gpio line 42 */
662 interface-type = <0>;
663 usb-phy = <&usb2_phy>;
665 phy-names = "usb2-phy";
675 pinctrl-names = "default";
676 pinctrl-0 = <&uart2_pins>;
680 pinctrl-names = "default";
681 pinctrl-0 = <&uart3_pins>;
687 pinctrl-names = "default";
688 pinctrl-0 = <&dss_sdi_pins>;
690 vdds_sdi-supply = <&vaux1>;
693 #address-cells = <1>;
700 remote-endpoint = <&lcd_in>;
710 vdda-supply = <&vdac>;
714 remote-endpoint = <&tv_connector_in>;