xref: /linux/arch/arm/boot/dts/nvidia/tegra30-asus-nexus7-grouper-common.dtsi (revision e7d759f31ca295d589f7420719c311870bb3166f)
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/power/summit,smb347-charger.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	aliases {
15		mmc0 = &sdmmc4; /* eMMC */
16		mmc1 = &sdmmc3; /* WiFi */
17
18		rtc0 = &pmic;
19		rtc1 = "/rtc@7000e000";
20
21		serial1 = &uartc; /* Bluetooth */
22		serial2 = &uartb; /* GPS */
23	};
24
25	/*
26	 * The decompressor and also some bootloaders rely on a
27	 * pre-existing /chosen node to be available to insert the
28	 * command line and merge other ATAGS info.
29	 */
30	chosen {};
31
32	firmware {
33		trusted-foundations {
34			compatible = "tlm,trusted-foundations";
35			tlm,version-major = <0x0>;
36			tlm,version-minor = <0x0>;
37		};
38	};
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@bfdf0000 {
58			compatible = "ramoops";
59			reg = <0xbfdf0000 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>;
67			no-map;
68		};
69	};
70
71	gpio@6000d000 {
72		init-low-power-mode-hog {
73			gpio-hog;
74			gpios = <TEGRA_GPIO(I, 6) GPIO_ACTIVE_HIGH>;
75			input;
76		};
77
78		init-mode-hog {
79			gpio-hog;
80			gpios = <TEGRA_GPIO(DD, 7) GPIO_ACTIVE_HIGH>,
81				<TEGRA_GPIO(CC, 6) GPIO_ACTIVE_HIGH>,
82				<TEGRA_GPIO(R, 0) GPIO_ACTIVE_HIGH>;
83			output-low;
84		};
85	};
86
87	pinmux@70000868 {
88		pinctrl-names = "default";
89		pinctrl-0 = <&state_default>;
90
91		state_default: pinmux {
92			clk_32k_out_pa0 {
93				nvidia,pins = "clk_32k_out_pa0";
94				nvidia,function = "blink";
95				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
96				nvidia,tristate = <TEGRA_PIN_DISABLE>;
97				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
98			};
99			uart3_cts_n_pa1 {
100				nvidia,pins = "uart3_cts_n_pa1",
101						"uart3_rxd_pw7";
102				nvidia,function = "uartc";
103				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
104				nvidia,tristate = <TEGRA_PIN_DISABLE>;
105				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
106			};
107			dap2_fs_pa2 {
108				nvidia,pins = "dap2_fs_pa2",
109						"dap2_sclk_pa3",
110						"dap2_din_pa4",
111						"dap2_dout_pa5";
112				nvidia,function = "i2s1";
113				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
114				nvidia,tristate = <TEGRA_PIN_DISABLE>;
115				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
116			};
117			sdmmc3_clk_pa6 {
118				nvidia,pins = "sdmmc3_clk_pa6";
119				nvidia,function = "sdmmc3";
120				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
121				nvidia,tristate = <TEGRA_PIN_DISABLE>;
122				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
123			};
124			sdmmc3_cmd_pa7 {
125				nvidia,pins = "sdmmc3_cmd_pa7",
126						"sdmmc3_dat3_pb4",
127						"sdmmc3_dat2_pb5",
128						"sdmmc3_dat1_pb6",
129						"sdmmc3_dat0_pb7",
130						"sdmmc3_dat4_pd1",
131						"sdmmc3_dat6_pd3",
132						"sdmmc3_dat7_pd4";
133				nvidia,function = "sdmmc3";
134				nvidia,pull = <TEGRA_PIN_PULL_UP>;
135				nvidia,tristate = <TEGRA_PIN_DISABLE>;
136				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
137			};
138			gmi_a17_pb0 {
139				nvidia,pins = "gmi_a17_pb0",
140						"gmi_a18_pb1";
141				nvidia,function = "uartd";
142				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
143				nvidia,tristate = <TEGRA_PIN_DISABLE>;
144				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
145			};
146			lcd_pwr0_pb2 {
147				nvidia,pins = "lcd_pwr0_pb2",
148						"lcd_pwr1_pc1",
149						"lcd_m1_pw1";
150				nvidia,function = "displaya";
151				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
152				nvidia,tristate = <TEGRA_PIN_DISABLE>;
153				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
154			};
155			lcd_pclk_pb3 {
156				nvidia,pins = "lcd_pclk_pb3",
157						"lcd_d0_pe0",
158						"lcd_d1_pe1",
159						"lcd_d2_pe2",
160						"lcd_d3_pe3",
161						"lcd_d4_pe4",
162						"lcd_d5_pe5",
163						"lcd_d6_pe6",
164						"lcd_d7_pe7",
165						"lcd_d8_pf0",
166						"lcd_d9_pf1",
167						"lcd_d10_pf2",
168						"lcd_d11_pf3",
169						"lcd_d12_pf4",
170						"lcd_d13_pf5",
171						"lcd_d14_pf6",
172						"lcd_d15_pf7",
173						"lcd_de_pj1",
174						"lcd_hsync_pj3",
175						"lcd_vsync_pj4",
176						"lcd_d16_pm0",
177						"lcd_d17_pm1",
178						"lcd_d18_pm2",
179						"lcd_d19_pm3",
180						"lcd_d20_pm4",
181						"lcd_d21_pm5",
182						"lcd_d22_pm6",
183						"lcd_d23_pm7",
184						"lcd_cs0_n_pn4",
185						"lcd_sdout_pn5",
186						"lcd_dc0_pn6",
187						"lcd_cs1_n_pw0",
188						"lcd_sdin_pz2",
189						"lcd_sck_pz4";
190				nvidia,function = "displaya";
191				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
192				nvidia,tristate = <TEGRA_PIN_DISABLE>;
193				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
194			};
195			uart3_rts_n_pc0 {
196				nvidia,pins = "uart3_rts_n_pc0",
197						"uart3_txd_pw6";
198				nvidia,function = "uartc";
199				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
200				nvidia,tristate = <TEGRA_PIN_DISABLE>;
201				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
202			};
203			uart2_txd_pc2 {
204				nvidia,pins = "uart2_txd_pc2",
205						"uart2_rts_n_pj6";
206				nvidia,function = "uartb";
207				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
208				nvidia,tristate = <TEGRA_PIN_DISABLE>;
209				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
210			};
211			uart2_rxd_pc3 {
212				nvidia,pins = "uart2_rxd_pc3",
213						"uart2_cts_n_pj5";
214				nvidia,function = "uartb";
215				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
216				nvidia,tristate = <TEGRA_PIN_DISABLE>;
217				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
218			};
219			gen1_i2c_scl_pc4 {
220				nvidia,pins = "gen1_i2c_scl_pc4",
221						"gen1_i2c_sda_pc5";
222				nvidia,function = "i2c1";
223				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
224				nvidia,tristate = <TEGRA_PIN_DISABLE>;
225				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
226				nvidia,open-drain = <TEGRA_PIN_ENABLE>;
227			};
228			gmi_wp_n_pc7 {
229				nvidia,pins = "gmi_wp_n_pc7",
230						"gmi_wait_pi7",
231						"gmi_cs4_n_pk2",
232						"gmi_cs3_n_pk4";
233				nvidia,function = "rsvd1";
234				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
235				nvidia,tristate = <TEGRA_PIN_ENABLE>;
236				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
237			};
238			gmi_ad12_ph4 {
239				nvidia,pins = "gmi_ad12_ph4",
240						"gmi_cs0_n_pj0",
241						"gmi_cs1_n_pj2",
242						"gmi_cs2_n_pk3";
243				nvidia,function = "rsvd1";
244				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
245				nvidia,tristate = <TEGRA_PIN_ENABLE>;
246				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
247			};
248			sdmmc3_dat5_pd0 {
249				nvidia,pins = "sdmmc3_dat5_pd0";
250				nvidia,function = "sdmmc3";
251				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
252				nvidia,tristate = <TEGRA_PIN_DISABLE>;
253				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
254			};
255			gmi_ad0_pg0 {
256				nvidia,pins = "gmi_ad0_pg0",
257						"gmi_ad1_pg1",
258						"gmi_ad14_ph6",
259						"pu1";
260				nvidia,function = "rsvd1";
261				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
262				nvidia,tristate = <TEGRA_PIN_DISABLE>;
263				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
264			};
265			gmi_ad2_pg2 {
266				nvidia,pins = "gmi_ad2_pg2",
267						"gmi_ad3_pg3",
268						"gmi_ad6_pg6",
269						"gmi_ad7_pg7";
270				nvidia,function = "rsvd1";
271				nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
272				nvidia,tristate = <TEGRA_PIN_DISABLE>;
273				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
274			};
275			gmi_ad4_pg4 {
276				nvidia,pins = "gmi_ad4_pg4",
277						"gmi_ad5_pg5";
278				nvidia,function = "nand";
279				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
280				nvidia,tristate = <TEGRA_PIN_DISABLE>;
281				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
282			};
283			gmi_ad8_ph0 {
284				nvidia,pins = "gmi_ad8_ph0";
285				nvidia,function = "pwm0";
286				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
287				nvidia,tristate = <TEGRA_PIN_DISABLE>;
288				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
289			};
290			gmi_ad9_ph1 {
291				nvidia,pins = "gmi_ad9_ph1";
292				nvidia,function = "rsvd4";
293				nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
294				nvidia,tristate = <TEGRA_PIN_DISABLE>;
295				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
296			};
297			gmi_ad10_ph2 {
298				nvidia,pins = "gmi_ad10_ph2";
299				nvidia,function = "pwm2";
300				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
301				nvidia,tristate = <TEGRA_PIN_ENABLE>;
302				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
303			};
304			gmi_ad11_ph3 {
305				nvidia,pins = "gmi_ad11_ph3";
306				nvidia,function = "pwm3";
307				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
308				nvidia,tristate = <TEGRA_PIN_DISABLE>;
309				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
310			};
311			gmi_ad13_ph5 {
312				nvidia,pins = "gmi_ad13_ph5",
313						"gmi_wr_n_pi0",
314						"gmi_oe_n_pi1",
315						"gmi_adv_n_pk0";
316				nvidia,function = "rsvd1";
317				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
318				nvidia,tristate = <TEGRA_PIN_ENABLE>;
319				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
320			};
321			gmi_ad15_ph7 {
322				nvidia,pins = "gmi_ad15_ph7";
323				nvidia,function = "rsvd1";
324				nvidia,pull = <TEGRA_PIN_PULL_UP>;
325				nvidia,tristate = <TEGRA_PIN_DISABLE>;
326				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
327			};
328			gmi_dqs_pi2 {
329				nvidia,pins = "gmi_dqs_pi2",
330						"pu2",
331						"pv1";
332				nvidia,function = "rsvd1";
333				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
334				nvidia,tristate = <TEGRA_PIN_DISABLE>;
335				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
336			};
337			gmi_rst_n_pi4 {
338				nvidia,pins = "gmi_rst_n_pi4";
339				nvidia,function = "nand";
340				nvidia,pull = <TEGRA_PIN_PULL_UP>;
341				nvidia,tristate = <TEGRA_PIN_DISABLE>;
342				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
343			};
344			gmi_iordy_pi5 {
345				nvidia,pins = "gmi_iordy_pi5";
346				nvidia,function = "rsvd1";
347				nvidia,pull = <TEGRA_PIN_PULL_UP>;
348				nvidia,tristate = <TEGRA_PIN_DISABLE>;
349				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
350			};
351			gmi_cs7_n_pi6 {
352				nvidia,pins = "gmi_cs7_n_pi6",
353						"gmi_clk_pk1";
354				nvidia,function = "nand";
355				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
356				nvidia,tristate = <TEGRA_PIN_ENABLE>;
357				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
358			};
359			gmi_a16_pj7 {
360				nvidia,pins = "gmi_a16_pj7",
361						"gmi_a19_pk7";
362				nvidia,function = "uartd";
363				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
364				nvidia,tristate = <TEGRA_PIN_DISABLE>;
365				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
366			};
367			spdif_out_pk5 {
368				nvidia,pins = "spdif_out_pk5";
369				nvidia,function = "spdif";
370				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
371				nvidia,tristate = <TEGRA_PIN_DISABLE>;
372				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
373			};
374			spdif_in_pk6 {
375				nvidia,pins = "spdif_in_pk6";
376				nvidia,function = "spdif";
377				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
378				nvidia,tristate = <TEGRA_PIN_DISABLE>;
379				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
380			};
381			dap1_fs_pn0 {
382				nvidia,pins = "dap1_fs_pn0",
383						"dap1_din_pn1",
384						"dap1_dout_pn2",
385						"dap1_sclk_pn3";
386				nvidia,function = "i2s0";
387				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
388				nvidia,tristate = <TEGRA_PIN_DISABLE>;
389				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
390			};
391			hdmi_int_pn7 {
392				nvidia,pins = "hdmi_int_pn7";
393				nvidia,function = "hdmi";
394				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
395				nvidia,tristate = <TEGRA_PIN_ENABLE>;
396				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
397			};
398			ulpi_data7_po0 {
399				nvidia,pins = "ulpi_data7_po0";
400				nvidia,function = "uarta";
401				nvidia,pull = <TEGRA_PIN_PULL_UP>;
402				nvidia,tristate = <TEGRA_PIN_ENABLE>;
403				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
404			};
405			ulpi_data3_po4 {
406				nvidia,pins = "ulpi_data3_po4";
407				nvidia,function = "ulpi";
408				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
409				nvidia,tristate = <TEGRA_PIN_DISABLE>;
410				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
411			};
412			dap3_fs_pp0 {
413				nvidia,pins = "dap3_fs_pp0";
414				nvidia,function = "i2s2";
415				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
416				nvidia,tristate = <TEGRA_PIN_DISABLE>;
417				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
418			};
419			dap4_fs_pp4 {
420				nvidia,pins = "dap4_fs_pp4",
421						"dap4_din_pp5",
422						"dap4_dout_pp6",
423						"dap4_sclk_pp7";
424				nvidia,function = "i2s3";
425				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
426				nvidia,tristate = <TEGRA_PIN_DISABLE>;
427				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
428			};
429			kb_col0_pq0 {
430				nvidia,pins = "kb_col0_pq0",
431						"kb_col1_pq1",
432						"kb_row1_pr1";
433				nvidia,function = "kbc";
434				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
435				nvidia,tristate = <TEGRA_PIN_ENABLE>;
436				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
437			};
438			kb_col2_pq2 {
439				nvidia,pins = "kb_col2_pq2",
440						"kb_col3_pq3";
441				nvidia,function = "rsvd4";
442				nvidia,pull = <TEGRA_PIN_PULL_UP>;
443				nvidia,tristate = <TEGRA_PIN_ENABLE>;
444				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
445			};
446			kb_col4_pq4 {
447				nvidia,pins = "kb_col4_pq4",
448						"kb_col5_pq5",
449						"kb_col7_pq7",
450						"kb_row2_pr2",
451						"kb_row4_pr4",
452						"kb_row5_pr5",
453						"kb_row14_ps6";
454				nvidia,function = "kbc";
455				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
456				nvidia,tristate = <TEGRA_PIN_ENABLE>;
457				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
458			};
459			kb_row0_pr0 {
460				nvidia,pins = "kb_row0_pr0";
461				nvidia,function = "rsvd4";
462				nvidia,pull = <TEGRA_PIN_PULL_UP>;
463				nvidia,tristate = <TEGRA_PIN_DISABLE>;
464				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
465			};
466			kb_row6_pr6 {
467				nvidia,pins = "kb_row6_pr6",
468						"kb_row8_ps0",
469						"kb_row9_ps1",
470						"kb_row10_ps2";
471				nvidia,function = "kbc";
472				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
473				nvidia,tristate = <TEGRA_PIN_DISABLE>;
474				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
475			};
476			kb_row11_ps3 {
477				nvidia,pins = "kb_row11_ps3",
478						"kb_row12_ps4";
479				nvidia,function = "kbc";
480				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
481				nvidia,tristate = <TEGRA_PIN_DISABLE>;
482				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
483			};
484			gen2_i2c_scl_pt5 {
485				nvidia,pins = "gen2_i2c_scl_pt5",
486						"gen2_i2c_sda_pt6";
487				nvidia,function = "i2c2";
488				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
489				nvidia,tristate = <TEGRA_PIN_DISABLE>;
490				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
491				nvidia,open-drain = <TEGRA_PIN_ENABLE>;
492			};
493			sdmmc4_cmd_pt7 {
494				nvidia,pins = "sdmmc4_cmd_pt7",
495						"sdmmc4_dat0_paa0",
496						"sdmmc4_dat1_paa1",
497						"sdmmc4_dat2_paa2",
498						"sdmmc4_dat3_paa3",
499						"sdmmc4_dat4_paa4",
500						"sdmmc4_dat5_paa5",
501						"sdmmc4_dat6_paa6",
502						"sdmmc4_dat7_paa7";
503				nvidia,function = "sdmmc4";
504				nvidia,pull = <TEGRA_PIN_PULL_UP>;
505				nvidia,tristate = <TEGRA_PIN_DISABLE>;
506				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
507			};
508			pu0 {
509				nvidia,pins = "pu0",
510						"pu6";
511				nvidia,function = "rsvd4";
512				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
513				nvidia,tristate = <TEGRA_PIN_DISABLE>;
514				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
515			};
516			jtag_rtck_pu7 {
517				nvidia,pins = "jtag_rtck_pu7";
518				nvidia,function = "rtck";
519				nvidia,pull = <TEGRA_PIN_PULL_UP>;
520				nvidia,tristate = <TEGRA_PIN_DISABLE>;
521				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
522			};
523			pv0 {
524				nvidia,pins = "pv0";
525				nvidia,function = "rsvd1";
526				nvidia,pull = <TEGRA_PIN_PULL_UP>;
527				nvidia,tristate = <TEGRA_PIN_ENABLE>;
528				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
529			};
530			ddc_scl_pv4 {
531				nvidia,pins = "ddc_scl_pv4",
532						"ddc_sda_pv5";
533				nvidia,function = "i2c4";
534				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
535				nvidia,tristate = <TEGRA_PIN_DISABLE>;
536				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
537			};
538			crt_hsync_pv6 {
539				nvidia,pins = "crt_hsync_pv6",
540						"crt_vsync_pv7";
541				nvidia,function = "crt";
542				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
543				nvidia,tristate = <TEGRA_PIN_DISABLE>;
544				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
545			};
546			spi2_cs1_n_pw2 {
547				nvidia,pins = "spi2_cs1_n_pw2",
548						"spi2_miso_px1",
549						"spi2_sck_px2";
550				nvidia,function = "spi2";
551				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
552				nvidia,tristate = <TEGRA_PIN_DISABLE>;
553				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
554			};
555			clk1_out_pw4 {
556				nvidia,pins = "clk1_out_pw4";
557				nvidia,function = "extperiph1";
558				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
559				nvidia,tristate = <TEGRA_PIN_DISABLE>;
560				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
561			};
562			clk2_out_pw5 {
563				nvidia,pins = "clk2_out_pw5";
564				nvidia,function = "extperiph2";
565				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
566				nvidia,tristate = <TEGRA_PIN_DISABLE>;
567				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
568			};
569			spi2_cs0_n_px3 {
570				nvidia,pins = "spi2_cs0_n_px3";
571				nvidia,function = "spi6";
572				nvidia,pull = <TEGRA_PIN_PULL_UP>;
573				nvidia,tristate = <TEGRA_PIN_DISABLE>;
574				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
575			};
576			spi1_mosi_px4 {
577				nvidia,pins = "spi1_mosi_px4",
578						"spi1_cs0_n_px6";
579				nvidia,function = "spi1";
580				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
581				nvidia,tristate = <TEGRA_PIN_DISABLE>;
582				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
583			};
584			ulpi_clk_py0 {
585				nvidia,pins = "ulpi_clk_py0",
586						"ulpi_dir_py1";
587				nvidia,function = "ulpi";
588				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
589				nvidia,tristate = <TEGRA_PIN_ENABLE>;
590				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
591			};
592			sdmmc1_dat3_py4 {
593				nvidia,pins = "sdmmc1_dat3_py4",
594						"sdmmc1_dat2_py5",
595						"sdmmc1_dat1_py6",
596						"sdmmc1_dat0_py7",
597						"sdmmc1_cmd_pz1";
598				nvidia,function = "sdmmc1";
599				nvidia,pull = <TEGRA_PIN_PULL_UP>;
600				nvidia,tristate = <TEGRA_PIN_DISABLE>;
601				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
602			};
603			sdmmc1_clk_pz0 {
604				nvidia,pins = "sdmmc1_clk_pz0";
605				nvidia,function = "sdmmc1";
606				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
607				nvidia,tristate = <TEGRA_PIN_DISABLE>;
608				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
609			};
610			lcd_wr_n_pz3 {
611				nvidia,pins = "lcd_wr_n_pz3";
612				nvidia,function = "displaya";
613				nvidia,pull = <TEGRA_PIN_PULL_UP>;
614				nvidia,tristate = <TEGRA_PIN_DISABLE>;
615				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
616			};
617			sys_clk_req_pz5 {
618				nvidia,pins = "sys_clk_req_pz5";
619				nvidia,function = "sysclk";
620				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
621				nvidia,tristate = <TEGRA_PIN_DISABLE>;
622				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
623			};
624			pwr_i2c_scl_pz6 {
625				nvidia,pins = "pwr_i2c_scl_pz6",
626						"pwr_i2c_sda_pz7";
627				nvidia,function = "i2cpwr";
628				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
629				nvidia,tristate = <TEGRA_PIN_DISABLE>;
630				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
631				nvidia,open-drain = <TEGRA_PIN_ENABLE>;
632			};
633			pbb0 {
634				nvidia,pins = "pbb0",
635						"pcc1";
636				nvidia,function = "rsvd2";
637				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
638				nvidia,tristate = <TEGRA_PIN_DISABLE>;
639				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
640			};
641			cam_i2c_scl_pbb1 {
642				nvidia,pins = "cam_i2c_scl_pbb1",
643						"cam_i2c_sda_pbb2";
644				nvidia,function = "i2c3";
645				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
646				nvidia,tristate = <TEGRA_PIN_DISABLE>;
647				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
648				nvidia,open-drain = <TEGRA_PIN_ENABLE>;
649			};
650			pbb3 {
651				nvidia,pins = "pbb3";
652				nvidia,function = "vgp3";
653				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
654				nvidia,tristate = <TEGRA_PIN_DISABLE>;
655				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
656			};
657			pbb4 {
658				nvidia,pins = "pbb4";
659				nvidia,function = "vgp4";
660				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
661				nvidia,tristate = <TEGRA_PIN_DISABLE>;
662				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
663			};
664			pbb5 {
665				nvidia,pins = "pbb5";
666				nvidia,function = "vgp5";
667				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
668				nvidia,tristate = <TEGRA_PIN_DISABLE>;
669				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
670			};
671			pbb6 {
672				nvidia,pins = "pbb6";
673				nvidia,function = "vgp6";
674				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
675				nvidia,tristate = <TEGRA_PIN_DISABLE>;
676				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
677			};
678			pbb7 {
679				nvidia,pins = "pbb7",
680						"pcc2";
681				nvidia,function = "i2s4";
682				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
683				nvidia,tristate = <TEGRA_PIN_DISABLE>;
684				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
685			};
686			cam_mclk_pcc0 {
687				nvidia,pins = "cam_mclk_pcc0";
688				nvidia,function = "vi_alt3";
689				nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
690				nvidia,tristate = <TEGRA_PIN_DISABLE>;
691				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
692			};
693			sdmmc4_rst_n_pcc3 {
694				nvidia,pins = "sdmmc4_rst_n_pcc3";
695				nvidia,function = "rsvd2";
696				nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
697				nvidia,tristate = <TEGRA_PIN_DISABLE>;
698				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
699			};
700			sdmmc4_clk_pcc4 {
701				nvidia,pins = "sdmmc4_clk_pcc4";
702				nvidia,function = "sdmmc4";
703				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
704				nvidia,tristate = <TEGRA_PIN_DISABLE>;
705				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
706			};
707			clk2_req_pcc5 {
708				nvidia,pins = "clk2_req_pcc5";
709				nvidia,function = "dap";
710				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
711				nvidia,tristate = <TEGRA_PIN_DISABLE>;
712				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
713			};
714			pex_l2_rst_n_pcc6 {
715				nvidia,pins = "pex_l2_rst_n_pcc6",
716						"pex_l2_clkreq_n_pcc7";
717				nvidia,function = "pcie";
718				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
719				nvidia,tristate = <TEGRA_PIN_DISABLE>;
720				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
721			};
722			pex_wake_n_pdd3 {
723				nvidia,pins = "pex_wake_n_pdd3",
724						"pex_l2_prsnt_n_pdd7";
725				nvidia,function = "pcie";
726				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
727				nvidia,tristate = <TEGRA_PIN_DISABLE>;
728				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
729			};
730			clk3_out_pee0 {
731				nvidia,pins = "clk3_out_pee0";
732				nvidia,function = "extperiph3";
733				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
734				nvidia,tristate = <TEGRA_PIN_DISABLE>;
735				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
736			};
737			clk1_req_pee2 {
738				nvidia,pins = "clk1_req_pee2";
739				nvidia,function = "dap";
740				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
741				nvidia,tristate = <TEGRA_PIN_ENABLE>;
742				nvidia,enable-input = <TEGRA_PIN_DISABLE>;
743			};
744			hdmi_cec_pee3 {
745				nvidia,pins = "hdmi_cec_pee3";
746				nvidia,function = "cec";
747				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
748				nvidia,tristate = <TEGRA_PIN_DISABLE>;
749				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
750				nvidia,open-drain = <TEGRA_PIN_DISABLE>;
751			};
752			owr {
753				nvidia,pins = "owr";
754				nvidia,function = "owr";
755				nvidia,pull = <TEGRA_PIN_PULL_NONE>;
756				nvidia,tristate = <TEGRA_PIN_DISABLE>;
757				nvidia,enable-input = <TEGRA_PIN_ENABLE>;
758			};
759			drive_dap1 {
760				nvidia,pins = "drive_dap1",
761						"drive_dap2",
762						"drive_dbg",
763						"drive_at5",
764						"drive_gme",
765						"drive_ddc",
766						"drive_ao1",
767						"drive_uart3";
768				nvidia,high-speed-mode = <0>;
769				nvidia,schmitt = <TEGRA_PIN_ENABLE>;
770				nvidia,low-power-mode = <TEGRA_PIN_LP_DRIVE_DIV_1>;
771				nvidia,pull-down-strength = <31>;
772				nvidia,pull-up-strength = <31>;
773				nvidia,slew-rate-rising = <TEGRA_PIN_SLEW_RATE_FASTEST>;
774				nvidia,slew-rate-falling = <TEGRA_PIN_SLEW_RATE_FASTEST>;
775			};
776			drive_sdio1 {
777				nvidia,pins = "drive_sdio1",
778						"drive_sdio3";
779				nvidia,high-speed-mode = <0>;
780				nvidia,schmitt = <TEGRA_PIN_DISABLE>;
781				nvidia,pull-down-strength = <46>;
782				nvidia,pull-up-strength = <42>;
783				nvidia,slew-rate-rising = <TEGRA_PIN_SLEW_RATE_FAST>;
784				nvidia,slew-rate-falling = <TEGRA_PIN_SLEW_RATE_FAST>;
785			};
786			drive_gma {
787				nvidia,pins = "drive_gma",
788						"drive_gmb",
789						"drive_gmc",
790						"drive_gmd";
791				nvidia,pull-down-strength = <9>;
792				nvidia,pull-up-strength = <9>;
793				nvidia,slew-rate-rising = <TEGRA_PIN_SLEW_RATE_SLOWEST>;
794				nvidia,slew-rate-falling = <TEGRA_PIN_SLEW_RATE_SLOWEST>;
795			};
796		};
797	};
798
799	uartb: serial@70006040 {
800		compatible = "nvidia,tegra30-hsuart";
801		reset-names = "serial";
802		/delete-property/ reg-shift;
803		/* GPS BCM4751 */
804	};
805
806	uartc: serial@70006200 {
807		compatible = "nvidia,tegra30-hsuart";
808		reset-names = "serial";
809		/delete-property/ reg-shift;
810		status = "okay";
811
812		nvidia,adjust-baud-rates = <0 9600 100>,
813					   <9600 115200 200>,
814					   <1000000 4000000 136>;
815
816		/* Azurewave AW-NH665 BCM4330B1 */
817		bluetooth {
818			compatible = "brcm,bcm4330-bt";
819
820			interrupt-parent = <&gpio>;
821			interrupts = <TEGRA_GPIO(U, 6) IRQ_TYPE_EDGE_RISING>;
822			interrupt-names = "host-wakeup";
823
824			max-speed = <4000000>;
825
826			clocks = <&tegra_pmc TEGRA_PMC_CLK_BLINK>;
827			clock-names = "txco";
828
829			vbat-supply  = <&vdd_3v3_sys>;
830			vddio-supply = <&vdd_1v8>;
831
832			device-wakeup-gpios = <&gpio TEGRA_GPIO(U, 1) GPIO_ACTIVE_HIGH>;
833			shutdown-gpios = <&gpio TEGRA_GPIO(U, 0) GPIO_ACTIVE_HIGH>;
834		};
835	};
836
837	pwm: pwm@7000a000 {
838		status = "okay";
839	};
840
841	i2c@7000c400 {
842		clock-frequency = <400000>;
843		status = "okay";
844
845		touchscreen@10 {
846			compatible = "elan,ektf3624";
847			reg = <0x10>;
848
849			interrupt-parent = <&gpio>;
850			interrupts = <TEGRA_GPIO(H, 4) IRQ_TYPE_LEVEL_LOW>;
851
852			reset-gpios = <&gpio TEGRA_GPIO(H, 6) GPIO_ACTIVE_LOW>;
853
854			vcc33-supply = <&vcc_3v3_ts>;
855			vccio-supply = <&vcc_3v3_ts>;
856
857			touchscreen-size-x = <2112>;
858			touchscreen-size-y = <1280>;
859			touchscreen-swapped-x-y;
860			touchscreen-inverted-x;
861		};
862	};
863
864	i2c@7000c500 {
865		clock-frequency = <100000>;
866		status = "okay";
867
868		compass@e {
869			compatible = "asahi-kasei,ak8974";
870			reg = <0x0e>;
871
872			interrupt-parent = <&gpio>;
873			interrupts = <TEGRA_GPIO(W, 0) IRQ_TYPE_EDGE_RISING>;
874
875			avdd-supply = <&vdd_3v3_sys>;
876			dvdd-supply = <&vdd_1v8>;
877
878			mount-matrix =	 "0", "-1",  "0",
879					"-1",  "0",  "0",
880					 "0",  "0", "-1";
881		};
882
883		light-sensor@1c {
884			compatible = "dynaimage,al3010";
885			reg = <0x1c>;
886
887			interrupt-parent = <&gpio>;
888			interrupts = <TEGRA_GPIO(Z, 2) IRQ_TYPE_LEVEL_HIGH>;
889
890			vdd-supply = <&vdd_3v3_sys>;
891		};
892
893		accelerometer@68 {
894			compatible = "invensense,mpu6050";
895			reg = <0x68>;
896
897			interrupt-parent = <&gpio>;
898			interrupts = <TEGRA_GPIO(X, 1) IRQ_TYPE_EDGE_RISING>;
899
900			vdd-supply   = <&vdd_3v3_sys>;
901			vddio-supply = <&vdd_1v8>;
902
903			mount-matrix =	 "0", "-1",  "0",
904					"-1",  "0",  "0",
905					 "0",  "0", "-1";
906		};
907	};
908
909	i2c@7000d000 {
910		clock-frequency = <100000>;
911		status = "okay";
912
913		rt5640: audio-codec@1c {
914			compatible = "realtek,rt5640";
915			reg = <0x1c>;
916
917			realtek,dmic1-data-pin = <1>;
918		};
919
920		nct72: temperature-sensor@4c {
921			compatible = "onnn,nct1008";
922			reg = <0x4c>;
923			vcc-supply = <&vdd_3v3_sys>;
924
925			interrupt-parent = <&gpio>;
926			interrupts = <TEGRA_GPIO(S, 3) IRQ_TYPE_EDGE_FALLING>;
927
928			#thermal-sensor-cells = <1>;
929		};
930
931		fuel-gauge@55 {
932			compatible = "ti,bq27541";
933			reg = <0x55>;
934			power-supplies = <&power_supply>;
935		};
936
937		power_supply: charger@6a {
938			compatible = "summit,smb347";
939			reg = <0x6a>;
940
941			interrupt-parent = <&gpio>;
942			interrupts = <TEGRA_GPIO(V, 1) IRQ_TYPE_EDGE_BOTH>;
943
944			summit,enable-charge-control = <SMB3XX_CHG_ENABLE_PIN_ACTIVE_LOW>;
945			summit,inok-polarity = <SMB3XX_SYSOK_INOK_ACTIVE_LOW>;
946			summit,enable-usb-charging;
947
948			monitored-battery = <&battery_cell>;
949
950			usb_vbus: usb-vbus {
951				regulator-name = "usb_vbus";
952				regulator-min-microvolt = <5000000>;
953				regulator-max-microvolt = <5000000>;
954				regulator-min-microamp = <750000>;
955				regulator-max-microamp = <750000>;
956
957				/*
958				 * SMB347 INOK input pin is connected to PMIC's
959				 * ACOK output, which is fixed to ACTIVE_LOW as
960				 * long as battery voltage is in a good range.
961				 *
962				 * Active INOK disables SMB347 output, so polarity
963				 * needs to be toggled when we want to get the
964				 * output.
965				 */
966				summit,needs-inok-toggle;
967			};
968		};
969	};
970
971	pmc@7000e400 {
972		status = "okay";
973		nvidia,invert-interrupt;
974		nvidia,suspend-mode = <1>;
975		nvidia,cpu-pwr-good-time = <2000>;
976		nvidia,cpu-pwr-off-time = <200>;
977		nvidia,core-pwr-good-time = <3845 3845>;
978		nvidia,core-pwr-off-time = <0>;
979		nvidia,core-power-req-active-high;
980		nvidia,sys-clock-req-active-high;
981		core-supply = <&vdd_core>;
982	};
983
984	ahub@70080000 {
985		i2s@70080400 {
986			status = "okay";
987		};
988	};
989
990	sdmmc3: mmc@78000400 {
991		status = "okay";
992
993		#address-cells = <1>;
994		#size-cells = <0>;
995
996		assigned-clocks = <&tegra_car TEGRA30_CLK_SDMMC3>;
997		assigned-clock-parents = <&tegra_car TEGRA30_CLK_PLL_C>;
998		assigned-clock-rates = <50000000>;
999
1000		max-frequency = <50000000>;
1001		keep-power-in-suspend;
1002		bus-width = <4>;
1003		non-removable;
1004
1005		mmc-pwrseq = <&brcm_wifi_pwrseq>;
1006		vmmc-supply = <&vdd_3v3_sys>;
1007		vqmmc-supply = <&vdd_1v8>;
1008
1009		/* Azurewave AW-NH665 BCM4330 */
1010		wifi@1 {
1011			reg = <1>;
1012			compatible = "brcm,bcm4329-fmac";
1013			interrupt-parent = <&gpio>;
1014			interrupts = <TEGRA_GPIO(O, 4) IRQ_TYPE_LEVEL_HIGH>;
1015			interrupt-names = "host-wake";
1016		};
1017	};
1018
1019	sdmmc4: mmc@78000600 {
1020		status = "okay";
1021		bus-width = <8>;
1022		vmmc-supply = <&vcore_emmc>;
1023		vqmmc-supply = <&vdd_1v8>;
1024		non-removable;
1025	};
1026
1027	usb@7d000000 {
1028		compatible = "nvidia,tegra30-udc";
1029		status = "okay";
1030		dr_mode = "otg";
1031		vbus-supply = <&usb_vbus>;
1032	};
1033
1034	usb-phy@7d000000 {
1035		status = "okay";
1036		dr_mode = "otg";
1037		nvidia,hssync-start-delay = <0>;
1038		nvidia,xcvr-lsfslew = <2>;
1039		nvidia,xcvr-lsrslew = <2>;
1040	};
1041
1042	backlight: backlight {
1043		compatible = "pwm-backlight";
1044
1045		power-supply = <&vdd_5v0_sys>;
1046		pwms = <&pwm 0 50000>;
1047
1048		brightness-levels = <1 255>;
1049		num-interpolated-steps = <254>;
1050		default-brightness-level = <15>;
1051	};
1052
1053	battery_cell: battery-cell {
1054		compatible = "simple-battery";
1055		constant-charge-current-max-microamp = <1800000>;
1056		operating-range-celsius = <0 45>;
1057	};
1058
1059	/* PMIC has a built-in 32KHz oscillator which is used by PMC */
1060	clk32k_in: clock-32k {
1061		compatible = "fixed-clock";
1062		#clock-cells = <0>;
1063		clock-frequency = <32768>;
1064		clock-output-names = "pmic-oscillator";
1065	};
1066
1067	cpus {
1068		cpu0: cpu@0 {
1069			cpu-supply = <&vdd_cpu>;
1070			operating-points-v2 = <&cpu0_opp_table>;
1071			#cooling-cells = <2>;
1072		};
1073
1074		cpu1: cpu@1 {
1075			cpu-supply = <&vdd_cpu>;
1076			operating-points-v2 = <&cpu0_opp_table>;
1077			#cooling-cells = <2>;
1078		};
1079
1080		cpu2: cpu@2 {
1081			cpu-supply = <&vdd_cpu>;
1082			operating-points-v2 = <&cpu0_opp_table>;
1083			#cooling-cells = <2>;
1084		};
1085
1086		cpu3: cpu@3 {
1087			cpu-supply = <&vdd_cpu>;
1088			operating-points-v2 = <&cpu0_opp_table>;
1089			#cooling-cells = <2>;
1090		};
1091	};
1092
1093	display-panel {
1094		/*
1095		 * Some device variants come with a Hydis HV070WX2-1E0, but
1096		 * since they are all largely compatible, we'll go with the
1097		 * Chunghwa one here.
1098		 */
1099		compatible = "chunghwa,claa070wp03xg", "panel-lvds";
1100
1101		width-mm = <94>;
1102		height-mm = <150>;
1103		rotation = <180>;
1104
1105		data-mapping = "jeida-24";
1106
1107		/* DDC unconnected on Nexus 7 */
1108		/delete-property/ ddc-i2c-bus;
1109	};
1110
1111	gpio-keys {
1112		compatible = "gpio-keys";
1113
1114		key-power {
1115			label = "Power";
1116			gpios = <&gpio TEGRA_GPIO(V, 0) GPIO_ACTIVE_LOW>;
1117			linux,code = <KEY_POWER>;
1118			debounce-interval = <10>;
1119			wakeup-event-action = <EV_ACT_ASSERTED>;
1120			wakeup-source;
1121		};
1122
1123		key-volume-down {
1124			label = "Volume Down";
1125			gpios = <&gpio TEGRA_GPIO(Q, 3) GPIO_ACTIVE_LOW>;
1126			linux,code = <KEY_VOLUMEDOWN>;
1127			debounce-interval = <10>;
1128			wakeup-event-action = <EV_ACT_ASSERTED>;
1129			wakeup-source;
1130		};
1131
1132		key-volume-up {
1133			label = "Volume Up";
1134			gpios = <&gpio TEGRA_GPIO(Q, 2) GPIO_ACTIVE_LOW>;
1135			linux,code = <KEY_VOLUMEUP>;
1136			debounce-interval = <10>;
1137			wakeup-event-action = <EV_ACT_ASSERTED>;
1138			wakeup-source;
1139		};
1140
1141		switch-hall-sensor {
1142			label = "Lid";
1143			gpios = <&gpio TEGRA_GPIO(S, 6) GPIO_ACTIVE_LOW>;
1144			linux,input-type = <EV_SW>;
1145			linux,code = <SW_LID>;
1146			debounce-interval = <500>;
1147			wakeup-event-action = <EV_ACT_DEASSERTED>;
1148			wakeup-source;
1149		};
1150	};
1151
1152	brcm_wifi_pwrseq: pwrseq-wifi {
1153		compatible = "mmc-pwrseq-simple";
1154
1155		clocks = <&tegra_pmc TEGRA_PMC_CLK_BLINK>;
1156		clock-names = "ext_clock";
1157
1158		reset-gpios = <&gpio TEGRA_GPIO(D, 4) GPIO_ACTIVE_LOW>;
1159		post-power-on-delay-ms = <300>;
1160		power-off-delay-us = <300>;
1161	};
1162
1163	vdd_5v0_sys: regulator-5v0 {
1164		compatible = "regulator-fixed";
1165		regulator-name = "vdd_5v0";
1166		regulator-min-microvolt = <5000000>;
1167		regulator-max-microvolt = <5000000>;
1168		regulator-always-on;
1169		regulator-boot-on;
1170	};
1171
1172	vdd_3v3_sys: regulator-3v3 {
1173		compatible = "regulator-fixed";
1174		regulator-name = "vdd_3v3";
1175		regulator-min-microvolt = <3300000>;
1176		regulator-max-microvolt = <3300000>;
1177		regulator-always-on;
1178		regulator-boot-on;
1179		vin-supply = <&vdd_5v0_sys>;
1180	};
1181
1182	vdd_pnl: regulator-panel {
1183		compatible = "regulator-fixed";
1184		regulator-name = "vdd_panel";
1185		regulator-min-microvolt = <3300000>;
1186		regulator-max-microvolt = <3300000>;
1187		regulator-enable-ramp-delay = <300000>;
1188		gpio = <&gpio TEGRA_GPIO(W, 1) GPIO_ACTIVE_HIGH>;
1189		enable-active-high;
1190		vin-supply = <&vdd_3v3_sys>;
1191	};
1192
1193	vcc_3v3_ts: regulator-ts {
1194		compatible = "regulator-fixed";
1195		regulator-name = "ldo_s-1167_3v3";
1196		regulator-min-microvolt = <3300000>;
1197		regulator-max-microvolt = <3300000>;
1198		regulator-always-on;
1199		regulator-boot-on;
1200		vin-supply = <&vdd_5v0_sys>;
1201	};
1202
1203	sound {
1204		compatible = "nvidia,tegra-audio-rt5640-grouper",
1205			     "nvidia,tegra-audio-rt5640";
1206		nvidia,model = "ASUS Google Nexus 7 ALC5642";
1207
1208		nvidia,audio-routing =
1209			"Headphones", "HPOR",
1210			"Headphones", "HPOL",
1211			"Speakers", "SPORP",
1212			"Speakers", "SPORN",
1213			"Speakers", "SPOLP",
1214			"Speakers", "SPOLN",
1215			"DMIC1", "Mic Jack";
1216
1217		nvidia,i2s-controller = <&tegra_i2s1>;
1218		nvidia,audio-codec = <&rt5640>;
1219
1220		nvidia,hp-det-gpios = <&gpio TEGRA_GPIO(W, 2) GPIO_ACTIVE_LOW>;
1221
1222		clocks = <&tegra_car TEGRA30_CLK_PLL_A>,
1223			 <&tegra_car TEGRA30_CLK_PLL_A_OUT0>,
1224			 <&tegra_pmc TEGRA_PMC_CLK_OUT_1>;
1225		clock-names = "pll_a", "pll_a_out0", "mclk";
1226
1227		assigned-clocks = <&tegra_car TEGRA30_CLK_EXTERN1>,
1228				  <&tegra_pmc TEGRA_PMC_CLK_OUT_1>;
1229
1230		assigned-clock-parents = <&tegra_car TEGRA30_CLK_PLL_A_OUT0>,
1231					 <&tegra_car TEGRA30_CLK_EXTERN1>;
1232	};
1233
1234	thermal-zones {
1235		/*
1236		 * NCT72 has two sensors:
1237		 *
1238		 *	0: internal that monitors ambient/skin temperature
1239		 *	1: external that is connected to the CPU's diode
1240		 *
1241		 * Ideally we should use userspace thermal governor,
1242		 * but it's a much more complex solution.  The "skin"
1243		 * zone is a simpler solution which prevents Nexus 7
1244		 * from getting too hot from a user's tactile perspective.
1245		 * The CPU zone is intended to protect silicon from damage.
1246		 */
1247
1248		skin-thermal {
1249			polling-delay-passive = <1000>; /* milliseconds */
1250			polling-delay = <5000>; /* milliseconds */
1251
1252			thermal-sensors = <&nct72 0>;
1253
1254			trips {
1255				trip0: skin-alert {
1256					/* throttle at 57C until temperature drops to 56.8C */
1257					temperature = <57000>;
1258					hysteresis = <200>;
1259					type = "passive";
1260				};
1261
1262				trip1: skin-crit {
1263					/* shut down at 65C */
1264					temperature = <65000>;
1265					hysteresis = <2000>;
1266					type = "critical";
1267				};
1268			};
1269
1270			cooling-maps {
1271				map0 {
1272					trip = <&trip0>;
1273					cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
1274							 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
1275							 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
1276							 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
1277							 <&actmon THERMAL_NO_LIMIT
1278								  THERMAL_NO_LIMIT>;
1279				};
1280			};
1281		};
1282
1283		cpu-thermal {
1284			polling-delay-passive = <1000>; /* milliseconds */
1285			polling-delay = <5000>; /* milliseconds */
1286
1287			thermal-sensors = <&nct72 1>;
1288
1289			trips {
1290				trip2: cpu-alert {
1291					/* throttle at 85C until temperature drops to 84.8C */
1292					temperature = <85000>;
1293					hysteresis = <200>;
1294					type = "passive";
1295				};
1296
1297				trip3: cpu-crit {
1298					/* shut down at 90C */
1299					temperature = <90000>;
1300					hysteresis = <2000>;
1301					type = "critical";
1302				};
1303			};
1304
1305			cooling-maps {
1306				map1 {
1307					trip = <&trip2>;
1308					cooling-device = <&cpu0 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
1309							 <&cpu1 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
1310							 <&cpu2 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
1311							 <&cpu3 THERMAL_NO_LIMIT THERMAL_NO_LIMIT>,
1312							 <&actmon THERMAL_NO_LIMIT
1313								  THERMAL_NO_LIMIT>;
1314				};
1315			};
1316		};
1317	};
1318};
1319