Debian Codegraph @

arch/arm/boot/dts/nvidia/tegra30-pegatron-chagall.dts

raw
1 // SPDX-License-Identifier: GPL-2.0
2 /dts-v1/;
3
4 #include <dt-bindings/input/gpio-keys.h>
5 #include <dt-bindings/input/input.h>
6 #include <dt-bindings/thermal/thermal.h>
7
8 #include "tegra30.dtsi"
9 #include "tegra30-cpu-opp.dtsi"
10 #include "tegra30-cpu-opp-microvolt.dtsi"
11 #include "tegra30-asus-lvds-display.dtsi"
12
13 / {
14 model = "Pegatron Chagall";
15 compatible = "pegatron,chagall", "nvidia,tegra30";
16 chassis-type = "tablet";
17
18 aliases {
19 mmc0 = &sdmmc4; /* eMMC */
20 mmc1 = &sdmmc1; /* uSD slot */
21 mmc2 = &sdmmc3; /* WiFi */
22
23 rtc0 = &pmic;
24 rtc1 = "/rtc@7000e000";
25
26 display0 = &lcd;
27 display1 = &hdmi;
28
29 serial1 = &uartc; /* Bluetooth */
30 serial2 = &uartb; /* GPS */
31 };
32
33 /*
34 * The decompressor and also some bootloaders rely on a
35 * pre-existing /chosen node to be available to insert the
36 * command line and merge other ATAGS info.
37 */
38 chosen {};
39
40 firmware {
41 trusted-foundations {
42 compatible = "tlm,trusted-foundations";
43 tlm,version-major = <2>;
44 tlm,version-minor = <8>;
45 };
46 };
47
48 memory@80000000 {
49 reg = <0x80000000 0x40000000>;
50 };
51
52 reserved-memory {
53 #address-cells = <1>;
54 #size-cells = <1>;
55 ranges;
56
57 linux,cma@80000000 {
58 compatible = "shared-dma-pool";
59 alloc-ranges = <0x80000000 0x30000000>;
60 size = <0x10000000>; /* 256MiB */
61 linux,cma-default;
62 reusable;
63 };
64
65 ramoops@beb00000 {
66 compatible = "ramoops";
67 reg = <0xbeb00000 0x10000>; /* 64kB */
68 console-size = <0x8000>; /* 32kB */
69 record-size = <0x400>; /* 1kB */
70 ecc-size = <16>;
71 };
72
73 trustzone@bfe00000 {
74 reg = <0xbfe00000 0x200000>; /* 2MB */
75 no-map;
76 };
77 };
78
79 host1x@50000000 {
80 hdmi: hdmi@54280000 {
81 status = "okay";
82
83 hdmi-supply = <&hdmi_5v0_sys>;
84 pll-supply = <&vdd_1v8_vio>;
85 vdd-supply = <&vdd_3v3_sys>;
86
87 nvidia,hpd-gpio = <&gpio TEGRA_GPIO(N, 7) GPIO_ACTIVE_HIGH>;
88 nvidia,ddc-i2c-bus = <&hdmi_ddc>;
89 };
90 };
91
92 vde@6001a000 {
93 assigned-clocks = <&tegra_car TEGRA30_CLK_VDE>;
94 assigned-clock-parents = <&tegra_car TEGRA30_CLK_PLL_P>;
95 assigned-clock-rates = <408000000>;
96 };
97
98 pinmux@70000868 {
99 pinctrl-names = "default";
100 pinctrl-0 = <&state_default>;
101
102 state_default: pinmux {
103 /* SDMMC1 pinmux */
104 sdmmc1_clk_pz0 {
105 nvidia,pins = "sdmmc1_clk_pz0";
106 nvidia,function = "sdmmc1";
107 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
108 nvidia,tristate = <TEGRA_PIN_DISABLE>;
109 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
110 };
111
112 sdmmc1_dat3_py4 {
113 nvidia,pins = "sdmmc1_dat3_py4",
114 "sdmmc1_dat2_py5",
115 "sdmmc1_dat1_py6",
116 "sdmmc1_dat0_py7",
117 "sdmmc1_cmd_pz1";
118 nvidia,function = "sdmmc1";
119 nvidia,pull = <TEGRA_PIN_PULL_UP>;
120 nvidia,tristate = <TEGRA_PIN_DISABLE>;
121 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
122 };
123
124 /* SDMMC2 pinmux */
125 vi_d1_pd5 {
126 nvidia,pins = "vi_d1_pd5",
127 "vi_d2_pl0",
128 "vi_d3_pl1",
129 "vi_d5_pl3",
130 "vi_d7_pl5";
131 nvidia,function = "sdmmc2";
132 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
133 nvidia,tristate = <TEGRA_PIN_DISABLE>;
134 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
135 };
136
137 vi_d8_pl6 {
138 nvidia,pins = "vi_d8_pl6",
139 "vi_d9_pl7";
140 nvidia,function = "sdmmc2";
141 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
142 nvidia,tristate = <TEGRA_PIN_DISABLE>;
143 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
144 nvidia,lock = <0>;
145 nvidia,io-reset = <0>;
146 };
147
148 /* SDMMC3 pinmux */
149 sdmmc3_clk_pa6 {
150 nvidia,pins = "sdmmc3_clk_pa6";
151 nvidia,function = "sdmmc3";
152 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
153 nvidia,tristate = <TEGRA_PIN_DISABLE>;
154 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
155 };
156
157 sdmmc3_cmd_pa7 {
158 nvidia,pins = "sdmmc3_cmd_pa7",
159 "sdmmc3_dat3_pb4",
160 "sdmmc3_dat2_pb5",
161 "sdmmc3_dat1_pb6",
162 "sdmmc3_dat0_pb7",
163 "sdmmc3_dat5_pd0",
164 "sdmmc3_dat4_pd1",
165 "sdmmc3_dat6_pd3",
166 "sdmmc3_dat7_pd4";
167 nvidia,function = "sdmmc3";
168 nvidia,pull = <TEGRA_PIN_PULL_UP>;
169 nvidia,tristate = <TEGRA_PIN_DISABLE>;
170 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
171 };
172
173 /* SDMMC4 pinmux */
174 sdmmc4_clk_pcc4 {
175 nvidia,pins = "sdmmc4_clk_pcc4";
176 nvidia,function = "sdmmc4";
177 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
178 nvidia,tristate = <TEGRA_PIN_DISABLE>;
179 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
180 };
181
182 sdmmc4_cmd_pt7 {
183 nvidia,pins = "sdmmc4_cmd_pt7",
184 "sdmmc4_dat0_paa0",
185 "sdmmc4_dat1_paa1",
186 "sdmmc4_dat2_paa2",
187 "sdmmc4_dat3_paa3",
188 "sdmmc4_dat4_paa4",
189 "sdmmc4_dat5_paa5",
190 "sdmmc4_dat6_paa6",
191 "sdmmc4_dat7_paa7";
192 nvidia,function = "sdmmc4";
193 nvidia,pull = <TEGRA_PIN_PULL_UP>;
194 nvidia,tristate = <TEGRA_PIN_DISABLE>;
195 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
196 };
197
198 /* I2C pinmux */
199 gen1_i2c_scl_pc4 {
200 nvidia,pins = "gen1_i2c_scl_pc4",
201 "gen1_i2c_sda_pc5";
202 nvidia,function = "i2c1";
203 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
204 nvidia,tristate = <TEGRA_PIN_DISABLE>;
205 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
206 nvidia,open-drain = <TEGRA_PIN_ENABLE>;
207 nvidia,lock = <0>;
208 };
209
210 gen2_i2c_scl_pt5 {
211 nvidia,pins = "gen2_i2c_scl_pt5",
212 "gen2_i2c_sda_pt6";
213 nvidia,function = "i2c2";
214 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
215 nvidia,tristate = <TEGRA_PIN_DISABLE>;
216 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
217 nvidia,open-drain = <TEGRA_PIN_ENABLE>;
218 nvidia,lock = <0>;
219 };
220
221 cam_i2c_scl_pbb1 {
222 nvidia,pins = "cam_i2c_scl_pbb1",
223 "cam_i2c_sda_pbb2";
224 nvidia,function = "i2c3";
225 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
226 nvidia,tristate = <TEGRA_PIN_DISABLE>;
227 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
228 nvidia,open-drain = <TEGRA_PIN_ENABLE>;
229 nvidia,lock = <0>;
230 };
231
232 ddc_scl_pv4 {
233 nvidia,pins = "ddc_scl_pv4",
234 "ddc_sda_pv5";
235 nvidia,function = "i2c4";
236 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
237 nvidia,tristate = <TEGRA_PIN_DISABLE>;
238 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
239 nvidia,lock = <0>;
240 };
241
242 pwr_i2c_scl_pz6 {
243 nvidia,pins = "pwr_i2c_scl_pz6",
244 "pwr_i2c_sda_pz7";
245 nvidia,function = "i2cpwr";
246 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
247 nvidia,tristate = <TEGRA_PIN_DISABLE>;
248 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
249 nvidia,open-drain = <TEGRA_PIN_ENABLE>;
250 nvidia,lock = <0>;
251 };
252
253 /* HDMI-CEC pinmux */
254 hdmi_cec_pee3 {
255 nvidia,pins = "hdmi_cec_pee3";
256 nvidia,function = "cec";
257 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
258 nvidia,tristate = <TEGRA_PIN_DISABLE>;
259 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
260 nvidia,open-drain = <TEGRA_PIN_ENABLE>;
261 nvidia,lock = <0>;
262 };
263
264 /* UART-A */
265 ulpi_data0_po1 {
266 nvidia,pins = "ulpi_data0_po1";
267 nvidia,function = "uarta";
268 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
269 nvidia,tristate = <TEGRA_PIN_DISABLE>;
270 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
271 };
272
273 ulpi_data1_po2 {
274 nvidia,pins = "ulpi_data1_po2",
275 "ulpi_data2_po3",
276 "ulpi_data3_po4",
277 "ulpi_data4_po5",
278 "ulpi_data5_po6",
279 "ulpi_data6_po7";
280 nvidia,function = "uarta";
281 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
282 nvidia,tristate = <TEGRA_PIN_DISABLE>;
283 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
284 };
285
286 ulpi_data7_po0 {
287 nvidia,pins = "ulpi_data7_po0";
288 nvidia,function = "uarta";
289 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
290 nvidia,tristate = <TEGRA_PIN_DISABLE>;
291 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
292 };
293
294 /* UART-B */
295 uart2_txd_pc2 {
296 nvidia,pins = "uart2_txd_pc2",
297 "uart2_rts_n_pj6";
298 nvidia,function = "uartb";
299 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
300 nvidia,tristate = <TEGRA_PIN_DISABLE>;
301 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
302 };
303
304 uart2_rxd_pc3 {
305 nvidia,pins = "uart2_rxd_pc3",
306 "uart2_cts_n_pj5";
307 nvidia,function = "uartb";
308 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
309 nvidia,tristate = <TEGRA_PIN_DISABLE>;
310 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
311 };
312
313 /* UART-C */
314 uart3_cts_n_pa1 {
315 nvidia,pins = "uart3_cts_n_pa1",
316 "uart3_rxd_pw7";
317 nvidia,function = "uartc";
318 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
319 nvidia,tristate = <TEGRA_PIN_DISABLE>;
320 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
321 };
322
323 uart3_rts_n_pc0 {
324 nvidia,pins = "uart3_rts_n_pc0",
325 "uart3_txd_pw6";
326 nvidia,function = "uartc";
327 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
328 nvidia,tristate = <TEGRA_PIN_DISABLE>;
329 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
330 };
331
332 /* UART-D */
333 ulpi_clk_py0 {
334 nvidia,pins = "ulpi_clk_py0",
335 "ulpi_stp_py3";
336 nvidia,function = "uartd";
337 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
338 nvidia,tristate = <TEGRA_PIN_DISABLE>;
339 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
340 };
341
342 ulpi_dir_py1 {
343 nvidia,pins = "ulpi_dir_py1",
344 "ulpi_nxt_py2";
345 nvidia,function = "uartd";
346 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
347 nvidia,tristate = <TEGRA_PIN_DISABLE>;
348 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
349 };
350
351 /* I2S pinmux */
352 dap1_fs_pn0 {
353 nvidia,pins = "dap1_fs_pn0",
354 "dap1_din_pn1",
355 "dap1_dout_pn2",
356 "dap1_sclk_pn3";
357 nvidia,function = "i2s0";
358 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
359 nvidia,tristate = <TEGRA_PIN_DISABLE>;
360 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
361 };
362
363 dap2_fs_pa2 {
364 nvidia,pins = "dap2_fs_pa2",
365 "dap2_sclk_pa3",
366 "dap2_din_pa4",
367 "dap2_dout_pa5";
368 nvidia,function = "i2s1";
369 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
370 nvidia,tristate = <TEGRA_PIN_DISABLE>;
371 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
372 };
373
374 dap3_fs_pp0 {
375 nvidia,pins = "dap3_fs_pp0",
376 "dap3_din_pp1",
377 "dap3_dout_pp2",
378 "dap3_sclk_pp3";
379 nvidia,function = "i2s2";
380 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
381 nvidia,tristate = <TEGRA_PIN_DISABLE>;
382 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
383 };
384
385 dap4_fs_pp4 {
386 nvidia,pins = "dap4_fs_pp4",
387 "dap4_din_pp5",
388 "dap4_dout_pp6",
389 "dap4_sclk_pp7";
390 nvidia,function = "i2s3";
391 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
392 nvidia,tristate = <TEGRA_PIN_DISABLE>;
393 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
394 };
395
396 pcc2 {
397 nvidia,pins = "pcc2";
398 nvidia,function = "i2s4";
399 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
400 nvidia,tristate = <TEGRA_PIN_DISABLE>;
401 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
402 };
403
404 /* PCI-e pinmux */
405 pex_l2_rst_n_pcc6 {
406 nvidia,pins = "pex_l2_rst_n_pcc6",
407 "pex_l0_rst_n_pdd1",
408 "pex_l1_rst_n_pdd5";
409 nvidia,function = "pcie";
410 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
411 nvidia,tristate = <TEGRA_PIN_DISABLE>;
412 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
413 };
414
415 pex_l2_clkreq_n_pcc7 {
416 nvidia,pins = "pex_l2_clkreq_n_pcc7",
417 "pex_l0_prsnt_n_pdd0",
418 "pex_l0_clkreq_n_pdd2",
419 "pex_l2_prsnt_n_pdd7";
420 nvidia,function = "pcie";
421 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
422 nvidia,tristate = <TEGRA_PIN_DISABLE>;
423 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
424 };
425
426 pex_wake_n_pdd3 {
427 nvidia,pins = "pex_wake_n_pdd3";
428 nvidia,function = "pcie";
429 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
430 nvidia,tristate = <TEGRA_PIN_DISABLE>;
431 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
432 };
433
434 /* SPI pinmux */
435 spi1_mosi_px4 {
436 nvidia,pins = "spi1_mosi_px4",
437 "spi1_sck_px5",
438 "spi1_cs0_n_px6",
439 "spi1_miso_px7";
440 nvidia,function = "spi1";
441 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
442 nvidia,tristate = <TEGRA_PIN_DISABLE>;
443 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
444 };
445
446 spi2_cs1_n_pw2 {
447 nvidia,pins = "spi2_cs1_n_pw2",
448 "spi2_cs2_n_pw3";
449 nvidia,function = "spi2";
450 nvidia,pull = <TEGRA_PIN_PULL_UP>;
451 nvidia,tristate = <TEGRA_PIN_DISABLE>;
452 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
453 };
454
455 spi2_sck_px2 {
456 nvidia,pins = "spi2_sck_px2";
457 nvidia,function = "gmi";
458 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
459 nvidia,tristate = <TEGRA_PIN_DISABLE>;
460 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
461 };
462
463 gmi_a16_pj7 {
464 nvidia,pins = "gmi_a16_pj7",
465 "gmi_a19_pk7";
466 nvidia,function = "spi4";
467 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
468 nvidia,tristate = <TEGRA_PIN_DISABLE>;
469 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
470 };
471
472 gmi_a17_pb0 {
473 nvidia,pins = "gmi_a17_pb0",
474 "gmi_a18_pb1";
475 nvidia,function = "spi4";
476 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
477 nvidia,tristate = <TEGRA_PIN_DISABLE>;
478 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
479 };
480
481 spi2_mosi_px0 {
482 nvidia,pins = "spi2_mosi_px0";
483 nvidia,function = "spi6";
484 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
485 nvidia,tristate = <TEGRA_PIN_DISABLE>;
486 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
487 };
488
489 spdif_out_pk5 {
490 nvidia,pins = "spdif_out_pk5";
491 nvidia,function = "spdif";
492 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
493 nvidia,tristate = <TEGRA_PIN_DISABLE>;
494 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
495 };
496
497 spdif_in_pk6 {
498 nvidia,pins = "spdif_in_pk6";
499 nvidia,function = "spdif";
500 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
501 nvidia,tristate = <TEGRA_PIN_DISABLE>;
502 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
503 };
504
505 /* Display A pinmux */
506 lcd_pwr0_pb2 {
507 nvidia,pins = "lcd_pwr0_pb2",
508 "lcd_pclk_pb3",
509 "lcd_pwr1_pc1",
510 "lcd_pwr2_pc6",
511 "lcd_d0_pe0",
512 "lcd_d1_pe1",
513 "lcd_d2_pe2",
514 "lcd_d3_pe3",
515 "lcd_d4_pe4",
516 "lcd_d5_pe5",
517 "lcd_d6_pe6",
518 "lcd_d7_pe7",
519 "lcd_d8_pf0",
520 "lcd_d9_pf1",
521 "lcd_d10_pf2",
522 "lcd_d11_pf3",
523 "lcd_d12_pf4",
524 "lcd_d13_pf5",
525 "lcd_d14_pf6",
526 "lcd_d15_pf7",
527 "lcd_de_pj1",
528 "lcd_hsync_pj3",
529 "lcd_vsync_pj4",
530 "lcd_d16_pm0",
531 "lcd_d17_pm1",
532 "lcd_d18_pm2",
533 "lcd_d19_pm3",
534 "lcd_d20_pm4",
535 "lcd_d21_pm5",
536 "lcd_d22_pm6",
537 "lcd_d23_pm7",
538 "lcd_cs0_n_pn4",
539 "lcd_sdout_pn5",
540 "lcd_dc0_pn6",
541 "lcd_sdin_pz2",
542 "lcd_wr_n_pz3",
543 "lcd_sck_pz4",
544 "lcd_cs1_n_pw0",
545 "lcd_m1_pw1";
546 nvidia,function = "displaya";
547 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
548 nvidia,tristate = <TEGRA_PIN_DISABLE>;
549 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
550 };
551
552 lcd_dc1_pd2 {
553 nvidia,pins = "lcd_dc1_pd2";
554 nvidia,function = "displaya";
555 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
556 nvidia,tristate = <TEGRA_PIN_DISABLE>;
557 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
558 };
559
560 clk_32k_out_pa0 {
561 nvidia,pins = "clk_32k_out_pa0";
562 nvidia,function = "blink";
563 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
564 nvidia,tristate = <TEGRA_PIN_DISABLE>;
565 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
566 };
567
568 /* KBC keys */
569 kb_row0_pr0 {
570 nvidia,pins = "kb_row0_pr0",
571 "kb_row1_pr1",
572 "kb_row2_pr2",
573 "kb_row3_pr3",
574 "kb_row8_ps0",
575 "kb_col0_pq0",
576 "kb_col1_pq1",
577 "kb_col2_pq2",
578 "kb_col3_pq3",
579 "kb_col4_pq4",
580 "kb_col5_pq5",
581 "kb_col7_pq7";
582 nvidia,function = "kbc";
583 nvidia,pull = <TEGRA_PIN_PULL_UP>;
584 nvidia,tristate = <TEGRA_PIN_DISABLE>;
585 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
586 };
587
588 kb_row4_pr4 {
589 nvidia,pins = "kb_row4_pr4",
590 "kb_row7_pr7",
591 "kb_row10_ps2",
592 "kb_row13_ps5";
593 nvidia,function = "kbc";
594 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
595 nvidia,tristate = <TEGRA_PIN_DISABLE>;
596 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
597 };
598
599 kb_row11_ps3 {
600 nvidia,pins = "kb_row11_ps3",
601 "kb_row12_ps4",
602 "kb_row15_ps7";
603 nvidia,function = "kbc";
604 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
605 nvidia,tristate = <TEGRA_PIN_DISABLE>;
606 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
607 };
608
609 kb_row14_ps6 {
610 nvidia,pins = "kb_row14_ps6";
611 nvidia,function = "kbc";
612 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
613 nvidia,tristate = <TEGRA_PIN_DISABLE>;
614 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
615 };
616
617 gmi_iordy_pi5 {
618 nvidia,pins = "gmi_iordy_pi5";
619 nvidia,function = "rsvd1";
620 nvidia,pull = <TEGRA_PIN_PULL_UP>;
621 nvidia,tristate = <TEGRA_PIN_DISABLE>;
622 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
623 };
624
625 vi_pclk_pt0 {
626 nvidia,pins = "vi_pclk_pt0";
627 nvidia,function = "rsvd1";
628 nvidia,pull = <TEGRA_PIN_PULL_UP>;
629 nvidia,tristate = <TEGRA_PIN_ENABLE>;
630 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
631 nvidia,lock = <0>;
632 nvidia,io-reset = <0>;
633 };
634
635 pu1 {
636 nvidia,pins = "pu1";
637 nvidia,function = "rsvd1";
638 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
639 nvidia,tristate = <TEGRA_PIN_DISABLE>;
640 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
641 };
642
643 pu2 {
644 nvidia,pins = "pu2";
645 nvidia,function = "rsvd1";
646 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
647 nvidia,tristate = <TEGRA_PIN_DISABLE>;
648 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
649 };
650
651 pv0 {
652 nvidia,pins = "pv0";
653 nvidia,function = "rsvd1";
654 nvidia,pull = <TEGRA_PIN_PULL_UP>;
655 nvidia,tristate = <TEGRA_PIN_DISABLE>;
656 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
657 };
658
659 pv1 {
660 nvidia,pins = "pv1";
661 nvidia,function = "rsvd1";
662 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
663 nvidia,tristate = <TEGRA_PIN_DISABLE>;
664 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
665 };
666
667 pcc1 {
668 nvidia,pins = "pcc1";
669 nvidia,function = "rsvd2";
670 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
671 nvidia,tristate = <TEGRA_PIN_DISABLE>;
672 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
673 };
674
675 sdmmc4_rst_n_pcc3 {
676 nvidia,pins = "sdmmc4_rst_n_pcc3";
677 nvidia,function = "rsvd2";
678 nvidia,pull = <TEGRA_PIN_PULL_UP>;
679 nvidia,tristate = <TEGRA_PIN_DISABLE>;
680 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
681 };
682
683 pv3 {
684 nvidia,pins = "pv3";
685 nvidia,function = "rsvd2";
686 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
687 nvidia,tristate = <TEGRA_PIN_DISABLE>;
688 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
689 };
690
691 vi_vsync_pd6 {
692 nvidia,pins = "vi_vsync_pd6",
693 "vi_hsync_pd7";
694 nvidia,function = "rsvd2";
695 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
696 nvidia,tristate = <TEGRA_PIN_DISABLE>;
697 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
698 nvidia,lock = <0>;
699 nvidia,io-reset = <0>;
700 };
701
702 vi_d10_pt2 {
703 nvidia,pins = "vi_d10_pt2",
704 "vi_d0_pt4", "pbb0";
705 nvidia,function = "rsvd2";
706 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
707 nvidia,tristate = <TEGRA_PIN_DISABLE>;
708 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
709 };
710
711 vi_d11_pt3 {
712 nvidia,pins = "vi_d11_pt3";
713 nvidia,function = "rsvd2";
714 nvidia,pull = <TEGRA_PIN_PULL_UP>;
715 nvidia,tristate = <TEGRA_PIN_DISABLE>;
716 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
717 };
718
719 pu0 {
720 nvidia,pins = "pu0";
721 nvidia,function = "rsvd4";
722 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
723 nvidia,tristate = <TEGRA_PIN_DISABLE>;
724 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
725 };
726
727 pu3 {
728 nvidia,pins = "pu3";
729 nvidia,function = "rsvd4";
730 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
731 nvidia,tristate = <TEGRA_PIN_DISABLE>;
732 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
733 };
734
735 pu6 {
736 nvidia,pins = "pu6";
737 nvidia,function = "rsvd4";
738 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
739 nvidia,tristate = <TEGRA_PIN_DISABLE>;
740 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
741 };
742
743 pex_l1_prsnt_n_pdd4 {
744 nvidia,pins = "pex_l1_prsnt_n_pdd4",
745 "pex_l1_clkreq_n_pdd6";
746 nvidia,function = "rsvd4";
747 nvidia,pull = <TEGRA_PIN_PULL_UP>;
748 nvidia,tristate = <TEGRA_PIN_ENABLE>;
749 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
750 };
751
752 gmi_wait_pi7 {
753 nvidia,pins = "gmi_wait_pi7",
754 "gmi_cs0_n_pj0",
755 "gmi_cs1_n_pj2",
756 "gmi_cs4_n_pk2";
757 nvidia,function = "nand";
758 nvidia,pull = <TEGRA_PIN_PULL_UP>;
759 nvidia,tristate = <TEGRA_PIN_ENABLE>;
760 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
761 };
762
763 gmi_ad0_pg0 {
764 nvidia,pins = "gmi_ad0_pg0",
765 "gmi_ad1_pg1",
766 "gmi_ad2_pg2",
767 "gmi_ad3_pg3",
768 "gmi_ad4_pg4",
769 "gmi_ad5_pg5",
770 "gmi_ad6_pg6",
771 "gmi_ad7_pg7",
772 "gmi_wr_n_pi0",
773 "gmi_oe_n_pi1",
774 "gmi_dqs_pi2",
775 "gmi_adv_n_pk0",
776 "gmi_clk_pk1";
777 nvidia,function = "nand";
778 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
779 nvidia,tristate = <TEGRA_PIN_ENABLE>;
780 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
781 };
782
783 gmi_cs2_n_pk3 {
784 nvidia,pins = "gmi_cs2_n_pk3";
785 nvidia,function = "rsvd1";
786 nvidia,pull = <TEGRA_PIN_PULL_UP>;
787 nvidia,tristate = <TEGRA_PIN_DISABLE>;
788 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
789 };
790
791 gmi_cs3_n_pk4 {
792 nvidia,pins = "gmi_cs3_n_pk4";
793 nvidia,function = "nand";
794 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
795 nvidia,tristate = <TEGRA_PIN_DISABLE>;
796 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
797 };
798
799 gmi_ad10_ph2 {
800 nvidia,pins = "gmi_ad10_ph2",
801 "gmi_ad11_ph3",
802 "gmi_ad14_ph6";
803 nvidia,function = "nand";
804 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
805 nvidia,tristate = <TEGRA_PIN_DISABLE>;
806 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
807 };
808
809 gmi_ad13_ph5 {
810 nvidia,pins = "gmi_ad13_ph5",
811 "gmi_ad12_ph4",
812 "gmi_cs7_n_pi6";
813 nvidia,function = "nand";
814 nvidia,pull = <TEGRA_PIN_PULL_UP>;
815 nvidia,tristate = <TEGRA_PIN_DISABLE>;
816 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
817 };
818
819 gmi_rst_n_pi4 {
820 nvidia,pins = "gmi_rst_n_pi4";
821 nvidia,function = "gmi";
822 nvidia,pull = <TEGRA_PIN_PULL_UP>;
823 nvidia,tristate = <TEGRA_PIN_DISABLE>;
824 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
825 };
826
827 gmi_ad8_ph0 {
828 nvidia,pins = "gmi_ad8_ph0";
829 nvidia,function = "pwm0";
830 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
831 nvidia,tristate = <TEGRA_PIN_DISABLE>;
832 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
833 };
834
835 gmi_ad9_ph1 {
836 nvidia,pins = "gmi_ad9_ph1";
837 nvidia,function = "pwm1";
838 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
839 nvidia,tristate = <TEGRA_PIN_DISABLE>;
840 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
841 };
842
843 gmi_wp_n_pc7 {
844 nvidia,pins = "gmi_wp_n_pc7";
845 nvidia,function = "gmi";
846 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
847 nvidia,tristate = <TEGRA_PIN_DISABLE>;
848 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
849 };
850
851 gmi_cs6_n_pi3 {
852 nvidia,pins = "gmi_cs6_n_pi3";
853 nvidia,function = "sata";
854 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
855 nvidia,tristate = <TEGRA_PIN_DISABLE>;
856 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
857 };
858
859 vi_d4_pl2 {
860 nvidia,pins = "vi_d4_pl2";
861 nvidia,function = "vi";
862 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
863 nvidia,tristate = <TEGRA_PIN_DISABLE>;
864 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
865 };
866
867 vi_d6_pl4 {
868 nvidia,pins = "vi_d6_pl4";
869 nvidia,function = "vi";
870 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
871 nvidia,tristate = <TEGRA_PIN_DISABLE>;
872 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
873 nvidia,lock = <0>;
874 nvidia,io-reset = <0>;
875 };
876
877 vi_mclk_pt1 {
878 nvidia,pins = "vi_mclk_pt1";
879 nvidia,function = "vi";
880 nvidia,pull = <TEGRA_PIN_PULL_UP>;
881 nvidia,tristate = <TEGRA_PIN_DISABLE>;
882 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
883 };
884
885 /* HDMI hot-plug-detect */
886 hdmi_int_pn7 {
887 nvidia,pins = "hdmi_int_pn7";
888 nvidia,function = "hdmi";
889 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
890 nvidia,tristate = <TEGRA_PIN_ENABLE>;
891 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
892 };
893
894 pu4 {
895 nvidia,pins = "pu4";
896 nvidia,function = "pwm1";
897 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
898 nvidia,tristate = <TEGRA_PIN_DISABLE>;
899 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
900 };
901
902 pu5 {
903 nvidia,pins = "pu5";
904 nvidia,function = "pwm2";
905 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
906 nvidia,tristate = <TEGRA_PIN_DISABLE>;
907 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
908 };
909
910 jtag_rtck_pu7 {
911 nvidia,pins = "jtag_rtck_pu7";
912 nvidia,function = "rtck";
913 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
914 nvidia,tristate = <TEGRA_PIN_DISABLE>;
915 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
916 };
917
918 crt_hsync_pv6 {
919 nvidia,pins = "crt_hsync_pv6",
920 "crt_vsync_pv7";
921 nvidia,function = "crt";
922 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
923 nvidia,tristate = <TEGRA_PIN_DISABLE>;
924 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
925 };
926
927 clk1_out_pw4 {
928 nvidia,pins = "clk1_out_pw4";
929 nvidia,function = "extperiph1";
930 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
931 nvidia,tristate = <TEGRA_PIN_DISABLE>;
932 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
933 };
934
935 clk2_out_pw5 {
936 nvidia,pins = "clk2_out_pw5";
937 nvidia,function = "extperiph2";
938 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
939 nvidia,tristate = <TEGRA_PIN_DISABLE>;
940 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
941 };
942
943 clk3_out_pee0 {
944 nvidia,pins = "clk3_out_pee0";
945 nvidia,function = "extperiph3";
946 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
947 nvidia,tristate = <TEGRA_PIN_DISABLE>;
948 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
949 };
950
951 sys_clk_req_pz5 {
952 nvidia,pins = "sys_clk_req_pz5";
953 nvidia,function = "sysclk";
954 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
955 nvidia,tristate = <TEGRA_PIN_DISABLE>;
956 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
957 };
958
959 pbb4 {
960 nvidia,pins = "pbb4";
961 nvidia,function = "vgp4";
962 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
963 nvidia,tristate = <TEGRA_PIN_DISABLE>;
964 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
965 };
966
967 pbb5 {
968 nvidia,pins = "pbb5";
969 nvidia,function = "vgp5";
970 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
971 nvidia,tristate = <TEGRA_PIN_DISABLE>;
972 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
973 };
974
975 pbb6 {
976 nvidia,pins = "pbb6";
977 nvidia,function = "vgp6";
978 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
979 nvidia,tristate = <TEGRA_PIN_DISABLE>;
980 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
981 };
982
983 clk1_req_pee2 {
984 nvidia,pins = "clk1_req_pee2";
985 nvidia,function = "dap";
986 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
987 nvidia,tristate = <TEGRA_PIN_DISABLE>;
988 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
989 };
990
991 clk2_req_pcc5 {
992 nvidia,pins = "clk2_req_pcc5";
993 nvidia,function = "dap";
994 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
995 nvidia,tristate = <TEGRA_PIN_DISABLE>;
996 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
997 };
998
999 clk3_req_pee1 {
1000 nvidia,pins = "clk3_req_pee1";
1001 nvidia,function = "dev3";
1002 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
1003 nvidia,tristate = <TEGRA_PIN_DISABLE>;
1004 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
1005 };
1006
1007 owr {
1008 nvidia,pins = "owr";
1009 nvidia,function = "owr";
1010 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
1011 nvidia,tristate = <TEGRA_PIN_DISABLE>;
1012 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
1013 };
1014
1015 pv2 {
1016 nvidia,pins = "pv2",
1017 "kb_row5_pr5";
1018 nvidia,function = "owr";
1019 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
1020 nvidia,tristate = <TEGRA_PIN_DISABLE>;
1021 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
1022 };
1023
1024 pbb3 {
1025 nvidia,pins = "pbb3";
1026 nvidia,function = "vgp3";
1027 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
1028 nvidia,tristate = <TEGRA_PIN_DISABLE>;
1029 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
1030 };
1031
1032 pbb7 {
1033 nvidia,pins = "pbb7";
1034 nvidia,function = "i2s4";
1035 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
1036 nvidia,tristate = <TEGRA_PIN_DISABLE>;
1037 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
1038 };
1039
1040 cam_mclk_pcc0 {
1041 nvidia,pins = "cam_mclk_pcc0";
1042 nvidia,function = "vi_alt3";
1043 nvidia,pull = <TEGRA_PIN_PULL_UP>;
1044 nvidia,tristate = <TEGRA_PIN_DISABLE>;
1045 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
1046 };
1047
1048 /* GPIO power/drive control */
1049 drive_dap1 {
1050 nvidia,pins = "drive_dap1",
1051 "drive_dap2",
1052 "drive_dbg",
1053 "drive_at5",
1054 "drive_gme",
1055 "drive_ddc",
1056 "drive_ao1",
1057 "drive_uart3";
1058 nvidia,high-speed-mode = <0>;
1059 nvidia,schmitt = <TEGRA_PIN_ENABLE>;
1060 nvidia,low-power-mode = <TEGRA_PIN_LP_DRIVE_DIV_1>;
1061 nvidia,pull-down-strength = <31>;
1062 nvidia,pull-up-strength = <31>;
1063 nvidia,slew-rate-rising = <TEGRA_PIN_SLEW_RATE_FASTEST>;
1064 nvidia,slew-rate-falling = <TEGRA_PIN_SLEW_RATE_FASTEST>;
1065 };
1066
1067 drive_sdio1 {
1068 nvidia,pins = "drive_sdio1";
1069 nvidia,high-speed-mode = <0>;
1070 nvidia,schmitt = <TEGRA_PIN_DISABLE>;
1071 nvidia,pull-down-strength = <5>;
1072 nvidia,pull-up-strength = <5>;
1073 nvidia,slew-rate-rising = <TEGRA_PIN_SLEW_RATE_FAST>;
1074 nvidia,slew-rate-falling = <TEGRA_PIN_SLEW_RATE_FAST>;
1075 };
1076
1077 drive_sdio3 {
1078 nvidia,pins = "drive_sdio3";
1079 nvidia,high-speed-mode = <0>;
1080 nvidia,schmitt = <TEGRA_PIN_DISABLE>;
1081 nvidia,pull-down-strength = <46>;
1082 nvidia,pull-up-strength = <42>;
1083 nvidia,slew-rate-rising = <TEGRA_PIN_SLEW_RATE_FAST>;
1084 nvidia,slew-rate-falling = <TEGRA_PIN_SLEW_RATE_FAST>;
1085 };
1086
1087 drive_gma {
1088 nvidia,pins = "drive_gma",
1089 "drive_gmb",
1090 "drive_gmc",
1091 "drive_gmd";
1092 nvidia,pull-down-strength = <9>;
1093 nvidia,pull-up-strength = <9>;
1094 nvidia,slew-rate-rising = <TEGRA_PIN_SLEW_RATE_SLOWEST>;
1095 nvidia,slew-rate-falling = <TEGRA_PIN_SLEW_RATE_SLOWEST>;
1096 };
1097
1098 drive_lcd2 {
1099 nvidia,pins = "drive_lcd2";
1100 nvidia,high-speed-mode = <0>;
1101 nvidia,schmitt = <TEGRA_PIN_ENABLE>;
1102 nvidia,low-power-mode = <TEGRA_PIN_LP_DRIVE_DIV_4>;
1103 nvidia,pull-down-strength = <20>;
1104 nvidia,pull-up-strength = <20>;
1105 nvidia,slew-rate-rising = <TEGRA_PIN_SLEW_RATE_FASTEST>;
1106 nvidia,slew-rate-falling = <TEGRA_PIN_SLEW_RATE_FASTEST>;
1107 };
1108 };
1109 };
1110
1111 uartb: serial@70006040 {
1112 compatible = "nvidia,tegra30-hsuart";
1113 reset-names = "serial";
1114 /delete-property/ reg-shift;
1115 status = "okay";
1116
1117 /* Broadcom GPS BCM47511 */
1118 };
1119
1120 uartc: serial@70006200 {
1121 compatible = "nvidia,tegra30-hsuart";
1122 reset-names = "serial";
1123 /delete-property/ reg-shift;
1124 status = "okay";
1125
1126 nvidia,adjust-baud-rates = <0 9600 100>,
1127 <9600 115200 200>,
1128 <1000000 4000000 136>;
1129
1130 /* Azurewave AW-AH663 BCM4330B1 */
1131 bluetooth {
1132 compatible = "brcm,bcm4330-bt";
1133 max-speed = <4000000>;
1134
1135 clocks = <&tegra_pmc TEGRA_PMC_CLK_BLINK>;
1136 clock-names = "txco";
1137
1138 interrupt-parent = <&gpio>;
1139 interrupts = <TEGRA_GPIO(U, 6) IRQ_TYPE_EDGE_RISING>;
1140 interrupt-names = "host-wakeup";
1141
1142 device-wakeup-gpios = <&gpio TEGRA_GPIO(U, 1) GPIO_ACTIVE_HIGH>;
1143 shutdown-gpios = <&gpio TEGRA_GPIO(U, 0) GPIO_ACTIVE_HIGH>;
1144
1145 vbat-supply = <&vdd_3v3_sys>;
1146 vddio-supply = <&vdd_1v8_vio>;
1147 };
1148 };
1149
1150 pwm: pwm@7000a000 {
1151 status = "okay";
1152 };
1153
1154 lcd_ddc: i2c@7000c000 {
1155 status = "okay";
1156 clock-frequency = <400000>;
1157
1158 embedded-controller@10 {
1159 compatible = "pegatron,chagall-ec";
1160 reg = <0x10>;
1161
1162 monitored-battery = <&battery>;
1163 power-supplies = <&mains>;
1164 };
1165
1166 /* Wolfson Microelectronics WM8903 audio codec */
1167 wm8903: audio-codec@1a {
1168 compatible = "wlf,wm8903";
1169 reg = <0x1a>;
1170
1171 interrupt-parent = <&gpio>;
1172 interrupts = <TEGRA_GPIO(W, 3) IRQ_TYPE_EDGE_BOTH>;
1173
1174 gpio-controller;
1175 #gpio-cells = <2>;
1176
1177 micdet-cfg = <0>;
1178 micdet-delay = <100>;
1179
1180 gpio-cfg = <0xffffffff 0xffffffff 0 0xffffffff 0xffffffff>;
1181
1182 AVDD-supply = <&vdd_1v8_vio>;
1183 CPVDD-supply = <&vdd_1v8_vio>;
1184 DBVDD-supply = <&vdd_1v8_vio>;
1185 DCVDD-supply = <&vdd_1v8_vio>;
1186 };
1187 };
1188
1189 i2c2: i2c@7000c400 {
1190 status = "okay";
1191 clock-frequency = <400000>;
1192
1193 /* Atmel touchscreen */
1194 touchscreen@4d {
1195 compatible = "atmel,maxtouch";
1196 reg = <0x4d>;
1197
1198 interrupt-parent = <&gpio>;
1199 interrupts = <TEGRA_GPIO(H, 4) IRQ_TYPE_EDGE_FALLING>;
1200 reset-gpios = <&gpio TEGRA_GPIO(H, 6) GPIO_ACTIVE_LOW>;
1201
1202 vdda-supply = <&vdd_3v3_sys>;
1203 vdd-supply = <&vdd_3v3_sys>;
1204 };
1205 };
1206
1207 i2c3: i2c@7000c500 {
1208 status = "okay";
1209 clock-frequency = <400000>;
1210
1211 /* AsahiKASEI AK8975 magnetometer sensor */
1212 magnetometer@c {
1213 compatible = "asahi-kasei,ak8975";
1214 reg = <0x0c>;
1215
1216 vdd-supply = <&vdd_3v3_sen>;
1217 vid-supply = <&vdd_1v8_vio>;
1218
1219 mount-matrix = "0", "1", "0",
1220 "1", "0", "0",
1221 "0", "0", "-1";
1222 };
1223
1224 light-sensor@44 {
1225 compatible = "isil,isl29023";
1226 reg = <0x44>;
1227
1228 interrupt-parent = <&gpio>;
1229 interrupts = <TEGRA_GPIO(Q, 3) IRQ_TYPE_LEVEL_HIGH>;
1230
1231 vcc-supply = <&vdd_3v3_sen>;
1232 };
1233
1234 gyroscope@68 {
1235 compatible = "invensense,mpu3050";
1236 reg = <0x68>;
1237
1238 interrupt-parent = <&gpio>;
1239 interrupts = <TEGRA_GPIO(X, 1) IRQ_TYPE_EDGE_RISING>;
1240
1241 vdd-supply = <&vdd_3v3_sen>;
1242 vlogic-supply = <&vdd_1v8_vio>;
1243
1244 mount-matrix = "0", "1", "0",
1245 "1", "0", "0",
1246 "0", "0", "-1";
1247
1248 /* External I2C interface */
1249 i2c-gate {
1250 #address-cells = <1>;
1251 #size-cells = <0>;
1252
1253 accelerometer@f {
1254 compatible = "kionix,kxtf9";
1255 reg = <0x0f>;
1256
1257 interrupt-parent = <&gpio>;
1258 interrupts = <TEGRA_GPIO(L, 1) IRQ_TYPE_EDGE_RISING>;
1259
1260 vdd-supply = <&vdd_1v8_vio>;
1261 vddio-supply = <&vdd_1v8_vio>;
1262
1263 mount-matrix = "-1", "0", "0",
1264 "0", "1", "0",
1265 "0", "0", "1";
1266 };
1267 };
1268 };
1269 };
1270
1271 hdmi_ddc: i2c@7000c700 {
1272 status = "okay";
1273 clock-frequency = <93750>;
1274 };
1275
1276 i2c5: i2c@7000d000 {
1277 status = "okay";
1278 clock-frequency = <400000>;
1279
1280 /* Texas Instruments TPS659110 PMIC */
1281 pmic: pmic@2d {
1282 compatible = "ti,tps65911";
1283 reg = <0x2d>;
1284
1285 interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
1286 #interrupt-cells = <2>;
1287 interrupt-controller;
1288 wakeup-source;
1289
1290 ti,en-gpio-sleep = <0 0 1 0 0 0 0 0 0>;
1291 ti,system-power-controller;
1292 ti,sleep-keep-ck32k;
1293 ti,sleep-enable;
1294
1295 #gpio-cells = <2>;
1296 gpio-controller;
1297
1298 vcc1-supply = <&vdd_5v0_sys>;
1299 vcc2-supply = <&vdd_5v0_sys>;
1300 vcc3-supply = <&vdd_1v8_vio>;
1301 vcc4-supply = <&vdd_1v8_vio>;
1302 vcc5-supply = <&vdd_5v0_sys>;
1303 vcc6-supply = <&vddio_1v2_ddr>;
1304 vcc7-supply = <&vdd_5v0_sys>;
1305 vccio-supply = <&vdd_5v0_sys>;
1306
1307 pmic-sleep-hog {
1308 gpio-hog;
1309 gpios = <0 GPIO_ACTIVE_HIGH>,
1310 <2 GPIO_ACTIVE_HIGH>,
1311 <6 GPIO_ACTIVE_HIGH>,
1312 <8 GPIO_ACTIVE_HIGH>;
1313 output-high;
1314 };
1315
1316 regulators {
1317 /* VDD1 is not used by Chagall */
1318
1319 vddio_1v2_ddr: vdd2 {
1320 regulator-name = "vddio_1v2_ddr";
1321 regulator-min-microvolt = <1200000>;
1322 regulator-max-microvolt = <1200000>;
1323 regulator-always-on;
1324 regulator-boot-on;
1325 };
1326
1327 vdd_cpu: vddctrl {
1328 regulator-name = "vdd_cpu,vdd_sys";
1329 regulator-min-microvolt = <600000>;
1330 regulator-max-microvolt = <1400000>;
1331 regulator-coupled-with = <&vdd_core>;
1332 regulator-coupled-max-spread = <300000>;
1333 regulator-max-step-microvolt = <100000>;
1334 regulator-always-on;
1335 regulator-boot-on;
1336 ti,regulator-ext-sleep-control = <1>;
1337
1338 nvidia,tegra-cpu-regulator;
1339 };
1340
1341 vdd_1v8_vio: vio {
1342 regulator-name = "vdd_1v8_gen";
1343 /* FIXME: eMMC won't work, if set to 1.8 V */
1344 regulator-min-microvolt = <1500000>;
1345 regulator-max-microvolt = <3300000>;
1346 regulator-always-on;
1347 regulator-boot-on;
1348 };
1349
1350 /* eMMC VDD */
1351 vcore_emmc: ldo1 {
1352 regulator-name = "vdd_emmc_core";
1353 regulator-min-microvolt = <1000000>;
1354 regulator-max-microvolt = <3300000>;
1355 regulator-always-on;
1356 };
1357
1358 /* uSD slot VDD */
1359 vdd_usd: ldo2 {
1360 regulator-name = "vdd_usd";
1361 regulator-min-microvolt = <3200000>;
1362 regulator-max-microvolt = <3200000>;
1363 };
1364
1365 /* uSD slot VDDIO */
1366 vddio_usd: ldo3 {
1367 regulator-name = "vddio_usd";
1368 regulator-min-microvolt = <1900000>;
1369 regulator-max-microvolt = <3200000>;
1370 };
1371
1372 ldo4 {
1373 regulator-name = "vdd_rtc";
1374 regulator-min-microvolt = <1200000>;
1375 regulator-max-microvolt = <1200000>;
1376 regulator-always-on;
1377 };
1378
1379 ldo5 {
1380 regulator-name = "vdd_1v3_cam_isp";
1381 regulator-min-microvolt = <1300000>;
1382 regulator-max-microvolt = <1300000>;
1383 };
1384
1385 ldo6 {
1386 regulator-name = "avdd_dsi_csi,pwrdet_mipi";
1387 regulator-min-microvolt = <1200000>;
1388 regulator-max-microvolt = <1200000>;
1389 };
1390
1391 ldo7 {
1392 regulator-name = "vdd_pllm,x,u,a_p_c_s";
1393 regulator-min-microvolt = <1200000>;
1394 regulator-max-microvolt = <1200000>;
1395 regulator-always-on;
1396 regulator-boot-on;
1397 ti,regulator-ext-sleep-control = <8>;
1398 };
1399
1400 ldo8 {
1401 regulator-name = "vdd_ddr_hs";
1402 regulator-min-microvolt = <1000000>;
1403 regulator-max-microvolt = <1000000>;
1404 regulator-always-on;
1405 ti,regulator-ext-sleep-control = <8>;
1406 };
1407 };
1408 };
1409
1410 nct72: temperature-sensor@4c {
1411 compatible = "onnn,nct1008";
1412 reg = <0x4c>;
1413
1414 interrupt-parent = <&gpio>;
1415 interrupts = <TEGRA_GPIO(U, 5) IRQ_TYPE_EDGE_FALLING>;
1416
1417 vcc-supply = <&vdd_3v3_sys>;
1418 #thermal-sensor-cells = <1>;
1419 };
1420
1421 vdd_core: core-regulator@60 {
1422 compatible = "ti,tps62361";
1423 reg = <0x60>;
1424
1425 regulator-name = "tps62361-vout";
1426 regulator-min-microvolt = <500000>;
1427 regulator-max-microvolt = <1770000>;
1428 regulator-coupled-with = <&vdd_cpu>;
1429 regulator-coupled-max-spread = <300000>;
1430 regulator-max-step-microvolt = <100000>;
1431 regulator-boot-on;
1432 regulator-always-on;
1433 ti,enable-vout-discharge;
1434 ti,vsel0-state-high;
1435 ti,vsel1-state-high;
1436
1437 nvidia,tegra-core-regulator;
1438 };
1439 };
1440
1441 vdd_5v0_sys: regulator-5v {
1442 compatible = "regulator-fixed";
1443 regulator-name = "vdd_5v0_sys";
1444 regulator-min-microvolt = <5000000>;
1445 regulator-max-microvolt = <5000000>;
1446 regulator-always-on;
1447 regulator-boot-on;
1448 };
1449
1450 vdd_3v3_sys: regulator-3v {
1451 compatible = "regulator-fixed";
1452 regulator-name = "vdd_3v3_sys";
1453 regulator-min-microvolt = <3300000>;
1454 regulator-max-microvolt = <3300000>;
1455 regulator-always-on;
1456 regulator-boot-on;
1457 };
1458
1459 vdd_pnl: regulator-panel {
1460 compatible = "regulator-fixed";
1461 regulator-name = "vdd_panel";
1462 regulator-min-microvolt = <3300000>;
1463 regulator-max-microvolt = <3300000>;
1464 regulator-enable-ramp-delay = <300000>;
1465 gpio = <&gpio TEGRA_GPIO(W, 1) GPIO_ACTIVE_HIGH>;
1466 enable-active-high;
1467 vin-supply = <&vdd_3v3_sys>;
1468 };
1469
1470 vdd_3v3_sen: regulator-sensors {
1471 compatible = "regulator-fixed";
1472 regulator-name = "sen_3v3_en";
1473 regulator-min-microvolt = <3300000>;
1474 regulator-max-microvolt = <3300000>;
1475 gpio = <&gpio TEGRA_GPIO(K, 5) GPIO_ACTIVE_HIGH>;
1476 enable-active-high;
1477 vin-supply = <&vdd_3v3_sys>;
1478 };
1479
1480 vdd_5v0_bl: regulator-bl {
1481 compatible = "regulator-fixed";
1482 regulator-name = "vdd_5v0_bl";
1483 regulator-min-microvolt = <5000000>;
1484 regulator-max-microvolt = <5000000>;
1485 regulator-boot-on;
1486 gpio = <&gpio TEGRA_GPIO(C, 6) GPIO_ACTIVE_HIGH>;
1487 enable-active-high;
1488 vin-supply = <&vdd_5v0_sys>;
1489 };
1490
1491 hdmi_5v0_sys: regulator-hdmi {
1492 compatible = "regulator-fixed";
1493 regulator-name = "hdmi_5v0_sys";
1494 regulator-min-microvolt = <5000000>;
1495 regulator-max-microvolt = <5000000>;
1496 gpio = <&gpio TEGRA_GPIO(P, 2) GPIO_ACTIVE_HIGH>;
1497 enable-active-high;
1498 vin-supply = <&vdd_5v0_sys>;
1499 };
1500
1501 vdd_vbus_usb1: regulator-usb1 {
1502 compatible = "regulator-fixed";
1503 regulator-name = "vdd_vbus_micro_usb";
1504 regulator-min-microvolt = <5000000>;
1505 regulator-max-microvolt = <5000000>;
1506 gpio = <&gpio TEGRA_GPIO(DD, 3) GPIO_ACTIVE_HIGH>;
1507 enable-active-high;
1508 vin-supply = <&vdd_5v0_sys>;
1509 };
1510
1511 vdd_vbus_usb3: regulator-usb3 {
1512 compatible = "regulator-fixed";
1513 regulator-name = "vdd_vbus_typea_usb";
1514 regulator-min-microvolt = <5000000>;
1515 regulator-max-microvolt = <5000000>;
1516 gpio = <&gpio TEGRA_GPIO(CC, 6) GPIO_ACTIVE_HIGH>;
1517 enable-active-high;
1518 vin-supply = <&vdd_5v0_sys>;
1519 };
1520
1521 pmc@7000e400 {
1522 status = "okay";
1523 nvidia,invert-interrupt;
1524 nvidia,suspend-mode = <2>;
1525 nvidia,cpu-pwr-good-time = <2000>;
1526 nvidia,cpu-pwr-off-time = <200>;
1527 nvidia,core-pwr-good-time = <3845 3845>;
1528 nvidia,core-pwr-off-time = <0>;
1529 nvidia,core-power-req-active-high;
1530 nvidia,sys-clock-req-active-high;
1531 core-supply = <&vdd_core>;
1532
1533 /* Set DEV_OFF + PWR_OFF_SET bit in DCDC control register of TPS65911 PMIC */
1534 i2c-thermtrip {
1535 nvidia,i2c-controller-id = <4>;
1536 nvidia,bus-addr = <0x2d>;
1537 nvidia,reg-addr = <0x3f>;
1538 nvidia,reg-data = <0x81>;
1539 };
1540 };
1541
1542 memory-controller@7000f000 {
1543 emc-timings-0 {
1544 /* SAMSUNG K4P8G304EB FGC1 */
1545 nvidia,ram-code = <0>;
1546
1547 timing-25500000 {
1548 clock-frequency = <25500000>;
1549
1550 nvidia,emem-configuration = < 0x00020001 0xc0000010
1551 0x00000001 0x00000001 0x00000002 0x00000000
1552 0x00000003 0x00000001 0x00000002 0x00000004
1553 0x00000001 0x00000000 0x00000002 0x00000002
1554 0x02020001 0x00060402 0x73e30303 0x001f0000 >;
1555 };
1556
1557 timing-51000000 {
1558 clock-frequency = <51000000>;
1559
1560 nvidia,emem-configuration = < 0x00010001 0xc0000010
1561 0x00000001 0x00000001 0x00000002 0x00000000
1562 0x00000003 0x00000001 0x00000002 0x00000004
1563 0x00000001 0x00000000 0x00000002 0x00000002
1564 0x02020001 0x00060402 0x72c30303 0x001f0000 >;
1565 };
1566
1567 timing-102000000 {
1568 clock-frequency = <102000000>;
1569
1570 nvidia,emem-configuration = < 0x00000001 0xc0000018
1571 0x00000001 0x00000001 0x00000003 0x00000001
1572 0x00000003 0x00000001 0x00000002 0x00000004
1573 0x00000001 0x00000000 0x00000002 0x00000002
1574 0x02020001 0x00060403 0x72430504 0x001f0000 >;
1575 };
1576
1577 timing-204000000 {
1578 clock-frequency = <204000000>;
1579
1580 nvidia,emem-configuration = < 0x00000003 0xc0000025
1581 0x00000001 0x00000001 0x00000006 0x00000003
1582 0x00000005 0x00000001 0x00000002 0x00000004
1583 0x00000001 0x00000000 0x00000003 0x00000002
1584 0x02030001 0x00070506 0x71e40a07 0x001f0000 >;
1585 };
1586
1587 timing-400000000 {
1588 clock-frequency = <400000000>;
1589
1590 nvidia,emem-configuration = < 0x00000006 0xc0000048
1591 0x00000002 0x00000003 0x0000000c 0x00000007
1592 0x00000009 0x00000001 0x00000002 0x00000006
1593 0x00000001 0x00000000 0x00000004 0x00000004
1594 0x04040001 0x000d090c 0x7026120d 0x001f0000 >;
1595 };
1596 };
1597
1598 emc-timings-1 {
1599 /* ELPIDA EDB8132B2MA 8D_F */
1600 nvidia,ram-code = <1>;
1601
1602 timing-25500000 {
1603 clock-frequency = <25500000>;
1604
1605 nvidia,emem-configuration = < 0x00020001 0xc0000010
1606 0x00000001 0x00000001 0x00000002 0x00000000
1607 0x00000003 0x00000001 0x00000002 0x00000004
1608 0x00000001 0x00000000 0x00000002 0x00000002
1609 0x02020001 0x00060402 0x73e30303 0x001f0000 >;
1610 };
1611
1612 timing-51000000 {
1613 clock-frequency = <51000000>;
1614
1615 nvidia,emem-configuration = < 0x00010001 0xc0000010
1616 0x00000001 0x00000001 0x00000002 0x00000000
1617 0x00000003 0x00000001 0x00000002 0x00000004
1618 0x00000001 0x00000000 0x00000002 0x00000002
1619 0x02020001 0x00060402 0x72c30303 0x001f0000 >;
1620 };
1621
1622 timing-102000000 {
1623 clock-frequency = <102000000>;
1624
1625 nvidia,emem-configuration = < 0x00000001 0xc0000018
1626 0x00000001 0x00000001 0x00000003 0x00000001
1627 0x00000003 0x00000001 0x00000002 0x00000004
1628 0x00000001 0x00000000 0x00000002 0x00000002
1629 0x02020001 0x00060403 0x72430504 0x001f0000 >;
1630 };
1631
1632 timing-204000000 {
1633 clock-frequency = <204000000>;
1634
1635 nvidia,emem-configuration = < 0x00000003 0xc0000025
1636 0x00000001 0x00000001 0x00000006 0x00000003
1637 0x00000005 0x00000001 0x00000002 0x00000004
1638 0x00000001 0x00000000 0x00000003 0x00000002
1639 0x02030001 0x00070506 0x71e40a07 0x001f0000 >;
1640 };
1641
1642 timing-400000000 {
1643 clock-frequency = <400000000>;
1644
1645 nvidia,emem-configuration = < 0x00000006 0xc0000048
1646 0x00000002 0x00000003 0x0000000c 0x00000007
1647 0x00000009 0x00000001 0x00000002 0x00000006
1648 0x00000001 0x00000000 0x00000004 0x00000004
1649 0x04040001 0x000d090c 0x7026120d 0x001f0000 >;
1650 };
1651 };
1652
1653 emc-timings-2 {
1654 /* SAMSUNG K4P8G304EB FGC2 */
1655 nvidia,ram-code = <2>;
1656
1657 timing-25500000 {
1658 clock-frequency = <25500000>;
1659
1660 nvidia,emem-configuration = < 0x00020001 0xc0000010
1661 0x00000001 0x00000001 0x00000002 0x00000000
1662 0x00000003 0x00000001 0x00000002 0x00000004
1663 0x00000001 0x00000000 0x00000002 0x00000002
1664 0x02020001 0x00060402 0x73e30303 0x001f0000 >;
1665 };
1666
1667 timing-51000000 {
1668 clock-frequency = <51000000>;
1669
1670 nvidia,emem-configuration = < 0x00010001 0xc0000010
1671 0x00000001 0x00000001 0x00000002 0x00000000
1672 0x00000003 0x00000001 0x00000002 0x00000004
1673 0x00000001 0x00000000 0x00000002 0x00000002
1674 0x02020001 0x00060402 0x72c30303 0x001f0000 >;
1675 };
1676
1677 timing-102000000 {
1678 clock-frequency = <102000000>;
1679
1680 nvidia,emem-configuration = < 0x00000001 0xc0000018
1681 0x00000001 0x00000001 0x00000003 0x00000001
1682 0x00000003 0x00000001 0x00000002 0x00000004
1683 0x00000001 0x00000000 0x00000002 0x00000002
1684 0x02020001 0x00060403 0x72430504 0x001f0000 >;
1685 };
1686
1687 timing-204000000 {
1688 clock-frequency = <204000000>;
1689
1690 nvidia,emem-configuration = < 0x00000003 0xc0000025
1691 0x00000001 0x00000001 0x00000006 0x00000003
1692 0x00000005 0x00000001 0x00000002 0x00000004
1693 0x00000001 0x00000000 0x00000003 0x00000002
1694 0x02030001 0x00070506 0x71e40a07 0x001f0000 >;
1695 };
1696
1697 timing-533000000 {
1698 clock-frequency = <533000000>;
1699
1700 nvidia,emem-configuration = < 0x00000008 0xc0000060
1701 0x00000003 0x00000004 0x00000010 0x0000000a
1702 0x0000000d 0x00000002 0x00000002 0x00000008
1703 0x00000002 0x00000000 0x00000004 0x00000005
1704 0x05040002 0x00110b10 0x70281811 0x001f0000 >;
1705 };
1706 };
1707
1708 emc-timings-3 {
1709 /* HYNIX H9TCNNN8JDMMPR NGM */
1710 nvidia,ram-code = <3>;
1711
1712 timing-25500000 {
1713 clock-frequency = <25500000>;
1714
1715 nvidia,emem-configuration = < 0x00020001 0xc0000010
1716 0x00000001 0x00000001 0x00000002 0x00000000
1717 0x00000003 0x00000001 0x00000002 0x00000004
1718 0x00000001 0x00000000 0x00000002 0x00000002
1719 0x02020001 0x00060402 0x73e30303 0x001f0000 >;
1720 };
1721
1722 timing-51000000 {
1723 clock-frequency = <51000000>;
1724
1725 nvidia,emem-configuration = < 0x00010001 0xc0000010
1726 0x00000001 0x00000001 0x00000002 0x00000000
1727 0x00000003 0x00000001 0x00000002 0x00000004
1728 0x00000001 0x00000000 0x00000002 0x00000002
1729 0x02020001 0x00060402 0x72c30303 0x001f0000 >;
1730 };
1731
1732 timing-102000000 {
1733 clock-frequency = <102000000>;
1734
1735 nvidia,emem-configuration = < 0x00000001 0xc0000018
1736 0x00000001 0x00000001 0x00000003 0x00000001
1737 0x00000003 0x00000001 0x00000002 0x00000004
1738 0x00000001 0x00000000 0x00000002 0x00000002
1739 0x02020001 0x00060403 0x72430504 0x001f0000 >;
1740 };
1741
1742 timing-204000000 {
1743 clock-frequency = <204000000>;
1744
1745 nvidia,emem-configuration = < 0x00000003 0xc0000025
1746 0x00000001 0x00000001 0x00000006 0x00000003
1747 0x00000005 0x00000001 0x00000002 0x00000004
1748 0x00000001 0x00000000 0x00000003 0x00000002
1749 0x02030001 0x00070506 0x71e40a07 0x001f0000 >;
1750 };
1751
1752 timing-533000000 {
1753 clock-frequency = <533000000>;
1754
1755 nvidia,emem-configuration = < 0x00000008 0xc0000060
1756 0x00000003 0x00000004 0x00000010 0x0000000a
1757 0x0000000d 0x00000002 0x00000002 0x00000008
1758 0x00000002 0x00000000 0x00000004 0x00000005
1759 0x05040002 0x00110b10 0x70281811 0x001f0000 >;
1760 };
1761 };
1762 };
1763
1764 memory-controller@7000f400 {
1765 emc-timings-0 {
1766 /* SAMSUNG K4P8G304EB FGC1 */
1767 nvidia,ram-code = <0>;
1768
1769 timing-25500000 {
1770 clock-frequency = <25500000>;
1771
1772 nvidia,emc-auto-cal-interval = <0x001fffff>;
1773 nvidia,emc-mode-1 = <0x00010022>;
1774 nvidia,emc-mode-2 = <0x00020001>;
1775 nvidia,emc-mode-reset = <0x00000000>;
1776 nvidia,emc-zcal-cnt-long = <0x00000009>;
1777 nvidia,emc-cfg-dyn-self-ref;
1778 nvidia,emc-cfg-periodic-qrst;
1779
1780 nvidia,emc-configuration = < 0x00000001
1781 0x00000003 0x00000002 0x00000002 0x00000004
1782 0x00000004 0x00000001 0x00000005 0x00000002
1783 0x00000002 0x00000001 0x00000001 0x00000000
1784 0x00000001 0x00000003 0x00000001 0x0000000b
1785 0x00000009 0x00000060 0x00000000 0x00000018
1786 0x00000001 0x00000001 0x00000002 0x00000000
1787 0x00000001 0x00000007 0x00000004 0x00000004
1788 0x00000003 0x00000008 0x00000004 0x00000004
1789 0x00000002 0x0000006b 0x00000004 0x00000004
1790 0x00000000 0x00000000 0x00004282 0x007800a4
1791 0x00008000 0x000fc000 0x000fc000 0x000fc000
1792 0x000fc000 0x000fc000 0x000fc000 0x000fc000
1793 0x000fc000 0x00000000 0x00000000 0x00000000
1794 0x00000000 0x00000000 0x00000000 0x00000000
1795 0x00000000 0x00000000 0x00000000 0x00000000
1796 0x00000000 0x00000000 0x00000000 0x00000000
1797 0x00000000 0x000fc000 0x000fc000 0x000fc000
1798 0x000fc000 0x00100220 0x0800201c 0x00000000
1799 0x77ffc004 0x01f1f008 0x00000000 0x00000007
1800 0x08000068 0x08000000 0x00000802 0x00064000
1801 0x0000000a 0x00090009 0xa0f10000 0x00000000
1802 0x00000000 0x800001c5 0xe0000000 0xff00ff00 >;
1803 };
1804
1805 timing-51000000 {
1806 clock-frequency = <51000000>;
1807
1808 nvidia,emc-auto-cal-interval = <0x001fffff>;
1809 nvidia,emc-mode-1 = <0x00010022>;
1810 nvidia,emc-mode-2 = <0x00020001>;
1811 nvidia,emc-mode-reset = <0x00000000>;
1812 nvidia,emc-zcal-cnt-long = <0x00000009>;
1813 nvidia,emc-cfg-dyn-self-ref;
1814 nvidia,emc-cfg-periodic-qrst;
1815
1816 nvidia,emc-configuration = < 0x00000003
1817 0x00000006 0x00000002 0x00000002 0x00000004
1818 0x00000004 0x00000001 0x00000005 0x00000002
1819 0x00000002 0x00000001 0x00000001 0x00000000
1820 0x00000001 0x00000003 0x00000001 0x0000000b
1821 0x00000009 0x000000c0 0x00000000 0x00000030
1822 0x00000001 0x00000001 0x00000002 0x00000000
1823 0x00000001 0x00000007 0x00000008 0x00000008
1824 0x00000003 0x00000008 0x00000004 0x00000004
1825 0x00000002 0x000000d5 0x00000004 0x00000004
1826 0x00000000 0x00000000 0x00004282 0x007800a4
1827 0x00008000 0x000fc000 0x000fc000 0x000fc000
1828 0x000fc000 0x000fc000 0x000fc000 0x000fc000
1829 0x000fc000 0x00000000 0x00000000 0x00000000
1830 0x00000000 0x00000000 0x00000000 0x00000000
1831 0x00000000 0x00000000 0x00000000 0x00000000
1832 0x00000000 0x00000000 0x00000000 0x00000000
1833 0x00000000 0x000fc000 0x000fc000 0x000fc000
1834 0x000fc000 0x00100220 0x0800201c 0x00000000
1835 0x77ffc004 0x01f1f008 0x00000000 0x00000007
1836 0x08000068 0x08000000 0x00000802 0x00064000
1837 0x00000013 0x00090009 0xa0f10000 0x00000000
1838 0x00000000 0x80000287 0xe0000000 0xff00ff00 >;
1839 };
1840
1841 timing-102000000 {
1842 clock-frequency = <102000000>;
1843
1844 nvidia,emc-auto-cal-interval = <0x001fffff>;
1845 nvidia,emc-mode-1 = <0x00010022>;
1846 nvidia,emc-mode-2 = <0x00020001>;
1847 nvidia,emc-mode-reset = <0x00000000>;
1848 nvidia,emc-zcal-cnt-long = <0x0000000a>;
1849 nvidia,emc-cfg-dyn-self-ref;
1850 nvidia,emc-cfg-periodic-qrst;
1851
1852 nvidia,emc-configuration = < 0x00000006
1853 0x0000000d 0x00000004 0x00000002 0x00000004
1854 0x00000004 0x00000001 0x00000005 0x00000002
1855 0x00000002 0x00000001 0x00000001 0x00000000
1856 0x00000001 0x00000003 0x00000001 0x0000000b
1857 0x00000009 0x00000181 0x00000000 0x00000060
1858 0x00000001 0x00000001 0x00000002 0x00000000
1859 0x00000001 0x00000007 0x0000000f 0x0000000f
1860 0x00000003 0x00000008 0x00000004 0x00000004
1861 0x00000002 0x000001a9 0x00000004 0x00000004
1862 0x00000000 0x00000000 0x00004282 0x007800a4
1863 0x00008000 0x000fc000 0x000fc000 0x000fc000
1864 0x000fc000 0x000fc000 0x000fc000 0x000fc000
1865 0x000fc000 0x00000000 0x00000000 0x00000000
1866 0x00000000 0x00000000 0x00000000 0x00000000
1867 0x00000000 0x00000000 0x00000000 0x00000000
1868 0x00000000 0x00000000 0x00000000 0x00000000
1869 0x00000000 0x000fc000 0x000fc000 0x000fc000
1870 0x000fc000 0x00100220 0x0800201c 0x00000000
1871 0x77ffc004 0x01f1f008 0x00000000 0x00000007
1872 0x08000068 0x08000000 0x00000802 0x00064000
1873 0x00000025 0x00090009 0xa0f10000 0x00000000
1874 0x00000000 0x8000040b 0xe0000000 0xff00ff00 >;
1875 };
1876
1877 timing-204000000 {
1878 clock-frequency = <204000000>;
1879
1880 nvidia,emc-auto-cal-interval = <0x001fffff>;
1881 nvidia,emc-mode-1 = <0x00010042>;
1882 nvidia,emc-mode-2 = <0x00020001>;
1883 nvidia,emc-mode-reset = <0x00000000>;
1884 nvidia,emc-zcal-cnt-long = <0x00000013>;
1885 nvidia,emc-cfg-dyn-self-ref;
1886 nvidia,emc-cfg-periodic-qrst;
1887
1888 nvidia,emc-configuration = < 0x0000000c
1889 0x0000001a 0x00000008 0x00000003 0x00000005
1890 0x00000004 0x00000001 0x00000006 0x00000003
1891 0x00000003 0x00000002 0x00000002 0x00000000
1892 0x00000001 0x00000003 0x00000001 0x0000000c
1893 0x0000000a 0x00000303 0x00000000 0x000000c0
1894 0x00000001 0x00000001 0x00000003 0x00000000
1895 0x00000001 0x00000007 0x0000001d 0x0000001d
1896 0x00000004 0x0000000b 0x00000005 0x00000004
1897 0x00000002 0x00000351 0x00000004 0x00000006
1898 0x00000000 0x00000000 0x00004282 0x004400a4
1899 0x00008000 0x00080000 0x00080000 0x00080000
1900 0x00080000 0x00080000 0x00080000 0x00080000
1901 0x00080000 0x00000000 0x00000000 0x00000000
1902 0x00000000 0x00000000 0x00000000 0x00000000
1903 0x00000000 0x00000000 0x00000000 0x00000000
1904 0x00000000 0x00000000 0x00000000 0x00000000
1905 0x00000000 0x00080000 0x00080000 0x00080000
1906 0x00080000 0x000e0220 0x0800201c 0x00000000
1907 0x77ffc004 0x01f1f008 0x00000000 0x00000007
1908 0x08000068 0x08000000 0x00000802 0x00064000
1909 0x0000004a 0x00090009 0xa0f10000 0x00000000
1910 0x00000000 0x80000713 0xe0000000 0xff00ff00 >;
1911 };
1912
1913 timing-400000000 {
1914 clock-frequency = <400000000>;
1915
1916 nvidia,emc-auto-cal-interval = <0x001fffff>;
1917 nvidia,emc-mode-1 = <0x00010082>;
1918 nvidia,emc-mode-2 = <0x00020004>;
1919 nvidia,emc-mode-reset = <0x00000000>;
1920 nvidia,emc-zcal-cnt-long = <0x00000024>;
1921 nvidia,emc-cfg-periodic-qrst;
1922
1923 nvidia,emc-configuration = < 0x00000017
1924 0x00000033 0x00000010 0x00000007 0x00000007
1925 0x00000007 0x00000002 0x0000000a 0x00000007
1926 0x00000007 0x00000003 0x00000002 0x00000000
1927 0x00000003 0x00000007 0x00000004 0x0000000d
1928 0x0000000e 0x000005e9 0x00000000 0x0000017a
1929 0x00000002 0x00000002 0x00000007 0x00000000
1930 0x00000001 0x0000000c 0x00000038 0x00000038
1931 0x00000006 0x00000014 0x00000009 0x00000004
1932 0x00000002 0x00000680 0x00000000 0x00000006
1933 0x00000000 0x00000000 0x00006282 0x001d0084
1934 0x00008000 0x00034000 0x00034000 0x00034000
1935 0x00034000 0x00034000 0x00034000 0x00034000
1936 0x00034000 0x00000000 0x00000000 0x00000000
1937 0x00000000 0x00000000 0x00000000 0x00000000
1938 0x00000000 0x00000000 0x00000000 0x00000000
1939 0x00000000 0x00000000 0x00000000 0x00000000
1940 0x00000000 0x00038000 0x00038000 0x00038000
1941 0x00038000 0x00080220 0x0800003d 0x00000000
1942 0x77ffc004 0x01f1f408 0x00000000 0x00000007
1943 0x08000068 0x08000000 0x00000802 0x00064000
1944 0x00000090 0x000c000c 0xa0f10404 0x00000000
1945 0x00000000 0x80000ce6 0xe0000000 0xff00ff88 >;
1946 };
1947 };
1948
1949 emc-timings-1 {
1950 /* ELPIDA EDB8132B2MA 8D_F */
1951 nvidia,ram-code = <1>;
1952
1953 timing-25500000 {
1954 clock-frequency = <25500000>;
1955
1956 nvidia,emc-auto-cal-interval = <0x001fffff>;
1957 nvidia,emc-mode-1 = <0x00010022>;
1958 nvidia,emc-mode-2 = <0x00020001>;
1959 nvidia,emc-mode-reset = <0x00000000>;
1960 nvidia,emc-zcal-cnt-long = <0x00000009>;
1961 nvidia,emc-cfg-dyn-self-ref;
1962 nvidia,emc-cfg-periodic-qrst;
1963
1964 nvidia,emc-configuration = < 0x00000001
1965 0x00000003 0x00000002 0x00000002 0x00000004
1966 0x00000004 0x00000001 0x00000005 0x00000002
1967 0x00000002 0x00000001 0x00000001 0x00000000
1968 0x00000001 0x00000003 0x00000001 0x0000000b
1969 0x0000000a 0x00000060 0x00000000 0x00000018
1970 0x00000001 0x00000001 0x00000002 0x00000000
1971 0x00000001 0x00000007 0x00000004 0x00000004
1972 0x00000003 0x00000008 0x00000004 0x00000004
1973 0x00000002 0x0000006b 0x00000004 0x00000004
1974 0x00000000 0x00000000 0x00004282 0x007800a4
1975 0x00008000 0x000fc000 0x000fc000 0x000fc000
1976 0x000fc000 0x000fc000 0x000fc000 0x000fc000
1977 0x000fc000 0x00000000 0x00000000 0x00000000
1978 0x00000000 0x00000000 0x00000000 0x00000000
1979 0x00000000 0x00000000 0x00000000 0x00000000
1980 0x00000000 0x00000000 0x00000000 0x00000000
1981 0x00000000 0x000fc000 0x000fc000 0x000fc000
1982 0x000fc000 0x00100220 0x0800201c 0x00000000
1983 0x77ffc004 0x01f1f008 0x00000000 0x00000007
1984 0x08000068 0x08000000 0x00000802 0x00064000
1985 0x0000000a 0x00090009 0xa0f10000 0x00000000
1986 0x00000000 0x800001c5 0xe0000000 0xff00ff00 >;
1987 };
1988
1989 timing-51000000 {
1990 clock-frequency = <51000000>;
1991
1992 nvidia,emc-auto-cal-interval = <0x001fffff>;
1993 nvidia,emc-mode-1 = <0x00010022>;
1994 nvidia,emc-mode-2 = <0x00020001>;
1995 nvidia,emc-mode-reset = <0x00000000>;
1996 nvidia,emc-zcal-cnt-long = <0x00000009>;
1997 nvidia,emc-cfg-dyn-self-ref;
1998 nvidia,emc-cfg-periodic-qrst;
1999
2000 nvidia,emc-configuration = < 0x00000003
2001 0x00000006 0x00000002 0x00000002 0x00000004
2002 0x00000004 0x00000001 0x00000005 0x00000002
2003 0x00000002 0x00000001 0x00000001 0x00000000
2004 0x00000001 0x00000003 0x00000001 0x0000000b
2005 0x0000000a 0x000000c0 0x00000000 0x00000030
2006 0x00000001 0x00000001 0x00000002 0x00000000
2007 0x00000001 0x00000007 0x00000008 0x00000008
2008 0x00000003 0x00000008 0x00000004 0x00000004
2009 0x00000002 0x000000d5 0x00000004 0x00000004
2010 0x00000000 0x00000000 0x00004282 0x007800a4
2011 0x00008000 0x000fc000 0x000fc000 0x000fc000
2012 0x000fc000 0x000fc000 0x000fc000 0x000fc000
2013 0x000fc000 0x00000000 0x00000000 0x00000000
2014 0x00000000 0x00000000 0x00000000 0x00000000
2015 0x00000000 0x00000000 0x00000000 0x00000000
2016 0x00000000 0x00000000 0x00000000 0x00000000
2017 0x00000000 0x000fc000 0x000fc000 0x000fc000
2018 0x000fc000 0x00100220 0x0800201c 0x00000000
2019 0x77ffc004 0x01f1f008 0x00000000 0x00000007
2020 0x08000068 0x08000000 0x00000802 0x00064000
2021 0x00000013 0x00090009 0xa0f10000 0x00000000
2022 0x00000000 0x80000287 0xe0000000 0xff00ff00 >;
2023 };
2024
2025 timing-102000000 {
2026 clock-frequency = <102000000>;
2027
2028 nvidia,emc-auto-cal-interval = <0x001fffff>;
2029 nvidia,emc-mode-1 = <0x00010022>;
2030 nvidia,emc-mode-2 = <0x00020001>;
2031 nvidia,emc-mode-reset = <0x00000000>;
2032 nvidia,emc-zcal-cnt-long = <0x0000000a>;
2033 nvidia,emc-cfg-dyn-self-ref;
2034 nvidia,emc-cfg-periodic-qrst;
2035
2036 nvidia,emc-configuration = < 0x00000006
2037 0x0000000d 0x00000004 0x00000002 0x00000004
2038 0x00000004 0x00000001 0x00000005 0x00000002
2039 0x00000002 0x00000001 0x00000001 0x00000000
2040 0x00000001 0x00000003 0x00000001 0x0000000b
2041 0x0000000a 0x00000181 0x00000000 0x00000060
2042 0x00000001 0x00000001 0x00000002 0x00000000
2043 0x00000001 0x00000007 0x0000000f 0x0000000f
2044 0x00000003 0x00000008 0x00000004 0x00000004
2045 0x00000002 0x000001a9 0x00000004 0x00000004
2046 0x00000000 0x00000000 0x00004282 0x007800a4
2047 0x00008000 0x000fc000 0x000fc000 0x000fc000
2048 0x000fc000 0x000fc000 0x000fc000 0x000fc000
2049 0x000fc000 0x00000000 0x00000000 0x00000000
2050 0x00000000 0x00000000 0x00000000 0x00000000
2051 0x00000000 0x00000000 0x00000000 0x00000000
2052 0x00000000 0x00000000 0x00000000 0x00000000
2053 0x00000000 0x000fc000 0x000fc000 0x000fc000
2054 0x000fc000 0x00100220 0x0800201c 0x00000000
2055 0x77ffc004 0x01f1f008 0x00000000 0x00000007
2056 0x08000068 0x08000000 0x00000802 0x00064000
2057 0x00000025 0x00090009 0xa0f10000 0x00000000
2058 0x00000000 0x8000040b 0xe0000000 0xff00ff00 >;
2059 };
2060
2061 timing-204000000 {
2062 clock-frequency = <204000000>;
2063
2064 nvidia,emc-auto-cal-interval = <0x001fffff>;
2065 nvidia,emc-mode-1 = <0x00010042>;
2066 nvidia,emc-mode-2 = <0x00020001>;
2067 nvidia,emc-mode-reset = <0x00000000>;
2068 nvidia,emc-zcal-cnt-long = <0x00000013>;
2069 nvidia,emc-cfg-dyn-self-ref;
2070 nvidia,emc-cfg-periodic-qrst;
2071
2072 nvidia,emc-configuration = < 0x0000000c
2073 0x0000001a 0x00000008 0x00000003 0x00000005
2074 0x00000004 0x00000001 0x00000006 0x00000003
2075 0x00000003 0x00000002 0x00000002 0x00000000
2076 0x00000001 0x00000003 0x00000001 0x0000000c
2077 0x0000000a 0x00000303 0x00000000 0x000000c0
2078 0x00000001 0x00000001 0x00000003 0x00000000
2079 0x00000001 0x00000007 0x0000001d 0x0000001d
2080 0x00000004 0x0000000b 0x00000005 0x00000004
2081 0x00000002 0x00000351 0x00000004 0x00000006
2082 0x00000000 0x00000000 0x00004282 0x004400a4
2083 0x00008000 0x00070000 0x00070000 0x00070000
2084 0x00070000 0x00070000 0x00070000 0x00070000
2085 0x00070000 0x00000000 0x00000000 0x00000000
2086 0x00000000 0x00000000 0x00000000 0x00000000
2087 0x00000000 0x00000000 0x00000000 0x00000000
2088 0x00000000 0x00000000 0x00000000 0x00000000
2089 0x00000000 0x00080000 0x00080000 0x00080000
2090 0x00080000 0x000e0220 0x0800201c 0x00000000
2091 0x77ffc004 0x01f1f008 0x00000000 0x00000007
2092 0x08000068 0x08000000 0x00000802 0x00064000
2093 0x0000004a 0x00090009 0xa0f10000 0x00000000
2094 0x00000000 0x80000713 0xe0000000 0xff00ff00 >;
2095 };
2096
2097 timing-400000000 {
2098 clock-frequency = <400000000>;
2099
2100 nvidia,emc-auto-cal-interval = <0x001fffff>;
2101 nvidia,emc-mode-1 = <0x00010082>;
2102 nvidia,emc-mode-2 = <0x00020004>;
2103 nvidia,emc-mode-reset = <0x00000000>;
2104 nvidia,emc-zcal-cnt-long = <0x00000024>;
2105 nvidia,emc-cfg-periodic-qrst;
2106
2107 nvidia,emc-configuration = < 0x00000017
2108 0x00000033 0x00000010 0x00000007 0x00000007
2109 0x00000007 0x00000002 0x0000000a 0x00000007
2110 0x00000007 0x00000003 0x00000002 0x00000000
2111 0x00000003 0x00000007 0x00000004 0x0000000d
2112 0x0000000e 0x000005e9 0x00000000 0x0000017a
2113 0x00000002 0x00000002 0x00000007 0x00000000
2114 0x00000001 0x0000000c 0x00000038 0x00000038
2115 0x00000006 0x00000014 0x00000009 0x00000004
2116 0x00000002 0x00000680 0x00000000 0x00000004
2117 0x00000000 0x00000000 0x00006282 0x001d0084
2118 0x00008000 0x00034000 0x00034000 0x00034000
2119 0x00034000 0x00034000 0x00034000 0x00034000
2120 0x00034000 0x00000000 0x00000000 0x00000000
2121 0x00000000 0x00000000 0x00000000 0x00000000
2122 0x00000000 0x00000000 0x00000000 0x00000000
2123 0x00000000 0x00000000 0x00000000 0x00000000
2124 0x00000000 0x00048000 0x00048000 0x00048000
2125 0x00048000 0x00060220 0x0800003d 0x00000000
2126 0x77ffc004 0x01f1f408 0x00000000 0x00000007
2127 0x08000068 0x08000000 0x00000802 0x00064000
2128 0x00000090 0x000c000c 0xa0f10000 0x00000000
2129 0x00000000 0x80000ce6 0xe0000000 0xff00ff88 >;
2130 };
2131 };
2132
2133 emc-timings-2 {
2134 /* SAMSUNG K4P8G304EB FGC2 */
2135 nvidia,ram-code = <2>;
2136
2137 timing-25500000 {
2138 clock-frequency = <25500000>;
2139
2140 nvidia,emc-auto-cal-interval = <0x001fffff>;
2141 nvidia,emc-mode-1 = <0x00010022>;
2142 nvidia,emc-mode-2 = <0x00020001>;
2143 nvidia,emc-mode-reset = <0x00000000>;
2144 nvidia,emc-zcal-cnt-long = <0x00000009>;
2145 nvidia,emc-cfg-dyn-self-ref;
2146 nvidia,emc-cfg-periodic-qrst;
2147
2148 nvidia,emc-configuration = < 0x00000001
2149 0x00000003 0x00000002 0x00000002 0x00000004
2150 0x00000004 0x00000001 0x00000005 0x00000002
2151 0x00000002 0x00000001 0x00000001 0x00000000
2152 0x00000001 0x00000003 0x00000001 0x0000000b
2153 0x0000000a 0x00000060 0x00000000 0x00000018
2154 0x00000001 0x00000001 0x00000002 0x00000000
2155 0x00000001 0x00000007 0x00000004 0x00000004
2156 0x00000003 0x00000008 0x00000004 0x00000004
2157 0x00000002 0x0000006b 0x00000004 0x00000004
2158 0x00000000 0x00000000 0x00004282 0x007800a4
2159 0x00008000 0x000fc000 0x000fc000 0x000fc000
2160 0x000fc000 0x000fc000 0x000fc000 0x000fc000
2161 0x000fc000 0x00000000 0x00000000 0x00000000
2162 0x00000000 0x00000000 0x00000000 0x00000000
2163 0x00000000 0x00000000 0x00000000 0x00000000
2164 0x00000000 0x00000000 0x00000000 0x00000000
2165 0x00000000 0x000fc000 0x000fc000 0x000fc000
2166 0x000fc000 0x00100220 0x0800201c 0x00000000
2167 0x77ffc004 0x01f1f008 0x00000000 0x00000007
2168 0x08000068 0x08000000 0x00000802 0x00064000
2169 0x0000000a 0x00090009 0xa0f10000 0x00000000
2170 0x00000000 0x800001c5 0xe0000000 0xff00ff00 >;
2171 };
2172
2173 timing-51000000 {
2174 clock-frequency = <51000000>;
2175
2176 nvidia,emc-auto-cal-interval = <0x001fffff>;
2177 nvidia,emc-mode-1 = <0x00010022>;
2178 nvidia,emc-mode-2 = <0x00020001>;
2179 nvidia,emc-mode-reset = <0x00000000>;
2180 nvidia,emc-zcal-cnt-long = <0x00000009>;
2181 nvidia,emc-cfg-dyn-self-ref;
2182 nvidia,emc-cfg-periodic-qrst;
2183
2184 nvidia,emc-configuration = < 0x00000003
2185 0x00000006 0x00000002 0x00000002 0x00000004
2186 0x00000004 0x00000001 0x00000005 0x00000002
2187 0x00000002 0x00000001 0x00000001 0x00000000
2188 0x00000001 0x00000003 0x00000001 0x0000000b
2189 0x0000000a 0x000000c0 0x00000000 0x00000030
2190 0x00000001 0x00000001 0x00000002 0x00000000
2191 0x00000001 0x00000007 0x00000008 0x00000008
2192 0x00000003 0x00000008 0x00000004 0x00000004
2193 0x00000002 0x000000d5 0x00000004 0x00000004
2194 0x00000000 0x00000000 0x00004282 0x007800a4
2195 0x00008000 0x000fc000 0x000fc000 0x000fc000
2196 0x000fc000 0x000fc000 0x000fc000 0x000fc000
2197 0x000fc000 0x00000000 0x00000000 0x00000000
2198 0x00000000 0x00000000 0x00000000 0x00000000
2199 0x00000000 0x00000000 0x00000000 0x00000000
2200 0x00000000 0x00000000 0x00000000 0x00000000
2201 0x00000000 0x000fc000 0x000fc000 0x000fc000
2202 0x000fc000 0x00100220 0x0800201c 0x00000000
2203 0x77ffc004 0x01f1f008 0x00000000 0x00000007
2204 0x08000068 0x08000000 0x00000802 0x00064000
2205 0x00000013 0x00090009 0xa0f10000 0x00000000
2206 0x00000000 0x80000287 0xe0000000 0xff00ff00 >;
2207 };
2208
2209 timing-102000000 {
2210 clock-frequency = <102000000>;
2211
2212 nvidia,emc-auto-cal-interval = <0x001fffff>;
2213 nvidia,emc-mode-1 = <0x00010022>;
2214 nvidia,emc-mode-2 = <0x00020001>;
2215 nvidia,emc-mode-reset = <0x00000000>;
2216 nvidia,emc-zcal-cnt-long = <0x0000000a>;
2217 nvidia,emc-cfg-dyn-self-ref;
2218 nvidia,emc-cfg-periodic-qrst;
2219
2220 nvidia,emc-configuration = < 0x00000006
2221 0x0000000d 0x00000004 0x00000002 0x00000004
2222 0x00000004 0x00000001 0x00000005 0x00000002
2223 0x00000002 0x00000001 0x00000001 0x00000000
2224 0x00000001 0x00000003 0x00000001 0x0000000b
2225 0x00000009 0x00000181 0x00000000 0x00000060
2226 0x00000001 0x00000001 0x00000002 0x00000000
2227 0x00000001 0x00000007 0x0000000f 0x0000000f
2228 0x00000003 0x00000008 0x00000004 0x00000004
2229 0x00000002 0x000001a9 0x00000004 0x00000004
2230 0x00000000 0x00000000 0x00004282 0x007800a4
2231 0x00008000 0x000fc000 0x000fc000 0x000fc000
2232 0x000fc000 0x000fc000 0x000fc000 0x000fc000
2233 0x000fc000 0x00000000 0x00000000 0x00000000
2234 0x00000000 0x00000000 0x00000000 0x00000000
2235 0x00000000 0x00000000 0x00000000 0x00000000
2236 0x00000000 0x00000000 0x00000000 0x00000000
2237 0x00000000 0x000fc000 0x000fc000 0x000fc000
2238 0x000fc000 0x00100220 0x0800201c 0x00000000
2239 0x77ffc004 0x01f1f008 0x00000000 0x00000007
2240 0x08000068 0x08000000 0x00000802 0x00064000
2241 0x00000025 0x00090009 0xa0f10000 0x00000000
2242 0x00000000 0x8000040b 0xe0000000 0xff00ff00 >;
2243 };
2244
2245 timing-204000000 {
2246 clock-frequency = <204000000>;
2247
2248 nvidia,emc-auto-cal-interval = <0x001fffff>;
2249 nvidia,emc-mode-1 = <0x00010042>;
2250 nvidia,emc-mode-2 = <0x00020001>;
2251 nvidia,emc-mode-reset = <0x00000000>;
2252 nvidia,emc-zcal-cnt-long = <0x00000013>;
2253 nvidia,emc-cfg-dyn-self-ref;
2254 nvidia,emc-cfg-periodic-qrst;
2255
2256 nvidia,emc-configuration = < 0x0000000c
2257 0x0000001a 0x00000008 0x00000003 0x00000005
2258 0x00000004 0x00000001 0x00000006 0x00000003
2259 0x00000003 0x00000002 0x00000002 0x00000000
2260 0x00000001 0x00000004 0x00000001 0x0000000c
2261 0x0000000a 0x00000303 0x00000000 0x000000c0
2262 0x00000001 0x00000001 0x00000003 0x00000000
2263 0x00000001 0x00000007 0x0000001d 0x0000001d
2264 0x00000004 0x0000000b 0x00000005 0x00000004
2265 0x00000002 0x00000351 0x00000005 0x00000004
2266 0x00000000 0x00000000 0x00004282 0x004400a4
2267 0x00008000 0x00080000 0x00080000 0x00080000
2268 0x00080000 0x00080000 0x00080000 0x00080000
2269 0x00080000 0x00000000 0x00000000 0x00000000
2270 0x00000000 0x00000000 0x00000000 0x00000000
2271 0x00000000 0x00000000 0x00000000 0x00000000
2272 0x00000000 0x00000000 0x00000000 0x00000000
2273 0x00000000 0x00080000 0x00080000 0x00080000
2274 0x00080000 0x000e0220 0x0800201c 0x00000000
2275 0x77ffc004 0x01f1f008 0x00000000 0x00000007
2276 0x08000068 0x08000000 0x00000802 0x00064000
2277 0x0000004a 0x00090009 0xa0f10000 0x00000000
2278 0x00000000 0x80000713 0xe0000000 0xff00ff00 >;
2279 };
2280
2281 timing-533000000 {
2282 clock-frequency = <533000000>;
2283
2284 nvidia,emc-auto-cal-interval = <0x001fffff>;
2285 nvidia,emc-mode-1 = <0x000100c2>;
2286 nvidia,emc-mode-2 = <0x00020006>;
2287 nvidia,emc-mode-reset = <0x00000000>;
2288 nvidia,emc-zcal-cnt-long = <0x00000030>;
2289 nvidia,emc-cfg-periodic-qrst;
2290
2291 nvidia,emc-configuration = < 0x0000001f
2292 0x00000045 0x00000016 0x00000009 0x00000008
2293 0x00000009 0x00000003 0x0000000d 0x00000009
2294 0x00000009 0x00000005 0x00000003 0x00000000
2295 0x00000004 0x0000000a 0x00000006 0x0000000d
2296 0x00000010 0x000007df 0x00000000 0x000001f7
2297 0x00000003 0x00000003 0x00000009 0x00000000
2298 0x00000001 0x0000000f 0x0000004b 0x0000004b
2299 0x00000008 0x0000001b 0x0000000c 0x00000004
2300 0x00000002 0x000008aa 0x00000000 0x00000004
2301 0x00000000 0x00000000 0x00006282 0xf0120091
2302 0x00008000 0x007f8008 0x007f8008 0x007f8008
2303 0x007f8008 0x007f8008 0x007f8008 0x007f8008
2304 0x007f8008 0x00000000 0x00000000 0x00000000
2305 0x00000000 0x00000000 0x00000000 0x00000000
2306 0x00000000 0x00000000 0x00000000 0x00000000
2307 0x00000000 0x00000000 0x00000000 0x00000000
2308 0x00000000 0x0000000c 0x0000000c 0x0000000c
2309 0x0000000c 0x00080220 0x0200003d 0x00000000
2310 0x77ffc004 0x01f1f408 0x00000000 0x00000007
2311 0x08000068 0x08000000 0x00000802 0x00064000
2312 0x000000c0 0x000e000e 0xa0f10000 0x00000000
2313 0x00000000 0x800010d9 0xf0000000 0xff00ff88 >;
2314 };
2315 };
2316
2317 emc-timings-3 {
2318 /* HYNIX H9TCNNN8JDMMPR NGM */
2319 nvidia,ram-code = <3>;
2320
2321 timing-25500000 {
2322 clock-frequency = <25500000>;
2323
2324 nvidia,emc-auto-cal-interval = <0x001fffff>;
2325 nvidia,emc-mode-1 = <0x00010022>;
2326 nvidia,emc-mode-2 = <0x00020001>;
2327 nvidia,emc-mode-reset = <0x00000000>;
2328 nvidia,emc-zcal-cnt-long = <0x00000009>;
2329 nvidia,emc-cfg-dyn-self-ref;
2330 nvidia,emc-cfg-periodic-qrst;
2331
2332 nvidia,emc-configuration = < 0x00000001
2333 0x00000003 0x00000002 0x00000002 0x00000004
2334 0x00000004 0x00000001 0x00000005 0x00000002
2335 0x00000002 0x00000001 0x00000001 0x00000000
2336 0x00000001 0x00000003 0x00000001 0x0000000b
2337 0x0000000a 0x00000060 0x00000000 0x00000018
2338 0x00000001 0x00000001 0x00000002 0x00000000
2339 0x00000001 0x00000007 0x00000004 0x00000004
2340 0x00000003 0x00000008 0x00000004 0x00000004
2341 0x00000002 0x0000006b 0x00000004 0x00000004
2342 0x00000000 0x00000000 0x00004282 0x007800a4
2343 0x00008000 0x000fc000 0x000fc000 0x000fc000
2344 0x000fc000 0x000fc000 0x000fc000 0x000fc000
2345 0x000fc000 0x00000000 0x00000000 0x00000000
2346 0x00000000 0x00000000 0x00000000 0x00000000
2347 0x00000000 0x00000000 0x00000000 0x00000000
2348 0x00000000 0x00000000 0x00000000 0x00000000
2349 0x00000000 0x000fc000 0x000fc000 0x000fc000
2350 0x000fc000 0x00100220 0x0800201c 0x00000000
2351 0x77ffc004 0x01f1f008 0x00000000 0x00000007
2352 0x08000068 0x08000000 0x00000802 0x00064000
2353 0x0000000a 0x00090009 0xa0f10000 0x00000000
2354 0x00000000 0x800001c5 0xe0000000 0xff00ff00 >;
2355 };
2356
2357 timing-51000000 {
2358 clock-frequency = <51000000>;
2359
2360 nvidia,emc-auto-cal-interval = <0x001fffff>;
2361 nvidia,emc-mode-1 = <0x00010022>;
2362 nvidia,emc-mode-2 = <0x00020001>;
2363 nvidia,emc-mode-reset = <0x00000000>;
2364 nvidia,emc-zcal-cnt-long = <0x00000009>;
2365 nvidia,emc-cfg-dyn-self-ref;
2366 nvidia,emc-cfg-periodic-qrst;
2367
2368 nvidia,emc-configuration = < 0x00000003
2369 0x00000006 0x00000002 0x00000002 0x00000004
2370 0x00000004 0x00000001 0x00000005 0x00000002
2371 0x00000002 0x00000001 0x00000001 0x00000000
2372 0x00000001 0x00000003 0x00000001 0x0000000b
2373 0x0000000a 0x000000c0 0x00000000 0x00000030
2374 0x00000001 0x00000001 0x00000002 0x00000000
2375 0x00000001 0x00000007 0x00000008 0x00000008
2376 0x00000003 0x00000008 0x00000004 0x00000004
2377 0x00000002 0x000000d5 0x00000004 0x00000004
2378 0x00000000 0x00000000 0x00004282 0x007800a4
2379 0x00008000 0x000fc000 0x000fc000 0x000fc000
2380 0x000fc000 0x000fc000 0x000fc000 0x000fc000
2381 0x000fc000 0x00000000 0x00000000 0x00000000
2382 0x00000000 0x00000000 0x00000000 0x00000000
2383 0x00000000 0x00000000 0x00000000 0x00000000
2384 0x00000000 0x00000000 0x00000000 0x00000000
2385 0x00000000 0x000fc000 0x000fc000 0x000fc000
2386 0x000fc000 0x00100220 0x0800201c 0x00000000
2387 0x77ffc004 0x01f1f008 0x00000000 0x00000007
2388 0x08000068 0x08000000 0x00000802 0x00064000
2389 0x00000013 0x00090009 0xa0f10000 0x00000000
2390 0x00000000 0x80000287 0xe0000000 0xff00ff00 >;
2391 };
2392
2393 timing-102000000 {
2394 clock-frequency = <102000000>;
2395
2396 nvidia,emc-auto-cal-interval = <0x001fffff>;
2397 nvidia,emc-mode-1 = <0x00010022>;
2398 nvidia,emc-mode-2 = <0x00020001>;
2399 nvidia,emc-mode-reset = <0x00000000>;
2400 nvidia,emc-zcal-cnt-long = <0x0000000a>;
2401 nvidia,emc-cfg-dyn-self-ref;
2402 nvidia,emc-cfg-periodic-qrst;
2403
2404 nvidia,emc-configuration = < 0x00000006
2405 0x0000000d 0x00000004 0x00000002 0x00000004
2406 0x00000004 0x00000001 0x00000005 0x00000002
2407 0x00000002 0x00000001 0x00000001 0x00000000
2408 0x00000001 0x00000003 0x00000001 0x0000000b
2409 0x0000000a 0x00000181 0x00000000 0x00000060
2410 0x00000001 0x00000001 0x00000002 0x00000000
2411 0x00000001 0x00000007 0x0000000f 0x0000000f
2412 0x00000003 0x00000008 0x00000004 0x00000004
2413 0x00000002 0x000001a9 0x00000004 0x00000004
2414 0x00000000 0x00000000 0x00004282 0x007800a4
2415 0x00008000 0x000fc000 0x000fc000 0x000fc000
2416 0x000fc000 0x000fc000 0x000fc000 0x000fc000
2417 0x000fc000 0x00000000 0x00000000 0x00000000
2418 0x00000000 0x00000000 0x00000000 0x00000000
2419 0x00000000 0x00000000 0x00000000 0x00000000
2420 0x00000000 0x00000000 0x00000000 0x00000000
2421 0x00000000 0x000fc000 0x000fc000 0x000fc000
2422 0x000fc000 0x00100220 0x0800201c 0x00000000
2423 0x77ffc004 0x01f1f008 0x00000000 0x00000007
2424 0x08000068 0x08000000 0x00000802 0x00064000
2425 0x00000025 0x00090009 0xa0f10000 0x00000000
2426 0x00000000 0x8000040b 0xe0000000 0xff00ff00 >;
2427 };
2428
2429 timing-204000000 {
2430 clock-frequency = <204000000>;
2431
2432 nvidia,emc-auto-cal-interval = <0x001fffff>;
2433 nvidia,emc-mode-1 = <0x00010042>;
2434 nvidia,emc-mode-2 = <0x00020001>;
2435 nvidia,emc-mode-reset = <0x00000000>;
2436 nvidia,emc-zcal-cnt-long = <0x00000013>;
2437 nvidia,emc-cfg-dyn-self-ref;
2438 nvidia,emc-cfg-periodic-qrst;
2439
2440 nvidia,emc-configuration = < 0x0000000c
2441 0x0000001a 0x00000008 0x00000003 0x00000005
2442 0x00000004 0x00000001 0x00000006 0x00000003
2443 0x00000003 0x00000002 0x00000002 0x00000000
2444 0x00000001 0x00000003 0x00000001 0x0000000c
2445 0x0000000b 0x00000303 0x00000000 0x000000c0
2446 0x00000001 0x00000001 0x00000003 0x00000000
2447 0x00000001 0x00000007 0x0000001d 0x0000001d
2448 0x00000004 0x0000000b 0x00000005 0x00000004
2449 0x00000002 0x00000351 0x00000004 0x00000006
2450 0x00000000 0x00000000 0x00004282 0x004400a4
2451 0x00008000 0x00072000 0x00072000 0x00072000
2452 0x00072000 0x00072000 0x00072000 0x00072000
2453 0x00072000 0x00000000 0x00000000 0x00000000
2454 0x00000000 0x00000000 0x00000000 0x00000000
2455 0x00000000 0x00000000 0x00000000 0x00000000
2456 0x00000000 0x00000000 0x00000000 0x00000000
2457 0x00000000 0x00080000 0x00080000 0x00080000
2458 0x00080000 0x000e0220 0x0800201c 0x00000000
2459 0x77ffc004 0x01f1f008 0x00000000 0x00000007
2460 0x08000068 0x08000000 0x00000802 0x00064000
2461 0x0000004a 0x00090009 0xa0f10000 0x00000000
2462 0x00000000 0x80000713 0xd0000000 0xff00ff00 >;
2463 };
2464
2465 timing-533000000 {
2466 clock-frequency = <533000000>;
2467
2468 nvidia,emc-auto-cal-interval = <0x001fffff>;
2469 nvidia,emc-mode-1 = <0x000100c2>;
2470 nvidia,emc-mode-2 = <0x00020006>;
2471 nvidia,emc-mode-reset = <0x00000000>;
2472 nvidia,emc-zcal-cnt-long = <0x00000030>;
2473 nvidia,emc-cfg-periodic-qrst;
2474
2475 nvidia,emc-configuration = < 0x0000001f
2476 0x00000045 0x00000016 0x00000009 0x00000008
2477 0x00000009 0x00000003 0x0000000d 0x00000009
2478 0x00000009 0x00000005 0x00000003 0x00000000
2479 0x00000004 0x00000009 0x00000006 0x0000000d
2480 0x00000010 0x000007df 0x00000000 0x000001f7
2481 0x00000003 0x00000003 0x00000009 0x00000000
2482 0x00000001 0x0000000f 0x0000004b 0x0000004b
2483 0x00000008 0x0000001b 0x0000000c 0x00000004
2484 0x00000002 0x000008aa 0x00000000 0x00000006
2485 0x00000000 0x00000000 0x00006282 0xf0120091
2486 0x00008000 0x0000000a 0x0000000a 0x0000000a
2487 0x0000000a 0x0000000a 0x0000000a 0x0000000a
2488 0x0000000a 0x00000000 0x00000000 0x00000000
2489 0x00000000 0x00000000 0x00000000 0x00000000
2490 0x00000000 0x00000000 0x00000000 0x00000000
2491 0x00000000 0x00000000 0x00000000 0x00000000
2492 0x00000000 0x0000000c 0x0000000c 0x0000000c
2493 0x0000000c 0x000a0220 0x0800003d 0x00000000
2494 0x77ffc004 0x01f1f408 0x00000000 0x00000007
2495 0x08000068 0x08000000 0x00000802 0x00064000
2496 0x000000c0 0x000e000e 0xa0f10000 0x00000000
2497 0x00000000 0x800010d9 0xe0000000 0xff00ff88 >;
2498 };
2499 };
2500 };
2501
2502 hda@70030000 {
2503 status = "okay";
2504 };
2505
2506 ahub@70080000 {
2507 i2s@70080400 { /* i2s1 */
2508 status = "okay";
2509 };
2510
2511 /* BT SCO */
2512 i2s@70080600 { /* i2s3 */
2513 status = "okay";
2514 };
2515 };
2516
2517 sdmmc1: mmc@78000000 {
2518 status = "okay";
2519
2520 cd-gpios = <&gpio TEGRA_GPIO(I, 5) GPIO_ACTIVE_LOW>;
2521 bus-width = <4>;
2522
2523 vmmc-supply = <&vdd_usd>; /* ldo2 */
2524 vqmmc-supply = <&vddio_usd>; /* ldo3 */
2525 };
2526
2527 sdmmc3: mmc@78000400 {
2528 status = "okay";
2529
2530 #address-cells = <1>;
2531 #size-cells = <0>;
2532
2533 assigned-clocks = <&tegra_car TEGRA30_CLK_SDMMC3>;
2534 assigned-clock-parents = <&tegra_car TEGRA30_CLK_PLL_C>;
2535 assigned-clock-rates = <50000000>;
2536
2537 max-frequency = <50000000>;
2538 keep-power-in-suspend;
2539 bus-width = <4>;
2540 non-removable;
2541
2542 mmc-pwrseq = <&brcm_wifi_pwrseq>;
2543 vmmc-supply = <&vdd_3v3_sys>;
2544 vqmmc-supply = <&vdd_1v8_vio>;
2545
2546 /* Azurewave AW-AH663 BCM4330B1 */
2547 wifi@1 {
2548 compatible = "brcm,bcm4329-fmac";
2549 reg = <1>;
2550
2551 interrupt-parent = <&gpio>;
2552 interrupts = <TEGRA_GPIO(O, 4) IRQ_TYPE_LEVEL_HIGH>;
2553 interrupt-names = "host-wake";
2554 };
2555 };
2556
2557 sdmmc4: mmc@78000600 {
2558 status = "okay";
2559 bus-width = <8>;
2560 vmmc-supply = <&vcore_emmc>;
2561 vqmmc-supply = <&vdd_1v8_vio>;
2562 non-removable;
2563 };
2564
2565 usb@7d000000 {
2566 compatible = "nvidia,tegra30-udc";
2567 status = "okay";
2568 dr_mode = "otg";
2569 vbus-supply = <&vdd_vbus_usb1>;
2570 };
2571
2572 usb-phy@7d000000 {
2573 status = "okay";
2574 dr_mode = "otg";
2575 nvidia,hssync-start-delay = <0>;
2576 nvidia,xcvr-lsfslew = <2>;
2577 nvidia,xcvr-lsrslew = <2>;
2578 };
2579
2580 usb@7d008000 {
2581 status = "okay";
2582 };
2583
2584 usb-phy@7d008000 {
2585 status = "okay";
2586 vbus-supply = <&vdd_vbus_usb3>;
2587 };
2588
2589 mains: ac-adapter-detect {
2590 compatible = "gpio-charger";
2591 charger-type = "mains";
2592 gpios = <&gpio TEGRA_GPIO(V, 1) GPIO_ACTIVE_HIGH>;
2593 };
2594
2595 backlight: backlight {
2596 compatible = "pwm-backlight";
2597
2598 enable-gpios = <&gpio TEGRA_GPIO(H, 2) GPIO_ACTIVE_HIGH>;
2599 power-supply = <&vdd_5v0_bl>;
2600 pwms = <&pwm 0 5000000>;
2601
2602 brightness-levels = <1 255>;
2603 num-interpolated-steps = <254>;
2604 default-brightness-level = <15>;
2605 };
2606
2607 battery: battery-cell {
2608 compatible = "simple-battery";
2609 device-chemistry = "lithium-ion-polymer";
2610 charge-full-design-microamp-hours = <3050000>;
2611 energy-full-design-microwatt-hours = <23000000>;
2612 operating-range-celsius = <0 45>;
2613 };
2614
2615 /* PMIC has a built-in 32KHz oscillator which is used by PMC */
2616 clk32k_in: clock-32k {
2617 compatible = "fixed-clock";
2618 #clock-cells = <0>;
2619 clock-frequency = <32768>;
2620 clock-output-names = "pmic-oscillator";
2621 };
2622
2623 cpus {
2624 cpu0: cpu@0 {
2625 cpu-supply = <&vdd_cpu>;
2626 operating-points-v2 = <&cpu0_opp_table>;
2627 #cooling-cells = <2>;
2628 };
2629 cpu1: cpu@1 {
2630 cpu-supply = <&vdd_cpu>;
2631 operating-points-v2 = <&cpu0_opp_table>;
2632 #cooling-cells = <2>;
2633 };
2634 cpu2: cpu@2 {
2635 cpu-supply = <&vdd_cpu>;
2636 operating-points-v2 = <&cpu0_opp_table>;
2637 #cooling-cells = <2>;
2638 };
2639 cpu3: cpu@3 {
2640 cpu-supply = <&vdd_cpu>;
2641 operating-points-v2 = <&cpu0_opp_table>;
2642 #cooling-cells = <2>;
2643 };
2644 };
2645
2646 display-panel {
2647 compatible = "hannstar,hsd101pww2", "panel-lvds";
2648
2649 width-mm = <217>;
2650 height-mm = <136>;
2651
2652 data-mapping = "jeida-24";
2653
2654 panel-timing {
2655 /* 1280x800@60Hz */
2656 clock-frequency = <68000000>;
2657 hactive = <1280>;
2658 vactive = <800>;
2659 hfront-porch = <48>;
2660 hback-porch = <18>;
2661 hsync-len = <30>;
2662 vsync-len = <5>;
2663 vfront-porch = <3>;
2664 vback-porch = <12>;
2665 };
2666 };
2667
2668 extcon-keys {
2669 compatible = "gpio-keys";
2670
2671 switch-dock-insert {
2672 label = "Chagall Dock";
2673 gpios = <&gpio TEGRA_GPIO(S, 4) GPIO_ACTIVE_LOW>;
2674 linux,input-type = <EV_SW>;
2675 linux,code = <SW_DOCK>;
2676 debounce-interval = <10>;
2677 wakeup-event-action = <EV_ACT_ASSERTED>;
2678 wakeup-source;
2679 };
2680
2681 switch-lineout-detect {
2682 label = "Audio dock line-out detect";
2683 gpios = <&gpio TEGRA_GPIO(S, 3) GPIO_ACTIVE_LOW>;
2684 linux,input-type = <EV_SW>;
2685 linux,code = <SW_LINEOUT_INSERT>;
2686 debounce-interval = <10>;
2687 wakeup-event-action = <EV_ACT_ASSERTED>;
2688 wakeup-source;
2689 };
2690 };
2691
2692 gpio-keys {
2693 compatible = "gpio-keys";
2694
2695 key-power {
2696 label = "Power";
2697 gpios = <&gpio TEGRA_GPIO(V, 0) GPIO_ACTIVE_LOW>;
2698 linux,code = <KEY_POWER>;
2699 debounce-interval = <10>;
2700 wakeup-event-action = <EV_ACT_ASSERTED>;
2701 wakeup-source;
2702 };
2703
2704 key-volume-down {
2705 label = "Volume Down";
2706 gpios = <&gpio TEGRA_GPIO(Q, 1) GPIO_ACTIVE_LOW>;
2707 linux,code = <KEY_VOLUMEDOWN>;
2708 debounce-interval = <10>;
2709 wakeup-event-action = <EV_ACT_ASSERTED>;
2710 wakeup-source;
2711 };
2712
2713 key-volume-up {
2714 label = "Volume Up";
2715 gpios = <&gpio TEGRA_GPIO(Q, 0) GPIO_ACTIVE_LOW>;
2716 linux,code = <KEY_VOLUMEUP>;
2717 debounce-interval = <10>;
2718 wakeup-event-action = <EV_ACT_ASSERTED>;
2719 wakeup-source;
2720 };
2721 };
2722
2723 haptic-feedback {
2724 compatible = "gpio-vibrator";
2725 enable-gpios = <&gpio TEGRA_GPIO(U, 4) GPIO_ACTIVE_HIGH>;
2726 vcc-supply = <&vdd_3v3_sys>;
2727 };
2728
2729 opp-table-actmon {
2730 /delete-node/ opp-625000000;
2731 /delete-node/ opp-667000000;
2732 /delete-node/ opp-750000000;
2733 /delete-node/ opp-800000000;
2734 /delete-node/ opp-900000000;
2735 };
2736
2737 opp-table-emc {
2738 /delete-node/ opp-625000000-1200;
2739 /delete-node/ opp-625000000-1250;
2740 /delete-node/ opp-667000000-1200;
2741 /delete-node/ opp-750000000-1300;
2742 /delete-node/ opp-800000000-1300;
2743 /delete-node/ opp-900000000-1350;
2744 };
2745
2746 brcm_wifi_pwrseq: pwrseq-wifi {
2747 compatible = "mmc-pwrseq-simple";
2748
2749 clocks = <&tegra_pmc TEGRA_PMC_CLK_BLINK>;
2750 clock-names = "ext_clock";
2751
2752 reset-gpios = <&gpio TEGRA_GPIO(D, 3) GPIO_ACTIVE_LOW>;
2753 post-power-on-delay-ms = <300>;
2754 power-off-delay-us = <300>;
2755 };
2756
2757 sound {
2758 compatible = "pegatron,tegra-audio-wm8903-chagall",
2759 "nvidia,tegra-audio-wm8903";
2760 nvidia,model = "Pegatron Chagall WM8903";
2761
2762 nvidia,audio-routing =
2763 "Headphone Jack", "HPOUTR",
2764 "Headphone Jack", "HPOUTL",
2765 "Int Spk", "ROP",
2766 "Int Spk", "RON",
2767 "Int Spk", "LOP",
2768 "Int Spk", "LON",
2769 "IN1R", "Mic Jack",
2770 "DMICDAT", "Int Mic";
2771
2772 nvidia,i2s-controller = <&tegra_i2s1>;
2773 nvidia,audio-codec = <&wm8903>;
2774
2775 nvidia,spkr-en-gpios = <&wm8903 2 GPIO_ACTIVE_HIGH>;
2776 nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_LOW>;
2777 nvidia,headset;
2778
2779 clocks = <&tegra_car TEGRA30_CLK_PLL_A>,
2780 <&tegra_car TEGRA30_CLK_PLL_A_OUT0>,
2781 <&tegra_pmc TEGRA_PMC_CLK_OUT_1>;
2782 clock-names = "pll_a", "pll_a_out0", "mclk";
2783
2784 assigned-clocks = <&tegra_car TEGRA30_CLK_EXTERN1>,
2785 <&tegra_pmc TEGRA_PMC_CLK_OUT_1>;
2786
2787 assigned-clock-parents = <&tegra_car TEGRA30_CLK_PLL_A_OUT0>,
2788 <&tegra_car TEGRA30_CLK_EXTERN1>;
2789 };
2790
2791 thermal-zones {
2792 /*
2793 * NCT72 has two sensors:
2794 *
2795 * 0: internal that monitors ambient/skin temperature
2796 * 1: external that is connected to the CPU's diode
2797 *
2798 * Ideally we should use userspace thermal governor,
2799 * but it's a much more complex solution. The "skin"
2800 * zone exists as a simpler solution which prevents
2801 * Chagall from getting too hot from a user's tactile
2802 * perspective. The CPU zone is intended to protect
2803 * silicon from damage.
2804 */
2805
2806 skin-thermal {
2807 polling-delay-passive = <1000>; /* milliseconds */
2808 polling-delay = <5000>; /* milliseconds */
2809
2810 thermal-sensors = <&nct72 0>;
2811
2812 trips {
2813 trip0: skin-alert {
2814 /* throttle at 57C until temperature drops to 56.8C */
2815 temperature = <57000>;
2816 hysteresis = <200>;
2817 type = "passive";
2818 };
2819
2820 trip1: skin-crit {
2821 /* shut down at 65C */
2822 temperature = <65000>;
2823 hysteresis = <2000>;
2824 type = "critical";
2825 };
2826 };
2827
2828 cooling-maps {
2829 map0 {
2830 trip = <&trip0>;
2831 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
2832 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
2833 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
2834 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
2835 <&actmon THERMAL_NO_LIMIT
2836 THERMAL_NO_LIMIT>;
2837 };
2838 };
2839 };
2840
2841 cpu-thermal {
2842 polling-delay-passive = <1000>; /* milliseconds */
2843 polling-delay = <5000>; /* milliseconds */
2844
2845 thermal-sensors = <&nct72 1>;
2846
2847 trips {
2848 trip2: cpu-alert {
2849 /* throttle at 85C until temperature drops to 84.8C */
2850 temperature = <85000>;
2851 hysteresis = <200>;
2852 type = "passive";
2853 };
2854
2855 trip3: cpu-crit {
2856 /* shut down at 90C */
2857 temperature = <90000>;
2858 hysteresis = <2000>;
2859 type = "critical";
2860 };
2861 };
2862
2863 cooling-maps {
2864 map1 {
2865 trip = <&trip2>;
2866 cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
2867 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
2868 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
2869 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
2870 <&actmon THERMAL_NO_LIMIT
2871 THERMAL_NO_LIMIT>;
2872 };
2873 };
2874 };
2875 };
2876 };