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		/delete-property/ reg-shift;
1114		status = "okay";
1115
1116		/* Broadcom GPS BCM47511 */
1117	};
1118
1119	uartc: serial@70006200 {
1120		compatible = "nvidia,tegra30-hsuart";
1121		/delete-property/ reg-shift;
1122		status = "okay";
1123
1124		nvidia,adjust-baud-rates = <0 9600 100>,
1125					   <9600 115200 200>,
1126					   <1000000 4000000 136>;
1127
1128		/* Azurewave AW-AH663 BCM4330B1 */
1129		bluetooth {
1130			compatible = "brcm,bcm4330-bt";
1131			max-speed = <4000000>;
1132
1133			clocks = <&tegra_pmc TEGRA_PMC_CLK_BLINK>;
1134			clock-names = "txco";
1135
1136			interrupt-parent = <&gpio>;
1137			interrupts = <TEGRA_GPIO(U, 6) IRQ_TYPE_EDGE_RISING>;
1138			interrupt-names = "host-wakeup";
1139
1140			device-wakeup-gpios = <&gpio TEGRA_GPIO(U, 1) GPIO_ACTIVE_HIGH>;
1141			shutdown-gpios = <&gpio TEGRA_GPIO(U, 0) GPIO_ACTIVE_HIGH>;
1142
1143			vbat-supply  = <&vdd_3v3_sys>;
1144			vddio-supply = <&vdd_1v8_vio>;
1145		};
1146	};
1147
1148	pwm: pwm@7000a000 {
1149		status = "okay";
1150	};
1151
1152	lcd_ddc: i2c@7000c000 {
1153		status = "okay";
1154		clock-frequency = <400000>;
1155
1156		/* Wolfson Microelectronics WM8903 audio codec */
1157		wm8903: audio-codec@1a {
1158			compatible = "wlf,wm8903";
1159			reg = <0x1a>;
1160
1161			interrupt-parent = <&gpio>;
1162			interrupts = <TEGRA_GPIO(W, 3) IRQ_TYPE_EDGE_BOTH>;
1163
1164			gpio-controller;
1165			#gpio-cells = <2>;
1166
1167			micdet-cfg = <0>;
1168			micdet-delay = <100>;
1169
1170			gpio-cfg = <0xffffffff 0xffffffff 0 0xffffffff 0xffffffff>;
1171
1172			AVDD-supply  = <&vdd_1v8_vio>;
1173			CPVDD-supply = <&vdd_1v8_vio>;
1174			DBVDD-supply = <&vdd_1v8_vio>;
1175			DCVDD-supply = <&vdd_1v8_vio>;
1176		};
1177	};
1178
1179	i2c2: i2c@7000c400 {
1180		status = "okay";
1181		clock-frequency = <400000>;
1182
1183		/* Atmel touchscreen */
1184		touchscreen@4d {
1185			compatible = "atmel,maxtouch";
1186			reg = <0x4d>;
1187
1188			interrupt-parent = <&gpio>;
1189			interrupts = <TEGRA_GPIO(H, 4) IRQ_TYPE_EDGE_FALLING>;
1190			reset-gpios = <&gpio TEGRA_GPIO(H, 6) GPIO_ACTIVE_LOW>;
1191
1192			vdda-supply = <&vdd_3v3_sys>;
1193			vdd-supply  = <&vdd_3v3_sys>;
1194		};
1195	};
1196
1197	i2c3: i2c@7000c500 {
1198		status = "okay";
1199		clock-frequency = <400000>;
1200
1201		/* AsahiKASEI AK8975 magnetometer sensor */
1202		magnetometer@c {
1203			compatible = "asahi-kasei,ak8975";
1204			reg = <0x0c>;
1205
1206			vdd-supply = <&vdd_3v3_sen>;
1207			vid-supply = <&vdd_1v8_vio>;
1208
1209			mount-matrix =   "0",  "1",  "0",
1210					 "1",  "0",  "0",
1211					 "0",  "0", "-1";
1212		};
1213
1214		light-sensor@44 {
1215			compatible = "isil,isl29023";
1216			reg = <0x44>;
1217
1218			interrupt-parent = <&gpio>;
1219			interrupts = <TEGRA_GPIO(Q, 3) IRQ_TYPE_LEVEL_HIGH>;
1220
1221			vcc-supply = <&vdd_3v3_sen>;
1222		};
1223
1224		gyroscope@68 {
1225			compatible = "invensense,mpu3050";
1226			reg = <0x68>;
1227
1228			interrupt-parent = <&gpio>;
1229			interrupts = <TEGRA_GPIO(X, 1) IRQ_TYPE_EDGE_RISING>;
1230
1231			vdd-supply = <&vdd_3v3_sen>;
1232			vlogic-supply = <&vdd_1v8_vio>;
1233
1234			mount-matrix =   "0",  "1",  "0",
1235					 "1",  "0",  "0",
1236					 "0",  "0", "-1";
1237
1238			/* External I2C interface */
1239			i2c-gate {
1240				#address-cells = <1>;
1241				#size-cells = <0>;
1242
1243				accelerometer@f {
1244					compatible = "kionix,kxtf9";
1245					reg = <0x0f>;
1246
1247					interrupt-parent = <&gpio>;
1248					interrupts = <TEGRA_GPIO(L, 1) IRQ_TYPE_EDGE_RISING>;
1249
1250					vdd-supply = <&vdd_1v8_vio>;
1251					vddio-supply = <&vdd_1v8_vio>;
1252
1253					mount-matrix =  "-1",  "0",  "0",
1254							 "0",  "1",  "0",
1255							 "0",  "0",  "1";
1256				};
1257			};
1258		};
1259	};
1260
1261	hdmi_ddc: i2c@7000c700 {
1262		status = "okay";
1263		clock-frequency = <93750>;
1264	};
1265
1266	i2c5: i2c@7000d000 {
1267		status = "okay";
1268		clock-frequency = <400000>;
1269
1270		/* Texas Instruments TPS659110 PMIC */
1271		pmic: pmic@2d {
1272			compatible = "ti,tps65911";
1273			reg = <0x2d>;
1274
1275			interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
1276			#interrupt-cells = <2>;
1277			interrupt-controller;
1278			wakeup-source;
1279
1280			ti,en-gpio-sleep = <0 0 1 0 0 0 0 0 0>;
1281			ti,system-power-controller;
1282			ti,sleep-keep-ck32k;
1283			ti,sleep-enable;
1284
1285			#gpio-cells = <2>;
1286			gpio-controller;
1287
1288			vcc1-supply = <&vdd_5v0_sys>;
1289			vcc2-supply = <&vdd_5v0_sys>;
1290			vcc3-supply = <&vdd_1v8_vio>;
1291			vcc4-supply = <&vdd_1v8_vio>;
1292			vcc5-supply = <&vdd_5v0_sys>;
1293			vcc6-supply = <&vddio_1v2_ddr>;
1294			vcc7-supply = <&vdd_5v0_sys>;
1295			vccio-supply = <&vdd_5v0_sys>;
1296
1297			pmic-sleep-hog {
1298				gpio-hog;
1299				gpios = <0 GPIO_ACTIVE_HIGH>,
1300					<2 GPIO_ACTIVE_HIGH>,
1301					<6 GPIO_ACTIVE_HIGH>,
1302					<8 GPIO_ACTIVE_HIGH>;
1303				output-high;
1304			};
1305
1306			regulators {
1307				/* VDD1 is not used by Chagall */
1308
1309				vddio_1v2_ddr: vdd2 {
1310					regulator-name = "vddio_1v2_ddr";
1311					regulator-min-microvolt = <1200000>;
1312					regulator-max-microvolt = <1200000>;
1313					regulator-always-on;
1314					regulator-boot-on;
1315				};
1316
1317				vdd_cpu: vddctrl {
1318					regulator-name = "vdd_cpu,vdd_sys";
1319					regulator-min-microvolt = <600000>;
1320					regulator-max-microvolt = <1400000>;
1321					regulator-coupled-with = <&vdd_core>;
1322					regulator-coupled-max-spread = <300000>;
1323					regulator-max-step-microvolt = <100000>;
1324					regulator-always-on;
1325					regulator-boot-on;
1326					ti,regulator-ext-sleep-control = <1>;
1327
1328					nvidia,tegra-cpu-regulator;
1329				};
1330
1331				vdd_1v8_vio: vio {
1332					regulator-name = "vdd_1v8_gen";
1333					/* FIXME: eMMC won't work, if set to 1.8 V */
1334					regulator-min-microvolt = <1500000>;
1335					regulator-max-microvolt = <3300000>;
1336					regulator-always-on;
1337					regulator-boot-on;
1338				};
1339
1340				/* eMMC VDD */
1341				vcore_emmc: ldo1 {
1342					regulator-name = "vdd_emmc_core";
1343					regulator-min-microvolt = <1000000>;
1344					regulator-max-microvolt = <3300000>;
1345					regulator-always-on;
1346				};
1347
1348				/* uSD slot VDD */
1349				vdd_usd: ldo2 {
1350					regulator-name = "vdd_usd";
1351					regulator-min-microvolt = <3200000>;
1352					regulator-max-microvolt = <3200000>;
1353				};
1354
1355				/* uSD slot VDDIO */
1356				vddio_usd: ldo3 {
1357					regulator-name = "vddio_usd";
1358					regulator-min-microvolt = <1900000>;
1359					regulator-max-microvolt = <3200000>;
1360				};
1361
1362				ldo4 {
1363					regulator-name = "vdd_rtc";
1364					regulator-min-microvolt = <1200000>;
1365					regulator-max-microvolt = <1200000>;
1366					regulator-always-on;
1367				};
1368
1369				ldo5 {
1370					regulator-name = "vdd_1v3_cam_isp";
1371					regulator-min-microvolt = <1300000>;
1372					regulator-max-microvolt = <1300000>;
1373				};
1374
1375				ldo6 {
1376					regulator-name = "avdd_dsi_csi,pwrdet_mipi";
1377					regulator-min-microvolt = <1200000>;
1378					regulator-max-microvolt = <1200000>;
1379				};
1380
1381				ldo7 {
1382					regulator-name = "vdd_pllm,x,u,a_p_c_s";
1383					regulator-min-microvolt = <1200000>;
1384					regulator-max-microvolt = <1200000>;
1385					regulator-always-on;
1386					regulator-boot-on;
1387					ti,regulator-ext-sleep-control = <8>;
1388				};
1389
1390				ldo8 {
1391					regulator-name = "vdd_ddr_hs";
1392					regulator-min-microvolt = <1000000>;
1393					regulator-max-microvolt = <1000000>;
1394					regulator-always-on;
1395					ti,regulator-ext-sleep-control = <8>;
1396				};
1397			};
1398		};
1399
1400		nct72: temperature-sensor@4c {
1401			compatible = "onnn,nct1008";
1402			reg = <0x4c>;
1403
1404			interrupt-parent = <&gpio>;
1405			interrupts = <TEGRA_GPIO(U, 5) IRQ_TYPE_EDGE_FALLING>;
1406
1407			vcc-supply = <&vdd_3v3_sys>;
1408			#thermal-sensor-cells = <1>;
1409		};
1410
1411		vdd_core: core-regulator@60 {
1412			compatible = "ti,tps62361";
1413			reg = <0x60>;
1414
1415			regulator-name = "tps62361-vout";
1416			regulator-min-microvolt = <500000>;
1417			regulator-max-microvolt = <1770000>;
1418			regulator-coupled-with = <&vdd_cpu>;
1419			regulator-coupled-max-spread = <300000>;
1420			regulator-max-step-microvolt = <100000>;
1421			regulator-boot-on;
1422			regulator-always-on;
1423			ti,enable-vout-discharge;
1424			ti,vsel0-state-high;
1425			ti,vsel1-state-high;
1426
1427			nvidia,tegra-core-regulator;
1428		};
1429	};
1430
1431	vdd_5v0_sys: regulator-5v {
1432		compatible = "regulator-fixed";
1433		regulator-name = "vdd_5v0_sys";
1434		regulator-min-microvolt = <5000000>;
1435		regulator-max-microvolt = <5000000>;
1436		regulator-always-on;
1437		regulator-boot-on;
1438	};
1439
1440	vdd_3v3_sys: regulator-3v {
1441		compatible = "regulator-fixed";
1442		regulator-name = "vdd_3v3_sys";
1443		regulator-min-microvolt = <3300000>;
1444		regulator-max-microvolt = <3300000>;
1445		regulator-always-on;
1446		regulator-boot-on;
1447	};
1448
1449	vdd_pnl: regulator-panel {
1450		compatible = "regulator-fixed";
1451		regulator-name = "vdd_panel";
1452		regulator-min-microvolt = <3300000>;
1453		regulator-max-microvolt = <3300000>;
1454		regulator-enable-ramp-delay = <300000>;
1455		gpio = <&gpio TEGRA_GPIO(W, 1) GPIO_ACTIVE_HIGH>;
1456		enable-active-high;
1457		vin-supply = <&vdd_3v3_sys>;
1458	};
1459
1460	vdd_3v3_sen: regulator-sensors {
1461		compatible = "regulator-fixed";
1462		regulator-name = "sen_3v3_en";
1463		regulator-min-microvolt = <3300000>;
1464		regulator-max-microvolt = <3300000>;
1465		gpio = <&gpio TEGRA_GPIO(K, 5) GPIO_ACTIVE_HIGH>;
1466		enable-active-high;
1467		vin-supply = <&vdd_3v3_sys>;
1468	};
1469
1470	vdd_5v0_bl: regulator-bl {
1471		compatible = "regulator-fixed";
1472		regulator-name = "vdd_5v0_bl";
1473		regulator-min-microvolt = <5000000>;
1474		regulator-max-microvolt = <5000000>;
1475		regulator-boot-on;
1476		gpio = <&gpio TEGRA_GPIO(C, 6) GPIO_ACTIVE_HIGH>;
1477		enable-active-high;
1478		vin-supply = <&vdd_5v0_sys>;
1479	};
1480
1481	hdmi_5v0_sys: regulator-hdmi {
1482		compatible = "regulator-fixed";
1483		regulator-name = "hdmi_5v0_sys";
1484		regulator-min-microvolt = <5000000>;
1485		regulator-max-microvolt = <5000000>;
1486		gpio = <&gpio TEGRA_GPIO(P, 2) GPIO_ACTIVE_HIGH>;
1487		enable-active-high;
1488		vin-supply = <&vdd_5v0_sys>;
1489	};
1490
1491	vdd_vbus_usb1: regulator-usb1 {
1492		compatible = "regulator-fixed";
1493		regulator-name = "vdd_vbus_micro_usb";
1494		regulator-min-microvolt = <5000000>;
1495		regulator-max-microvolt = <5000000>;
1496		gpio = <&gpio TEGRA_GPIO(DD, 3) GPIO_ACTIVE_HIGH>;
1497		enable-active-high;
1498		vin-supply = <&vdd_5v0_sys>;
1499	};
1500
1501	vdd_vbus_usb3: regulator-usb3 {
1502		compatible = "regulator-fixed";
1503		regulator-name = "vdd_vbus_typea_usb";
1504		regulator-min-microvolt = <5000000>;
1505		regulator-max-microvolt = <5000000>;
1506		gpio = <&gpio TEGRA_GPIO(CC, 6) GPIO_ACTIVE_HIGH>;
1507		enable-active-high;
1508		vin-supply = <&vdd_5v0_sys>;
1509	};
1510
1511	pmc@7000e400 {
1512		status = "okay";
1513		nvidia,invert-interrupt;
1514		nvidia,suspend-mode = <2>;
1515		nvidia,cpu-pwr-good-time = <2000>;
1516		nvidia,cpu-pwr-off-time = <200>;
1517		nvidia,core-pwr-good-time = <3845 3845>;
1518		nvidia,core-pwr-off-time = <0>;
1519		nvidia,core-power-req-active-high;
1520		nvidia,sys-clock-req-active-high;
1521		core-supply = <&vdd_core>;
1522
1523		/* Set DEV_OFF + PWR_OFF_SET bit in DCDC control register of TPS65911 PMIC  */
1524		i2c-thermtrip {
1525			nvidia,i2c-controller-id = <4>;
1526			nvidia,bus-addr = <0x2d>;
1527			nvidia,reg-addr = <0x3f>;
1528			nvidia,reg-data = <0x81>;
1529		};
1530	};
1531
1532	memory-controller@7000f000 {
1533		emc-timings-0 {
1534			/* SAMSUNG K4P8G304EB FGC1 */
1535			nvidia,ram-code = <0>;
1536
1537			timing-25500000 {
1538				clock-frequency = <25500000>;
1539
1540				nvidia,emem-configuration = < 0x00020001 0xc0000010
1541					0x00000001 0x00000001 0x00000002 0x00000000
1542					0x00000003 0x00000001 0x00000002 0x00000004
1543					0x00000001 0x00000000 0x00000002 0x00000002
1544					0x02020001 0x00060402 0x73e30303 0x001f0000 >;
1545			};
1546
1547			timing-51000000 {
1548				clock-frequency = <51000000>;
1549
1550				nvidia,emem-configuration = < 0x00010001 0xc0000010
1551					0x00000001 0x00000001 0x00000002 0x00000000
1552					0x00000003 0x00000001 0x00000002 0x00000004
1553					0x00000001 0x00000000 0x00000002 0x00000002
1554					0x02020001 0x00060402 0x72c30303 0x001f0000 >;
1555			};
1556
1557			timing-102000000 {
1558				clock-frequency = <102000000>;
1559
1560				nvidia,emem-configuration = < 0x00000001 0xc0000018
1561					0x00000001 0x00000001 0x00000003 0x00000001
1562					0x00000003 0x00000001 0x00000002 0x00000004
1563					0x00000001 0x00000000 0x00000002 0x00000002
1564					0x02020001 0x00060403 0x72430504 0x001f0000 >;
1565			};
1566
1567			timing-204000000 {
1568				clock-frequency = <204000000>;
1569
1570				nvidia,emem-configuration = < 0x00000003 0xc0000025
1571					0x00000001 0x00000001 0x00000006 0x00000003
1572					0x00000005 0x00000001 0x00000002 0x00000004
1573					0x00000001 0x00000000 0x00000003 0x00000002
1574					0x02030001 0x00070506 0x71e40a07 0x001f0000 >;
1575			};
1576
1577			timing-400000000 {
1578				clock-frequency = <400000000>;
1579
1580				nvidia,emem-configuration = < 0x00000006 0xc0000048
1581					0x00000002 0x00000003 0x0000000c 0x00000007
1582					0x00000009 0x00000001 0x00000002 0x00000006
1583					0x00000001 0x00000000 0x00000004 0x00000004
1584					0x04040001 0x000d090c 0x7026120d 0x001f0000 >;
1585			};
1586		};
1587
1588		emc-timings-1 {
1589			/* ELPIDA EDB8132B2MA 8D_F */
1590			nvidia,ram-code = <1>;
1591
1592			timing-25500000 {
1593				clock-frequency = <25500000>;
1594
1595				nvidia,emem-configuration = < 0x00020001 0xc0000010
1596					0x00000001 0x00000001 0x00000002 0x00000000
1597					0x00000003 0x00000001 0x00000002 0x00000004
1598					0x00000001 0x00000000 0x00000002 0x00000002
1599					0x02020001 0x00060402 0x73e30303 0x001f0000 >;
1600			};
1601
1602			timing-51000000 {
1603				clock-frequency = <51000000>;
1604
1605				nvidia,emem-configuration = < 0x00010001 0xc0000010
1606					0x00000001 0x00000001 0x00000002 0x00000000
1607					0x00000003 0x00000001 0x00000002 0x00000004
1608					0x00000001 0x00000000 0x00000002 0x00000002
1609					0x02020001 0x00060402 0x72c30303 0x001f0000 >;
1610			};
1611
1612			timing-102000000 {
1613				clock-frequency = <102000000>;
1614
1615				nvidia,emem-configuration = < 0x00000001 0xc0000018
1616					0x00000001 0x00000001 0x00000003 0x00000001
1617					0x00000003 0x00000001 0x00000002 0x00000004
1618					0x00000001 0x00000000 0x00000002 0x00000002
1619					0x02020001 0x00060403 0x72430504 0x001f0000 >;
1620			};
1621
1622			timing-204000000 {
1623				clock-frequency = <204000000>;
1624
1625				nvidia,emem-configuration = < 0x00000003 0xc0000025
1626					0x00000001 0x00000001 0x00000006 0x00000003
1627					0x00000005 0x00000001 0x00000002 0x00000004
1628					0x00000001 0x00000000 0x00000003 0x00000002
1629					0x02030001 0x00070506 0x71e40a07 0x001f0000 >;
1630			};
1631
1632			timing-400000000 {
1633				clock-frequency = <400000000>;
1634
1635				nvidia,emem-configuration = < 0x00000006 0xc0000048
1636					0x00000002 0x00000003 0x0000000c 0x00000007
1637					0x00000009 0x00000001 0x00000002 0x00000006
1638					0x00000001 0x00000000 0x00000004 0x00000004
1639					0x04040001 0x000d090c 0x7026120d 0x001f0000 >;
1640			};
1641		};
1642
1643		emc-timings-2 {
1644			/* SAMSUNG K4P8G304EB FGC2 */
1645			nvidia,ram-code = <2>;
1646
1647			timing-25500000 {
1648				clock-frequency = <25500000>;
1649
1650				nvidia,emem-configuration = < 0x00020001 0xc0000010
1651					0x00000001 0x00000001 0x00000002 0x00000000
1652					0x00000003 0x00000001 0x00000002 0x00000004
1653					0x00000001 0x00000000 0x00000002 0x00000002
1654					0x02020001 0x00060402 0x73e30303 0x001f0000 >;
1655			};
1656
1657			timing-51000000 {
1658				clock-frequency = <51000000>;
1659
1660				nvidia,emem-configuration = < 0x00010001 0xc0000010
1661					0x00000001 0x00000001 0x00000002 0x00000000
1662					0x00000003 0x00000001 0x00000002 0x00000004
1663					0x00000001 0x00000000 0x00000002 0x00000002
1664					0x02020001 0x00060402 0x72c30303 0x001f0000 >;
1665			};
1666
1667			timing-102000000 {
1668				clock-frequency = <102000000>;
1669
1670				nvidia,emem-configuration = < 0x00000001 0xc0000018
1671					0x00000001 0x00000001 0x00000003 0x00000001
1672					0x00000003 0x00000001 0x00000002 0x00000004
1673					0x00000001 0x00000000 0x00000002 0x00000002
1674					0x02020001 0x00060403 0x72430504 0x001f0000 >;
1675			};
1676
1677			timing-204000000 {
1678				clock-frequency = <204000000>;
1679
1680				nvidia,emem-configuration = < 0x00000003 0xc0000025
1681					0x00000001 0x00000001 0x00000006 0x00000003
1682					0x00000005 0x00000001 0x00000002 0x00000004
1683					0x00000001 0x00000000 0x00000003 0x00000002
1684					0x02030001 0x00070506 0x71e40a07 0x001f0000 >;
1685			};
1686
1687			timing-533000000 {
1688				clock-frequency = <533000000>;
1689
1690				nvidia,emem-configuration = < 0x00000008 0xc0000060
1691					0x00000003 0x00000004 0x00000010 0x0000000a
1692					0x0000000d 0x00000002 0x00000002 0x00000008
1693					0x00000002 0x00000000 0x00000004 0x00000005
1694					0x05040002 0x00110b10 0x70281811 0x001f0000 >;
1695			};
1696		};
1697
1698		emc-timings-3 {
1699			/* HYNIX H9TCNNN8JDMMPR NGM */
1700			nvidia,ram-code = <3>;
1701
1702			timing-25500000 {
1703				clock-frequency = <25500000>;
1704
1705				nvidia,emem-configuration = < 0x00020001 0xc0000010
1706					0x00000001 0x00000001 0x00000002 0x00000000
1707					0x00000003 0x00000001 0x00000002 0x00000004
1708					0x00000001 0x00000000 0x00000002 0x00000002
1709					0x02020001 0x00060402 0x73e30303 0x001f0000 >;
1710			};
1711
1712			timing-51000000 {
1713				clock-frequency = <51000000>;
1714
1715				nvidia,emem-configuration = < 0x00010001 0xc0000010
1716					0x00000001 0x00000001 0x00000002 0x00000000
1717					0x00000003 0x00000001 0x00000002 0x00000004
1718					0x00000001 0x00000000 0x00000002 0x00000002
1719					0x02020001 0x00060402 0x72c30303 0x001f0000 >;
1720			};
1721
1722			timing-102000000 {
1723				clock-frequency = <102000000>;
1724
1725				nvidia,emem-configuration = < 0x00000001 0xc0000018
1726					0x00000001 0x00000001 0x00000003 0x00000001
1727					0x00000003 0x00000001 0x00000002 0x00000004
1728					0x00000001 0x00000000 0x00000002 0x00000002
1729					0x02020001 0x00060403 0x72430504 0x001f0000 >;
1730			};
1731
1732			timing-204000000 {
1733				clock-frequency = <204000000>;
1734
1735				nvidia,emem-configuration = < 0x00000003 0xc0000025
1736					0x00000001 0x00000001 0x00000006 0x00000003
1737					0x00000005 0x00000001 0x00000002 0x00000004
1738					0x00000001 0x00000000 0x00000003 0x00000002
1739					0x02030001 0x00070506 0x71e40a07 0x001f0000 >;
1740			};
1741
1742			timing-533000000 {
1743				clock-frequency = <533000000>;
1744
1745				nvidia,emem-configuration = < 0x00000008 0xc0000060
1746					0x00000003 0x00000004 0x00000010 0x0000000a
1747					0x0000000d 0x00000002 0x00000002 0x00000008
1748					0x00000002 0x00000000 0x00000004 0x00000005
1749					0x05040002 0x00110b10 0x70281811 0x001f0000 >;
1750			};
1751		};
1752	};
1753
1754	memory-controller@7000f400 {
1755		emc-timings-0 {
1756			/* SAMSUNG K4P8G304EB FGC1 */
1757			nvidia,ram-code = <0>;
1758
1759			timing-25500000 {
1760				clock-frequency = <25500000>;
1761
1762				nvidia,emc-auto-cal-interval = <0x001fffff>;
1763				nvidia,emc-mode-1 = <0x00010022>;
1764				nvidia,emc-mode-2 = <0x00020001>;
1765				nvidia,emc-mode-reset = <0x00000000>;
1766				nvidia,emc-zcal-cnt-long = <0x00000009>;
1767				nvidia,emc-cfg-dyn-self-ref;
1768				nvidia,emc-cfg-periodic-qrst;
1769
1770				nvidia,emc-configuration =  < 0x00000001
1771					0x00000003 0x00000002 0x00000002 0x00000004
1772					0x00000004 0x00000001 0x00000005 0x00000002
1773					0x00000002 0x00000001 0x00000001 0x00000000
1774					0x00000001 0x00000003 0x00000001 0x0000000b
1775					0x00000009 0x00000060 0x00000000 0x00000018
1776					0x00000001 0x00000001 0x00000002 0x00000000
1777					0x00000001 0x00000007 0x00000004 0x00000004
1778					0x00000003 0x00000008 0x00000004 0x00000004
1779					0x00000002 0x0000006b 0x00000004 0x00000004
1780					0x00000000 0x00000000 0x00004282 0x007800a4
1781					0x00008000 0x000fc000 0x000fc000 0x000fc000
1782					0x000fc000 0x000fc000 0x000fc000 0x000fc000
1783					0x000fc000 0x00000000 0x00000000 0x00000000
1784					0x00000000 0x00000000 0x00000000 0x00000000
1785					0x00000000 0x00000000 0x00000000 0x00000000
1786					0x00000000 0x00000000 0x00000000 0x00000000
1787					0x00000000 0x000fc000 0x000fc000 0x000fc000
1788					0x000fc000 0x00100220 0x0800201c 0x00000000
1789					0x77ffc004 0x01f1f008 0x00000000 0x00000007
1790					0x08000068 0x08000000 0x00000802 0x00064000
1791					0x0000000a 0x00090009 0xa0f10000 0x00000000
1792					0x00000000 0x800001c5 0xe0000000 0xff00ff00 >;
1793			};
1794
1795			timing-51000000 {
1796				clock-frequency = <51000000>;
1797
1798				nvidia,emc-auto-cal-interval = <0x001fffff>;
1799				nvidia,emc-mode-1 = <0x00010022>;
1800				nvidia,emc-mode-2 = <0x00020001>;
1801				nvidia,emc-mode-reset = <0x00000000>;
1802				nvidia,emc-zcal-cnt-long = <0x00000009>;
1803				nvidia,emc-cfg-dyn-self-ref;
1804				nvidia,emc-cfg-periodic-qrst;
1805
1806				nvidia,emc-configuration =  < 0x00000003
1807					0x00000006 0x00000002 0x00000002 0x00000004
1808					0x00000004 0x00000001 0x00000005 0x00000002
1809					0x00000002 0x00000001 0x00000001 0x00000000
1810					0x00000001 0x00000003 0x00000001 0x0000000b
1811					0x00000009 0x000000c0 0x00000000 0x00000030
1812					0x00000001 0x00000001 0x00000002 0x00000000
1813					0x00000001 0x00000007 0x00000008 0x00000008
1814					0x00000003 0x00000008 0x00000004 0x00000004
1815					0x00000002 0x000000d5 0x00000004 0x00000004
1816					0x00000000 0x00000000 0x00004282 0x007800a4
1817					0x00008000 0x000fc000 0x000fc000 0x000fc000
1818					0x000fc000 0x000fc000 0x000fc000 0x000fc000
1819					0x000fc000 0x00000000 0x00000000 0x00000000
1820					0x00000000 0x00000000 0x00000000 0x00000000
1821					0x00000000 0x00000000 0x00000000 0x00000000
1822					0x00000000 0x00000000 0x00000000 0x00000000
1823					0x00000000 0x000fc000 0x000fc000 0x000fc000
1824					0x000fc000 0x00100220 0x0800201c 0x00000000
1825					0x77ffc004 0x01f1f008 0x00000000 0x00000007
1826					0x08000068 0x08000000 0x00000802 0x00064000
1827					0x00000013 0x00090009 0xa0f10000 0x00000000
1828					0x00000000 0x80000287 0xe0000000 0xff00ff00 >;
1829			};
1830
1831			timing-102000000 {
1832				clock-frequency = <102000000>;
1833
1834				nvidia,emc-auto-cal-interval = <0x001fffff>;
1835				nvidia,emc-mode-1 = <0x00010022>;
1836				nvidia,emc-mode-2 = <0x00020001>;
1837				nvidia,emc-mode-reset = <0x00000000>;
1838				nvidia,emc-zcal-cnt-long = <0x0000000a>;
1839				nvidia,emc-cfg-dyn-self-ref;
1840				nvidia,emc-cfg-periodic-qrst;
1841
1842				nvidia,emc-configuration =  < 0x00000006
1843					0x0000000d 0x00000004 0x00000002 0x00000004
1844					0x00000004 0x00000001 0x00000005 0x00000002
1845					0x00000002 0x00000001 0x00000001 0x00000000
1846					0x00000001 0x00000003 0x00000001 0x0000000b
1847					0x00000009 0x00000181 0x00000000 0x00000060
1848					0x00000001 0x00000001 0x00000002 0x00000000
1849					0x00000001 0x00000007 0x0000000f 0x0000000f
1850					0x00000003 0x00000008 0x00000004 0x00000004
1851					0x00000002 0x000001a9 0x00000004 0x00000004
1852					0x00000000 0x00000000 0x00004282 0x007800a4
1853					0x00008000 0x000fc000 0x000fc000 0x000fc000
1854					0x000fc000 0x000fc000 0x000fc000 0x000fc000
1855					0x000fc000 0x00000000 0x00000000 0x00000000
1856					0x00000000 0x00000000 0x00000000 0x00000000
1857					0x00000000 0x00000000 0x00000000 0x00000000
1858					0x00000000 0x00000000 0x00000000 0x00000000
1859					0x00000000 0x000fc000 0x000fc000 0x000fc000
1860					0x000fc000 0x00100220 0x0800201c 0x00000000
1861					0x77ffc004 0x01f1f008 0x00000000 0x00000007
1862					0x08000068 0x08000000 0x00000802 0x00064000
1863					0x00000025 0x00090009 0xa0f10000 0x00000000
1864					0x00000000 0x8000040b 0xe0000000 0xff00ff00 >;
1865			};
1866
1867			timing-204000000 {
1868				clock-frequency = <204000000>;
1869
1870				nvidia,emc-auto-cal-interval = <0x001fffff>;
1871				nvidia,emc-mode-1 = <0x00010042>;
1872				nvidia,emc-mode-2 = <0x00020001>;
1873				nvidia,emc-mode-reset = <0x00000000>;
1874				nvidia,emc-zcal-cnt-long = <0x00000013>;
1875				nvidia,emc-cfg-dyn-self-ref;
1876				nvidia,emc-cfg-periodic-qrst;
1877
1878				nvidia,emc-configuration =  < 0x0000000c
1879					0x0000001a 0x00000008 0x00000003 0x00000005
1880					0x00000004 0x00000001 0x00000006 0x00000003
1881					0x00000003 0x00000002 0x00000002 0x00000000
1882					0x00000001 0x00000003 0x00000001 0x0000000c
1883					0x0000000a 0x00000303 0x00000000 0x000000c0
1884					0x00000001 0x00000001 0x00000003 0x00000000
1885					0x00000001 0x00000007 0x0000001d 0x0000001d
1886					0x00000004 0x0000000b 0x00000005 0x00000004
1887					0x00000002 0x00000351 0x00000004 0x00000006
1888					0x00000000 0x00000000 0x00004282 0x004400a4
1889					0x00008000 0x00080000 0x00080000 0x00080000
1890					0x00080000 0x00080000 0x00080000 0x00080000
1891					0x00080000 0x00000000 0x00000000 0x00000000
1892					0x00000000 0x00000000 0x00000000 0x00000000
1893					0x00000000 0x00000000 0x00000000 0x00000000
1894					0x00000000 0x00000000 0x00000000 0x00000000
1895					0x00000000 0x00080000 0x00080000 0x00080000
1896					0x00080000 0x000e0220 0x0800201c 0x00000000
1897					0x77ffc004 0x01f1f008 0x00000000 0x00000007
1898					0x08000068 0x08000000 0x00000802 0x00064000
1899					0x0000004a 0x00090009 0xa0f10000 0x00000000
1900					0x00000000 0x80000713 0xe0000000 0xff00ff00 >;
1901			};
1902
1903			timing-400000000 {
1904				clock-frequency = <400000000>;
1905
1906				nvidia,emc-auto-cal-interval = <0x001fffff>;
1907				nvidia,emc-mode-1 = <0x00010082>;
1908				nvidia,emc-mode-2 = <0x00020004>;
1909				nvidia,emc-mode-reset = <0x00000000>;
1910				nvidia,emc-zcal-cnt-long = <0x00000024>;
1911				nvidia,emc-cfg-periodic-qrst;
1912
1913				nvidia,emc-configuration =  < 0x00000017
1914					0x00000033 0x00000010 0x00000007 0x00000007
1915					0x00000007 0x00000002 0x0000000a 0x00000007
1916					0x00000007 0x00000003 0x00000002 0x00000000
1917					0x00000003 0x00000007 0x00000004 0x0000000d
1918					0x0000000e 0x000005e9 0x00000000 0x0000017a
1919					0x00000002 0x00000002 0x00000007 0x00000000
1920					0x00000001 0x0000000c 0x00000038 0x00000038
1921					0x00000006 0x00000014 0x00000009 0x00000004
1922					0x00000002 0x00000680 0x00000000 0x00000006
1923					0x00000000 0x00000000 0x00006282 0x001d0084
1924					0x00008000 0x00034000 0x00034000 0x00034000
1925					0x00034000 0x00034000 0x00034000 0x00034000
1926					0x00034000 0x00000000 0x00000000 0x00000000
1927					0x00000000 0x00000000 0x00000000 0x00000000
1928					0x00000000 0x00000000 0x00000000 0x00000000
1929					0x00000000 0x00000000 0x00000000 0x00000000
1930					0x00000000 0x00038000 0x00038000 0x00038000
1931					0x00038000 0x00080220 0x0800003d 0x00000000
1932					0x77ffc004 0x01f1f408 0x00000000 0x00000007
1933					0x08000068 0x08000000 0x00000802 0x00064000
1934					0x00000090 0x000c000c 0xa0f10404 0x00000000
1935					0x00000000 0x80000ce6 0xe0000000 0xff00ff88 >;
1936			};
1937		};
1938
1939		emc-timings-1 {
1940			/* ELPIDA EDB8132B2MA 8D_F */
1941			nvidia,ram-code = <1>;
1942
1943			timing-25500000 {
1944				clock-frequency = <25500000>;
1945
1946				nvidia,emc-auto-cal-interval = <0x001fffff>;
1947				nvidia,emc-mode-1 = <0x00010022>;
1948				nvidia,emc-mode-2 = <0x00020001>;
1949				nvidia,emc-mode-reset = <0x00000000>;
1950				nvidia,emc-zcal-cnt-long = <0x00000009>;
1951				nvidia,emc-cfg-dyn-self-ref;
1952				nvidia,emc-cfg-periodic-qrst;
1953
1954				nvidia,emc-configuration =  < 0x00000001
1955					0x00000003 0x00000002 0x00000002 0x00000004
1956					0x00000004 0x00000001 0x00000005 0x00000002
1957					0x00000002 0x00000001 0x00000001 0x00000000
1958					0x00000001 0x00000003 0x00000001 0x0000000b
1959					0x0000000a 0x00000060 0x00000000 0x00000018
1960					0x00000001 0x00000001 0x00000002 0x00000000
1961					0x00000001 0x00000007 0x00000004 0x00000004
1962					0x00000003 0x00000008 0x00000004 0x00000004
1963					0x00000002 0x0000006b 0x00000004 0x00000004
1964					0x00000000 0x00000000 0x00004282 0x007800a4
1965					0x00008000 0x000fc000 0x000fc000 0x000fc000
1966					0x000fc000 0x000fc000 0x000fc000 0x000fc000
1967					0x000fc000 0x00000000 0x00000000 0x00000000
1968					0x00000000 0x00000000 0x00000000 0x00000000
1969					0x00000000 0x00000000 0x00000000 0x00000000
1970					0x00000000 0x00000000 0x00000000 0x00000000
1971					0x00000000 0x000fc000 0x000fc000 0x000fc000
1972					0x000fc000 0x00100220 0x0800201c 0x00000000
1973					0x77ffc004 0x01f1f008 0x00000000 0x00000007
1974					0x08000068 0x08000000 0x00000802 0x00064000
1975					0x0000000a 0x00090009 0xa0f10000 0x00000000
1976					0x00000000 0x800001c5 0xe0000000 0xff00ff00 >;
1977			};
1978
1979			timing-51000000 {
1980				clock-frequency = <51000000>;
1981
1982				nvidia,emc-auto-cal-interval = <0x001fffff>;
1983				nvidia,emc-mode-1 = <0x00010022>;
1984				nvidia,emc-mode-2 = <0x00020001>;
1985				nvidia,emc-mode-reset = <0x00000000>;
1986				nvidia,emc-zcal-cnt-long = <0x00000009>;
1987				nvidia,emc-cfg-dyn-self-ref;
1988				nvidia,emc-cfg-periodic-qrst;
1989
1990				nvidia,emc-configuration =  < 0x00000003
1991					0x00000006 0x00000002 0x00000002 0x00000004
1992					0x00000004 0x00000001 0x00000005 0x00000002
1993					0x00000002 0x00000001 0x00000001 0x00000000
1994					0x00000001 0x00000003 0x00000001 0x0000000b
1995					0x0000000a 0x000000c0 0x00000000 0x00000030
1996					0x00000001 0x00000001 0x00000002 0x00000000
1997					0x00000001 0x00000007 0x00000008 0x00000008
1998					0x00000003 0x00000008 0x00000004 0x00000004
1999					0x00000002 0x000000d5 0x00000004 0x00000004
2000					0x00000000 0x00000000 0x00004282 0x007800a4
2001					0x00008000 0x000fc000 0x000fc000 0x000fc000
2002					0x000fc000 0x000fc000 0x000fc000 0x000fc000
2003					0x000fc000 0x00000000 0x00000000 0x00000000
2004					0x00000000 0x00000000 0x00000000 0x00000000
2005					0x00000000 0x00000000 0x00000000 0x00000000
2006					0x00000000 0x00000000 0x00000000 0x00000000
2007					0x00000000 0x000fc000 0x000fc000 0x000fc000
2008					0x000fc000 0x00100220 0x0800201c 0x00000000
2009					0x77ffc004 0x01f1f008 0x00000000 0x00000007
2010					0x08000068 0x08000000 0x00000802 0x00064000
2011					0x00000013 0x00090009 0xa0f10000 0x00000000
2012					0x00000000 0x80000287 0xe0000000 0xff00ff00 >;
2013			};
2014
2015			timing-102000000 {
2016				clock-frequency = <102000000>;
2017
2018				nvidia,emc-auto-cal-interval = <0x001fffff>;
2019				nvidia,emc-mode-1 = <0x00010022>;
2020				nvidia,emc-mode-2 = <0x00020001>;
2021				nvidia,emc-mode-reset = <0x00000000>;
2022				nvidia,emc-zcal-cnt-long = <0x0000000a>;
2023				nvidia,emc-cfg-dyn-self-ref;
2024				nvidia,emc-cfg-periodic-qrst;
2025
2026				nvidia,emc-configuration =  < 0x00000006
2027					0x0000000d 0x00000004 0x00000002 0x00000004
2028					0x00000004 0x00000001 0x00000005 0x00000002
2029					0x00000002 0x00000001 0x00000001 0x00000000
2030					0x00000001 0x00000003 0x00000001 0x0000000b
2031					0x0000000a 0x00000181 0x00000000 0x00000060
2032					0x00000001 0x00000001 0x00000002 0x00000000
2033					0x00000001 0x00000007 0x0000000f 0x0000000f
2034					0x00000003 0x00000008 0x00000004 0x00000004
2035					0x00000002 0x000001a9 0x00000004 0x00000004
2036					0x00000000 0x00000000 0x00004282 0x007800a4
2037					0x00008000 0x000fc000 0x000fc000 0x000fc000
2038					0x000fc000 0x000fc000 0x000fc000 0x000fc000
2039					0x000fc000 0x00000000 0x00000000 0x00000000
2040					0x00000000 0x00000000 0x00000000 0x00000000
2041					0x00000000 0x00000000 0x00000000 0x00000000
2042					0x00000000 0x00000000 0x00000000 0x00000000
2043					0x00000000 0x000fc000 0x000fc000 0x000fc000
2044					0x000fc000 0x00100220 0x0800201c 0x00000000
2045					0x77ffc004 0x01f1f008 0x00000000 0x00000007
2046					0x08000068 0x08000000 0x00000802 0x00064000
2047					0x00000025 0x00090009 0xa0f10000 0x00000000
2048					0x00000000 0x8000040b 0xe0000000 0xff00ff00 >;
2049			};
2050
2051			timing-204000000 {
2052				clock-frequency = <204000000>;
2053
2054				nvidia,emc-auto-cal-interval = <0x001fffff>;
2055				nvidia,emc-mode-1 = <0x00010042>;
2056				nvidia,emc-mode-2 = <0x00020001>;
2057				nvidia,emc-mode-reset = <0x00000000>;
2058				nvidia,emc-zcal-cnt-long = <0x00000013>;
2059				nvidia,emc-cfg-dyn-self-ref;
2060				nvidia,emc-cfg-periodic-qrst;
2061
2062				nvidia,emc-configuration =  < 0x0000000c
2063					0x0000001a 0x00000008 0x00000003 0x00000005
2064					0x00000004 0x00000001 0x00000006 0x00000003
2065					0x00000003 0x00000002 0x00000002 0x00000000
2066					0x00000001 0x00000003 0x00000001 0x0000000c
2067					0x0000000a 0x00000303 0x00000000 0x000000c0
2068					0x00000001 0x00000001 0x00000003 0x00000000
2069					0x00000001 0x00000007 0x0000001d 0x0000001d
2070					0x00000004 0x0000000b 0x00000005 0x00000004
2071					0x00000002 0x00000351 0x00000004 0x00000006
2072					0x00000000 0x00000000 0x00004282 0x004400a4
2073					0x00008000 0x00070000 0x00070000 0x00070000
2074					0x00070000 0x00070000 0x00070000 0x00070000
2075					0x00070000 0x00000000 0x00000000 0x00000000
2076					0x00000000 0x00000000 0x00000000 0x00000000
2077					0x00000000 0x00000000 0x00000000 0x00000000
2078					0x00000000 0x00000000 0x00000000 0x00000000
2079					0x00000000 0x00080000 0x00080000 0x00080000
2080					0x00080000 0x000e0220 0x0800201c 0x00000000
2081					0x77ffc004 0x01f1f008 0x00000000 0x00000007
2082					0x08000068 0x08000000 0x00000802 0x00064000
2083					0x0000004a 0x00090009 0xa0f10000 0x00000000
2084					0x00000000 0x80000713 0xe0000000 0xff00ff00 >;
2085			};
2086
2087			timing-400000000 {
2088				clock-frequency = <400000000>;
2089
2090				nvidia,emc-auto-cal-interval = <0x001fffff>;
2091				nvidia,emc-mode-1 = <0x00010082>;
2092				nvidia,emc-mode-2 = <0x00020004>;
2093				nvidia,emc-mode-reset = <0x00000000>;
2094				nvidia,emc-zcal-cnt-long = <0x00000024>;
2095				nvidia,emc-cfg-periodic-qrst;
2096
2097				nvidia,emc-configuration =  < 0x00000017
2098					0x00000033 0x00000010 0x00000007 0x00000007
2099					0x00000007 0x00000002 0x0000000a 0x00000007
2100					0x00000007 0x00000003 0x00000002 0x00000000
2101					0x00000003 0x00000007 0x00000004 0x0000000d
2102					0x0000000e 0x000005e9 0x00000000 0x0000017a
2103					0x00000002 0x00000002 0x00000007 0x00000000
2104					0x00000001 0x0000000c 0x00000038 0x00000038
2105					0x00000006 0x00000014 0x00000009 0x00000004
2106					0x00000002 0x00000680 0x00000000 0x00000004
2107					0x00000000 0x00000000 0x00006282 0x001d0084
2108					0x00008000 0x00034000 0x00034000 0x00034000
2109					0x00034000 0x00034000 0x00034000 0x00034000
2110					0x00034000 0x00000000 0x00000000 0x00000000
2111					0x00000000 0x00000000 0x00000000 0x00000000
2112					0x00000000 0x00000000 0x00000000 0x00000000
2113					0x00000000 0x00000000 0x00000000 0x00000000
2114					0x00000000 0x00048000 0x00048000 0x00048000
2115					0x00048000 0x00060220 0x0800003d 0x00000000
2116					0x77ffc004 0x01f1f408 0x00000000 0x00000007
2117					0x08000068 0x08000000 0x00000802 0x00064000
2118					0x00000090 0x000c000c 0xa0f10000 0x00000000
2119					0x00000000 0x80000ce6 0xe0000000 0xff00ff88 >;
2120			};
2121		};
2122
2123		emc-timings-2 {
2124			/* SAMSUNG K4P8G304EB FGC2 */
2125			nvidia,ram-code = <2>;
2126
2127			timing-25500000 {
2128				clock-frequency = <25500000>;
2129
2130				nvidia,emc-auto-cal-interval = <0x001fffff>;
2131				nvidia,emc-mode-1 = <0x00010022>;
2132				nvidia,emc-mode-2 = <0x00020001>;
2133				nvidia,emc-mode-reset = <0x00000000>;
2134				nvidia,emc-zcal-cnt-long = <0x00000009>;
2135				nvidia,emc-cfg-dyn-self-ref;
2136				nvidia,emc-cfg-periodic-qrst;
2137
2138				nvidia,emc-configuration =  < 0x00000001
2139					0x00000003 0x00000002 0x00000002 0x00000004
2140					0x00000004 0x00000001 0x00000005 0x00000002
2141					0x00000002 0x00000001 0x00000001 0x00000000
2142					0x00000001 0x00000003 0x00000001 0x0000000b
2143					0x0000000a 0x00000060 0x00000000 0x00000018
2144					0x00000001 0x00000001 0x00000002 0x00000000
2145					0x00000001 0x00000007 0x00000004 0x00000004
2146					0x00000003 0x00000008 0x00000004 0x00000004
2147					0x00000002 0x0000006b 0x00000004 0x00000004
2148					0x00000000 0x00000000 0x00004282 0x007800a4
2149					0x00008000 0x000fc000 0x000fc000 0x000fc000
2150					0x000fc000 0x000fc000 0x000fc000 0x000fc000
2151					0x000fc000 0x00000000 0x00000000 0x00000000
2152					0x00000000 0x00000000 0x00000000 0x00000000
2153					0x00000000 0x00000000 0x00000000 0x00000000
2154					0x00000000 0x00000000 0x00000000 0x00000000
2155					0x00000000 0x000fc000 0x000fc000 0x000fc000
2156					0x000fc000 0x00100220 0x0800201c 0x00000000
2157					0x77ffc004 0x01f1f008 0x00000000 0x00000007
2158					0x08000068 0x08000000 0x00000802 0x00064000
2159					0x0000000a 0x00090009 0xa0f10000 0x00000000
2160					0x00000000 0x800001c5 0xe0000000 0xff00ff00 >;
2161			};
2162
2163			timing-51000000 {
2164				clock-frequency = <51000000>;
2165
2166				nvidia,emc-auto-cal-interval = <0x001fffff>;
2167				nvidia,emc-mode-1 = <0x00010022>;
2168				nvidia,emc-mode-2 = <0x00020001>;
2169				nvidia,emc-mode-reset = <0x00000000>;
2170				nvidia,emc-zcal-cnt-long = <0x00000009>;
2171				nvidia,emc-cfg-dyn-self-ref;
2172				nvidia,emc-cfg-periodic-qrst;
2173
2174				nvidia,emc-configuration =  < 0x00000003
2175					0x00000006 0x00000002 0x00000002 0x00000004
2176					0x00000004 0x00000001 0x00000005 0x00000002
2177					0x00000002 0x00000001 0x00000001 0x00000000
2178					0x00000001 0x00000003 0x00000001 0x0000000b
2179					0x0000000a 0x000000c0 0x00000000 0x00000030
2180					0x00000001 0x00000001 0x00000002 0x00000000
2181					0x00000001 0x00000007 0x00000008 0x00000008
2182					0x00000003 0x00000008 0x00000004 0x00000004
2183					0x00000002 0x000000d5 0x00000004 0x00000004
2184					0x00000000 0x00000000 0x00004282 0x007800a4
2185					0x00008000 0x000fc000 0x000fc000 0x000fc000
2186					0x000fc000 0x000fc000 0x000fc000 0x000fc000
2187					0x000fc000 0x00000000 0x00000000 0x00000000
2188					0x00000000 0x00000000 0x00000000 0x00000000
2189					0x00000000 0x00000000 0x00000000 0x00000000
2190					0x00000000 0x00000000 0x00000000 0x00000000
2191					0x00000000 0x000fc000 0x000fc000 0x000fc000
2192					0x000fc000 0x00100220 0x0800201c 0x00000000
2193					0x77ffc004 0x01f1f008 0x00000000 0x00000007
2194					0x08000068 0x08000000 0x00000802 0x00064000
2195					0x00000013 0x00090009 0xa0f10000 0x00000000
2196					0x00000000 0x80000287 0xe0000000 0xff00ff00 >;
2197			};
2198
2199			timing-102000000 {
2200				clock-frequency = <102000000>;
2201
2202				nvidia,emc-auto-cal-interval = <0x001fffff>;
2203				nvidia,emc-mode-1 = <0x00010022>;
2204				nvidia,emc-mode-2 = <0x00020001>;
2205				nvidia,emc-mode-reset = <0x00000000>;
2206				nvidia,emc-zcal-cnt-long = <0x0000000a>;
2207				nvidia,emc-cfg-dyn-self-ref;
2208				nvidia,emc-cfg-periodic-qrst;
2209
2210				nvidia,emc-configuration =  < 0x00000006
2211					0x0000000d 0x00000004 0x00000002 0x00000004
2212					0x00000004 0x00000001 0x00000005 0x00000002
2213					0x00000002 0x00000001 0x00000001 0x00000000
2214					0x00000001 0x00000003 0x00000001 0x0000000b
2215					0x00000009 0x00000181 0x00000000 0x00000060
2216					0x00000001 0x00000001 0x00000002 0x00000000
2217					0x00000001 0x00000007 0x0000000f 0x0000000f
2218					0x00000003 0x00000008 0x00000004 0x00000004
2219					0x00000002 0x000001a9 0x00000004 0x00000004
2220					0x00000000 0x00000000 0x00004282 0x007800a4
2221					0x00008000 0x000fc000 0x000fc000 0x000fc000
2222					0x000fc000 0x000fc000 0x000fc000 0x000fc000
2223					0x000fc000 0x00000000 0x00000000 0x00000000
2224					0x00000000 0x00000000 0x00000000 0x00000000
2225					0x00000000 0x00000000 0x00000000 0x00000000
2226					0x00000000 0x00000000 0x00000000 0x00000000
2227					0x00000000 0x000fc000 0x000fc000 0x000fc000
2228					0x000fc000 0x00100220 0x0800201c 0x00000000
2229					0x77ffc004 0x01f1f008 0x00000000 0x00000007
2230					0x08000068 0x08000000 0x00000802 0x00064000
2231					0x00000025 0x00090009 0xa0f10000 0x00000000
2232					0x00000000 0x8000040b 0xe0000000 0xff00ff00 >;
2233			};
2234
2235			timing-204000000 {
2236				clock-frequency = <204000000>;
2237
2238				nvidia,emc-auto-cal-interval = <0x001fffff>;
2239				nvidia,emc-mode-1 = <0x00010042>;
2240				nvidia,emc-mode-2 = <0x00020001>;
2241				nvidia,emc-mode-reset = <0x00000000>;
2242				nvidia,emc-zcal-cnt-long = <0x00000013>;
2243				nvidia,emc-cfg-dyn-self-ref;
2244				nvidia,emc-cfg-periodic-qrst;
2245
2246				nvidia,emc-configuration =  < 0x0000000c
2247					0x0000001a 0x00000008 0x00000003 0x00000005
2248					0x00000004 0x00000001 0x00000006 0x00000003
2249					0x00000003 0x00000002 0x00000002 0x00000000
2250					0x00000001 0x00000004 0x00000001 0x0000000c
2251					0x0000000a 0x00000303 0x00000000 0x000000c0
2252					0x00000001 0x00000001 0x00000003 0x00000000
2253					0x00000001 0x00000007 0x0000001d 0x0000001d
2254					0x00000004 0x0000000b 0x00000005 0x00000004
2255					0x00000002 0x00000351 0x00000005 0x00000004
2256					0x00000000 0x00000000 0x00004282 0x004400a4
2257					0x00008000 0x00080000 0x00080000 0x00080000
2258					0x00080000 0x00080000 0x00080000 0x00080000
2259					0x00080000 0x00000000 0x00000000 0x00000000
2260					0x00000000 0x00000000 0x00000000 0x00000000
2261					0x00000000 0x00000000 0x00000000 0x00000000
2262					0x00000000 0x00000000 0x00000000 0x00000000
2263					0x00000000 0x00080000 0x00080000 0x00080000
2264					0x00080000 0x000e0220 0x0800201c 0x00000000
2265					0x77ffc004 0x01f1f008 0x00000000 0x00000007
2266					0x08000068 0x08000000 0x00000802 0x00064000
2267					0x0000004a 0x00090009 0xa0f10000 0x00000000
2268					0x00000000 0x80000713 0xe0000000 0xff00ff00 >;
2269			};
2270
2271			timing-533000000 {
2272				clock-frequency = <533000000>;
2273
2274				nvidia,emc-auto-cal-interval = <0x001fffff>;
2275				nvidia,emc-mode-1 = <0x000100c2>;
2276				nvidia,emc-mode-2 = <0x00020006>;
2277				nvidia,emc-mode-reset = <0x00000000>;
2278				nvidia,emc-zcal-cnt-long = <0x00000030>;
2279				nvidia,emc-cfg-periodic-qrst;
2280
2281				nvidia,emc-configuration =  < 0x0000001f
2282					0x00000045 0x00000016 0x00000009 0x00000008
2283					0x00000009 0x00000003 0x0000000d 0x00000009
2284					0x00000009 0x00000005 0x00000003 0x00000000
2285					0x00000004 0x0000000a 0x00000006 0x0000000d
2286					0x00000010 0x000007df 0x00000000 0x000001f7
2287					0x00000003 0x00000003 0x00000009 0x00000000
2288					0x00000001 0x0000000f 0x0000004b 0x0000004b
2289					0x00000008 0x0000001b 0x0000000c 0x00000004
2290					0x00000002 0x000008aa 0x00000000 0x00000004
2291					0x00000000 0x00000000 0x00006282 0xf0120091
2292					0x00008000 0x007f8008 0x007f8008 0x007f8008
2293					0x007f8008 0x007f8008 0x007f8008 0x007f8008
2294					0x007f8008 0x00000000 0x00000000 0x00000000
2295					0x00000000 0x00000000 0x00000000 0x00000000
2296					0x00000000 0x00000000 0x00000000 0x00000000
2297					0x00000000 0x00000000 0x00000000 0x00000000
2298					0x00000000 0x0000000c 0x0000000c 0x0000000c
2299					0x0000000c 0x00080220 0x0200003d 0x00000000
2300					0x77ffc004 0x01f1f408 0x00000000 0x00000007
2301					0x08000068 0x08000000 0x00000802 0x00064000
2302					0x000000c0 0x000e000e 0xa0f10000 0x00000000
2303					0x00000000 0x800010d9 0xf0000000 0xff00ff88 >;
2304			};
2305		};
2306
2307		emc-timings-3 {
2308			/* HYNIX H9TCNNN8JDMMPR NGM */
2309			nvidia,ram-code = <3>;
2310
2311			timing-25500000 {
2312				clock-frequency = <25500000>;
2313
2314				nvidia,emc-auto-cal-interval = <0x001fffff>;
2315				nvidia,emc-mode-1 = <0x00010022>;
2316				nvidia,emc-mode-2 = <0x00020001>;
2317				nvidia,emc-mode-reset = <0x00000000>;
2318				nvidia,emc-zcal-cnt-long = <0x00000009>;
2319				nvidia,emc-cfg-dyn-self-ref;
2320				nvidia,emc-cfg-periodic-qrst;
2321
2322				nvidia,emc-configuration =  < 0x00000001
2323					0x00000003 0x00000002 0x00000002 0x00000004
2324					0x00000004 0x00000001 0x00000005 0x00000002
2325					0x00000002 0x00000001 0x00000001 0x00000000
2326					0x00000001 0x00000003 0x00000001 0x0000000b
2327					0x0000000a 0x00000060 0x00000000 0x00000018
2328					0x00000001 0x00000001 0x00000002 0x00000000
2329					0x00000001 0x00000007 0x00000004 0x00000004
2330					0x00000003 0x00000008 0x00000004 0x00000004
2331					0x00000002 0x0000006b 0x00000004 0x00000004
2332					0x00000000 0x00000000 0x00004282 0x007800a4
2333					0x00008000 0x000fc000 0x000fc000 0x000fc000
2334					0x000fc000 0x000fc000 0x000fc000 0x000fc000
2335					0x000fc000 0x00000000 0x00000000 0x00000000
2336					0x00000000 0x00000000 0x00000000 0x00000000
2337					0x00000000 0x00000000 0x00000000 0x00000000
2338					0x00000000 0x00000000 0x00000000 0x00000000
2339					0x00000000 0x000fc000 0x000fc000 0x000fc000
2340					0x000fc000 0x00100220 0x0800201c 0x00000000
2341					0x77ffc004 0x01f1f008 0x00000000 0x00000007
2342					0x08000068 0x08000000 0x00000802 0x00064000
2343					0x0000000a 0x00090009 0xa0f10000 0x00000000
2344					0x00000000 0x800001c5 0xe0000000 0xff00ff00 >;
2345			};
2346
2347			timing-51000000 {
2348				clock-frequency = <51000000>;
2349
2350				nvidia,emc-auto-cal-interval = <0x001fffff>;
2351				nvidia,emc-mode-1 = <0x00010022>;
2352				nvidia,emc-mode-2 = <0x00020001>;
2353				nvidia,emc-mode-reset = <0x00000000>;
2354				nvidia,emc-zcal-cnt-long = <0x00000009>;
2355				nvidia,emc-cfg-dyn-self-ref;
2356				nvidia,emc-cfg-periodic-qrst;
2357
2358				nvidia,emc-configuration =  < 0x00000003
2359					0x00000006 0x00000002 0x00000002 0x00000004
2360					0x00000004 0x00000001 0x00000005 0x00000002
2361					0x00000002 0x00000001 0x00000001 0x00000000
2362					0x00000001 0x00000003 0x00000001 0x0000000b
2363					0x0000000a 0x000000c0 0x00000000 0x00000030
2364					0x00000001 0x00000001 0x00000002 0x00000000
2365					0x00000001 0x00000007 0x00000008 0x00000008
2366					0x00000003 0x00000008 0x00000004 0x00000004
2367					0x00000002 0x000000d5 0x00000004 0x00000004
2368					0x00000000 0x00000000 0x00004282 0x007800a4
2369					0x00008000 0x000fc000 0x000fc000 0x000fc000
2370					0x000fc000 0x000fc000 0x000fc000 0x000fc000
2371					0x000fc000 0x00000000 0x00000000 0x00000000
2372					0x00000000 0x00000000 0x00000000 0x00000000
2373					0x00000000 0x00000000 0x00000000 0x00000000
2374					0x00000000 0x00000000 0x00000000 0x00000000
2375					0x00000000 0x000fc000 0x000fc000 0x000fc000
2376					0x000fc000 0x00100220 0x0800201c 0x00000000
2377					0x77ffc004 0x01f1f008 0x00000000 0x00000007
2378					0x08000068 0x08000000 0x00000802 0x00064000
2379					0x00000013 0x00090009 0xa0f10000 0x00000000
2380					0x00000000 0x80000287 0xe0000000 0xff00ff00 >;
2381			};
2382
2383			timing-102000000 {
2384				clock-frequency = <102000000>;
2385
2386				nvidia,emc-auto-cal-interval = <0x001fffff>;
2387				nvidia,emc-mode-1 = <0x00010022>;
2388				nvidia,emc-mode-2 = <0x00020001>;
2389				nvidia,emc-mode-reset = <0x00000000>;
2390				nvidia,emc-zcal-cnt-long = <0x0000000a>;
2391				nvidia,emc-cfg-dyn-self-ref;
2392				nvidia,emc-cfg-periodic-qrst;
2393
2394				nvidia,emc-configuration =  < 0x00000006
2395					0x0000000d 0x00000004 0x00000002 0x00000004
2396					0x00000004 0x00000001 0x00000005 0x00000002
2397					0x00000002 0x00000001 0x00000001 0x00000000
2398					0x00000001 0x00000003 0x00000001 0x0000000b
2399					0x0000000a 0x00000181 0x00000000 0x00000060
2400					0x00000001 0x00000001 0x00000002 0x00000000
2401					0x00000001 0x00000007 0x0000000f 0x0000000f
2402					0x00000003 0x00000008 0x00000004 0x00000004
2403					0x00000002 0x000001a9 0x00000004 0x00000004
2404					0x00000000 0x00000000 0x00004282 0x007800a4
2405					0x00008000 0x000fc000 0x000fc000 0x000fc000
2406					0x000fc000 0x000fc000 0x000fc000 0x000fc000
2407					0x000fc000 0x00000000 0x00000000 0x00000000
2408					0x00000000 0x00000000 0x00000000 0x00000000
2409					0x00000000 0x00000000 0x00000000 0x00000000
2410					0x00000000 0x00000000 0x00000000 0x00000000
2411					0x00000000 0x000fc000 0x000fc000 0x000fc000
2412					0x000fc000 0x00100220 0x0800201c 0x00000000
2413					0x77ffc004 0x01f1f008 0x00000000 0x00000007
2414					0x08000068 0x08000000 0x00000802 0x00064000
2415					0x00000025 0x00090009 0xa0f10000 0x00000000
2416					0x00000000 0x8000040b 0xe0000000 0xff00ff00 >;
2417			};
2418
2419			timing-204000000 {
2420				clock-frequency = <204000000>;
2421
2422				nvidia,emc-auto-cal-interval = <0x001fffff>;
2423				nvidia,emc-mode-1 = <0x00010042>;
2424				nvidia,emc-mode-2 = <0x00020001>;
2425				nvidia,emc-mode-reset = <0x00000000>;
2426				nvidia,emc-zcal-cnt-long = <0x00000013>;
2427				nvidia,emc-cfg-dyn-self-ref;
2428				nvidia,emc-cfg-periodic-qrst;
2429
2430				nvidia,emc-configuration =  < 0x0000000c
2431					0x0000001a 0x00000008 0x00000003 0x00000005
2432					0x00000004 0x00000001 0x00000006 0x00000003
2433					0x00000003 0x00000002 0x00000002 0x00000000
2434					0x00000001 0x00000003 0x00000001 0x0000000c
2435					0x0000000b 0x00000303 0x00000000 0x000000c0
2436					0x00000001 0x00000001 0x00000003 0x00000000
2437					0x00000001 0x00000007 0x0000001d 0x0000001d
2438					0x00000004 0x0000000b 0x00000005 0x00000004
2439					0x00000002 0x00000351 0x00000004 0x00000006
2440					0x00000000 0x00000000 0x00004282 0x004400a4
2441					0x00008000 0x00072000 0x00072000 0x00072000
2442					0x00072000 0x00072000 0x00072000 0x00072000
2443					0x00072000 0x00000000 0x00000000 0x00000000
2444					0x00000000 0x00000000 0x00000000 0x00000000
2445					0x00000000 0x00000000 0x00000000 0x00000000
2446					0x00000000 0x00000000 0x00000000 0x00000000
2447					0x00000000 0x00080000 0x00080000 0x00080000
2448					0x00080000 0x000e0220 0x0800201c 0x00000000
2449					0x77ffc004 0x01f1f008 0x00000000 0x00000007
2450					0x08000068 0x08000000 0x00000802 0x00064000
2451					0x0000004a 0x00090009 0xa0f10000 0x00000000
2452					0x00000000 0x80000713 0xd0000000 0xff00ff00 >;
2453			};
2454
2455			timing-533000000 {
2456				clock-frequency = <533000000>;
2457
2458				nvidia,emc-auto-cal-interval = <0x001fffff>;
2459				nvidia,emc-mode-1 = <0x000100c2>;
2460				nvidia,emc-mode-2 = <0x00020006>;
2461				nvidia,emc-mode-reset = <0x00000000>;
2462				nvidia,emc-zcal-cnt-long = <0x00000030>;
2463				nvidia,emc-cfg-periodic-qrst;
2464
2465				nvidia,emc-configuration =  < 0x0000001f
2466					0x00000045 0x00000016 0x00000009 0x00000008
2467					0x00000009 0x00000003 0x0000000d 0x00000009
2468					0x00000009 0x00000005 0x00000003 0x00000000
2469					0x00000004 0x00000009 0x00000006 0x0000000d
2470					0x00000010 0x000007df 0x00000000 0x000001f7
2471					0x00000003 0x00000003 0x00000009 0x00000000
2472					0x00000001 0x0000000f 0x0000004b 0x0000004b
2473					0x00000008 0x0000001b 0x0000000c 0x00000004
2474					0x00000002 0x000008aa 0x00000000 0x00000006
2475					0x00000000 0x00000000 0x00006282 0xf0120091
2476					0x00008000 0x0000000a 0x0000000a 0x0000000a
2477					0x0000000a 0x0000000a 0x0000000a 0x0000000a
2478					0x0000000a 0x00000000 0x00000000 0x00000000
2479					0x00000000 0x00000000 0x00000000 0x00000000
2480					0x00000000 0x00000000 0x00000000 0x00000000
2481					0x00000000 0x00000000 0x00000000 0x00000000
2482					0x00000000 0x0000000c 0x0000000c 0x0000000c
2483					0x0000000c 0x000a0220 0x0800003d 0x00000000
2484					0x77ffc004 0x01f1f408 0x00000000 0x00000007
2485					0x08000068 0x08000000 0x00000802 0x00064000
2486					0x000000c0 0x000e000e 0xa0f10000 0x00000000
2487					0x00000000 0x800010d9 0xe0000000 0xff00ff88 >;
2488			};
2489		};
2490	};
2491
2492	hda@70030000 {
2493		status = "okay";
2494	};
2495
2496	ahub@70080000 {
2497		i2s@70080400 { /* i2s1 */
2498			status = "okay";
2499		};
2500
2501		/* BT SCO */
2502		i2s@70080600 { /* i2s3 */
2503			status = "okay";
2504		};
2505	};
2506
2507	sdmmc1: mmc@78000000 {
2508		status = "okay";
2509
2510		cd-gpios = <&gpio TEGRA_GPIO(I, 5) GPIO_ACTIVE_LOW>;
2511		bus-width = <4>;
2512
2513		vmmc-supply = <&vdd_usd>; /* ldo2 */
2514		vqmmc-supply = <&vddio_usd>; /* ldo3 */
2515	};
2516
2517	sdmmc3: mmc@78000400 {
2518		status = "okay";
2519
2520		#address-cells = <1>;
2521		#size-cells = <0>;
2522
2523		assigned-clocks = <&tegra_car TEGRA30_CLK_SDMMC3>;
2524		assigned-clock-parents = <&tegra_car TEGRA30_CLK_PLL_C>;
2525		assigned-clock-rates = <50000000>;
2526
2527		max-frequency = <50000000>;
2528		keep-power-in-suspend;
2529		bus-width = <4>;
2530		non-removable;
2531
2532		mmc-pwrseq = <&brcm_wifi_pwrseq>;
2533		vmmc-supply = <&vdd_3v3_sys>;
2534		vqmmc-supply = <&vdd_1v8_vio>;
2535
2536		/* Azurewave AW-AH663 BCM4330B1 */
2537		wifi@1 {
2538			compatible = "brcm,bcm4329-fmac";
2539			reg = <1>;
2540
2541			interrupt-parent = <&gpio>;
2542			interrupts = <TEGRA_GPIO(O, 4) IRQ_TYPE_LEVEL_HIGH>;
2543			interrupt-names = "host-wake";
2544		};
2545	};
2546
2547	sdmmc4: mmc@78000600 {
2548		status = "okay";
2549		bus-width = <8>;
2550		vmmc-supply = <&vcore_emmc>;
2551		vqmmc-supply = <&vdd_1v8_vio>;
2552		non-removable;
2553	};
2554
2555	usb@7d000000 {
2556		compatible = "nvidia,tegra30-udc";
2557		status = "okay";
2558		dr_mode = "otg";
2559		vbus-supply = <&vdd_vbus_usb1>;
2560	};
2561
2562	usb-phy@7d000000 {
2563		status = "okay";
2564		dr_mode = "otg";
2565		nvidia,hssync-start-delay = <0>;
2566		nvidia,xcvr-lsfslew = <2>;
2567		nvidia,xcvr-lsrslew = <2>;
2568	};
2569
2570	usb@7d008000 {
2571		status = "okay";
2572	};
2573
2574	usb-phy@7d008000 {
2575		status = "okay";
2576		vbus-supply = <&vdd_vbus_usb3>;
2577	};
2578
2579	mains: ac-adapter-detect {
2580		compatible = "gpio-charger";
2581		charger-type = "mains";
2582		gpios = <&gpio TEGRA_GPIO(V, 1) GPIO_ACTIVE_HIGH>;
2583	};
2584
2585	backlight: backlight {
2586		compatible = "pwm-backlight";
2587
2588		enable-gpios = <&gpio TEGRA_GPIO(H, 2) GPIO_ACTIVE_HIGH>;
2589		power-supply = <&vdd_5v0_bl>;
2590		pwms = <&pwm 0 5000000>;
2591
2592		brightness-levels = <1 255>;
2593		num-interpolated-steps = <254>;
2594		default-brightness-level = <15>;
2595	};
2596
2597	/* PMIC has a built-in 32KHz oscillator which is used by PMC */
2598	clk32k_in: clock-32k {
2599		compatible = "fixed-clock";
2600		#clock-cells = <0>;
2601		clock-frequency = <32768>;
2602		clock-output-names = "pmic-oscillator";
2603	};
2604
2605	cpus {
2606		cpu0: cpu@0 {
2607			cpu-supply = <&vdd_cpu>;
2608			operating-points-v2 = <&cpu0_opp_table>;
2609			#cooling-cells = <2>;
2610		};
2611		cpu1: cpu@1 {
2612			cpu-supply = <&vdd_cpu>;
2613			operating-points-v2 = <&cpu0_opp_table>;
2614			#cooling-cells = <2>;
2615		};
2616		cpu2: cpu@2 {
2617			cpu-supply = <&vdd_cpu>;
2618			operating-points-v2 = <&cpu0_opp_table>;
2619			#cooling-cells = <2>;
2620		};
2621		cpu3: cpu@3 {
2622			cpu-supply = <&vdd_cpu>;
2623			operating-points-v2 = <&cpu0_opp_table>;
2624			#cooling-cells = <2>;
2625		};
2626	};
2627
2628	display-panel {
2629		compatible = "panel-lvds";
2630
2631		width-mm = <217>;
2632		height-mm = <136>;
2633
2634		data-mapping = "jeida-24";
2635
2636		panel-timing {
2637			/* 1280x800@60Hz */
2638			clock-frequency = <68000000>;
2639			hactive = <1280>;
2640			vactive = <800>;
2641			hfront-porch = <48>;
2642			hback-porch = <18>;
2643			hsync-len = <30>;
2644			vsync-len = <5>;
2645			vfront-porch = <3>;
2646			vback-porch = <12>;
2647		};
2648	};
2649
2650	extcon-keys {
2651		compatible = "gpio-keys";
2652
2653		switch-dock-insert {
2654			label = "Chagall Dock";
2655			gpios = <&gpio TEGRA_GPIO(S, 4) GPIO_ACTIVE_LOW>;
2656			linux,input-type = <EV_SW>;
2657			linux,code = <SW_DOCK>;
2658			debounce-interval = <10>;
2659			wakeup-event-action = <EV_ACT_ASSERTED>;
2660			wakeup-source;
2661		};
2662
2663		switch-lineout-detect {
2664			label = "Audio dock line-out detect";
2665			gpios = <&gpio TEGRA_GPIO(S, 3) GPIO_ACTIVE_LOW>;
2666			linux,input-type = <EV_SW>;
2667			linux,code = <SW_LINEOUT_INSERT>;
2668			debounce-interval = <10>;
2669			wakeup-event-action = <EV_ACT_ASSERTED>;
2670			wakeup-source;
2671		};
2672	};
2673
2674	gpio-keys {
2675		compatible = "gpio-keys";
2676
2677		key-power {
2678			label = "Power";
2679			gpios = <&gpio TEGRA_GPIO(V, 0) GPIO_ACTIVE_LOW>;
2680			linux,code = <KEY_POWER>;
2681			debounce-interval = <10>;
2682			wakeup-event-action = <EV_ACT_ASSERTED>;
2683			wakeup-source;
2684		};
2685
2686		key-volume-down {
2687			label = "Volume Down";
2688			gpios = <&gpio TEGRA_GPIO(Q, 1) GPIO_ACTIVE_LOW>;
2689			linux,code = <KEY_VOLUMEDOWN>;
2690			debounce-interval = <10>;
2691			wakeup-event-action = <EV_ACT_ASSERTED>;
2692			wakeup-source;
2693		};
2694
2695		key-volume-up {
2696			label = "Volume Up";
2697			gpios = <&gpio TEGRA_GPIO(Q, 0) GPIO_ACTIVE_LOW>;
2698			linux,code = <KEY_VOLUMEUP>;
2699			debounce-interval = <10>;
2700			wakeup-event-action = <EV_ACT_ASSERTED>;
2701			wakeup-source;
2702		};
2703	};
2704
2705	haptic-feedback {
2706		compatible = "gpio-vibrator";
2707		enable-gpios = <&gpio TEGRA_GPIO(U, 4) GPIO_ACTIVE_HIGH>;
2708		vcc-supply = <&vdd_3v3_sys>;
2709	};
2710
2711	opp-table-actmon {
2712		/delete-node/ opp-625000000;
2713		/delete-node/ opp-667000000;
2714		/delete-node/ opp-750000000;
2715		/delete-node/ opp-800000000;
2716		/delete-node/ opp-900000000;
2717	};
2718
2719	opp-table-emc {
2720		/delete-node/ opp-625000000-1200;
2721		/delete-node/ opp-625000000-1250;
2722		/delete-node/ opp-667000000-1200;
2723		/delete-node/ opp-750000000-1300;
2724		/delete-node/ opp-800000000-1300;
2725		/delete-node/ opp-900000000-1350;
2726	};
2727
2728	brcm_wifi_pwrseq: pwrseq-wifi {
2729		compatible = "mmc-pwrseq-simple";
2730
2731		clocks = <&tegra_pmc TEGRA_PMC_CLK_BLINK>;
2732		clock-names = "ext_clock";
2733
2734		reset-gpios = <&gpio TEGRA_GPIO(D, 3) GPIO_ACTIVE_LOW>;
2735		post-power-on-delay-ms = <300>;
2736		power-off-delay-us = <300>;
2737	};
2738
2739	sound {
2740		compatible = "pegatron,tegra-audio-wm8903-chagall",
2741			     "nvidia,tegra-audio-wm8903";
2742		nvidia,model = "Pegatron Chagall WM8903";
2743
2744		nvidia,audio-routing =
2745			"Headphone Jack", "HPOUTR",
2746			"Headphone Jack", "HPOUTL",
2747			"Int Spk", "ROP",
2748			"Int Spk", "RON",
2749			"Int Spk", "LOP",
2750			"Int Spk", "LON",
2751			"IN1R", "Mic Jack",
2752			"DMICDAT", "Int Mic";
2753
2754		nvidia,i2s-controller = <&tegra_i2s1>;
2755		nvidia,audio-codec = <&wm8903>;
2756
2757		nvidia,spkr-en-gpios = <&wm8903 2 GPIO_ACTIVE_HIGH>;
2758		nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_LOW>;
2759		nvidia,headset;
2760
2761		clocks = <&tegra_car TEGRA30_CLK_PLL_A>,
2762			 <&tegra_car TEGRA30_CLK_PLL_A_OUT0>,
2763			 <&tegra_pmc TEGRA_PMC_CLK_OUT_1>;
2764		clock-names = "pll_a", "pll_a_out0", "mclk";
2765
2766		assigned-clocks = <&tegra_car TEGRA30_CLK_EXTERN1>,
2767				  <&tegra_pmc TEGRA_PMC_CLK_OUT_1>;
2768
2769		assigned-clock-parents = <&tegra_car TEGRA30_CLK_PLL_A_OUT0>,
2770					 <&tegra_car TEGRA30_CLK_EXTERN1>;
2771	};
2772
2773	thermal-zones {
2774		/*
2775		 * NCT72 has two sensors:
2776		 *
2777		 *	0: internal that monitors ambient/skin temperature
2778		 *	1: external that is connected to the CPU's diode
2779		 *
2780		 * Ideally we should use userspace thermal governor,
2781		 * but it's a much more complex solution.  The "skin"
2782		 * zone exists as a simpler solution which prevents
2783		 * Chagall from getting too hot from a user's tactile
2784		 * perspective. The CPU zone is intended to protect
2785		 * silicon from damage.
2786		 */
2787
2788		skin-thermal {
2789			polling-delay-passive = <1000>; /* milliseconds */
2790			polling-delay = <5000>; /* milliseconds */
2791
2792			thermal-sensors = <&nct72 0>;
2793
2794			trips {
2795				trip0: skin-alert {
2796					/* throttle at 57C until temperature drops to 56.8C */
2797					temperature = <57000>;
2798					hysteresis = <200>;
2799					type = "passive";
2800				};
2801
2802				trip1: skin-crit {
2803					/* shut down at 65C */
2804					temperature = <65000>;
2805					hysteresis = <2000>;
2806					type = "critical";
2807				};
2808			};
2809
2810			cooling-maps {
2811				map0 {
2812					trip = <&trip0>;
2813					cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
2814							 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
2815							 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
2816							 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
2817							 <&actmon THERMAL_NO_LIMIT
2818								  THERMAL_NO_LIMIT>;
2819				};
2820			};
2821		};
2822
2823		cpu-thermal {
2824			polling-delay-passive = <1000>; /* milliseconds */
2825			polling-delay = <5000>; /* milliseconds */
2826
2827			thermal-sensors = <&nct72 1>;
2828
2829			trips {
2830				trip2: cpu-alert {
2831					/* throttle at 85C until temperature drops to 84.8C */
2832					temperature = <85000>;
2833					hysteresis = <200>;
2834					type = "passive";
2835				};
2836
2837				trip3: cpu-crit {
2838					/* shut down at 90C */
2839					temperature = <90000>;
2840					hysteresis = <2000>;
2841					type = "critical";
2842				};
2843			};
2844
2845			cooling-maps {
2846				map1 {
2847					trip = <&trip2>;
2848					cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
2849							 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
2850							 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
2851							 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
2852							 <&actmon THERMAL_NO_LIMIT
2853								  THERMAL_NO_LIMIT>;
2854				};
2855			};
2856		};
2857	};
2858};
2859