blob: 924cc9358cba90e573108bf2c3f68779ed8dd895 [file] [log] [blame]
Aaro Koskinendf013182013-10-15 23:36:09 +03001/*
2 * omap3-n950-n9.dtsi - Device Tree file for Nokia N950 & N9 (common stuff)
3 *
4 * Written by: Aaro Koskinen <aaro.koskinen@iki.fi>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License version 2 as
8 * published by the Free Software Foundation.
9 */
10
Pali Rohára494e322015-02-26 14:49:57 +010011#include "omap36xx.dtsi"
Aaro Koskinendf013182013-10-15 23:36:09 +030012
13/ {
14 cpus {
15 cpu@0 {
16 cpu0-supply = <&vcc>;
17 };
18 };
19
20 memory {
21 device_type = "memory";
22 reg = <0x80000000 0x40000000>; /* 1 GB */
23 };
24
25 vemmc: fixedregulator@0 {
26 compatible = "regulator-fixed";
27 regulator-name = "VEMMC";
28 regulator-min-microvolt = <2900000>;
29 regulator-max-microvolt = <2900000>;
Javier Martinez Canillas3a637e02015-10-06 11:03:39 +020030 gpio = <&gpio5 29 GPIO_ACTIVE_HIGH>; /* gpio line 157 */
Aaro Koskinendf013182013-10-15 23:36:09 +030031 startup-delay-us = <150>;
32 enable-active-high;
33 };
Sebastian Reichel96d3bb12016-01-09 04:19:34 +010034
35 vwlan_fixed: fixedregulator@2 {
36 compatible = "regulator-fixed";
37 regulator-name = "VWLAN";
38 gpio = <&gpio2 3 GPIO_ACTIVE_HIGH>; /* gpio 35 */
39 enable-active-high;
40 regulator-boot-off;
41 };
Aaro Koskinendf013182013-10-15 23:36:09 +030042};
43
44&omap3_pmx_core {
45 mmc2_pins: pinmux_mmc2_pins {
46 pinctrl-single,pins = <
Javier Martinez Canillas53ccdd42015-11-13 01:54:06 -030047 OMAP3_CORE1_IOPAD(0x2158, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_clk */
48 OMAP3_CORE1_IOPAD(0x215a, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_cmd */
49 OMAP3_CORE1_IOPAD(0x215c, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat0 */
50 OMAP3_CORE1_IOPAD(0x215e, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat1 */
51 OMAP3_CORE1_IOPAD(0x2160, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat2 */
52 OMAP3_CORE1_IOPAD(0x2162, PIN_INPUT_PULLUP | MUX_MODE0) /* sdmmc2_dat3 */
Aaro Koskinendf013182013-10-15 23:36:09 +030053 >;
54 };
Sebastian Reichel96d3bb12016-01-09 04:19:34 +010055
56 wlan_pins: pinmux_wlan_pins {
57 pinctrl-single,pins = <
58 OMAP3_CORE1_IOPAD(0x207c, PIN_OUTPUT | MUX_MODE4) /* gpio 35 - wlan enable */
59 OMAP3_CORE1_IOPAD(0x208a, PIN_INPUT | MUX_MODE4) /* gpio 42 - wlan irq */
60 >;
61 };
Sebastian Reichel3bec8c82016-01-17 16:49:06 +010062
63 ssi_pins: pinmux_ssi_pins {
64 pinctrl-single,pins = <
65 OMAP3_CORE1_IOPAD(0x217c, PIN_OUTPUT | MUX_MODE1) /* ssi1_dat_tx */
66 OMAP3_CORE1_IOPAD(0x217e, PIN_OUTPUT | MUX_MODE1) /* ssi1_flag_tx */
67 OMAP3_CORE1_IOPAD(0x2180, PIN_INPUT_PULLUP | MUX_MODE1) /* ssi1_rdy_tx */
68 OMAP3_CORE1_IOPAD(0x2182, PIN_INPUT | WAKEUP_EN | MUX_MODE4) /* ssi1_wake_tx (cawake) */
69 OMAP3_CORE1_IOPAD(0x2184, PIN_INPUT | MUX_MODE1) /* ssi1_dat_rx */
70 OMAP3_CORE1_IOPAD(0x2186, PIN_INPUT | MUX_MODE1) /* ssi1_flag_rx */
71 OMAP3_CORE1_IOPAD(0x2188, PIN_OUTPUT | MUX_MODE1) /* ssi1_rdy_rx */
72 OMAP3_CORE1_IOPAD(0x218a, PIN_OUTPUT | MUX_MODE1) /* ssi1_wake */
73 >;
74 };
Sebastian Reichelf21b9872016-01-17 16:49:09 +010075
Sebastian Reichel60fca6b2016-01-31 01:52:37 +010076 ssi_pins_idle: pinmux_ssi_pins_idle {
77 pinctrl-single,pins = <
78 OMAP3_CORE1_IOPAD(0x217c, PIN_OUTPUT | MUX_MODE7) /* ssi1_dat_tx */
79 OMAP3_CORE1_IOPAD(0x217e, PIN_OUTPUT | MUX_MODE7) /* ssi1_flag_tx */
80 OMAP3_CORE1_IOPAD(0x2180, PIN_INPUT_PULLDOWN | MUX_MODE7) /* ssi1_rdy_tx */
81 OMAP3_CORE1_IOPAD(0x2182, PIN_INPUT | WAKEUP_EN | MUX_MODE4) /* ssi1_wake_tx (cawake) */
82 OMAP3_CORE1_IOPAD(0x2184, PIN_INPUT | MUX_MODE7) /* ssi1_dat_rx */
83 OMAP3_CORE1_IOPAD(0x2186, PIN_INPUT | MUX_MODE7) /* ssi1_flag_rx */
84 OMAP3_CORE1_IOPAD(0x2188, PIN_OUTPUT | MUX_MODE4) /* ssi1_rdy_rx */
85 OMAP3_CORE1_IOPAD(0x218a, PIN_OUTPUT | MUX_MODE7) /* ssi1_wake */
86 >;
87 };
88
Sebastian Reichelf21b9872016-01-17 16:49:09 +010089 modem_pins1: pinmux_modem_core1_pins {
90 pinctrl-single,pins = <
91 OMAP3_CORE1_IOPAD(0x207a, PIN_INPUT | WAKEUP_EN | MUX_MODE4) /* gpio_34 (ape_rst_rq) */
92 OMAP3_CORE1_IOPAD(0x2100, PIN_OUTPUT | MUX_MODE4) /* gpio_88 (cmt_rst_rq) */
93 OMAP3_CORE1_IOPAD(0x210a, PIN_OUTPUT | MUX_MODE4) /* gpio_93 (cmt_apeslpx) */
94 >;
95 };
96};
97
98&omap3_pmx_core2 {
99 modem_pins2: pinmux_modem_core2_pins {
100 pinctrl-single,pins = <
101 OMAP3630_CORE2_IOPAD(0x25ec, PIN_OUTPUT | MUX_MODE4) /* gpio_23 (cmt_en) */
102 >;
103 };
Aaro Koskinendf013182013-10-15 23:36:09 +0300104};
105
106&i2c1 {
107 clock-frequency = <2900000>;
108
109 twl: twl@48 {
110 reg = <0x48>;
111 interrupts = <7>; /* SYS_NIRQ cascaded to intc */
112 interrupt-parent = <&intc>;
113 };
114};
115
116/include/ "twl4030.dtsi"
117
118&twl {
119 compatible = "ti,twl5031";
Aaro Koskinenf4b36902014-12-26 22:09:49 +0200120
121 twl_power: power {
122 compatible = "ti,twl4030-power";
123 ti,use_poweroff;
124 };
Aaro Koskinendf013182013-10-15 23:36:09 +0300125};
126
127&twl_gpio {
128 ti,pullups = <0x000001>; /* BIT(0) */
129 ti,pulldowns = <0x008106>; /* BIT(1) | BIT(2) | BIT(8) | BIT(15) */
130};
131
Sebastian Reichel50413b92016-03-13 01:06:14 +0100132&vdac {
133 regulator-name = "vdac";
134 regulator-min-microvolt = <1800000>;
135 regulator-max-microvolt = <1800000>;
136};
137
138&vpll1 {
139 regulator-name = "vpll1";
140 regulator-min-microvolt = <1800000>;
141 regulator-max-microvolt = <1800000>;
142};
143
144&vpll2 {
145 regulator-name = "vpll2";
146 regulator-min-microvolt = <1800000>;
147 regulator-max-microvolt = <1800000>;
148};
149
150&vaux1 {
151 regulator-name = "vaux1";
152 regulator-min-microvolt = <2800000>;
153 regulator-max-microvolt = <2800000>;
154};
155
Sakari Ailus79f7f372014-05-04 03:23:08 +0300156/* CSI-2 receiver */
157&vaux2 {
158 regulator-name = "vaux2";
159 regulator-min-microvolt = <1800000>;
160 regulator-max-microvolt = <1800000>;
161};
162
163/* Cameras */
164&vaux3 {
165 regulator-name = "vaux3";
166 regulator-min-microvolt = <2800000>;
167 regulator-max-microvolt = <2800000>;
168};
169
Sebastian Reichel50413b92016-03-13 01:06:14 +0100170&vaux4 {
171 regulator-name = "vaux4";
172 regulator-min-microvolt = <2800000>;
173 regulator-max-microvolt = <2800000>;
174};
175
176&vmmc1 {
177 regulator-name = "vmmc1";
178 regulator-min-microvolt = <1850000>;
179 regulator-max-microvolt = <3150000>;
180};
181
182&vmmc2 {
183 regulator-name = "vmmc2";
184 regulator-min-microvolt = <3000000>;
185 regulator-max-microvolt = <3000000>;
186};
187
188&vintana1 {
189 regulator-name = "vintana1";
190 regulator-min-microvolt = <1500000>;
191 regulator-max-microvolt = <1500000>;
192};
193
194&vintana2 {
195 regulator-name = "vintana2";
196 regulator-min-microvolt = <2750000>;
197 regulator-max-microvolt = <2750000>;
198};
199
200&vintdig {
201 regulator-name = "vintdig";
202 regulator-min-microvolt = <1500000>;
203 regulator-max-microvolt = <1500000>;
204};
205
206&vsim {
207 regulator-name = "vsim";
208 regulator-min-microvolt = <1800000>;
209 regulator-max-microvolt = <1800000>;
210};
211
212&vio {
213 regulator-name = "vio";
214 regulator-min-microvolt = <1800000>;
215 regulator-max-microvolt = <1800000>;
216};
217
Aaro Koskinendf013182013-10-15 23:36:09 +0300218&i2c2 {
219 clock-frequency = <400000>;
220};
221
222&i2c3 {
223 clock-frequency = <400000>;
224};
225
226&mmc1 {
227 status = "disabled";
228};
229
230&mmc2 {
231 pinctrl-names = "default";
232 pinctrl-0 = <&mmc2_pins>;
233 vmmc-supply = <&vemmc>;
234 bus-width = <4>;
235 ti,non-removable;
236};
237
238&mmc3 {
239 status = "disabled";
240};
241
242&usb_otg_hs {
243 interface-type = <0>;
244 usb-phy = <&usb2_phy>;
245 phys = <&usb2_phy>;
246 phy-names = "usb2-phy";
247 mode = <3>;
248 power = <50>;
249};
250
251&gpmc {
Tony Lindgrene2c5eb72014-10-29 17:16:47 -0700252 ranges = <0 0 0x04000000 0x1000000>; /* CS0: 16MB for OneNAND */
Aaro Koskinendf013182013-10-15 23:36:09 +0300253
254 onenand@0,0 {
255 #address-cells = <1>;
256 #size-cells = <1>;
Tony Lindgrene2c5eb72014-10-29 17:16:47 -0700257 reg = <0 0 0x20000>; /* CS0, offset 0, IO size 128K */
Aaro Koskinendf013182013-10-15 23:36:09 +0300258
259 gpmc,sync-read;
260 gpmc,sync-write;
261 gpmc,burst-length = <16>;
262 gpmc,burst-read;
263 gpmc,burst-wrap;
264 gpmc,burst-write;
265 gpmc,device-width = <2>;
266 gpmc,mux-add-data = <2>;
267 gpmc,cs-on-ns = <0>;
268 gpmc,cs-rd-off-ns = <87>;
269 gpmc,cs-wr-off-ns = <87>;
270 gpmc,adv-on-ns = <0>;
271 gpmc,adv-rd-off-ns = <10>;
272 gpmc,adv-wr-off-ns = <10>;
273 gpmc,oe-on-ns = <15>;
274 gpmc,oe-off-ns = <87>;
275 gpmc,we-on-ns = <0>;
276 gpmc,we-off-ns = <87>;
277 gpmc,rd-cycle-ns = <112>;
278 gpmc,wr-cycle-ns = <112>;
279 gpmc,access-ns = <81>;
280 gpmc,page-burst-access-ns = <15>;
281 gpmc,bus-turnaround-ns = <0>;
282 gpmc,cycle2cycle-delay-ns = <0>;
283 gpmc,wait-monitoring-ns = <0>;
284 gpmc,clk-activation-ns = <5>;
285 gpmc,wr-data-mux-bus-ns = <30>;
286 gpmc,wr-access-ns = <81>;
287 gpmc,sync-clk-ps = <15000>;
288
289 /*
290 * MTD partition table corresponding to Nokia's MeeGo 1.2
291 * Harmattan release.
292 */
293 partition@0 {
294 label = "bootloader";
295 reg = <0x00000000 0x00100000>;
296 };
297 partition@1 {
298 label = "config";
299 reg = <0x00100000 0x002c0000>;
300 };
301 partition@2 {
302 label = "kernel";
303 reg = <0x003c0000 0x01000000>;
304 };
305 partition@3 {
306 label = "log";
307 reg = <0x013c0000 0x00200000>;
308 };
309 partition@4 {
310 label = "var";
311 reg = <0x015c0000 0x1ca40000>;
312 };
313 partition@5 {
314 label = "moslo";
315 reg = <0x1e000000 0x02000000>;
316 };
317 partition@6 {
318 label = "omap2-onenand";
319 reg = <0x00000000 0x20000000>;
320 };
321 };
322};
Sebastian Reichel3bec8c82016-01-17 16:49:06 +0100323
324&ssi_port1 {
Sebastian Reichel60fca6b2016-01-31 01:52:37 +0100325 pinctrl-names = "default", "idle";
Sebastian Reichel3bec8c82016-01-17 16:49:06 +0100326 pinctrl-0 = <&ssi_pins>;
Sebastian Reichel60fca6b2016-01-31 01:52:37 +0100327 pinctrl-1 = <&ssi_pins_idle>;
Sebastian Reichel3bec8c82016-01-17 16:49:06 +0100328
329 ti,ssi-cawake-gpio = <&gpio5 23 GPIO_ACTIVE_HIGH>; /* 151 */
Sebastian Reichelf21b9872016-01-17 16:49:09 +0100330
331 modem: hsi-client {
332 pinctrl-names = "default";
333 pinctrl-0 = <&modem_pins1 &modem_pins2>;
334
335 hsi-channel-ids = <0>, <1>, <2>, <3>;
336 hsi-channel-names = "mcsaab-control",
337 "speech-control",
338 "speech-data",
339 "mcsaab-data";
340 hsi-speed-kbps = <96000>;
341 hsi-mode = "frame";
342 hsi-flow = "synchronized";
343 hsi-arb-mode = "round-robin";
344
345 interrupts-extended = <&gpio2 2 IRQ_TYPE_EDGE_RISING>; /* gpio 34 */
346
347 gpios = <&gpio3 29 GPIO_ACTIVE_HIGH>, /* gpio 93 */
348 <&gpio3 24 GPIO_ACTIVE_HIGH>, /* gpio 88 */
349 <&gpio1 23 GPIO_ACTIVE_HIGH>; /* gpio 23 */
350 gpio-names = "cmt_apeslpx",
351 "cmt_rst_rq",
352 "cmt_en";
353 };
Sebastian Reichel3bec8c82016-01-17 16:49:06 +0100354};
355
356&ssi_port2 {
357 status = "disabled";
358};