1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
|
// SPDX-License-Identifier: GPL-2.0
/dts-v1/;
#include "tegra30-lg-x3.dtsi"
/ {
model = "LG Optimus 4X HD P880";
compatible = "lg,p880", "nvidia,tegra30";
aliases {
mmc1 = &sdmmc3; /* uSD slot */
mmc2 = &sdmmc1; /* WiFi */
};
pinmux@70000868 {
pinctrl-names = "default";
pinctrl-0 = <&state_default>;
state_default: pinmux {
/* WLAN SDIO pinmux */
host-wlan-wake {
nvidia,pins = "pu4";
nvidia,function = "pwm1";
nvidia,pull = <TEGRA_PIN_PULL_NONE>;
nvidia,tristate = <TEGRA_PIN_ENABLE>;
nvidia,enable-input = <TEGRA_PIN_ENABLE>;
};
/* GNSS UART-B pinmux */
uartb-rxd {
nvidia,pins = "uart2_rxd_pc3";
nvidia,function = "uartb";
nvidia,pull = <TEGRA_PIN_PULL_NONE>;
nvidia,tristate = <TEGRA_PIN_DISABLE>;
nvidia,enable-input = <TEGRA_PIN_ENABLE>;
};
uartb-txd {
nvidia,pins = "uart2_txd_pc2";
nvidia,function = "uartb";
nvidia,pull = <TEGRA_PIN_PULL_NONE>;
nvidia,tristate = <TEGRA_PIN_DISABLE>;
nvidia,enable-input = <TEGRA_PIN_DISABLE>;
};
gps-reset {
nvidia,pins = "kb_row7_pr7";
nvidia,function = "kbc";
nvidia,pull = <TEGRA_PIN_PULL_UP>;
nvidia,tristate = <TEGRA_PIN_DISABLE>;
nvidia,enable-input = <TEGRA_PIN_DISABLE>;
};
/* MicroSD pinmux */
sdmmc3-clk {
nvidia,pins = "sdmmc3_clk_pa6";
nvidia,function = "sdmmc3";
nvidia,pull = <TEGRA_PIN_PULL_NONE>;
nvidia,tristate = <TEGRA_PIN_DISABLE>;
nvidia,enable-input = <TEGRA_PIN_ENABLE>;
};
sdmmc3-data {
nvidia,pins = "sdmmc3_cmd_pa7",
"sdmmc3_dat0_pb7",
"sdmmc3_dat1_pb6",
"sdmmc3_dat2_pb5",
"sdmmc3_dat3_pb4";
nvidia,function = "sdmmc3";
nvidia,pull = <TEGRA_PIN_PULL_UP>;
nvidia,tristate = <TEGRA_PIN_DISABLE>;
nvidia,enable-input = <TEGRA_PIN_ENABLE>;
};
microsd-detect {
nvidia,pins = "clk2_out_pw5";
nvidia,function = "rsvd2";
nvidia,pull = <TEGRA_PIN_PULL_UP>;
nvidia,tristate = <TEGRA_PIN_DISABLE>;
nvidia,enable-input = <TEGRA_PIN_ENABLE>;
};
/* GPIO keys pinmux */
volume-up {
nvidia,pins = "ulpi_data6_po7";
nvidia,function = "spi2";
nvidia,pull = <TEGRA_PIN_PULL_UP>;
nvidia,tristate = <TEGRA_PIN_DISABLE>;
nvidia,enable-input = <TEGRA_PIN_ENABLE>;
};
/* Sensors pinmux */
current-alert-irq {
nvidia,pins = "uart2_rts_n_pj6";
nvidia,function = "uartb";
nvidia,pull = <TEGRA_PIN_PULL_UP>;
nvidia,tristate = <TEGRA_PIN_DISABLE>;
nvidia,enable-input = <TEGRA_PIN_ENABLE>;
};
/* AUDIO pinmux */
sub-mic-ldo {
nvidia,pins = "gmi_cs7_n_pi6";
nvidia,function = "gmi";
nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
nvidia,tristate = <TEGRA_PIN_DISABLE>;
nvidia,enable-input = <TEGRA_PIN_DISABLE>;
};
};
};
i2c@7000c400 {
touchscreen@20 {
rmi4-f11@11 {
syna,clip-x-high = <1110>;
syna,clip-y-high = <1973>;
touchscreen-inverted-y;
};
};
};
memory-controller@7000f000 {
emc-timings-0 {
/* SAMSUNG 1GB K4P8G304EB FGC1 533MHz */
nvidia,ram-code = <0>;
timing-12750000 {
clock-frequency = <12750000>;
nvidia,emem-configuration = < 0x00050001 0xc0000010
0x00000001 0x00000001 0x00000002 0x00000000
0x00000003 0x00000001 0x00000002 0x00000004
0x00000001 0x00000000 0x00000002 0x00000002
0x02020001 0x00060402 0x77230303 0x001f0000 >;
};
timing-25500000 {
clock-frequency = <25500000>;
nvidia,emem-configuration = < 0x00020001 0xc0000010
0x00000001 0x00000001 0x00000002 0x00000000
0x00000003 0x00000001 0x00000002 0x00000004
0x00000001 0x00000000 0x00000002 0x00000002
0x02020001 0x00060402 0x73e30303 0x001f0000 >;
};
timing-51000000 {
clock-frequency = <51000000>;
nvidia,emem-configuration = < 0x00010001 0xc0000010
0x00000001 0x00000001 0x00000002 0x00000000
0x00000003 0x00000001 0x00000002 0x00000004
0x00000001 0x00000000 0x00000002 0x00000002
0x02020001 0x00060402 0x72c30303 0x001f0000 >;
};
timing-102000000 {
clock-frequency = <102000000>;
nvidia,emem-configuration = < 0x00000001 0xc0000018
0x00000001 0x00000001 0x00000003 0x00000001
0x00000003 0x00000001 0x00000002 0x00000004
0x00000001 0x00000000 0x00000002 0x00000002
0x02020001 0x00060403 0x72430504 0x001f0000 >;
};
timing-204000000 {
clock-frequency = <204000000>;
nvidia,emem-configuration = < 0x00000003 0xc0000025
0x00000001 0x00000001 0x00000006 0x00000003
0x00000005 0x00000001 0x00000002 0x00000004
0x00000001 0x00000000 0x00000003 0x00000002
0x02030001 0x00070506 0x71e40a07 0x001f0000 >;
};
timing-266500000 {
clock-frequency = <266500000>;
nvidia,emem-configuration = < 0x00000004 0xC0000030
0x00000001 0x00000002 0x00000008 0x00000004
0x00000006 0x00000001 0x00000002 0x00000005
0x00000001 0x00000000 0x00000003 0x00000003
0x03030001 0x00090608 0x70040c09 0x001f0000 >;
};
timing-533000000 {
clock-frequency = <533000000>;
nvidia,emem-configuration = < 0x00000008 0xC0000060
0x00000003 0x00000004 0x00000010 0x0000000a
0x0000000d 0x00000002 0x00000002 0x00000008
0x00000002 0x00000000 0x00000004 0x00000005
0x05040002 0x00110b10 0x70281811 0x001f0000 >;
};
};
};
memory-controller@7000f400 {
emc-timings-0 {
/* SAMSUNG 1GB K4P8G304EB FGC1 533MHz */
nvidia,ram-code = <0>;
timing-12750000 {
clock-frequency = <12750000>;
nvidia,emc-auto-cal-interval = <0x001fffff>;
nvidia,emc-mode-1 = <0x00010022>;
nvidia,emc-mode-2 = <0x00020001>;
nvidia,emc-mode-reset = <0x00000000>;
nvidia,emc-zcal-cnt-long = <0x00000009>;
nvidia,emc-cfg-dyn-self-ref;
nvidia,emc-cfg-periodic-qrst;
nvidia,emc-configuration = < 0x00000000
0x00000001 0x00000002 0x00000002 0x00000004
0x00000004 0x00000001 0x00000005 0x00000002
0x00000002 0x00000001 0x00000001 0x00000000
0x00000001 0x00000003 0x00000001 0x0000000b
0x00000009 0x0000002f 0x00000000 0x0000000b
0x00000001 0x00000001 0x00000002 0x00000000
0x00000001 0x00000007 0x00000002 0x00000002
0x00000003 0x00000008 0x00000004 0x00000001
0x00000002 0x00000036 0x00000004 0x00000004
0x00000000 0x00000000 0x00004282 0x007800a4
0x00008000 0x000fc000 0x000fc000 0x000fc000
0x000fc000 0x000fc000 0x000fc000 0x000fc000
0x000fc000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x000fc000 0x000fc000 0x000fc000
0x000fc000 0x00100220 0x0800201c 0x00000000
0x77ffc004 0x01f1f008 0x00000000 0x00000007
0x08000068 0x08000000 0x00000802 0x00064000
0x00000009 0x00090009 0xa0f10000 0x00000000
0x00000000 0x80000164 0xe0000000 0xff00ff00 >;
};
timing-25500000 {
clock-frequency = <25500000>;
nvidia,emc-auto-cal-interval = <0x001fffff>;
nvidia,emc-mode-1 = <0x00010022>;
nvidia,emc-mode-2 = <0x00020001>;
nvidia,emc-mode-reset = <0x00000000>;
nvidia,emc-zcal-cnt-long = <0x00000009>;
nvidia,emc-cfg-dyn-self-ref;
nvidia,emc-cfg-periodic-qrst;
nvidia,emc-configuration = < 0x00000001
0x00000003 0x00000002 0x00000002 0x00000004
0x00000004 0x00000001 0x00000005 0x00000002
0x00000002 0x00000001 0x00000001 0x00000000
0x00000001 0x00000003 0x00000001 0x0000000b
0x00000009 0x00000060 0x00000000 0x00000018
0x00000001 0x00000001 0x00000002 0x00000000
0x00000001 0x00000007 0x00000004 0x00000004
0x00000003 0x00000008 0x00000004 0x00000001
0x00000002 0x0000006b 0x00000004 0x00000004
0x00000000 0x00000000 0x00004282 0x007800a4
0x00008000 0x000fc000 0x000fc000 0x000fc000
0x000fc000 0x000fc000 0x000fc000 0x000fc000
0x000fc000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x000fc000 0x000fc000 0x000fc000
0x000fc000 0x00100220 0x0800201c 0x00000000
0x77ffc004 0x01f1f008 0x00000000 0x00000007
0x08000068 0x08000000 0x00000802 0x00064000
0x0000000a 0x00090009 0xa0f10000 0x00000000
0x00000000 0x800001c5 0xe0000000 0xff00ff00 >;
};
timing-51000000 {
clock-frequency = <51000000>;
nvidia,emc-auto-cal-interval = <0x001fffff>;
nvidia,emc-mode-1 = <0x00010022>;
nvidia,emc-mode-2 = <0x00020001>;
nvidia,emc-mode-reset = <0x00000000>;
nvidia,emc-zcal-cnt-long = <0x00000009>;
nvidia,emc-cfg-dyn-self-ref;
nvidia,emc-cfg-periodic-qrst;
nvidia,emc-configuration = < 0x00000003
0x00000006 0x00000002 0x00000002 0x00000004
0x00000004 0x00000001 0x00000005 0x00000002
0x00000002 0x00000001 0x00000001 0x00000000
0x00000001 0x00000003 0x00000001 0x0000000b
0x00000009 0x000000c0 0x00000000 0x00000030
0x00000001 0x00000001 0x00000002 0x00000000
0x00000001 0x00000007 0x00000008 0x00000008
0x00000003 0x00000008 0x00000004 0x00000001
0x00000002 0x000000d5 0x00000004 0x00000004
0x00000000 0x00000000 0x00004282 0x007800a4
0x00008000 0x000fc000 0x000fc000 0x000fc000
0x000fc000 0x000fc000 0x000fc000 0x000fc000
0x000fc000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x000fc000 0x000fc000 0x000fc000
0x000fc000 0x00100220 0x0800201c 0x00000000
0x77ffc004 0x01f1f008 0x00000000 0x00000007
0x08000068 0x08000000 0x00000802 0x00064000
0x00000013 0x00090009 0xa0f10000 0x00000000
0x00000000 0x80000287 0xe0000000 0xff00ff00 >;
};
timing-102000000 {
clock-frequency = <102000000>;
nvidia,emc-auto-cal-interval = <0x001fffff>;
nvidia,emc-mode-1 = <0x00010022>;
nvidia,emc-mode-2 = <0x00020001>;
nvidia,emc-mode-reset = <0x00000000>;
nvidia,emc-zcal-cnt-long = <0x0000000a>;
nvidia,emc-cfg-dyn-self-ref;
nvidia,emc-cfg-periodic-qrst;
nvidia,emc-configuration = < 0x00000006
0x0000000d 0x00000004 0x00000002 0x00000004
0x00000004 0x00000001 0x00000005 0x00000002
0x00000002 0x00000001 0x00000001 0x00000000
0x00000001 0x00000003 0x00000001 0x0000000b
0x00000009 0x00000181 0x00000000 0x00000060
0x00000001 0x00000001 0x00000002 0x00000000
0x00000001 0x00000007 0x0000000f 0x0000000f
0x00000003 0x00000008 0x00000004 0x00000001
0x00000002 0x000001a9 0x00000004 0x00000004
0x00000000 0x00000000 0x00004282 0x007800a4
0x00008000 0x000fc000 0x000fc000 0x000fc000
0x000fc000 0x000fc000 0x000fc000 0x000fc000
0x000fc000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x000fc000 0x000fc000 0x000fc000
0x000fc000 0x00100220 0x0800201c 0x00000000
0x77ffc004 0x01f1f008 0x00000000 0x00000007
0x08000068 0x08000000 0x00000802 0x00064000
0x00000025 0x00090009 0xa0f10000 0x00000000
0x00000000 0x8000040b 0xe0000000 0xff00ff00 >;
};
timing-204000000 {
clock-frequency = <204000000>;
nvidia,emc-auto-cal-interval = <0x001fffff>;
nvidia,emc-mode-1 = <0x00010042>;
nvidia,emc-mode-2 = <0x00020001>;
nvidia,emc-mode-reset = <0x00000000>;
nvidia,emc-zcal-cnt-long = <0x00000013>;
nvidia,emc-cfg-dyn-self-ref;
nvidia,emc-cfg-periodic-qrst;
nvidia,emc-configuration = < 0x0000000c
0x0000001a 0x00000008 0x00000003 0x00000005
0x00000004 0x00000001 0x00000006 0x00000003
0x00000003 0x00000002 0x00000002 0x00000000
0x00000001 0x00000003 0x00000001 0x0000000c
0x0000000a 0x00000303 0x00000000 0x000000c0
0x00000001 0x00000001 0x00000003 0x00000000
0x00000001 0x00000007 0x0000001d 0x0000001d
0x00000004 0x0000000b 0x00000005 0x00000001
0x00000002 0x00000351 0x00000004 0x00000006
0x00000000 0x00000000 0x00004282 0x004400a4
0x00008000 0x00070000 0x00070000 0x00070000
0x00070000 0x00070000 0x00070000 0x00070000
0x00070000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00080000 0x00080000 0x00080000
0x00080000 0x000e0220 0x0800201c 0x00000000
0x77ffc004 0x01f1f008 0x00000000 0x00000007
0x08000068 0x08000000 0x00000802 0x00064000
0x0000004a 0x00090009 0xa0f10000 0x00000000
0x00000000 0x80000713 0xe0000000 0xff00ff00 >;
};
timing-266500000 {
clock-frequency = <266500000>;
nvidia,emc-auto-cal-interval = <0x001fffff>;
nvidia,emc-mode-1 = <0x00010042>;
nvidia,emc-mode-2 = <0x00020002>;
nvidia,emc-mode-reset = <0x00000000>;
nvidia,emc-zcal-cnt-long = <0x00000018>;
nvidia,emc-cfg-periodic-qrst;
nvidia,emc-configuration = < 0x0000000f
0x00000022 0x0000000b 0x00000004 0x00000005
0x00000005 0x00000001 0x00000007 0x00000004
0x00000004 0x00000002 0x00000002 0x00000000
0x00000002 0x00000005 0x00000002 0x0000000c
0x0000000b 0x000003ef 0x00000000 0x000000fb
0x00000001 0x00000001 0x00000004 0x00000000
0x00000001 0x00000009 0x00000026 0x00000026
0x00000004 0x0000000e 0x00000006 0x00000001
0x00000002 0x00000455 0x00000000 0x00000004
0x00000000 0x00000000 0x00006282 0x003200a4
0x00008000 0x00050000 0x00050000 0x00050000
0x00050000 0x00050000 0x00050000 0x00050000
0x00050000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00060000 0x00060000 0x00060000
0x00060000 0x000b0220 0x0800003d 0x00000000
0x77ffc004 0x01f1f008 0x00000000 0x00000007
0x08000068 0x08000000 0x00000802 0x00064000
0x00000060 0x000a000a 0xa0f10000 0x00000000
0x00000000 0x800008ee 0xe0000000 0xff00ff00 >;
};
timing-533000000 {
clock-frequency = <533000000>;
nvidia,emc-auto-cal-interval = <0x001fffff>;
nvidia,emc-mode-1 = <0x000100c2>;
nvidia,emc-mode-2 = <0x00020006>;
nvidia,emc-mode-reset = <0x00000000>;
nvidia,emc-zcal-cnt-long = <0x00000030>;
nvidia,emc-cfg-periodic-qrst;
nvidia,emc-configuration = < 0x0000001f
0x00000045 0x00000016 0x00000009 0x00000008
0x00000009 0x00000003 0x0000000d 0x00000009
0x00000009 0x00000005 0x00000003 0x00000000
0x00000004 0x00000009 0x00000006 0x0000000d
0x00000010 0x000007df 0x00000000 0x000001f7
0x00000003 0x00000003 0x00000009 0x00000000
0x00000001 0x0000000f 0x0000004b 0x0000004b
0x00000008 0x0000001b 0x0000000c 0x00000001
0x00000002 0x000008aa 0x00000000 0x00000006
0x00000000 0x00000000 0x00006282 0xf0120091
0x00008000 0x0000000a 0x0000000a 0x0000000a
0x0000000a 0x0000000a 0x0000000a 0x0000000a
0x0000000a 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x00000000 0x00000000 0x00000000
0x00000000 0x0000000a 0x0000000a 0x0000000a
0x0000000a 0x00090220 0x0800003d 0x00000000
0x77ffc004 0x01f1f408 0x00000000 0x00000007
0x08000068 0x08000000 0x00000802 0x00064000
0x000000c0 0x000e000e 0xa0f10000 0x00000000
0x00000000 0x800010d9 0xe0000000 0xff00ff88 >;
};
};
};
sdmmc3: mmc@78000400 {
status = "okay";
cd-gpios = <&gpio TEGRA_GPIO(W, 5) GPIO_ACTIVE_LOW>;
bus-width = <4>;
vmmc-supply = <&vdd_usd>;
vqmmc-supply = <&vdd_1v8_vio>;
};
battery: battery-cell {
compatible = "simple-battery";
device-chemistry = "lithium-ion";
charge-full-design-microamp-hours = <2150000>;
energy-full-design-microwatt-hours = <8200000>;
operating-range-celsius = <0 45>;
};
gpio-keys {
key-volume-up {
label = "Volume Up";
gpios = <&gpio TEGRA_GPIO(O, 7) GPIO_ACTIVE_LOW>;
linux,code = <KEY_VOLUMEUP>;
debounce-interval = <10>;
wakeup-event-action = <EV_ACT_ASSERTED>;
wakeup-source;
};
};
sound {
compatible = "lg,tegra-audio-max98089-p880",
"nvidia,tegra-audio-max98089";
nvidia,model = "LG Optimus 4X HD MAX98089";
nvidia,int-mic-en-gpios = <&gpio TEGRA_GPIO(I, 6) GPIO_ACTIVE_HIGH>;
};
};
|