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