1// SPDX-License-Identifier: GPL-2.0
2
3#include <dt-bindings/input/gpio-keys.h>
4#include <dt-bindings/input/input.h>
5#include <dt-bindings/thermal/thermal.h>
6
7#include "tegra30.dtsi"
8#include "tegra30-cpu-opp.dtsi"
9#include "tegra30-cpu-opp-microvolt.dtsi"
10
11/ {
12	chassis-type = "convertible";
13
14	aliases {
15		mmc0 = "/mmc@78000600"; /* eMMC */
16		mmc1 = "/mmc@78000000"; /* uSD slot */
17		mmc2 = "/mmc@78000400"; /* WiFi */
18
19		rtc0 = &pmic;
20		rtc1 = "/rtc@7000e000";
21
22		display0 = &lcd;
23		display1 = &hdmi;
24
25		serial1 = &uartc; /* Bluetooth */
26		serial2 = &uartb; /* GPS */
27	};
28
29	/*
30	 * The decompressor and also some bootloaders rely on a
31	 * pre-existing /chosen node to be available to insert the
32	 * command line and merge other ATAGS info.
33	 */
34	chosen {};
35
36	firmware {
37		trusted-foundations {
38			compatible = "tlm,trusted-foundations";
39			tlm,version-major = <2>;
40			tlm,version-minor = <8>;
41		};
42	};
43
44	memory@80000000 {
45		reg = <0x80000000 0x40000000>;
46	};
47
48	reserved-memory {
49		#address-cells = <1>;
50		#size-cells = <1>;
51		ranges;
52
53		linux,cma@80000000 {
54			compatible = "shared-dma-pool";
55			alloc-ranges = <0x80000000 0x30000000>;
56			size = <0x10000000>;		/* 256MiB */
57			linux,cma-default;
58			reusable;
59		};
60
61		ramoops@beb00000 {
62			compatible = "ramoops";
63			reg = <0xbeb00000 0x10000>;	/* 64kB */
64			console-size = <0x8000>;	/* 32kB */
65			record-size = <0x400>;		/*  1kB */
66			ecc-size = <16>;
67		};
68
69		trustzone@bfe00000 {
70			reg = <0xbfe00000 0x200000>;	/* 2MB */
71			no-map;
72		};
73	};
74
75	host1x@50000000 {
76		hdmi: hdmi@54280000 {
77			status = "okay";
78
79			hdmi-supply = <&hdmi_5v0_sys>;
80			pll-supply = <&vdd_1v8_vio>;
81			vdd-supply = <&vdd_3v3_sys>;
82
83			nvidia,hpd-gpio = <&gpio TEGRA_GPIO(N, 7) GPIO_ACTIVE_HIGH>;
84			nvidia,ddc-i2c-bus = <&hdmi_ddc>;
85		};
86	};
87
88	gpio@6000d000 {
89		init-lpm-in-hog {
90			gpio-hog;
91			gpios = <TEGRA_GPIO(I, 6) GPIO_ACTIVE_HIGH>,
92				<TEGRA_GPIO(B, 1) GPIO_ACTIVE_HIGH>;
93			input;
94		};
95
96		init-lpm-out-hog {
97			gpio-hog;
98			gpios = <TEGRA_GPIO(K, 7) GPIO_ACTIVE_HIGH>,
99				<TEGRA_GPIO(R, 0) GPIO_ACTIVE_HIGH>;
100			output-low;
101		};
102
103		usb-charge-limit-hog {
104			gpio-hog;
105			gpios = <TEGRA_GPIO(R, 1) GPIO_ACTIVE_LOW>;
106			output-high;
107		};
108	};
109
110	vde@6001a000 {
111		assigned-clocks = <&tegra_car TEGRA30_CLK_VDE>;
112		assigned-clock-parents = <&tegra_car TEGRA30_CLK_PLL_P>;
113		assigned-clock-rates = <408000000>;
114	};
115
116	pinmux@70000868 {
117		pinctrl-names = "default";
118		pinctrl-0 = <&state_default>;
119
120		state_default: pinmux {
121			/* SDMMC1 pinmux */
122			sdmmc1_clk {
123				nvidia,pins = "sdmmc1_clk_pz0";
124				nvidia,function = "sdmmc1";
125				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
126				nvidia,tristate = <TEGRA_PIN_DISABLE>;
127				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
128			};
129
130			sdmmc1_cmd {
131				nvidia,pins = "sdmmc1_dat3_py4",
132						"sdmmc1_dat2_py5",
133						"sdmmc1_dat1_py6",
134						"sdmmc1_dat0_py7",
135						"sdmmc1_cmd_pz1";
136				nvidia,function = "sdmmc1";
137				nvidia,pull = <TEGRA_PIN_PULL_UP>;
138				nvidia,tristate = <TEGRA_PIN_DISABLE>;
139				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
140			};
141
142			sdmmc1_cd {
143				nvidia,pins = "gmi_iordy_pi5";
144				nvidia,function = "rsvd1";
145				nvidia,pull = <TEGRA_PIN_PULL_UP>;
146				nvidia,tristate = <TEGRA_PIN_DISABLE>;
147				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
148			};
149
150			sdmmc1_wp {
151				nvidia,pins = "vi_d11_pt3";
152				nvidia,function = "rsvd2";
153				nvidia,pull = <TEGRA_PIN_PULL_UP>;
154				nvidia,tristate = <TEGRA_PIN_DISABLE>;
155				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
156			};
157
158			/* SDMMC2 pinmux */
159			vi_d1_pd5 {
160				nvidia,pins = "vi_d1_pd5",
161						"vi_d2_pl0",
162						"vi_d3_pl1",
163						"vi_d5_pl3",
164						"vi_d7_pl5";
165				nvidia,function = "sdmmc2";
166				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
167				nvidia,tristate = <TEGRA_PIN_DISABLE>;
168				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
169			};
170
171			vi_d8_pl6 {
172				nvidia,pins = "vi_d8_pl6",
173						"vi_d9_pl7";
174				nvidia,function = "sdmmc2";
175				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
176				nvidia,tristate = <TEGRA_PIN_DISABLE>;
177				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
178				nvidia,lock = <0>;
179				nvidia,io-reset = <0>;
180			};
181
182			/* SDMMC3 pinmux */
183			sdmmc3_clk {
184				nvidia,pins = "sdmmc3_clk_pa6";
185				nvidia,function = "sdmmc3";
186				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
187				nvidia,tristate = <TEGRA_PIN_DISABLE>;
188				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
189			};
190
191			sdmmc3_cmd {
192				nvidia,pins = "sdmmc3_cmd_pa7",
193						"sdmmc3_dat0_pb7",
194						"sdmmc3_dat1_pb6",
195						"sdmmc3_dat2_pb5",
196						"sdmmc3_dat3_pb4",
197						"sdmmc3_dat4_pd1",
198						"sdmmc3_dat5_pd0",
199						"sdmmc3_dat6_pd3",
200						"sdmmc3_dat7_pd4";
201				nvidia,function = "sdmmc3";
202				nvidia,pull = <TEGRA_PIN_PULL_UP>;
203				nvidia,tristate = <TEGRA_PIN_DISABLE>;
204				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
205			};
206
207			/* SDMMC4 pinmux */
208			sdmmc4_clk {
209				nvidia,pins = "sdmmc4_clk_pcc4";
210				nvidia,function = "sdmmc4";
211				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
212				nvidia,tristate = <TEGRA_PIN_DISABLE>;
213				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
214			};
215
216			sdmmc4_cmd {
217				nvidia,pins = "sdmmc4_cmd_pt7",
218						"sdmmc4_dat0_paa0",
219						"sdmmc4_dat1_paa1",
220						"sdmmc4_dat2_paa2",
221						"sdmmc4_dat3_paa3",
222						"sdmmc4_dat4_paa4",
223						"sdmmc4_dat5_paa5",
224						"sdmmc4_dat6_paa6",
225						"sdmmc4_dat7_paa7";
226				nvidia,function = "sdmmc4";
227				nvidia,pull = <TEGRA_PIN_PULL_UP>;
228				nvidia,tristate = <TEGRA_PIN_DISABLE>;
229				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
230			};
231
232			sdmmc4_rst_n {
233				nvidia,pins = "sdmmc4_rst_n_pcc3";
234				nvidia,function = "rsvd2";
235				nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
236				nvidia,tristate = <TEGRA_PIN_DISABLE>;
237				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
238			};
239
240			cam_mclk {
241				nvidia,pins = "cam_mclk_pcc0";
242				nvidia,function = "vi_alt3";
243				nvidia,pull = <TEGRA_PIN_PULL_UP>;
244				nvidia,tristate = <TEGRA_PIN_DISABLE>;
245				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
246			};
247
248			drive_sdmmc4 {
249				nvidia,pins = "drive_gma",
250						"drive_gmb",
251						"drive_gmc",
252						"drive_gmd";
253				nvidia,pull-down-strength = <9>;
254				nvidia,pull-up-strength = <9>;
255				nvidia,slew-rate-rising = <TEGRA_PIN_SLEW_RATE_SLOWEST>;
256				nvidia,slew-rate-falling = <TEGRA_PIN_SLEW_RATE_SLOWEST>;
257			};
258
259			/* I2C pinmux */
260			gen1_i2c {
261				nvidia,pins = "gen1_i2c_scl_pc4",
262						"gen1_i2c_sda_pc5";
263				nvidia,function = "i2c1";
264				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
265				nvidia,tristate = <TEGRA_PIN_DISABLE>;
266				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
267				nvidia,open-drain = <TEGRA_PIN_ENABLE>;
268				nvidia,lock = <0>;
269			};
270
271			gen2_i2c {
272				nvidia,pins = "gen2_i2c_scl_pt5",
273						"gen2_i2c_sda_pt6";
274				nvidia,function = "i2c2";
275				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
276				nvidia,tristate = <TEGRA_PIN_DISABLE>;
277				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
278				nvidia,open-drain = <TEGRA_PIN_ENABLE>;
279				nvidia,lock = <0>;
280			};
281
282			cam_i2c {
283				nvidia,pins = "cam_i2c_scl_pbb1",
284						"cam_i2c_sda_pbb2";
285				nvidia,function = "i2c3";
286				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
287				nvidia,tristate = <TEGRA_PIN_DISABLE>;
288				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
289				nvidia,open-drain = <TEGRA_PIN_ENABLE>;
290				nvidia,lock = <0>;
291			};
292
293			ddc_i2c {
294				nvidia,pins = "ddc_scl_pv4",
295						"ddc_sda_pv5";
296				nvidia,function = "i2c4";
297				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
298				nvidia,tristate = <TEGRA_PIN_DISABLE>;
299				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
300				nvidia,lock = <0>;
301			};
302
303			pwr_i2c {
304				nvidia,pins = "pwr_i2c_scl_pz6",
305						"pwr_i2c_sda_pz7";
306				nvidia,function = "i2cpwr";
307				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
308				nvidia,tristate = <TEGRA_PIN_DISABLE>;
309				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
310				nvidia,open-drain = <TEGRA_PIN_ENABLE>;
311				nvidia,lock = <0>;
312			};
313
314			hotplug_i2c {
315				nvidia,pins = "pu4";
316				nvidia,function = "rsvd4";
317				nvidia,pull = <TEGRA_PIN_PULL_UP>;
318				nvidia,tristate = <TEGRA_PIN_DISABLE>;
319				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
320			};
321
322			/* HDMI pinmux */
323			hdmi_cec {
324				nvidia,pins = "hdmi_cec_pee3";
325				nvidia,function = "cec";
326				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
327				nvidia,tristate = <TEGRA_PIN_DISABLE>;
328				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
329				nvidia,open-drain = <TEGRA_PIN_ENABLE>;
330				nvidia,lock = <0>;
331			};
332
333			hdmi_hpd {
334				nvidia,pins = "hdmi_int_pn7";
335				nvidia,function = "hdmi";
336				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
337				nvidia,tristate = <TEGRA_PIN_ENABLE>;
338				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
339			};
340
341			/* UART-A */
342			ulpi_data0_po1 {
343				nvidia,pins = "ulpi_data0_po1";
344				nvidia,function = "uarta";
345				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
346				nvidia,tristate = <TEGRA_PIN_DISABLE>;
347				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
348			};
349
350			ulpi_data1_po2 {
351				nvidia,pins = "ulpi_data1_po2";
352				nvidia,function = "uarta";
353				nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
354				nvidia,tristate = <TEGRA_PIN_ENABLE>;
355				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
356			};
357
358			ulpi_data5_po6 {
359				nvidia,pins = "ulpi_data5_po6";
360				nvidia,function = "uarta";
361				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
362				nvidia,tristate = <TEGRA_PIN_ENABLE>;
363				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
364			};
365
366			ulpi_data7_po0 {
367				nvidia,pins = "ulpi_data7_po0",
368						"ulpi_data2_po3",
369						"ulpi_data3_po4",
370						"ulpi_data4_po5",
371						"ulpi_data6_po7";
372				nvidia,function = "uarta";
373				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
374				nvidia,tristate = <TEGRA_PIN_DISABLE>;
375				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
376			};
377
378			/* UART-B */
379			uartb_txd_rts {
380				nvidia,pins = "uart2_txd_pc2",
381						"uart2_rts_n_pj6";
382				nvidia,function = "uartb";
383				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
384				nvidia,tristate = <TEGRA_PIN_DISABLE>;
385				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
386			};
387
388			uartb_rxd_cts {
389				nvidia,pins = "uart2_rxd_pc3",
390						"uart2_cts_n_pj5";
391				nvidia,function = "uartb";
392				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
393				nvidia,tristate = <TEGRA_PIN_DISABLE>;
394				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
395			};
396
397			/* UART-C */
398			uartc_rxd_cts {
399				nvidia,pins = "uart3_cts_n_pa1",
400						"uart3_rxd_pw7";
401				nvidia,function = "uartc";
402				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
403				nvidia,tristate = <TEGRA_PIN_DISABLE>;
404				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
405			};
406
407			uartc_txd_rts {
408				nvidia,pins = "uart3_rts_n_pc0",
409						"uart3_txd_pw6";
410				nvidia,function = "uartc";
411				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
412				nvidia,tristate = <TEGRA_PIN_DISABLE>;
413				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
414			};
415
416			/* UART-D */
417			ulpi_nxt_py2 {
418				nvidia,pins = "ulpi_nxt_py2";
419				nvidia,function = "uartd";
420				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
421				nvidia,tristate = <TEGRA_PIN_ENABLE>;
422				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
423			};
424
425			ulpi_clk_py0 {
426				nvidia,pins = "ulpi_clk_py0",
427						"ulpi_dir_py1",
428						"ulpi_stp_py3";
429				nvidia,function = "uartd";
430				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
431				nvidia,tristate = <TEGRA_PIN_ENABLE>;
432				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
433			};
434
435			/* I2S pinmux */
436			dap_i2s0 {
437				nvidia,pins = "dap1_fs_pn0",
438						"dap1_din_pn1",
439						"dap1_dout_pn2",
440						"dap1_sclk_pn3";
441				nvidia,function = "i2s0";
442				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
443				nvidia,tristate = <TEGRA_PIN_ENABLE>;
444				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
445			};
446
447			dap_i2s1 {
448				nvidia,pins = "dap2_fs_pa2",
449						"dap2_sclk_pa3",
450						"dap2_din_pa4",
451						"dap2_dout_pa5";
452				nvidia,function = "i2s1";
453				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
454				nvidia,tristate = <TEGRA_PIN_DISABLE>;
455				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
456			};
457
458			dap3_fs {
459				nvidia,pins = "dap3_fs_pp0",
460						"dap3_din_pp1";
461				nvidia,function = "i2s2";
462				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
463				nvidia,tristate = <TEGRA_PIN_ENABLE>;
464				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
465			};
466
467			dap3_dout {
468				nvidia,pins = "dap3_dout_pp2",
469						"dap3_sclk_pp3";
470				nvidia,function = "i2s2";
471				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
472				nvidia,tristate = <TEGRA_PIN_DISABLE>;
473				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
474			};
475
476			dap_i2s3 {
477				nvidia,pins = "dap4_fs_pp4",
478						"dap4_din_pp5",
479						"dap4_dout_pp6",
480						"dap4_sclk_pp7";
481				nvidia,function = "i2s3";
482				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
483				nvidia,tristate = <TEGRA_PIN_DISABLE>;
484				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
485			};
486
487			/* Sensors pinmux */
488			nct_irq {
489				nvidia,pins = "pcc2";
490				nvidia,function = "i2s4";
491				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
492				nvidia,tristate = <TEGRA_PIN_DISABLE>;
493				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
494			};
495
496			/* Asus EC pinmux */
497			ec_irqs {
498				nvidia,pins = "kb_row10_ps2",
499						"kb_row15_ps7";
500				nvidia,function = "kbc";
501				nvidia,pull = <TEGRA_PIN_PULL_UP>;
502				nvidia,tristate = <TEGRA_PIN_DISABLE>;
503				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
504			};
505
506			ec_reqs {
507				nvidia,pins = "kb_col1_pq1";
508				nvidia,function = "kbc";
509				nvidia,pull = <TEGRA_PIN_PULL_UP>;
510				nvidia,tristate = <TEGRA_PIN_DISABLE>;
511				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
512			};
513
514			/* Memory type bootstrap */
515			mem_boostraps {
516				nvidia,pins = "gmi_ad4_pg4",
517						"gmi_ad5_pg5";
518				nvidia,function = "nand";
519				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
520				nvidia,tristate = <TEGRA_PIN_DISABLE>;
521				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
522			};
523
524			/* PCI-e pinmux */
525			pex_l2_rst_n {
526				nvidia,pins = "pex_l2_rst_n_pcc6",
527						"pex_l0_rst_n_pdd1",
528						"pex_l1_rst_n_pdd5";
529				nvidia,function = "pcie";
530				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
531				nvidia,tristate = <TEGRA_PIN_DISABLE>;
532				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
533			};
534
535			pex_l2_clkreq_n {
536				nvidia,pins = "pex_l2_clkreq_n_pcc7",
537						"pex_l0_prsnt_n_pdd0",
538						"pex_l0_clkreq_n_pdd2",
539						"pex_wake_n_pdd3",
540						"pex_l1_prsnt_n_pdd4",
541						"pex_l1_clkreq_n_pdd6",
542						"pex_l2_prsnt_n_pdd7";
543				nvidia,function = "pcie";
544				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
545				nvidia,tristate = <TEGRA_PIN_DISABLE>;
546				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
547			};
548
549			/* SPI pinmux */
550			spi1_mosi_px4 {
551				nvidia,pins = "spi1_mosi_px4",
552						"spi1_sck_px5",
553						"spi1_cs0_n_px6",
554						"spi1_miso_px7";
555				nvidia,function = "spi1";
556				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
557				nvidia,tristate = <TEGRA_PIN_ENABLE>;
558				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
559			};
560
561			hp_detect {
562				nvidia,pins = "spi2_cs1_n_pw2";
563				nvidia,function = "spi2";
564				nvidia,pull = <TEGRA_PIN_PULL_UP>;
565				nvidia,tristate = <TEGRA_PIN_DISABLE>;
566				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
567			};
568
569			mic_detect {
570				nvidia,pins = "spi2_sck_px2";
571				nvidia,function = "spi2";
572				nvidia,pull = <TEGRA_PIN_PULL_UP>;
573				nvidia,tristate = <TEGRA_PIN_DISABLE>;
574				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
575			};
576
577			gmi_a17_pb0 {
578				nvidia,pins = "gmi_a17_pb0",
579						"gmi_a16_pj7";
580				nvidia,function = "spi4";
581				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
582				nvidia,tristate = <TEGRA_PIN_ENABLE>;
583				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
584			};
585
586			gmi_a18_pb1 {
587				nvidia,pins = "gmi_a18_pb1";
588				nvidia,function = "spi4";
589				nvidia,pull = <TEGRA_PIN_PULL_UP>;
590				nvidia,tristate = <TEGRA_PIN_DISABLE>;
591				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
592			};
593
594			gmi_a19_pk7 {
595				nvidia,pins = "gmi_a19_pk7";
596				nvidia,function = "spi4";
597				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
598				nvidia,tristate = <TEGRA_PIN_DISABLE>;
599				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
600			};
601
602			/* Display A pinmux */
603			lcd_pwr0_pb2 {
604				nvidia,pins = "lcd_pwr0_pb2",
605						"lcd_pclk_pb3",
606						"lcd_pwr1_pc1",
607						"lcd_d0_pe0",
608						"lcd_d1_pe1",
609						"lcd_d2_pe2",
610						"lcd_d3_pe3",
611						"lcd_d4_pe4",
612						"lcd_d5_pe5",
613						"lcd_d6_pe6",
614						"lcd_d7_pe7",
615						"lcd_d8_pf0",
616						"lcd_d9_pf1",
617						"lcd_d10_pf2",
618						"lcd_d11_pf3",
619						"lcd_d12_pf4",
620						"lcd_d13_pf5",
621						"lcd_d14_pf6",
622						"lcd_d15_pf7",
623						"lcd_de_pj1",
624						"lcd_hsync_pj3",
625						"lcd_vsync_pj4",
626						"lcd_d16_pm0",
627						"lcd_d17_pm1",
628						"lcd_d18_pm2",
629						"lcd_d19_pm3",
630						"lcd_d20_pm4",
631						"lcd_d21_pm5",
632						"lcd_d22_pm6",
633						"lcd_d23_pm7",
634						"lcd_dc0_pn6",
635						"lcd_sdin_pz2";
636				nvidia,function = "displaya";
637				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
638				nvidia,tristate = <TEGRA_PIN_DISABLE>;
639				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
640			};
641
642			lcd_cs0_n_pn4 {
643				nvidia,pins = "lcd_cs0_n_pn4",
644						"lcd_sdout_pn5",
645						"lcd_wr_n_pz3";
646				nvidia,function = "displaya";
647				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
648				nvidia,tristate = <TEGRA_PIN_ENABLE>;
649				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
650			};
651
652			blink {
653				nvidia,pins = "clk_32k_out_pa0";
654				nvidia,function = "blink";
655				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
656				nvidia,tristate = <TEGRA_PIN_DISABLE>;
657				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
658			};
659
660			/* KBC keys */
661			kb_col0_pq0 {
662				nvidia,pins = "kb_col0_pq0";
663				nvidia,function = "kbc";
664				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
665				nvidia,tristate = <TEGRA_PIN_ENABLE>;
666				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
667			};
668
669			kb_col1_pq1 {
670				nvidia,pins = "kb_row1_pr1",
671						"kb_row3_pr3",
672						"kb_row8_ps0",
673						"kb_row14_ps6";
674				nvidia,function = "kbc";
675				nvidia,pull = <TEGRA_PIN_PULL_UP>;
676				nvidia,tristate = <TEGRA_PIN_DISABLE>;
677				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
678			};
679
680			kb_col4_pq4 {
681				nvidia,pins = "kb_col4_pq4",
682						"kb_col5_pq5",
683						"kb_col7_pq7",
684						"kb_row2_pr2",
685						"kb_row4_pr4",
686						"kb_row5_pr5",
687						"kb_row12_ps4",
688						"kb_row13_ps5";
689				nvidia,function = "kbc";
690				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
691				nvidia,tristate = <TEGRA_PIN_ENABLE>;
692				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
693			};
694
695			gmi_wp_n_pc7 {
696				nvidia,pins = "gmi_wp_n_pc7",
697						"gmi_wait_pi7",
698						"gmi_cs3_n_pk4";
699				nvidia,function = "rsvd1";
700				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
701				nvidia,tristate = <TEGRA_PIN_ENABLE>;
702				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
703			};
704
705			gmi_cs0_n_pj0 {
706				nvidia,pins = "gmi_cs0_n_pj0",
707						"gmi_cs1_n_pj2",
708						"gmi_cs2_n_pk3";
709				nvidia,function = "rsvd1";
710				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
711				nvidia,tristate = <TEGRA_PIN_ENABLE>;
712				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
713			};
714
715			vi_pclk_pt0 {
716				nvidia,pins = "vi_pclk_pt0";
717				nvidia,function = "rsvd1";
718				nvidia,pull = <TEGRA_PIN_PULL_UP>;
719				nvidia,tristate = <TEGRA_PIN_ENABLE>;
720				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
721				nvidia,lock = <0>;
722				nvidia,io-reset = <0>;
723			};
724
725			/* GPIO keys pinmux */
726			power_key {
727				nvidia,pins = "pv0";
728				nvidia,function = "rsvd1";
729				nvidia,pull = <TEGRA_PIN_PULL_UP>;
730				nvidia,tristate = <TEGRA_PIN_ENABLE>;
731				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
732			};
733
734			vol_keys {
735				nvidia,pins = "kb_col2_pq2",
736						"kb_col3_pq3";
737				nvidia,function = "rsvd4";
738				nvidia,pull = <TEGRA_PIN_PULL_UP>;
739				nvidia,tristate = <TEGRA_PIN_ENABLE>;
740				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
741			};
742
743			/* Bluetooth */
744			bt_shutdown {
745				nvidia,pins = "pu0";
746				nvidia,function = "rsvd4";
747				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
748				nvidia,tristate = <TEGRA_PIN_DISABLE>;
749				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
750			};
751
752			bt_dev_wake {
753				nvidia,pins = "pu1";
754				nvidia,function = "rsvd1";
755				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
756				nvidia,tristate = <TEGRA_PIN_DISABLE>;
757				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
758			};
759
760			bt_host_wake {
761				nvidia,pins = "pu6";
762				nvidia,function = "rsvd4";
763				nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
764				nvidia,tristate = <TEGRA_PIN_DISABLE>;
765				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
766			};
767
768			pu2 {
769				nvidia,pins = "pu2";
770				nvidia,function = "rsvd1";
771				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
772				nvidia,tristate = <TEGRA_PIN_DISABLE>;
773				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
774			};
775
776			pu3 {
777				nvidia,pins = "pu3";
778				nvidia,function = "rsvd4";
779				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
780				nvidia,tristate = <TEGRA_PIN_DISABLE>;
781				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
782			};
783
784			pcc1 {
785				nvidia,pins = "pcc1";
786				nvidia,function = "rsvd2";
787				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
788				nvidia,tristate = <TEGRA_PIN_ENABLE>;
789				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
790			};
791
792			pv2 {
793				nvidia,pins = "pv2";
794				nvidia,function = "rsvd2";
795				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
796				nvidia,tristate = <TEGRA_PIN_DISABLE>;
797				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
798			};
799
800			pv3 {
801				nvidia,pins = "pv3";
802				nvidia,function = "rsvd2";
803				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
804				nvidia,tristate = <TEGRA_PIN_ENABLE>;
805				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
806			};
807
808			vi_vsync_pd6 {
809				nvidia,pins = "vi_vsync_pd6",
810						"vi_hsync_pd7";
811				nvidia,function = "rsvd2";
812				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
813				nvidia,tristate = <TEGRA_PIN_DISABLE>;
814				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
815				nvidia,lock = <0>;
816				nvidia,io-reset = <0>;
817			};
818
819			vi_d10_pt2 {
820				nvidia,pins = "vi_d10_pt2",
821						"vi_d0_pt4", "pbb0";
822				nvidia,function = "rsvd2";
823				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
824				nvidia,tristate = <TEGRA_PIN_DISABLE>;
825				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
826			};
827
828			kb_row0_pr0 {
829				nvidia,pins = "kb_row0_pr0";
830				nvidia,function = "rsvd4";
831				nvidia,pull = <TEGRA_PIN_PULL_UP>;
832				nvidia,tristate = <TEGRA_PIN_DISABLE>;
833				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
834			};
835
836			gmi_ad0_pg0 {
837				nvidia,pins = "gmi_ad0_pg0",
838						"gmi_ad1_pg1",
839						"gmi_ad2_pg2",
840						"gmi_ad3_pg3",
841						"gmi_ad6_pg6",
842						"gmi_ad7_pg7",
843						"gmi_wr_n_pi0",
844						"gmi_oe_n_pi1",
845						"gmi_dqs_pi2",
846						"gmi_adv_n_pk0",
847						"gmi_clk_pk1";
848				nvidia,function = "nand";
849				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
850				nvidia,tristate = <TEGRA_PIN_ENABLE>;
851				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
852			};
853
854			gmi_ad13_ph5 {
855				nvidia,pins = "gmi_ad13_ph5";
856				nvidia,function = "nand";
857				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
858				nvidia,tristate = <TEGRA_PIN_DISABLE>;
859				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
860			};
861
862			gmi_ad10_ph2 {
863				nvidia,pins = "gmi_ad10_ph2",
864						"gmi_ad11_ph3",
865						"gmi_ad14_ph6";
866				nvidia,function = "nand";
867				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
868				nvidia,tristate = <TEGRA_PIN_DISABLE>;
869				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
870			};
871
872			gmi_ad12_ph4 {
873				nvidia,pins = "gmi_ad12_ph4",
874						"gmi_rst_n_pi4",
875						"gmi_cs7_n_pi6";
876				nvidia,function = "nand";
877				nvidia,pull = <TEGRA_PIN_PULL_UP>;
878				nvidia,tristate = <TEGRA_PIN_DISABLE>;
879				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
880			};
881
882			/* Vibrator control */
883			vibrator {
884				nvidia,pins = "gmi_ad15_ph7";
885				nvidia,function = "nand";
886				nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
887				nvidia,tristate = <TEGRA_PIN_DISABLE>;
888				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
889			};
890
891			/* PWM pimnmux */
892			pwm_0 {
893				nvidia,pins = "gmi_ad8_ph0";
894				nvidia,function = "pwm0";
895				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
896				nvidia,tristate = <TEGRA_PIN_DISABLE>;
897				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
898			};
899
900			pwm_2 {
901				nvidia,pins = "pu5";
902				nvidia,function = "pwm2";
903				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
904				nvidia,tristate = <TEGRA_PIN_DISABLE>;
905				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
906			};
907
908			gmi_cs6_n_pi3 {
909				nvidia,pins = "gmi_cs6_n_pi3";
910				nvidia,function = "gmi";
911				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
912				nvidia,tristate = <TEGRA_PIN_ENABLE>;
913				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
914			};
915
916			/* Spdif pinmux */
917			spdif_out {
918				nvidia,pins = "spdif_out_pk5";
919				nvidia,function = "spdif";
920				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
921				nvidia,tristate = <TEGRA_PIN_ENABLE>;
922				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
923			};
924
925			spdif_in {
926				nvidia,pins = "spdif_in_pk6";
927				nvidia,function = "spdif";
928				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
929				nvidia,tristate = <TEGRA_PIN_ENABLE>;
930				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
931			};
932
933			vi_d4_pl2 {
934				nvidia,pins = "vi_d4_pl2";
935				nvidia,function = "vi";
936				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
937				nvidia,tristate = <TEGRA_PIN_DISABLE>;
938				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
939			};
940
941			vi_d6_pl4 {
942				nvidia,pins = "vi_d6_pl4";
943				nvidia,function = "vi";
944				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
945				nvidia,tristate = <TEGRA_PIN_DISABLE>;
946				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
947				nvidia,lock = <0>;
948				nvidia,io-reset = <0>;
949			};
950
951			vi_mclk_pt1 {
952				nvidia,pins = "vi_mclk_pt1";
953				nvidia,function = "vi";
954				nvidia,pull = <TEGRA_PIN_PULL_UP>;
955				nvidia,tristate = <TEGRA_PIN_DISABLE>;
956				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
957			};
958
959			jtag_rtck {
960				nvidia,pins = "jtag_rtck_pu7";
961				nvidia,function = "rtck";
962				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
963				nvidia,tristate = <TEGRA_PIN_DISABLE>;
964				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
965			};
966
967			crt_hsync_pv6 {
968				nvidia,pins = "crt_hsync_pv6",
969						"crt_vsync_pv7";
970				nvidia,function = "crt";
971				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
972				nvidia,tristate = <TEGRA_PIN_ENABLE>;
973				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
974			};
975
976			clk1_out {
977				nvidia,pins = "clk1_out_pw4";
978				nvidia,function = "extperiph1";
979				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
980				nvidia,tristate = <TEGRA_PIN_DISABLE>;
981				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
982			};
983
984			clk2_out {
985				nvidia,pins = "clk2_out_pw5";
986				nvidia,function = "extperiph2";
987				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
988				nvidia,tristate = <TEGRA_PIN_DISABLE>;
989				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
990			};
991
992			clk3_out {
993				nvidia,pins = "clk3_out_pee0";
994				nvidia,function = "extperiph3";
995				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
996				nvidia,tristate = <TEGRA_PIN_ENABLE>;
997				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
998			};
999
1000			sys_clk_req {
1001				nvidia,pins = "sys_clk_req_pz5";
1002				nvidia,function = "sysclk";
1003				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
1004				nvidia,tristate = <TEGRA_PIN_DISABLE>;
1005				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
1006			};
1007
1008			pbb4 {
1009				nvidia,pins = "pbb4";
1010				nvidia,function = "vgp4";
1011				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
1012				nvidia,tristate = <TEGRA_PIN_DISABLE>;
1013				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
1014			};
1015
1016			pbb5 {
1017				nvidia,pins = "pbb5";
1018				nvidia,function = "vgp5";
1019				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
1020				nvidia,tristate = <TEGRA_PIN_DISABLE>;
1021				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
1022			};
1023
1024			pbb6 {
1025				nvidia,pins = "pbb6";
1026				nvidia,function = "vgp6";
1027				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
1028				nvidia,tristate = <TEGRA_PIN_DISABLE>;
1029				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
1030			};
1031
1032			clk2_req_pcc5 {
1033				nvidia,pins = "clk2_req_pcc5",
1034						"clk1_req_pee2";
1035				nvidia,function = "dap";
1036				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
1037				nvidia,tristate = <TEGRA_PIN_DISABLE>;
1038				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
1039			};
1040
1041			clk3_req_pee1 {
1042				nvidia,pins = "clk3_req_pee1";
1043				nvidia,function = "dev3";
1044				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
1045				nvidia,tristate = <TEGRA_PIN_ENABLE>;
1046				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
1047			};
1048
1049			owr {
1050				nvidia,pins = "owr";
1051				nvidia,function = "owr";
1052				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
1053				nvidia,tristate = <TEGRA_PIN_DISABLE>;
1054				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
1055			};
1056
1057			/* GPIO power/drive control */
1058			drive_dap1 {
1059				nvidia,pins = "drive_dap1",
1060						"drive_dap2",
1061						"drive_dbg",
1062						"drive_at5",
1063						"drive_gme",
1064						"drive_ddc",
1065						"drive_ao1",
1066						"drive_uart3";
1067				nvidia,high-speed-mode = <TEGRA_PIN_DISABLE>;
1068				nvidia,schmitt = <TEGRA_PIN_ENABLE>;
1069				nvidia,low-power-mode = <TEGRA_PIN_LP_DRIVE_DIV_1>;
1070				nvidia,pull-down-strength = <31>;
1071				nvidia,pull-up-strength = <31>;
1072				nvidia,slew-rate-rising = <TEGRA_PIN_SLEW_RATE_FASTEST>;
1073				nvidia,slew-rate-falling = <TEGRA_PIN_SLEW_RATE_FASTEST>;
1074			};
1075
1076			drive_sdio1 {
1077				nvidia,pins = "drive_sdio1",
1078						"drive_sdio3";
1079				nvidia,high-speed-mode = <TEGRA_PIN_DISABLE>;
1080				nvidia,schmitt = <TEGRA_PIN_DISABLE>;
1081				nvidia,pull-down-strength = <46>;
1082				nvidia,pull-up-strength = <42>;
1083				nvidia,slew-rate-rising = <TEGRA_PIN_SLEW_RATE_FAST>;
1084				nvidia,slew-rate-falling = <TEGRA_PIN_SLEW_RATE_FAST>;
1085			};
1086		};
1087	};
1088
1089	serial@70006040 {
1090		compatible = "nvidia,tegra30-hsuart";
1091		/delete-property/ reg-shift;
1092		status = "okay";
1093
1094		/* Broadcom GPS BCM47511 */
1095	};
1096
1097	serial@70006200 {
1098		compatible = "nvidia,tegra30-hsuart";
1099		/delete-property/ reg-shift;
1100		status = "okay";
1101
1102		nvidia,adjust-baud-rates = <0 9600 100>,
1103					   <9600 115200 200>,
1104					   <1000000 4000000 136>;
1105
1106		bluetooth {
1107			max-speed = <4000000>;
1108
1109			clocks = <&tegra_pmc TEGRA_PMC_CLK_BLINK>;
1110			clock-names = "txco";
1111
1112			interrupt-parent = <&gpio>;
1113			interrupts = <TEGRA_GPIO(U, 6) IRQ_TYPE_EDGE_RISING>;
1114			interrupt-names = "host-wakeup";
1115
1116			device-wakeup-gpios = <&gpio TEGRA_GPIO(U, 1) GPIO_ACTIVE_HIGH>;
1117			shutdown-gpios =      <&gpio TEGRA_GPIO(U, 0) GPIO_ACTIVE_HIGH>;
1118
1119			vbat-supply  = <&vdd_3v3_com>;
1120			vddio-supply = <&vdd_1v8_vio>;
1121		};
1122	};
1123
1124	pwm@7000a000 {
1125		status = "okay";
1126	};
1127
1128	lcd_ddc: i2c@7000c000 {
1129		status = "okay";
1130		clock-frequency = <100000>;
1131	};
1132
1133	i2c@7000c400 {
1134		status = "okay";
1135		clock-frequency = <400000>;
1136	};
1137
1138	i2c@7000c500 {
1139		status = "okay";
1140
1141		/* Aichi AMI306 digital compass */
1142		magnetometer@e {
1143			compatible = "asahi-kasei,ak8974";
1144			reg = <0x0e>;
1145
1146			avdd-supply = <&vdd_3v3_sys>;
1147			dvdd-supply = <&vdd_1v8_vio>;
1148		};
1149
1150		/* Dynaimage ambient light sensor */
1151		light-sensor@1c {
1152			compatible = "dynaimage,al3010";
1153			reg = <0x1c>;
1154
1155			interrupt-parent = <&gpio>;
1156			interrupts = <TEGRA_GPIO(Z, 2) IRQ_TYPE_LEVEL_HIGH>;
1157
1158			vdd-supply = <&vdd_3v3_sys>;
1159		};
1160
1161		gyroscope@68 {
1162			compatible = "invensense,mpu3050";
1163			reg = <0x68>;
1164
1165			interrupt-parent = <&gpio>;
1166			interrupts = <TEGRA_GPIO(X, 1) IRQ_TYPE_EDGE_RISING>;
1167
1168			vdd-supply    = <&vdd_3v3_sys>;
1169			vlogic-supply = <&vdd_1v8_vio>;
1170
1171			i2c-gate {
1172				#address-cells = <1>;
1173				#size-cells = <0>;
1174
1175				accelerometer@f {
1176					compatible = "kionix,kxtf9";
1177					reg = <0x0f>;
1178
1179					interrupt-parent = <&gpio>;
1180					interrupts = <TEGRA_GPIO(O, 5) IRQ_TYPE_EDGE_RISING>;
1181
1182					vdd-supply = <&vdd_1v8_vio>;
1183					vddio-supply = <&vdd_1v8_vio>;
1184				};
1185			};
1186		};
1187	};
1188
1189	hdmi_ddc: i2c@7000c700 {
1190		status = "okay";
1191		clock-frequency = <93750>;
1192	};
1193
1194	i2c@7000d000 {
1195		status = "okay";
1196		clock-frequency = <400000>;
1197
1198		/* Texas Instruments TPS659110 PMIC */
1199		pmic: pmic@2d {
1200			compatible = "ti,tps65911";
1201			reg = <0x2d>;
1202
1203			interrupts = <GIC_SPI 86 IRQ_TYPE_LEVEL_HIGH>;
1204			#interrupt-cells = <2>;
1205			interrupt-controller;
1206			wakeup-source;
1207
1208			ti,en-gpio-sleep = <0 0 1 0 0 0 0 0 0>;
1209			ti,system-power-controller;
1210			ti,sleep-keep-ck32k;
1211			ti,sleep-enable;
1212
1213			#gpio-cells = <2>;
1214			gpio-controller;
1215
1216			vcc1-supply = <&vdd_5v0_bat>;
1217			vcc2-supply = <&vdd_5v0_bat>;
1218			vcc3-supply = <&vdd_1v8_vio>;
1219			vcc4-supply = <&vdd_5v0_sys>;
1220			vcc5-supply = <&vdd_5v0_bat>;
1221			vcc6-supply = <&vdd_3v3_sys>;
1222			vcc7-supply = <&vdd_5v0_bat>;
1223			vccio-supply = <&vdd_5v0_bat>;
1224
1225			pmic-sleep-hog {
1226				gpio-hog;
1227				gpios = <2 GPIO_ACTIVE_HIGH>;
1228				output-high;
1229			};
1230
1231			regulators {
1232				/* VDD1 is not used by Transformers */
1233
1234				vddio_ddr: vdd2 {
1235					regulator-name = "vddio_ddr";
1236					regulator-min-microvolt = <1200000>;
1237					regulator-max-microvolt = <1200000>;
1238					regulator-always-on;
1239					regulator-boot-on;
1240				};
1241
1242				vdd_cpu: vddctrl {
1243					regulator-name = "vdd_cpu,vdd_sys";
1244					regulator-min-microvolt = <600000>;
1245					regulator-max-microvolt = <1400000>;
1246					regulator-coupled-with = <&vdd_core>;
1247					regulator-coupled-max-spread = <300000>;
1248					regulator-max-step-microvolt = <100000>;
1249					regulator-always-on;
1250					regulator-boot-on;
1251					ti,regulator-ext-sleep-control = <1>;
1252
1253					nvidia,tegra-cpu-regulator;
1254				};
1255
1256				vdd_1v8_vio: vio {
1257					regulator-name = "vdd_1v8_gen";
1258					/* FIXME: eMMC won't work, if set to 1.8 V */
1259					regulator-min-microvolt = <1500000>;
1260					regulator-max-microvolt = <3300000>;
1261					regulator-always-on;
1262					regulator-boot-on;
1263				};
1264
1265				/* eMMC VDD */
1266				vcore_emmc: ldo1 {
1267					regulator-name = "vdd_emmc_core";
1268					regulator-min-microvolt = <3300000>;
1269					regulator-max-microvolt = <3300000>;
1270					regulator-always-on;
1271				};
1272
1273				/* uSD slot VDD */
1274				vdd_usd: ldo2 {
1275					regulator-name = "vdd_usd";
1276					regulator-min-microvolt = <3100000>;
1277					regulator-max-microvolt = <3100000>;
1278					/* FIXME: Without this, voltage switching fails */
1279					regulator-always-on;
1280				};
1281
1282				/* uSD slot VDDIO */
1283				vddio_usd: ldo3 {
1284					regulator-name = "vddio_usd";
1285					regulator-min-microvolt = <1800000>;
1286					regulator-max-microvolt = <3100000>;
1287				};
1288
1289				ldo4 {
1290					regulator-name = "vdd_rtc";
1291					regulator-min-microvolt = <1200000>;
1292					regulator-max-microvolt = <1200000>;
1293					regulator-always-on;
1294				};
1295
1296				/* LDO5 is not used by Transformers */
1297
1298				ldo6 {
1299					regulator-name = "avdd_dsi_csi,pwrdet_mipi";
1300					regulator-min-microvolt = <1200000>;
1301					regulator-max-microvolt = <1200000>;
1302				};
1303
1304				ldo7 {
1305					regulator-name = "vdd_pllm,x,u,a_p_c_s";
1306					regulator-min-microvolt = <1200000>;
1307					regulator-max-microvolt = <1200000>;
1308					regulator-always-on;
1309					regulator-boot-on;
1310					ti,regulator-ext-sleep-control = <8>;
1311				};
1312
1313				ldo8 {
1314					regulator-name = "vdd_ddr_hs";
1315					regulator-min-microvolt = <1000000>;
1316					regulator-max-microvolt = <1000000>;
1317					regulator-always-on;
1318					ti,regulator-ext-sleep-control = <8>;
1319				};
1320			};
1321		};
1322
1323		nct72: temperature-sensor@4c {
1324			compatible = "onnn,nct1008";
1325			reg = <0x4c>;
1326
1327			interrupt-parent = <&gpio>;
1328			interrupts = <TEGRA_GPIO(CC, 2) IRQ_TYPE_EDGE_FALLING>;
1329
1330			vcc-supply = <&vdd_3v3_sys>;
1331			#thermal-sensor-cells = <1>;
1332		};
1333
1334		vdd_core: core-regulator@60 {
1335			compatible = "ti,tps62361";
1336			reg = <0x60>;
1337
1338			regulator-name = "tps62361-vout";
1339			regulator-min-microvolt = <500000>;
1340			regulator-max-microvolt = <1770000>;
1341			regulator-coupled-with = <&vdd_cpu>;
1342			regulator-coupled-max-spread = <300000>;
1343			regulator-max-step-microvolt = <100000>;
1344			regulator-boot-on;
1345			regulator-always-on;
1346			ti,enable-vout-discharge;
1347			ti,vsel0-state-high;
1348			ti,vsel1-state-high;
1349
1350			nvidia,tegra-core-regulator;
1351		};
1352	};
1353
1354	pmc@7000e400 {
1355		status = "okay";
1356		nvidia,invert-interrupt;
1357		/* FIXME: LP1 doesn't work at the moment */
1358		nvidia,suspend-mode = <2>;
1359		nvidia,cpu-pwr-good-time = <2000>;
1360		nvidia,cpu-pwr-off-time = <200>;
1361		nvidia,core-pwr-good-time = <3845 3845>;
1362		nvidia,core-pwr-off-time = <0>;
1363		nvidia,core-power-req-active-high;
1364		nvidia,sys-clock-req-active-high;
1365		core-supply = <&vdd_core>;
1366
1367		/* Set DEV_OFF + PWR_OFF_SET bit in DCDC control register of TPS65911 PMIC  */
1368		i2c-thermtrip {
1369			nvidia,i2c-controller-id = <4>;
1370			nvidia,bus-addr = <0x2d>;
1371			nvidia,reg-addr = <0x3f>;
1372			nvidia,reg-data = <0x81>;
1373		};
1374	};
1375
1376	hda@70030000 {
1377		status = "okay";
1378	};
1379
1380	ahub@70080000 {
1381		i2s@70080400 {		/* i2s1 */
1382			status = "okay";
1383		};
1384
1385		/* BT SCO */
1386		i2s@70080600 {		/* i2s3 */
1387			status = "okay";
1388		};
1389	};
1390
1391	mmc@78000000 {
1392		status = "okay";
1393
1394		/* FIXME: Full 208Mhz clock rate doesn't work reliably */
1395		max-frequency = <104000000>;
1396
1397		cd-gpios = <&gpio TEGRA_GPIO(I, 5) GPIO_ACTIVE_LOW>;
1398		bus-width = <4>;
1399
1400		vmmc-supply = <&vdd_usd>;	/* ldo2 */
1401		vqmmc-supply = <&vddio_usd>;	/* ldo3 */
1402	};
1403
1404	mmc@78000400 {
1405		status = "okay";
1406
1407		#address-cells = <1>;
1408		#size-cells = <0>;
1409
1410		assigned-clocks = <&tegra_car TEGRA30_CLK_SDMMC3>;
1411		assigned-clock-parents = <&tegra_car TEGRA30_CLK_PLL_C>;
1412		assigned-clock-rates = <50000000>;
1413
1414		max-frequency = <50000000>;
1415		keep-power-in-suspend;
1416		bus-width = <4>;
1417		non-removable;
1418
1419		mmc-pwrseq = <&brcm_wifi_pwrseq>;
1420		vmmc-supply = <&vdd_3v3_com>;
1421		vqmmc-supply = <&vdd_1v8_vio>;
1422
1423		/* Azurewave AW-NH615 BCM4329B1 or AW-NH665 BCM4330B1 */
1424		wifi@1 {
1425			compatible = "brcm,bcm4329-fmac";
1426			reg = <1>;
1427
1428			interrupt-parent = <&gpio>;
1429			interrupts = <TEGRA_GPIO(O, 4) IRQ_TYPE_LEVEL_HIGH>;
1430			interrupt-names = "host-wake";
1431		};
1432	};
1433
1434	mmc@78000600 {
1435		status = "okay";
1436		bus-width = <8>;
1437		vmmc-supply = <&vcore_emmc>;
1438		vqmmc-supply = <&vdd_1v8_vio>;
1439		mmc-ddr-3_3v;
1440		non-removable;
1441	};
1442
1443	/* USB via ASUS connector */
1444	usb@7d000000 {
1445		compatible = "nvidia,tegra30-udc";
1446		status = "okay";
1447		dr_mode = "peripheral";
1448	};
1449
1450	usb-phy@7d000000 {
1451		status = "okay";
1452		dr_mode = "peripheral";
1453		nvidia,hssync-start-delay = <0>;
1454		nvidia,xcvr-lsfslew = <2>;
1455		nvidia,xcvr-lsrslew = <2>;
1456		vbus-supply = <&vdd_5v0_sys>;
1457	};
1458
1459	/* Dock's USB port */
1460	usb@7d008000 {
1461		status = "okay";
1462	};
1463
1464	usb-phy@7d008000 {
1465		status = "okay";
1466		vbus-supply = <&vdd_5v0_bat>;
1467	};
1468
1469	mains: ac-adapter-detect {
1470		compatible = "gpio-charger";
1471		charger-type = "mains";
1472		gpios = <&gpio TEGRA_GPIO(H, 5) GPIO_ACTIVE_HIGH>;
1473	};
1474
1475	backlight: backlight {
1476		compatible = "pwm-backlight";
1477
1478		enable-gpios = <&gpio TEGRA_GPIO(H, 2) GPIO_ACTIVE_HIGH>;
1479		power-supply = <&vdd_5v0_bl>;
1480		pwms = <&pwm 0 4000000>;
1481
1482		brightness-levels = <1 255>;
1483		num-interpolated-steps = <254>;
1484		default-brightness-level = <40>;
1485	};
1486
1487	/* PMIC has a built-in 32KHz oscillator which is used by PMC */
1488	clk32k_in: clock-32k {
1489		compatible = "fixed-clock";
1490		#clock-cells = <0>;
1491		clock-frequency = <32768>;
1492		clock-output-names = "pmic-oscillator";
1493	};
1494
1495	cpus {
1496		cpu0: cpu@0 {
1497			cpu-supply = <&vdd_cpu>;
1498			operating-points-v2 = <&cpu0_opp_table>;
1499			#cooling-cells = <2>;
1500		};
1501		cpu1: cpu@1 {
1502			cpu-supply = <&vdd_cpu>;
1503			operating-points-v2 = <&cpu0_opp_table>;
1504			#cooling-cells = <2>;
1505		};
1506		cpu2: cpu@2 {
1507			cpu-supply = <&vdd_cpu>;
1508			operating-points-v2 = <&cpu0_opp_table>;
1509			#cooling-cells = <2>;
1510		};
1511		cpu3: cpu@3 {
1512			cpu-supply = <&vdd_cpu>;
1513			operating-points-v2 = <&cpu0_opp_table>;
1514			#cooling-cells = <2>;
1515		};
1516	};
1517
1518	extcon-keys {
1519		compatible = "gpio-keys";
1520
1521		switch-dock-hall-sensor {
1522			label = "Lid sensor";
1523			gpios = <&gpio TEGRA_GPIO(S, 6) GPIO_ACTIVE_LOW>;
1524			linux,input-type = <EV_SW>;
1525			linux,code = <SW_LID>;
1526			debounce-interval = <500>;
1527			wakeup-event-action = <EV_ACT_ASSERTED>;
1528			wakeup-source;
1529		};
1530
1531		switch-lineout-detect {
1532			label = "Audio dock line-out detect";
1533			gpios = <&gpio TEGRA_GPIO(X, 3) GPIO_ACTIVE_LOW>;
1534			linux,input-type = <EV_SW>;
1535			linux,code = <SW_LINEOUT_INSERT>;
1536			debounce-interval = <10>;
1537			wakeup-event-action = <EV_ACT_ASSERTED>;
1538			wakeup-source;
1539		};
1540	};
1541
1542	gpio-keys {
1543		compatible = "gpio-keys";
1544
1545		key-power {
1546			label = "Power";
1547			gpios = <&gpio TEGRA_GPIO(V, 0) GPIO_ACTIVE_LOW>;
1548			linux,code = <KEY_POWER>;
1549			debounce-interval = <10>;
1550			wakeup-event-action = <EV_ACT_ASSERTED>;
1551			wakeup-source;
1552		};
1553
1554		key-volume-down {
1555			label = "Volume Down";
1556			gpios = <&gpio TEGRA_GPIO(Q, 3) GPIO_ACTIVE_LOW>;
1557			linux,code = <KEY_VOLUMEDOWN>;
1558			debounce-interval = <10>;
1559			wakeup-event-action = <EV_ACT_ASSERTED>;
1560			wakeup-source;
1561		};
1562
1563		key-volume-up {
1564			label = "Volume Up";
1565			gpios = <&gpio TEGRA_GPIO(Q, 2) GPIO_ACTIVE_LOW>;
1566			linux,code = <KEY_VOLUMEUP>;
1567			debounce-interval = <10>;
1568			wakeup-event-action = <EV_ACT_ASSERTED>;
1569			wakeup-source;
1570		};
1571	};
1572
1573	vdd_5v0_bat: regulator-bat {
1574		compatible = "regulator-fixed";
1575		regulator-name = "vdd_ac_bat";
1576		regulator-min-microvolt = <5000000>;
1577		regulator-max-microvolt = <5000000>;
1578		regulator-always-on;
1579		regulator-boot-on;
1580	};
1581
1582	vdd_5v0_cp: regulator-sby {
1583		compatible = "regulator-fixed";
1584		regulator-name = "vdd_5v0_sby";
1585		regulator-min-microvolt = <5000000>;
1586		regulator-max-microvolt = <5000000>;
1587		regulator-always-on;
1588		regulator-boot-on;
1589		gpio = <&pmic 0 GPIO_ACTIVE_HIGH>;
1590		enable-active-high;
1591		vin-supply = <&vdd_5v0_bat>;
1592	};
1593
1594	vdd_5v0_sys: regulator-5v {
1595		compatible = "regulator-fixed";
1596		regulator-name = "vdd_5v0_sys";
1597		regulator-min-microvolt = <5000000>;
1598		regulator-max-microvolt = <5000000>;
1599		regulator-always-on;
1600		regulator-boot-on;
1601		gpio = <&pmic 8 GPIO_ACTIVE_HIGH>;
1602		enable-active-high;
1603		vin-supply = <&vdd_5v0_bat>;
1604	};
1605
1606	vdd_1v5_ddr: regulator-ddr {
1607		compatible = "regulator-fixed";
1608		regulator-name = "vdd_ddr";
1609		regulator-min-microvolt = <1500000>;
1610		regulator-max-microvolt = <1500000>;
1611		regulator-always-on;
1612		regulator-boot-on;
1613		gpio = <&pmic 7 GPIO_ACTIVE_HIGH>;
1614		enable-active-high;
1615		vin-supply = <&vdd_5v0_bat>;
1616	};
1617
1618	vdd_3v3_sys: regulator-3v {
1619		compatible = "regulator-fixed";
1620		regulator-name = "vdd_3v3_sys";
1621		regulator-min-microvolt = <3300000>;
1622		regulator-max-microvolt = <3300000>;
1623		regulator-always-on;
1624		regulator-boot-on;
1625		gpio = <&pmic 6 GPIO_ACTIVE_HIGH>;
1626		enable-active-high;
1627		vin-supply = <&vdd_5v0_bat>;
1628	};
1629
1630	vdd_pnl: regulator-panel {
1631		compatible = "regulator-fixed";
1632		regulator-name = "vdd_panel";
1633		regulator-min-microvolt = <3300000>;
1634		regulator-max-microvolt = <3300000>;
1635		regulator-enable-ramp-delay = <20000>;
1636		gpio = <&gpio TEGRA_GPIO(W, 1) GPIO_ACTIVE_HIGH>;
1637		enable-active-high;
1638		vin-supply = <&vdd_3v3_sys>;
1639	};
1640
1641	vdd_3v3_com: regulator-com {
1642		compatible = "regulator-fixed";
1643		regulator-name = "vdd_3v3_com";
1644		regulator-min-microvolt = <3300000>;
1645		regulator-max-microvolt = <3300000>;
1646		regulator-always-on;
1647		gpio = <&gpio TEGRA_GPIO(D, 0) GPIO_ACTIVE_HIGH>;
1648		enable-active-high;
1649		vin-supply = <&vdd_3v3_sys>;
1650	};
1651
1652	vdd_5v0_bl: regulator-bl {
1653		compatible = "regulator-fixed";
1654		regulator-name = "vdd_5v0_bl";
1655		regulator-min-microvolt = <5000000>;
1656		regulator-max-microvolt = <5000000>;
1657		regulator-boot-on;
1658		gpio = <&gpio TEGRA_GPIO(H, 3) GPIO_ACTIVE_HIGH>;
1659		enable-active-high;
1660		vin-supply = <&vdd_5v0_bat>;
1661	};
1662
1663	hdmi_5v0_sys: regulator-hdmi {
1664		compatible = "regulator-fixed";
1665		regulator-name = "hdmi_5v0_sys";
1666		regulator-min-microvolt = <5000000>;
1667		regulator-max-microvolt = <5000000>;
1668		gpio = <&gpio TEGRA_GPIO(P, 2) GPIO_ACTIVE_HIGH>;
1669		enable-active-high;
1670		vin-supply = <&vdd_5v0_sys>;
1671	};
1672
1673	sound {
1674		nvidia,i2s-controller = <&tegra_i2s1>;
1675
1676		nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_LOW>;
1677		nvidia,mic-det-gpios = <&gpio TEGRA_GPIO(X, 2) GPIO_ACTIVE_LOW>;
1678		nvidia,coupled-mic-hp-det;
1679
1680		clocks = <&tegra_car TEGRA30_CLK_PLL_A>,
1681			 <&tegra_car TEGRA30_CLK_PLL_A_OUT0>,
1682			 <&tegra_pmc TEGRA_PMC_CLK_OUT_1>;
1683		clock-names = "pll_a", "pll_a_out0", "mclk";
1684
1685		assigned-clocks = <&tegra_car TEGRA30_CLK_EXTERN1>,
1686				  <&tegra_pmc TEGRA_PMC_CLK_OUT_1>;
1687
1688		assigned-clock-parents = <&tegra_car TEGRA30_CLK_PLL_A_OUT0>,
1689					 <&tegra_car TEGRA30_CLK_EXTERN1>;
1690	};
1691
1692	thermal-zones {
1693		/*
1694		 * NCT72 has two sensors:
1695		 *
1696		 *	0: internal that monitors ambient/skin temperature
1697		 *	1: external that is connected to the CPU's diode
1698		 *
1699		 * Ideally we should use userspace thermal governor,
1700		 * but it's a much more complex solution.  The "skin"
1701		 * zone exists as a simpler solution which prevents
1702		 * Transformers from getting too hot from a user's
1703		 * tactile perspective. The CPU zone is intended to
1704		 * protect silicon from damage.
1705		 */
1706
1707		skin-thermal {
1708			polling-delay-passive = <1000>; /* milliseconds */
1709			polling-delay = <5000>; /* milliseconds */
1710
1711			thermal-sensors = <&nct72 0>;
1712
1713			trips {
1714				trip0: skin-alert {
1715					/* throttle at 57C until temperature drops to 56.8C */
1716					temperature = <57000>;
1717					hysteresis = <200>;
1718					type = "passive";
1719				};
1720
1721				trip1: skin-crit {
1722					/* shut down at 65C */
1723					temperature = <65000>;
1724					hysteresis = <2000>;
1725					type = "critical";
1726				};
1727			};
1728
1729			cooling-maps {
1730				map0 {
1731					trip = <&trip0>;
1732					cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
1733							 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
1734							 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
1735							 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
1736							 <&actmon THERMAL_NO_LIMIT
1737								  THERMAL_NO_LIMIT>;
1738				};
1739			};
1740		};
1741
1742		cpu-thermal {
1743			polling-delay-passive = <1000>; /* milliseconds */
1744			polling-delay = <5000>; /* milliseconds */
1745
1746			thermal-sensors = <&nct72 1>;
1747
1748			trips {
1749				trip2: cpu-alert {
1750					/* throttle at 75C until temperature drops to 74.8C */
1751					temperature = <75000>;
1752					hysteresis = <200>;
1753					type = "passive";
1754				};
1755
1756				trip3: cpu-crit {
1757					/* shut down at 90C */
1758					temperature = <90000>;
1759					hysteresis = <2000>;
1760					type = "critical";
1761				};
1762			};
1763
1764			cooling-maps {
1765				map1 {
1766					trip = <&trip2>;
1767					cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
1768							 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
1769							 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
1770							 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
1771							 <&actmon THERMAL_NO_LIMIT
1772								  THERMAL_NO_LIMIT>;
1773				};
1774			};
1775		};
1776	};
1777
1778	brcm_wifi_pwrseq: wifi-pwrseq {
1779		compatible = "mmc-pwrseq-simple";
1780
1781		clocks = <&tegra_pmc TEGRA_PMC_CLK_BLINK>;
1782		clock-names = "ext_clock";
1783
1784		reset-gpios = <&gpio TEGRA_GPIO(D, 4) GPIO_ACTIVE_LOW>;
1785		post-power-on-delay-ms = <300>;
1786		power-off-delay-us = <300>;
1787	};
1788};
1789