blob: 2cab149b191ce69b16e03013e6ef14b94a7469a1 [file] [log] [blame]
Pavel Macheka4d4b152013-08-13 15:36:36 +02001/*
2 * Copyright (C) 2013 Pavel Machek <pavel@ucw.cz>
Aaro Koskinenc3580bc2014-02-09 14:12:36 +02003 * Copyright (C) 2013-2014 Aaro Koskinen <aaro.koskinen@iki.fi>
Pavel Macheka4d4b152013-08-13 15:36:36 +02004 *
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.
8 */
9
10/dts-v1/;
11
Tony Lindgrenf2e2c9d2013-12-06 14:20:17 -080012#include "omap34xx-hs.dtsi"
Sebastian Reichel3fdb7712014-05-06 15:14:28 +020013#include <dt-bindings/input/input.h>
Pavel Macheka4d4b152013-08-13 15:36:36 +020014
15/ {
16 model = "Nokia N900";
Aaro Koskinenc3580bc2014-02-09 14:12:36 +020017 compatible = "nokia,omap3-n900", "ti,omap3430", "ti,omap3";
Pavel Macheka4d4b152013-08-13 15:36:36 +020018
Ivaylo Dimitrov1861cda2015-02-08 17:48:56 +020019 aliases {
20 i2c0;
21 i2c1 = &i2c1;
22 i2c2 = &i2c2;
23 i2c3 = &i2c3;
24 };
25
Pavel Macheka4d4b152013-08-13 15:36:36 +020026 cpus {
27 cpu@0 {
28 cpu0-supply = <&vcc>;
29 };
30 };
31
Tony Lindgrenc1be2032014-05-05 17:27:38 -070032 leds {
33 compatible = "gpio-leds";
34 heartbeat {
35 label = "debug::sleep";
36 gpios = <&gpio6 2 GPIO_ACTIVE_HIGH>; /* gpio162 */
37 linux,default-trigger = "default-on";
38 pinctrl-names = "default";
39 pinctrl-0 = <&debug_leds>;
40 };
41 };
42
Pavel Macheka4d4b152013-08-13 15:36:36 +020043 memory {
44 device_type = "memory";
45 reg = <0x80000000 0x10000000>; /* 256 MB */
46 };
47
Sebastian Reichel3931c8392013-10-23 00:49:34 +020048 gpio_keys {
49 compatible = "gpio-keys";
50
51 camera_lens_cover {
52 label = "Camera Lens Cover";
53 gpios = <&gpio4 14 GPIO_ACTIVE_LOW>; /* 110 */
54 linux,input-type = <5>; /* EV_SW */
55 linux,code = <0x09>; /* SW_CAMERA_LENS_COVER */
56 gpio-key,wakeup;
57 };
58
59 camera_focus {
60 label = "Camera Focus";
61 gpios = <&gpio3 4 GPIO_ACTIVE_LOW>; /* 68 */
62 linux,code = <0x210>; /* KEY_CAMERA_FOCUS */
63 gpio-key,wakeup;
64 };
65
66 camera_capture {
67 label = "Camera Capture";
68 gpios = <&gpio3 5 GPIO_ACTIVE_LOW>; /* 69 */
69 linux,code = <0xd4>; /* KEY_CAMERA */
70 gpio-key,wakeup;
71 };
72
73 lock_button {
74 label = "Lock Button";
75 gpios = <&gpio4 17 GPIO_ACTIVE_LOW>; /* 113 */
76 linux,code = <0x98>; /* KEY_SCREENLOCK */
77 gpio-key,wakeup;
78 };
79
80 keypad_slide {
81 label = "Keypad Slide";
82 gpios = <&gpio3 7 GPIO_ACTIVE_LOW>; /* 71 */
83 linux,input-type = <5>; /* EV_SW */
84 linux,code = <0x0a>; /* SW_KEYPAD_SLIDE */
85 gpio-key,wakeup;
86 };
87
88 proximity_sensor {
89 label = "Proximity Sensor";
90 gpios = <&gpio3 25 GPIO_ACTIVE_HIGH>; /* 89 */
91 linux,input-type = <5>; /* EV_SW */
92 linux,code = <0x0b>; /* SW_FRONT_PROXIMITY */
93 };
94 };
95
Sebastian Reichele17337a2014-01-11 22:17:02 +010096 isp1704: isp1704 {
97 compatible = "nxp,isp1704";
98 nxp,enable-gpio = <&gpio3 3 GPIO_ACTIVE_HIGH>;
99 usb-phy = <&usb2_phy>;
100 };
Tomi Valkeinen11334202013-12-17 09:33:33 +0200101
102 tv: connector {
Tomi Valkeinen32797b32014-09-02 10:17:20 +0300103 compatible = "composite-video-connector";
Tomi Valkeinen11334202013-12-17 09:33:33 +0200104 label = "tv";
105
106 port {
107 tv_connector_in: endpoint {
108 remote-endpoint = <&venc_out>;
109 };
110 };
111 };
Sebastian Reichelf7d0f2a2014-04-28 16:07:27 +0200112
113 sound: n900-audio {
114 compatible = "nokia,n900-audio";
115
116 nokia,cpu-dai = <&mcbsp2>;
117 nokia,audio-codec = <&tlv320aic3x>, <&tlv320aic3x_aux>;
118 nokia,headphone-amplifier = <&tpa6130a2>;
119
120 tvout-selection-gpios = <&gpio2 8 GPIO_ACTIVE_HIGH>; /* 40 */
121 jack-detection-gpios = <&gpio6 17 GPIO_ACTIVE_HIGH>; /* 177 */
122 eci-switch-gpios = <&gpio6 22 GPIO_ACTIVE_HIGH>; /* 182 */
123 speaker-amplifier-gpios = <&twl_gpio 7 GPIO_ACTIVE_HIGH>;
124 };
Sebastian Reichel28398c62014-11-15 03:08:24 +0100125
126 battery: n900-battery {
127 compatible = "nokia,n900-battery";
128 io-channels = <&twl_madc 0>, <&twl_madc 4>, <&twl_madc 12>;
129 io-channel-names = "temp", "bsi", "vbat";
130 };
Pavel Macheka4d4b152013-08-13 15:36:36 +0200131};
132
Sebastian Reichelac888a82013-10-23 00:49:30 +0200133&omap3_pmx_core {
134 pinctrl-names = "default";
135
Sebastian Reichel7a89eec2013-10-23 00:49:32 +0200136 uart2_pins: pinmux_uart2_pins {
137 pinctrl-single,pins = <
138 0x14a (PIN_INPUT | MUX_MODE0) /* uart2_rx */
139 0x148 (PIN_OUTPUT | MUX_MODE0) /* uart2_tx */
140 >;
141 };
142
143 uart3_pins: pinmux_uart3_pins {
144 pinctrl-single,pins = <
145 0x16e (PIN_INPUT | MUX_MODE0) /* uart3_rx */
146 0x170 (PIN_OUTPUT | MUX_MODE0) /* uart3_tx */
147 >;
148 };
149
Tony Lindgren271d4c62014-09-18 09:03:36 -0700150 ethernet_pins: pinmux_ethernet_pins {
151 pinctrl-single,pins = <
152 OMAP3_CORE1_IOPAD(0x20b4, PIN_INPUT_PULLDOWN | MUX_MODE4) /* gpmc_ncs3.gpio_54 */
153 OMAP3_CORE1_IOPAD(0x20fc, PIN_OUTPUT | MUX_MODE4) /* dss_data16.gpio_86 */
154 OMAP3_CORE1_IOPAD(0x219c, PIN_OUTPUT | MUX_MODE4) /* uart3_rts_sd.gpio_164 */
155 >;
156 };
157
Tony Lindgren9a894952014-10-29 17:16:47 -0700158 gpmc_pins: pinmux_gpmc_pins {
159 pinctrl-single,pins = <
160
161 /* address lines */
162 OMAP3_CORE1_IOPAD(0x207a, PIN_OUTPUT | MUX_MODE0) /* gpmc_a1.gpmc_a1 */
163 OMAP3_CORE1_IOPAD(0x207c, PIN_OUTPUT | MUX_MODE0) /* gpmc_a2.gpmc_a2 */
164 OMAP3_CORE1_IOPAD(0x207e, PIN_OUTPUT | MUX_MODE0) /* gpmc_a3.gpmc_a3 */
165
166 /* data lines, gpmc_d0..d7 not muxable according to TRM */
167 OMAP3_CORE1_IOPAD(0x209e, PIN_INPUT | MUX_MODE0) /* gpmc_d8.gpmc_d8 */
168 OMAP3_CORE1_IOPAD(0x20a0, PIN_INPUT | MUX_MODE0) /* gpmc_d9.gpmc_d9 */
169 OMAP3_CORE1_IOPAD(0x20a2, PIN_INPUT | MUX_MODE0) /* gpmc_d10.gpmc_d10 */
170 OMAP3_CORE1_IOPAD(0x20a4, PIN_INPUT | MUX_MODE0) /* gpmc_d11.gpmc_d11 */
171 OMAP3_CORE1_IOPAD(0x20a6, PIN_INPUT | MUX_MODE0) /* gpmc_d12.gpmc_d12 */
172 OMAP3_CORE1_IOPAD(0x20a8, PIN_INPUT | MUX_MODE0) /* gpmc_d13.gpmc_d13 */
173 OMAP3_CORE1_IOPAD(0x20aa, PIN_INPUT | MUX_MODE0) /* gpmc_d14.gpmc_d14 */
174 OMAP3_CORE1_IOPAD(0x20ac, PIN_INPUT | MUX_MODE0) /* gpmc_d15.gpmc_d15 */
175
176 /*
177 * gpmc_ncs0, gpmc_nadv_ale, gpmc_noe, gpmc_nwe, gpmc_wait0 not muxable
178 * according to TRM. OneNAND seems to require PIN_INPUT on clock.
179 */
180 OMAP3_CORE1_IOPAD(0x20b0, PIN_OUTPUT | MUX_MODE0) /* gpmc_ncs1.gpmc_ncs1 */
181 OMAP3_CORE1_IOPAD(0x20be, PIN_INPUT | MUX_MODE0) /* gpmc_clk.gpmc_clk */
182 >;
183 };
184
Sebastian Reichelac888a82013-10-23 00:49:30 +0200185 i2c1_pins: pinmux_i2c1_pins {
186 pinctrl-single,pins = <
Tony Lindgrena4ff93c2014-09-18 09:03:36 -0700187 0x18a (PIN_INPUT | MUX_MODE0) /* i2c1_scl */
188 0x18c (PIN_INPUT | MUX_MODE0) /* i2c1_sda */
Sebastian Reichelac888a82013-10-23 00:49:30 +0200189 >;
190 };
191
192 i2c2_pins: pinmux_i2c2_pins {
193 pinctrl-single,pins = <
Tony Lindgrena4ff93c2014-09-18 09:03:36 -0700194 0x18e (PIN_INPUT | MUX_MODE0) /* i2c2_scl */
195 0x190 (PIN_INPUT | MUX_MODE0) /* i2c2_sda */
Sebastian Reichelac888a82013-10-23 00:49:30 +0200196 >;
197 };
198
199 i2c3_pins: pinmux_i2c3_pins {
200 pinctrl-single,pins = <
Tony Lindgrena4ff93c2014-09-18 09:03:36 -0700201 0x192 (PIN_INPUT | MUX_MODE0) /* i2c3_scl */
202 0x194 (PIN_INPUT | MUX_MODE0) /* i2c3_sda */
Sebastian Reichelac888a82013-10-23 00:49:30 +0200203 >;
204 };
Sebastian Reichelf1751cf2013-10-23 00:49:33 +0200205
Tony Lindgrenc1be2032014-05-05 17:27:38 -0700206 debug_leds: pinmux_debug_led_pins {
207 pinctrl-single,pins = <
208 OMAP3_CORE1_IOPAD(0x2198, PIN_OUTPUT | MUX_MODE4) /* mcbsp1_clkx.gpio_162 */
209 >;
210 };
211
Sebastian Reichelc1ad2202014-03-13 22:59:55 +0100212 mcspi4_pins: pinmux_mcspi4_pins {
213 pinctrl-single,pins = <
214 0x15c (PIN_INPUT_PULLDOWN | MUX_MODE1) /* mcspi4_clk */
215 0x162 (PIN_INPUT_PULLDOWN | MUX_MODE1) /* mcspi4_somi */
216 0x160 (PIN_OUTPUT | MUX_MODE1) /* mcspi4_simo */
217 0x166 (PIN_OUTPUT | MUX_MODE1) /* mcspi4_cs0 */
218 >;
219 };
220
Sebastian Reichelf1751cf2013-10-23 00:49:33 +0200221 mmc1_pins: pinmux_mmc1_pins {
222 pinctrl-single,pins = <
223 0x114 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_clk */
224 0x116 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_cmd */
225 0x118 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat0 */
226 0x11a (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat1 */
227 0x11c (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat2 */
228 0x11e (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc1_dat3 */
229 >;
230 };
Sebastian Reicheld1e6f512013-10-23 00:49:40 +0200231
Tony Lindgrenedd5eb42013-11-25 14:23:45 -0800232 mmc2_pins: pinmux_mmc2_pins {
233 pinctrl-single,pins = <
234 0x128 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_clk */
235 0x12a (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_cmd */
236 0x12c (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat0 */
237 0x12e (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat1 */
238 0x130 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat2 */
239 0x132 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat3 */
240 0x134 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat4 */
241 0x136 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat5 */
242 0x138 (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat6 */
243 0x13a (PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat7 */
244 >;
245 };
246
Tomi Valkeinen11334202013-12-17 09:33:33 +0200247 acx565akm_pins: pinmux_acx565akm_pins {
Sebastian Reicheld1e6f512013-10-23 00:49:40 +0200248 pinctrl-single,pins = <
249 0x0d4 (PIN_OUTPUT | MUX_MODE4) /* RX51_LCD_RESET_GPIO */
250 >;
251 };
Tomi Valkeinen11334202013-12-17 09:33:33 +0200252
253 dss_sdi_pins: pinmux_dss_sdi_pins {
254 pinctrl-single,pins = <
255 0x0c0 (PIN_OUTPUT | MUX_MODE1) /* dss_data10.sdi_dat1n */
256 0x0c2 (PIN_OUTPUT | MUX_MODE1) /* dss_data11.sdi_dat1p */
257 0x0c4 (PIN_OUTPUT | MUX_MODE1) /* dss_data12.sdi_dat2n */
258 0x0c6 (PIN_OUTPUT | MUX_MODE1) /* dss_data13.sdi_dat2p */
259
260 0x0d8 (PIN_OUTPUT | MUX_MODE1) /* dss_data22.sdi_clkp */
261 0x0da (PIN_OUTPUT | MUX_MODE1) /* dss_data23.sdi_clkn */
262 >;
263 };
Sebastian Reichelc1ad2202014-03-13 22:59:55 +0100264
265 wl1251_pins: pinmux_wl1251 {
266 pinctrl-single,pins = <
267 0x0ce (PIN_OUTPUT | MUX_MODE4) /* gpio 87 => wl1251 enable */
268 0x05a (PIN_INPUT | MUX_MODE4) /* gpio 42 => wl1251 irq */
269 >;
270 };
Sebastian Reichel782e25a2014-05-10 18:37:49 +0200271
272 ssi_pins: pinmux_ssi {
273 pinctrl-single,pins = <
274 0x150 (PIN_INPUT_PULLUP | MUX_MODE1) /* ssi1_rdy_tx */
275 0x14e (PIN_OUTPUT | MUX_MODE1) /* ssi1_flag_tx */
276 0x152 (PIN_INPUT | WAKEUP_EN | MUX_MODE4) /* ssi1_wake_tx (cawake) */
277 0x14c (PIN_OUTPUT | MUX_MODE1) /* ssi1_dat_tx */
278 0x154 (PIN_INPUT | MUX_MODE1) /* ssi1_dat_rx */
279 0x156 (PIN_INPUT | MUX_MODE1) /* ssi1_flag_rx */
280 0x158 (PIN_OUTPUT | MUX_MODE1) /* ssi1_rdy_rx */
281 0x15a (PIN_OUTPUT | MUX_MODE1) /* ssi1_wake */
282 >;
283 };
Sebastian Reichel76ad4ac2014-05-10 18:37:50 +0200284
285 modem_pins: pinmux_modem {
286 pinctrl-single,pins = <
287 0x0ac (PIN_OUTPUT | MUX_MODE4) /* gpio 70 => cmt_apeslpx */
288 0x0b0 (PIN_INPUT | WAKEUP_EN | MUX_MODE4) /* gpio 72 => ape_rst_rq */
289 0x0b2 (PIN_OUTPUT | MUX_MODE4) /* gpio 73 => cmt_rst_rq */
290 0x0b4 (PIN_OUTPUT | MUX_MODE4) /* gpio 74 => cmt_en */
291 0x0b6 (PIN_OUTPUT | MUX_MODE4) /* gpio 75 => cmt_rst */
292 0x15e (PIN_OUTPUT | MUX_MODE4) /* gpio 157 => cmt_bsi */
293 >;
294 };
Sebastian Reichelac888a82013-10-23 00:49:30 +0200295};
296
Pavel Macheka4d4b152013-08-13 15:36:36 +0200297&i2c1 {
Sebastian Reichelac888a82013-10-23 00:49:30 +0200298 pinctrl-names = "default";
299 pinctrl-0 = <&i2c1_pins>;
300
Pavel Macheka4d4b152013-08-13 15:36:36 +0200301 clock-frequency = <2200000>;
302
303 twl: twl@48 {
304 reg = <0x48>;
305 interrupts = <7>; /* SYS_NIRQ cascaded to intc */
306 interrupt-parent = <&intc>;
307 };
308};
309
310#include "twl4030.dtsi"
Sebastian Reichelac888a82013-10-23 00:49:30 +0200311#include "twl4030_omap3.dtsi"
Pavel Macheka4d4b152013-08-13 15:36:36 +0200312
Sebastian Reichel9cdbbad2013-10-23 00:49:38 +0200313&vaux1 {
314 regulator-name = "V28";
315 regulator-min-microvolt = <2800000>;
316 regulator-max-microvolt = <2800000>;
Pavel Machek14fd7332014-12-07 17:11:47 +0100317 regulator-always-on; /* due to battery cover sensor */
Sebastian Reichel9cdbbad2013-10-23 00:49:38 +0200318};
319
320&vaux2 {
321 regulator-name = "VCSI";
322 regulator-min-microvolt = <1800000>;
323 regulator-max-microvolt = <1800000>;
324};
325
326&vaux3 {
327 regulator-name = "VMMC2_30";
328 regulator-min-microvolt = <2800000>;
329 regulator-max-microvolt = <3000000>;
330};
331
332&vaux4 {
333 regulator-name = "VCAM_ANA_28";
334 regulator-min-microvolt = <2800000>;
335 regulator-max-microvolt = <2800000>;
336};
337
338&vmmc1 {
339 regulator-name = "VMMC1";
340 regulator-min-microvolt = <1850000>;
341 regulator-max-microvolt = <3150000>;
342};
343
344&vmmc2 {
345 regulator-name = "V28_A";
346 regulator-min-microvolt = <2800000>;
347 regulator-max-microvolt = <3000000>;
348 regulator-always-on; /* due VIO leak to AIC34 VDDs */
349};
350
351&vpll1 {
352 regulator-name = "VPLL";
353 regulator-min-microvolt = <1800000>;
354 regulator-max-microvolt = <1800000>;
355 regulator-always-on;
356};
357
358&vpll2 {
359 regulator-name = "VSDI_CSI";
360 regulator-min-microvolt = <1800000>;
361 regulator-max-microvolt = <1800000>;
362 regulator-always-on;
363};
364
365&vsim {
366 regulator-name = "VMMC2_IO_18";
367 regulator-min-microvolt = <1800000>;
368 regulator-max-microvolt = <1800000>;
369};
370
371&vio {
372 regulator-name = "VIO";
373 regulator-min-microvolt = <1800000>;
374 regulator-max-microvolt = <1800000>;
Sebastian Reichel9cdbbad2013-10-23 00:49:38 +0200375};
376
377&vintana1 {
378 regulator-name = "VINTANA1";
379 /* fixed to 1500000 */
380 regulator-always-on;
381};
382
383&vintana2 {
384 regulator-name = "VINTANA2";
385 regulator-min-microvolt = <2750000>;
386 regulator-max-microvolt = <2750000>;
387 regulator-always-on;
388};
389
390&vintdig {
391 regulator-name = "VINTDIG";
392 /* fixed to 1500000 */
393 regulator-always-on;
394};
395
Sebastian Reichel06ba7a62013-10-23 00:49:35 +0200396&twl {
397 twl_audio: audio {
398 compatible = "ti,twl4030-audio";
399 ti,enable-vibra = <1>;
400 };
Tony Lindgren91888832014-06-16 01:10:22 -0700401
402 twl_power: power {
Tony Lindgrendaebabd2014-08-19 08:24:05 -0700403 compatible = "ti,twl4030-power-n900", "ti,twl4030-power-idle-osc-off";
Tony Lindgren91888832014-06-16 01:10:22 -0700404 ti,use_poweroff;
405 };
Sebastian Reichel06ba7a62013-10-23 00:49:35 +0200406};
407
Sebastian Reichel85c215f2014-01-11 22:16:59 +0100408&twl_keypad {
Sebastian Reichel3fdb7712014-05-06 15:14:28 +0200409 linux,keymap = < MATRIX_KEY(0x00, 0x00, KEY_Q)
410 MATRIX_KEY(0x00, 0x01, KEY_O)
411 MATRIX_KEY(0x00, 0x02, KEY_P)
412 MATRIX_KEY(0x00, 0x03, KEY_COMMA)
413 MATRIX_KEY(0x00, 0x04, KEY_BACKSPACE)
414 MATRIX_KEY(0x00, 0x06, KEY_A)
415 MATRIX_KEY(0x00, 0x07, KEY_S)
Sebastian Reichel85c215f2014-01-11 22:16:59 +0100416
Sebastian Reichel3fdb7712014-05-06 15:14:28 +0200417 MATRIX_KEY(0x01, 0x00, KEY_W)
418 MATRIX_KEY(0x01, 0x01, KEY_D)
419 MATRIX_KEY(0x01, 0x02, KEY_F)
420 MATRIX_KEY(0x01, 0x03, KEY_G)
421 MATRIX_KEY(0x01, 0x04, KEY_H)
422 MATRIX_KEY(0x01, 0x05, KEY_J)
423 MATRIX_KEY(0x01, 0x06, KEY_K)
424 MATRIX_KEY(0x01, 0x07, KEY_L)
Sebastian Reichel85c215f2014-01-11 22:16:59 +0100425
Sebastian Reichel3fdb7712014-05-06 15:14:28 +0200426 MATRIX_KEY(0x02, 0x00, KEY_E)
427 MATRIX_KEY(0x02, 0x01, KEY_DOT)
428 MATRIX_KEY(0x02, 0x02, KEY_UP)
429 MATRIX_KEY(0x02, 0x03, KEY_ENTER)
430 MATRIX_KEY(0x02, 0x05, KEY_Z)
431 MATRIX_KEY(0x02, 0x06, KEY_X)
432 MATRIX_KEY(0x02, 0x07, KEY_C)
433 MATRIX_KEY(0x02, 0x08, KEY_F9)
Sebastian Reichel85c215f2014-01-11 22:16:59 +0100434
Sebastian Reichel3fdb7712014-05-06 15:14:28 +0200435 MATRIX_KEY(0x03, 0x00, KEY_R)
436 MATRIX_KEY(0x03, 0x01, KEY_V)
437 MATRIX_KEY(0x03, 0x02, KEY_B)
438 MATRIX_KEY(0x03, 0x03, KEY_N)
439 MATRIX_KEY(0x03, 0x04, KEY_M)
440 MATRIX_KEY(0x03, 0x05, KEY_SPACE)
441 MATRIX_KEY(0x03, 0x06, KEY_SPACE)
442 MATRIX_KEY(0x03, 0x07, KEY_LEFT)
Sebastian Reichel85c215f2014-01-11 22:16:59 +0100443
Sebastian Reichel3fdb7712014-05-06 15:14:28 +0200444 MATRIX_KEY(0x04, 0x00, KEY_T)
445 MATRIX_KEY(0x04, 0x01, KEY_DOWN)
446 MATRIX_KEY(0x04, 0x02, KEY_RIGHT)
447 MATRIX_KEY(0x04, 0x04, KEY_LEFTCTRL)
448 MATRIX_KEY(0x04, 0x05, KEY_RIGHTALT)
449 MATRIX_KEY(0x04, 0x06, KEY_LEFTSHIFT)
450 MATRIX_KEY(0x04, 0x08, KEY_F10)
Sebastian Reichel85c215f2014-01-11 22:16:59 +0100451
Sebastian Reichel3fdb7712014-05-06 15:14:28 +0200452 MATRIX_KEY(0x05, 0x00, KEY_Y)
453 MATRIX_KEY(0x05, 0x08, KEY_F11)
Sebastian Reichel85c215f2014-01-11 22:16:59 +0100454
Sebastian Reichel3fdb7712014-05-06 15:14:28 +0200455 MATRIX_KEY(0x06, 0x00, KEY_U)
Sebastian Reichel85c215f2014-01-11 22:16:59 +0100456
Sebastian Reichel3fdb7712014-05-06 15:14:28 +0200457 MATRIX_KEY(0x07, 0x00, KEY_I)
458 MATRIX_KEY(0x07, 0x01, KEY_F7)
459 MATRIX_KEY(0x07, 0x02, KEY_F8)
Sebastian Reichel85c215f2014-01-11 22:16:59 +0100460 >;
461};
462
Pavel Macheka4d4b152013-08-13 15:36:36 +0200463&twl_gpio {
464 ti,pullups = <0x0>;
465 ti,pulldowns = <0x03ff3f>; /* BIT(0..5) | BIT(8..17) */
466};
467
468&i2c2 {
Sebastian Reichelac888a82013-10-23 00:49:30 +0200469 pinctrl-names = "default";
470 pinctrl-0 = <&i2c2_pins>;
471
Sebastian Reichel48fc9862013-10-23 00:49:31 +0200472 clock-frequency = <100000>;
Sebastian Reichelb2b9b252013-10-23 00:49:36 +0200473
Sebastian Reichel14e3e292013-10-23 00:49:41 +0200474 tlv320aic3x: tlv320aic3x@18 {
475 compatible = "ti,tlv320aic3x";
476 reg = <0x18>;
477 gpio-reset = <&gpio2 28 GPIO_ACTIVE_HIGH>; /* 60 */
478 ai3x-gpio-func = <
479 0 /* AIC3X_GPIO1_FUNC_DISABLED */
480 5 /* AIC3X_GPIO2_FUNC_DIGITAL_MIC_INPUT */
481 >;
482
483 AVDD-supply = <&vmmc2>;
484 DRVDD-supply = <&vmmc2>;
485 IOVDD-supply = <&vio>;
486 DVDD-supply = <&vio>;
487 };
488
489 tlv320aic3x_aux: tlv320aic3x@19 {
490 compatible = "ti,tlv320aic3x";
491 reg = <0x19>;
492 gpio-reset = <&gpio2 28 GPIO_ACTIVE_HIGH>; /* 60 */
493
494 AVDD-supply = <&vmmc2>;
495 DRVDD-supply = <&vmmc2>;
496 IOVDD-supply = <&vio>;
497 DVDD-supply = <&vio>;
498 };
499
Sebastian Reichel12f2f872014-01-11 22:17:00 +0100500 tsl2563: tsl2563@29 {
501 compatible = "amstaos,tsl2563";
502 reg = <0x29>;
503
504 amstaos,cover-comp-gain = <16>;
505 };
506
Sebastian Reichela0bf1f32013-10-23 00:49:42 +0200507 lp5523: lp5523@32 {
508 compatible = "national,lp5523";
509 reg = <0x32>;
510 clock-mode = /bits/ 8 <0>; /* LP55XX_CLOCK_AUTO */
511 enable-gpio = <&gpio2 9 GPIO_ACTIVE_HIGH>; /* 41 */
512
513 chan0 {
514 chan-name = "lp5523:kb1";
515 led-cur = /bits/ 8 <50>;
516 max-cur = /bits/ 8 <100>;
517 };
518
519 chan1 {
520 chan-name = "lp5523:kb2";
521 led-cur = /bits/ 8 <50>;
522 max-cur = /bits/ 8 <100>;
523 };
524
525 chan2 {
526 chan-name = "lp5523:kb3";
527 led-cur = /bits/ 8 <50>;
528 max-cur = /bits/ 8 <100>;
529 };
530
531 chan3 {
532 chan-name = "lp5523:kb4";
533 led-cur = /bits/ 8 <50>;
534 max-cur = /bits/ 8 <100>;
535 };
536
537 chan4 {
538 chan-name = "lp5523:b";
539 led-cur = /bits/ 8 <50>;
540 max-cur = /bits/ 8 <100>;
541 };
542
543 chan5 {
544 chan-name = "lp5523:g";
545 led-cur = /bits/ 8 <50>;
546 max-cur = /bits/ 8 <100>;
547 };
548
549 chan6 {
550 chan-name = "lp5523:r";
551 led-cur = /bits/ 8 <50>;
552 max-cur = /bits/ 8 <100>;
553 };
554
555 chan7 {
556 chan-name = "lp5523:kb5";
557 led-cur = /bits/ 8 <50>;
558 max-cur = /bits/ 8 <100>;
559 };
560
561 chan8 {
562 chan-name = "lp5523:kb6";
563 led-cur = /bits/ 8 <50>;
564 max-cur = /bits/ 8 <100>;
565 };
566 };
567
Sebastian Reichelb2b9b252013-10-23 00:49:36 +0200568 bq27200: bq27200@55 {
569 compatible = "ti,bq27200";
570 reg = <0x55>;
571 };
Sebastian Reichel9e2367c2014-01-11 22:17:01 +0100572
573 tpa6130a2: tpa6130a2@60 {
574 compatible = "ti,tpa6130a2";
575 reg = <0x60>;
576
577 Vdd-supply = <&vmmc2>;
578
579 power-gpio = <&gpio4 2 GPIO_ACTIVE_HIGH>; /* 98 */
580 };
Sebastian Reichel334a09c2014-01-11 22:17:03 +0100581
Sebastian Reichel406c07e2014-11-15 02:47:30 +0100582 si4713: si4713@63 {
583 compatible = "silabs,si4713";
584 reg = <0x63>;
585
586 interrupts-extended = <&gpio2 21 IRQ_TYPE_EDGE_FALLING>; /* 53 */
587 reset-gpios = <&gpio6 3 GPIO_ACTIVE_HIGH>; /* 163 */
588 vio-supply = <&vio>;
589 vdd-supply = <&vaux1>;
590 };
591
Sebastian Reichel334a09c2014-01-11 22:17:03 +0100592 bq24150a: bq24150a@6b {
593 compatible = "ti,bq24150a";
594 reg = <0x6b>;
595
596 ti,current-limit = <100>;
597 ti,weak-battery-voltage = <3400>;
598 ti,battery-regulation-voltage = <4200>;
599 ti,charge-current = <650>;
600 ti,termination-current = <100>;
601 ti,resistor-sense = <68>;
602
603 ti,usb-charger-detection = <&isp1704>;
604 };
Pavel Macheka4d4b152013-08-13 15:36:36 +0200605};
606
607&i2c3 {
Sebastian Reichelac888a82013-10-23 00:49:30 +0200608 pinctrl-names = "default";
609 pinctrl-0 = <&i2c3_pins>;
610
Sebastian Reichel48fc9862013-10-23 00:49:31 +0200611 clock-frequency = <400000>;
Sebastian Reichel1ac4e6f2015-03-27 15:39:46 +0100612
613 lis302dl: lis3lv02d@1d {
614 compatible = "st,lis3lv02d";
615 reg = <0x1d>;
616
617 Vdd-supply = <&vaux1>;
618 Vdd_IO-supply = <&vio>;
619
620 interrupt-parent = <&gpio6>;
621 interrupts = <21 20>; /* 181 and 180 */
622
623 /* click flags */
624 st,click-single-x;
625 st,click-single-y;
626 st,click-single-z;
627
628 /* Limits are 0.5g * value */
629 st,click-threshold-x = <8>;
630 st,click-threshold-y = <8>;
631 st,click-threshold-z = <10>;
632
633 /* Click must be longer than time limit */
634 st,click-time-limit = <9>;
635
636 /* Kind of debounce filter */
637 st,click-latency = <50>;
638
639 /* Interrupt line 2 for click detection */
640 st,irq2-click;
641
642 st,wakeup-x-hi;
643 st,wakeup-y-hi;
644 st,wakeup-threshold = <(800/18)>; /* millig-value / 18 to get HW values */
645
646 st,wakeup2-z-hi;
647 st,wakeup2-threshold = <(900/18)>; /* millig-value / 18 to get HW values */
648
649 st,hipass1-disable;
650 st,hipass2-disable;
651
652 st,axis-x = <1>; /* LIS3_DEV_X */
653 st,axis-y = <(-2)>; /* LIS3_INV_DEV_Y */
654 st,axis-z = <(-3)>; /* LIS3_INV_DEV_Z */
655
656 st,min-limit-x = <(-32)>;
657 st,min-limit-y = <3>;
658 st,min-limit-z = <3>;
659
660 st,max-limit-x = <(-3)>;
661 st,max-limit-y = <32>;
662 st,max-limit-z = <32>;
663 };
Pavel Macheka4d4b152013-08-13 15:36:36 +0200664};
665
666&mmc1 {
Sebastian Reichelf1751cf2013-10-23 00:49:33 +0200667 pinctrl-names = "default";
668 pinctrl-0 = <&mmc1_pins>;
669 vmmc-supply = <&vmmc1>;
670 bus-width = <4>;
671 cd-gpios = <&gpio6 0 GPIO_ACTIVE_HIGH>; /* 160 */
Pavel Macheka4d4b152013-08-13 15:36:36 +0200672};
673
Tony Lindgrenedd5eb42013-11-25 14:23:45 -0800674/* most boards use vaux3, only some old versions use vmmc2 instead */
Pavel Macheka4d4b152013-08-13 15:36:36 +0200675&mmc2 {
Tony Lindgrenedd5eb42013-11-25 14:23:45 -0800676 pinctrl-names = "default";
677 pinctrl-0 = <&mmc2_pins>;
678 vmmc-supply = <&vaux3>;
679 vmmc_aux-supply = <&vsim>;
680 bus-width = <8>;
681 non-removable;
Pavel Macheka4d4b152013-08-13 15:36:36 +0200682};
683
684&mmc3 {
685 status = "disabled";
686};
687
Sebastian Reichel8699d2d2013-10-23 00:49:39 +0200688&gpmc {
Tony Lindgren271d4c62014-09-18 09:03:36 -0700689 ranges = <0 0 0x01000000 0x01000000>, /* 16 MB for OneNAND */
690 <1 0 0x02000000 0x01000000>; /* 16 MB for smc91c96 */
Tony Lindgren9a894952014-10-29 17:16:47 -0700691 pinctrl-names = "default";
692 pinctrl-0 = <&gpmc_pins>;
Sebastian Reichel8699d2d2013-10-23 00:49:39 +0200693
Tony Lindgrene2c5eb72014-10-29 17:16:47 -0700694 /* sys_ndmareq1 could be used by the driver, not as gpio65 though */
Sebastian Reichel8699d2d2013-10-23 00:49:39 +0200695 onenand@0,0 {
696 #address-cells = <1>;
697 #size-cells = <1>;
Tony Lindgrene2c5eb72014-10-29 17:16:47 -0700698 reg = <0 0 0x20000>; /* CS0, offset 0, IO size 128K */
Sebastian Reichel8699d2d2013-10-23 00:49:39 +0200699
700 gpmc,sync-read;
701 gpmc,sync-write;
702 gpmc,burst-length = <16>;
703 gpmc,burst-read;
704 gpmc,burst-wrap;
705 gpmc,burst-write;
706 gpmc,device-width = <2>; /* GPMC_DEVWIDTH_16BIT */
707 gpmc,mux-add-data = <2>; /* GPMC_MUX_AD */
708 gpmc,cs-on-ns = <0>;
709 gpmc,cs-rd-off-ns = <87>;
710 gpmc,cs-wr-off-ns = <87>;
711 gpmc,adv-on-ns = <0>;
712 gpmc,adv-rd-off-ns = <10>;
713 gpmc,adv-wr-off-ns = <10>;
714 gpmc,oe-on-ns = <15>;
715 gpmc,oe-off-ns = <87>;
716 gpmc,we-on-ns = <0>;
717 gpmc,we-off-ns = <87>;
718 gpmc,rd-cycle-ns = <112>;
719 gpmc,wr-cycle-ns = <112>;
720 gpmc,access-ns = <81>;
721 gpmc,page-burst-access-ns = <15>;
722 gpmc,bus-turnaround-ns = <0>;
723 gpmc,cycle2cycle-delay-ns = <0>;
724 gpmc,wait-monitoring-ns = <0>;
725 gpmc,clk-activation-ns = <5>;
726 gpmc,wr-data-mux-bus-ns = <30>;
727 gpmc,wr-access-ns = <81>;
728 gpmc,sync-clk-ps = <15000>;
729
730 /*
731 * MTD partition table corresponding to Nokia's
732 * Maemo 5 (Fremantle) release.
733 */
734 partition@0 {
735 label = "bootloader";
736 reg = <0x00000000 0x00020000>;
737 read-only;
738 };
739 partition@1 {
740 label = "config";
741 reg = <0x00020000 0x00060000>;
742 };
743 partition@2 {
744 label = "log";
745 reg = <0x00080000 0x00040000>;
746 };
747 partition@3 {
748 label = "kernel";
749 reg = <0x000c0000 0x00200000>;
750 };
751 partition@4 {
752 label = "initfs";
753 reg = <0x002c0000 0x00200000>;
754 };
755 partition@5 {
756 label = "rootfs";
757 reg = <0x004c0000 0x0fb40000>;
758 };
759 };
Tony Lindgren271d4c62014-09-18 09:03:36 -0700760
Tony Lindgren7ac72742015-01-06 08:49:57 -0800761 /* Ethernet is on some early development boards and qemu */
Tony Lindgren271d4c62014-09-18 09:03:36 -0700762 ethernet@gpmc {
763 compatible = "smsc,lan91c94";
764 interrupt-parent = <&gpio2>;
765 interrupts = <22 IRQ_TYPE_LEVEL_HIGH>; /* gpio54 */
Pali Rohárcb9071d2015-02-19 17:49:50 +0100766 reg = <1 0 0xf>; /* 16 byte IO range */
Tony Lindgren271d4c62014-09-18 09:03:36 -0700767 bank-width = <2>;
768 pinctrl-names = "default";
769 pinctrl-0 = <&ethernet_pins>;
Tony Lindgren7d2911c2014-10-30 09:59:27 -0700770 power-gpios = <&gpio3 22 GPIO_ACTIVE_HIGH>; /* gpio86 */
771 reset-gpios = <&gpio6 4 GPIO_ACTIVE_HIGH>; /* gpio164 */
Tony Lindgren271d4c62014-09-18 09:03:36 -0700772 gpmc,device-width = <2>;
773 gpmc,sync-clk-ps = <0>;
774 gpmc,cs-on-ns = <0>;
775 gpmc,cs-rd-off-ns = <48>;
776 gpmc,cs-wr-off-ns = <24>;
777 gpmc,adv-on-ns = <0>;
778 gpmc,adv-rd-off-ns = <0>;
779 gpmc,adv-wr-off-ns = <0>;
780 gpmc,we-on-ns = <12>;
781 gpmc,we-off-ns = <18>;
782 gpmc,oe-on-ns = <12>;
783 gpmc,oe-off-ns = <48>;
784 gpmc,page-burst-access-ns = <0>;
785 gpmc,access-ns = <42>;
786 gpmc,rd-cycle-ns = <180>;
787 gpmc,wr-cycle-ns = <180>;
788 gpmc,bus-turnaround-ns = <0>;
789 gpmc,cycle2cycle-delay-ns = <0>;
790 gpmc,wait-monitoring-ns = <0>;
791 gpmc,clk-activation-ns = <0>;
792 gpmc,wr-access-ns = <0>;
793 gpmc,wr-data-mux-bus-ns = <12>;
794 };
Sebastian Reichel8699d2d2013-10-23 00:49:39 +0200795};
796
Pavel Macheka4d4b152013-08-13 15:36:36 +0200797&mcspi1 {
798 /*
799 * For some reason, touchscreen is necessary for screen to work at
800 * all on real hw. It works well without it on emulator.
801 *
802 * Also... order in the device tree actually matters here.
803 */
804 tsc2005@0 {
Sebastian Reichel50525892014-05-29 00:03:59 -0700805 compatible = "ti,tsc2005";
Pavel Macheka4d4b152013-08-13 15:36:36 +0200806 spi-max-frequency = <6000000>;
807 reg = <0>;
Sebastian Reichel50525892014-05-29 00:03:59 -0700808
809 vio-supply = <&vio>;
810
811 reset-gpios = <&gpio4 8 GPIO_ACTIVE_HIGH>; /* 104 */
812 interrupts-extended = <&gpio4 4 IRQ_TYPE_EDGE_RISING>; /* 100 */
813
814 touchscreen-fuzz-x = <4>;
815 touchscreen-fuzz-y = <7>;
816 touchscreen-fuzz-pressure = <2>;
817 touchscreen-max-x = <4096>;
818 touchscreen-max-y = <4096>;
819 touchscreen-max-pressure = <2048>;
820
821 ti,x-plate-ohms = <280>;
822 ti,esd-recovery-timeout-ms = <8000>;
Pavel Macheka4d4b152013-08-13 15:36:36 +0200823 };
Tomi Valkeinen11334202013-12-17 09:33:33 +0200824
825 acx565akm@2 {
826 compatible = "sony,acx565akm";
Pavel Macheka4d4b152013-08-13 15:36:36 +0200827 spi-max-frequency = <6000000>;
828 reg = <2>;
Sebastian Reicheld1e6f512013-10-23 00:49:40 +0200829
830 pinctrl-names = "default";
Tomi Valkeinen11334202013-12-17 09:33:33 +0200831 pinctrl-0 = <&acx565akm_pins>;
832
833 label = "lcd";
834 reset-gpios = <&gpio3 26 GPIO_ACTIVE_HIGH>; /* 90 */
835
836 port {
837 lcd_in: endpoint {
838 remote-endpoint = <&sdi_out>;
839 };
840 };
Pavel Macheka4d4b152013-08-13 15:36:36 +0200841 };
842};
843
Sebastian Reichelc1ad2202014-03-13 22:59:55 +0100844&mcspi4 {
845 pinctrl-names = "default";
846 pinctrl-0 = <&mcspi4_pins>;
847
848 wl1251@0 {
849 pinctrl-names = "default";
850 pinctrl-0 = <&wl1251_pins>;
851
852 vio-supply = <&vio>;
853
854 compatible = "ti,wl1251";
855 reg = <0>;
856 spi-max-frequency = <48000000>;
857
858 spi-cpol;
859 spi-cpha;
860
861 ti,power-gpio = <&gpio3 23 GPIO_ACTIVE_HIGH>; /* 87 */
862
863 interrupt-parent = <&gpio2>;
864 interrupts = <10 IRQ_TYPE_NONE>; /* gpio line 42 */
865 };
866};
867
Pavel Macheka4d4b152013-08-13 15:36:36 +0200868&usb_otg_hs {
869 interface-type = <0>;
870 usb-phy = <&usb2_phy>;
Roger Quadrosd2afcf02013-10-07 16:28:13 +0300871 phys = <&usb2_phy>;
872 phy-names = "usb2-phy";
Pavel Macheka4d4b152013-08-13 15:36:36 +0200873 mode = <2>;
874 power = <50>;
875};
Sebastian Reichel7a89eec2013-10-23 00:49:32 +0200876
877&uart1 {
878 status = "disabled";
879};
880
881&uart2 {
Tony Lindgren31f08202014-05-05 17:27:39 -0700882 interrupts-extended = <&intc 73 &omap3_pmx_core OMAP3_UART2_RX>;
Sebastian Reichel7a89eec2013-10-23 00:49:32 +0200883 pinctrl-names = "default";
884 pinctrl-0 = <&uart2_pins>;
885};
886
887&uart3 {
Tony Lindgren31f08202014-05-05 17:27:39 -0700888 interrupts-extended = <&intc 74 &omap3_pmx_core OMAP3_UART3_RX>;
Sebastian Reichel7a89eec2013-10-23 00:49:32 +0200889 pinctrl-names = "default";
890 pinctrl-0 = <&uart3_pins>;
891};
Tomi Valkeinen11334202013-12-17 09:33:33 +0200892
893&dss {
894 status = "ok";
895
896 pinctrl-names = "default";
897 pinctrl-0 = <&dss_sdi_pins>;
898
899 vdds_sdi-supply = <&vaux1>;
900
901 ports {
902 #address-cells = <1>;
903 #size-cells = <0>;
904
905 port@1 {
906 reg = <1>;
907
908 sdi_out: endpoint {
909 remote-endpoint = <&lcd_in>;
910 datapairs = <2>;
911 };
912 };
913 };
914};
915
916&venc {
917 status = "ok";
918
919 vdda-supply = <&vdac>;
920
921 port {
922 venc_out: endpoint {
923 remote-endpoint = <&tv_connector_in>;
924 ti,channels = <1>;
925 };
926 };
927};
Sebastian Reichelf7d0f2a2014-04-28 16:07:27 +0200928
929&mcbsp2 {
930 status = "ok";
931};
Sebastian Reichel782e25a2014-05-10 18:37:49 +0200932
933&ssi_port1 {
934 pinctrl-names = "default";
935 pinctrl-0 = <&ssi_pins>;
936
937 ti,ssi-cawake-gpio = <&gpio5 23 GPIO_ACTIVE_HIGH>; /* 151 */
Sebastian Reichel76ad4ac2014-05-10 18:37:50 +0200938
939 modem: hsi-client {
940 compatible = "nokia,n900-modem";
941
942 pinctrl-names = "default";
943 pinctrl-0 = <&modem_pins>;
944
945 hsi-channel-ids = <0>, <1>, <2>, <3>;
946 hsi-channel-names = "mcsaab-control",
947 "speech-control",
948 "speech-data",
949 "mcsaab-data";
950 hsi-speed-kbps = <55000>;
951 hsi-mode = "frame";
952 hsi-flow = "synchronized";
953 hsi-arb-mode = "round-robin";
954
955 interrupts-extended = <&gpio3 8 IRQ_TYPE_EDGE_FALLING>; /* 72 */
956
957 gpios = <&gpio3 6 GPIO_ACTIVE_HIGH>, /* 70 */
958 <&gpio3 9 GPIO_ACTIVE_HIGH>, /* 73 */
959 <&gpio3 10 GPIO_ACTIVE_HIGH>, /* 74 */
960 <&gpio3 11 GPIO_ACTIVE_HIGH>, /* 75 */
961 <&gpio5 29 GPIO_ACTIVE_HIGH>; /* 157 */
962 gpio-names = "cmt_apeslpx",
963 "cmt_rst_rq",
964 "cmt_en",
965 "cmt_rst",
966 "cmt_bsi";
967 };
Sebastian Reichel782e25a2014-05-10 18:37:49 +0200968};
969
970&ssi_port2 {
971 status = "disabled";
Sebastian Reichel76ad4ac2014-05-10 18:37:50 +0200972};