blob: f0bb8424402572f01077abf1e023a18f630d2fb5 [file] [log] [blame]
Joseph Loa1425d42013-10-08 12:50:06 +08001/dts-v1/;
2
Thierry Reding146db0e2013-12-19 17:06:19 +01003#include <dt-bindings/input/input.h>
Joseph Loa1425d42013-10-08 12:50:06 +08004#include "tegra124.dtsi"
5
6/ {
7 model = "NVIDIA Tegra124 Venice2";
8 compatible = "nvidia,venice2", "nvidia,tegra124";
9
Stephen Warrenb1afa782013-12-19 11:32:15 -070010 aliases {
Stephen Warrene30cb232014-03-03 14:51:15 -070011 rtc0 = "/i2c@0,7000d000/pmic@40";
12 rtc1 = "/rtc@0,7000e000";
Stephen Warrenb1afa782013-12-19 11:32:15 -070013 };
14
Joseph Loa1425d42013-10-08 12:50:06 +080015 memory {
Stephen Warrene30cb232014-03-03 14:51:15 -070016 reg = <0x0 0x80000000 0x0 0x80000000>;
Joseph Loa1425d42013-10-08 12:50:06 +080017 };
18
Stephen Warrene30cb232014-03-03 14:51:15 -070019 host1x@0,50000000 {
Thierry Reding329c39f2014-04-25 17:44:46 +020020 hdmi@0,54280000 {
21 status = "okay";
22
23 vdd-supply = <&vdd_3v3_hdmi>;
24 pll-supply = <&vdd_hdmi_pll>;
25 hdmi-supply = <&vdd_5v0_hdmi>;
26
27 nvidia,ddc-i2c-bus = <&hdmi_ddc>;
28 nvidia,hpd-gpio =
29 <&gpio TEGRA_GPIO(N, 7) GPIO_ACTIVE_HIGH>;
30 };
31
Stephen Warrene30cb232014-03-03 14:51:15 -070032 sor@0,54540000 {
Thierry Reding40e231c2014-02-28 17:40:24 +010033 status = "okay";
34
35 nvidia,dpaux = <&dpaux>;
36 nvidia,panel = <&panel>;
37 };
38
Stephen Warrene30cb232014-03-03 14:51:15 -070039 dpaux: dpaux@0,545c0000 {
Thierry Reding40e231c2014-02-28 17:40:24 +010040 vdd-supply = <&vdd_3v3_panel>;
41 status = "okay";
42 };
43 };
44
Stephen Warrene30cb232014-03-03 14:51:15 -070045 pinmux: pinmux@0,70000868 {
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +053046 pinctrl-names = "default";
47 pinctrl-0 = <&pinmux_default>;
48
49 pinmux_default: common {
50 dap_mclk1_pw4 {
51 nvidia,pins = "dap_mclk1_pw4";
52 nvidia,function = "extperiph1";
53 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
54 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
55 nvidia,tristate = <TEGRA_PIN_DISABLE>;
56 };
57 dap1_din_pn1 {
Laxman Dewangan365c4832013-12-18 18:22:58 +053058 nvidia,pins = "dap1_din_pn1";
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +053059 nvidia,function = "i2s0";
60 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
61 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
62 nvidia,tristate = <TEGRA_PIN_ENABLE>;
63 };
Laxman Dewangan365c4832013-12-18 18:22:58 +053064 dap1_dout_pn2 {
65 nvidia,pins = "dap1_dout_pn2",
66 "dap1_fs_pn0",
67 "dap1_sclk_pn3";
68 nvidia,function = "i2s0";
69 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
70 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
71 nvidia,tristate = <TEGRA_PIN_ENABLE>;
72 };
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +053073 dap2_din_pa4 {
Laxman Dewangan365c4832013-12-18 18:22:58 +053074 nvidia,pins = "dap2_din_pa4";
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +053075 nvidia,function = "i2s1";
76 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
77 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
Stephen Warren4ffb9382013-12-12 14:40:30 -070078 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +053079 };
Laxman Dewangan365c4832013-12-18 18:22:58 +053080 dap2_dout_pa5 {
81 nvidia,pins = "dap2_dout_pa5",
82 "dap2_fs_pa2",
83 "dap2_sclk_pa3";
84 nvidia,function = "i2s1";
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +053085 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
86 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
Laxman Dewangan365c4832013-12-18 18:22:58 +053087 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +053088 };
Laxman Dewangan365c4832013-12-18 18:22:58 +053089 dvfs_pwm_px0 {
90 nvidia,pins = "dvfs_pwm_px0",
91 "dvfs_clk_px2";
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +053092 nvidia,function = "cldvfs";
93 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
94 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
95 nvidia,tristate = <TEGRA_PIN_DISABLE>;
96 };
97 ulpi_clk_py0 {
98 nvidia,pins = "ulpi_clk_py0",
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +053099 "ulpi_nxt_py2",
100 "ulpi_stp_py3";
101 nvidia,function = "spi1";
Laxman Dewangan365c4832013-12-18 18:22:58 +0530102 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
103 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
104 nvidia,tristate = <TEGRA_PIN_DISABLE>;
105 };
106 ulpi_dir_py1 {
107 nvidia,pins = "ulpi_dir_py1";
108 nvidia,function = "spi1";
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530109 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
Laxman Dewangan365c4832013-12-18 18:22:58 +0530110 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530111 nvidia,tristate = <TEGRA_PIN_DISABLE>;
112 };
113 cam_i2c_scl_pbb1 {
114 nvidia,pins = "cam_i2c_scl_pbb1",
115 "cam_i2c_sda_pbb2";
116 nvidia,function = "i2c3";
117 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
118 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
119 nvidia,tristate = <TEGRA_PIN_DISABLE>;
120 nvidia,lock = <TEGRA_PIN_DISABLE>;
121 nvidia,open-drain = <TEGRA_PIN_ENABLE>;
122 };
123 gen2_i2c_scl_pt5 {
124 nvidia,pins = "gen2_i2c_scl_pt5",
125 "gen2_i2c_sda_pt6";
126 nvidia,function = "i2c2";
127 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
128 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
129 nvidia,tristate = <TEGRA_PIN_DISABLE>;
130 nvidia,lock = <TEGRA_PIN_DISABLE>;
131 nvidia,open-drain = <TEGRA_PIN_ENABLE>;
132 };
133 pg4 {
134 nvidia,pins = "pg4",
135 "pg5",
136 "pg6",
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530137 "pi3";
138 nvidia,function = "spi4";
139 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
140 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
141 nvidia,tristate = <TEGRA_PIN_DISABLE>;
142 };
Laxman Dewangan365c4832013-12-18 18:22:58 +0530143 pg7 {
144 nvidia,pins = "pg7";
145 nvidia,function = "spi4";
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530146 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
Laxman Dewangan365c4832013-12-18 18:22:58 +0530147 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
148 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530149 };
150 ph1 {
151 nvidia,pins = "ph1";
152 nvidia,function = "pwm1";
153 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
154 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
155 nvidia,tristate = <TEGRA_PIN_DISABLE>;
156 };
Laxman Dewangan365c4832013-12-18 18:22:58 +0530157 pk0 {
158 nvidia,pins = "pk0",
159 "kb_row15_ps7",
160 "clk_32k_out_pa0";
161 nvidia,function = "soc";
162 nvidia,pull = <TEGRA_PIN_PULL_UP>;
Thierry Redingf5cb19b2013-12-13 17:25:04 +0100163 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Laxman Dewangan365c4832013-12-18 18:22:58 +0530164 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
Thierry Redingf5cb19b2013-12-13 17:25:04 +0100165 };
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530166 sdmmc1_clk_pz0 {
Stephen Warrenbf5fd5b2014-03-20 18:06:01 -0600167 nvidia,pins = "sdmmc1_clk_pz0";
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530168 nvidia,function = "sdmmc1";
Stephen Warrenbf5fd5b2014-03-20 18:06:01 -0600169 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530170 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
171 nvidia,tristate = <TEGRA_PIN_DISABLE>;
172 };
Laxman Dewangan365c4832013-12-18 18:22:58 +0530173 sdmmc1_cmd_pz1 {
174 nvidia,pins = "sdmmc1_cmd_pz1",
175 "sdmmc1_dat0_py7",
176 "sdmmc1_dat1_py6",
177 "sdmmc1_dat2_py5",
178 "sdmmc1_dat3_py4";
179 nvidia,function = "sdmmc1";
180 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
181 nvidia,pull = <TEGRA_PIN_PULL_UP>;
182 nvidia,tristate = <TEGRA_PIN_DISABLE>;
183 };
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530184 sdmmc3_clk_pa6 {
185 nvidia,pins = "sdmmc3_clk_pa6";
186 nvidia,function = "sdmmc3";
187 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
188 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
189 nvidia,tristate = <TEGRA_PIN_DISABLE>;
190 };
191 sdmmc3_cmd_pa7 {
192 nvidia,pins = "sdmmc3_cmd_pa7",
193 "sdmmc3_dat0_pb7",
194 "sdmmc3_dat1_pb6",
195 "sdmmc3_dat2_pb5",
196 "sdmmc3_dat3_pb4",
197 "sdmmc3_clk_lb_out_pee4",
198 "sdmmc3_clk_lb_in_pee5";
199 nvidia,function = "sdmmc3";
200 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
201 nvidia,pull = <TEGRA_PIN_PULL_UP>;
202 nvidia,tristate = <TEGRA_PIN_DISABLE>;
203 };
204 sdmmc4_clk_pcc4 {
205 nvidia,pins = "sdmmc4_clk_pcc4";
206 nvidia,function = "sdmmc4";
207 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
208 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
209 nvidia,tristate = <TEGRA_PIN_DISABLE>;
210 };
211 sdmmc4_cmd_pt7 {
212 nvidia,pins = "sdmmc4_cmd_pt7",
213 "sdmmc4_dat0_paa0",
214 "sdmmc4_dat1_paa1",
215 "sdmmc4_dat2_paa2",
216 "sdmmc4_dat3_paa3",
217 "sdmmc4_dat4_paa4",
218 "sdmmc4_dat5_paa5",
219 "sdmmc4_dat6_paa6",
220 "sdmmc4_dat7_paa7";
221 nvidia,function = "sdmmc4";
222 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
223 nvidia,pull = <TEGRA_PIN_PULL_UP>;
224 nvidia,tristate = <TEGRA_PIN_DISABLE>;
225 };
226 pwr_i2c_scl_pz6 {
227 nvidia,pins = "pwr_i2c_scl_pz6",
228 "pwr_i2c_sda_pz7";
229 nvidia,function = "i2cpwr";
230 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
231 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
232 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Laxman Dewangan365c4832013-12-18 18:22:58 +0530233 nvidia,lock = <TEGRA_PIN_DISABLE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530234 nvidia,open-drain = <TEGRA_PIN_ENABLE>;
235 };
236 jtag_rtck {
237 nvidia,pins = "jtag_rtck";
238 nvidia,function = "rtck";
239 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
240 nvidia,pull = <TEGRA_PIN_PULL_UP>;
241 nvidia,tristate = <TEGRA_PIN_DISABLE>;
242 };
243 clk_32k_in {
244 nvidia,pins = "clk_32k_in";
245 nvidia,function = "clk";
246 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
247 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
248 nvidia,tristate = <TEGRA_PIN_DISABLE>;
249 };
250 core_pwr_req {
251 nvidia,pins = "core_pwr_req";
252 nvidia,function = "pwron";
253 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
254 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
255 nvidia,tristate = <TEGRA_PIN_DISABLE>;
256 };
257 cpu_pwr_req {
258 nvidia,pins = "cpu_pwr_req";
259 nvidia,function = "cpu";
260 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
261 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
262 nvidia,tristate = <TEGRA_PIN_DISABLE>;
263 };
264 pwr_int_n {
265 nvidia,pins = "pwr_int_n";
266 nvidia,function = "pmi";
267 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
268 nvidia,pull = <TEGRA_PIN_PULL_UP>;
269 nvidia,tristate = <TEGRA_PIN_DISABLE>;
270 };
271 reset_out_n {
272 nvidia,pins = "reset_out_n";
273 nvidia,function = "reset_out_n";
274 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
275 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
276 nvidia,tristate = <TEGRA_PIN_DISABLE>;
277 };
278 clk3_out_pee0 {
279 nvidia,pins = "clk3_out_pee0";
280 nvidia,function = "extperiph3";
281 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
282 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
283 nvidia,tristate = <TEGRA_PIN_DISABLE>;
284 };
285 dap4_din_pp5 {
Laxman Dewangan365c4832013-12-18 18:22:58 +0530286 nvidia,pins = "dap4_din_pp5";
287 nvidia,function = "i2s3";
288 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
289 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
290 nvidia,tristate = <TEGRA_PIN_ENABLE>;
291 };
292 dap4_dout_pp6 {
293 nvidia,pins = "dap4_dout_pp6",
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530294 "dap4_fs_pp4",
295 "dap4_sclk_pp7";
296 nvidia,function = "i2s3";
Laxman Dewangan365c4832013-12-18 18:22:58 +0530297 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530298 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
299 nvidia,tristate = <TEGRA_PIN_ENABLE>;
300 };
301 gen1_i2c_sda_pc5 {
302 nvidia,pins = "gen1_i2c_sda_pc5",
303 "gen1_i2c_scl_pc4";
304 nvidia,function = "i2c1";
305 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
306 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
307 nvidia,tristate = <TEGRA_PIN_DISABLE>;
308 nvidia,lock = <TEGRA_PIN_DISABLE>;
Laxman Dewangan365c4832013-12-18 18:22:58 +0530309 nvidia,open-drain = <TEGRA_PIN_ENABLE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530310 };
311 uart2_cts_n_pj5 {
Laxman Dewangan365c4832013-12-18 18:22:58 +0530312 nvidia,pins = "uart2_cts_n_pj5";
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530313 nvidia,function = "uartb";
314 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
315 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
316 nvidia,tristate = <TEGRA_PIN_DISABLE>;
317 };
Laxman Dewangan365c4832013-12-18 18:22:58 +0530318 uart2_rts_n_pj6 {
319 nvidia,pins = "uart2_rts_n_pj6";
320 nvidia,function = "uartb";
321 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
322 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
323 nvidia,tristate = <TEGRA_PIN_DISABLE>;
324 };
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530325 uart2_rxd_pc3 {
Laxman Dewangan365c4832013-12-18 18:22:58 +0530326 nvidia,pins = "uart2_rxd_pc3";
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530327 nvidia,function = "irda";
328 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
329 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
330 nvidia,tristate = <TEGRA_PIN_DISABLE>;
331 };
Laxman Dewangan365c4832013-12-18 18:22:58 +0530332 uart2_txd_pc2 {
333 nvidia,pins = "uart2_txd_pc2";
334 nvidia,function = "irda";
335 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
336 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
337 nvidia,tristate = <TEGRA_PIN_DISABLE>;
338 };
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530339 uart3_cts_n_pa1 {
340 nvidia,pins = "uart3_cts_n_pa1",
Laxman Dewangan365c4832013-12-18 18:22:58 +0530341 "uart3_rxd_pw7";
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530342 nvidia,function = "uartc";
343 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
344 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
345 nvidia,tristate = <TEGRA_PIN_DISABLE>;
346 };
Laxman Dewangan365c4832013-12-18 18:22:58 +0530347 uart3_rts_n_pc0 {
348 nvidia,pins = "uart3_rts_n_pc0",
349 "uart3_txd_pw6";
350 nvidia,function = "uartc";
351 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
352 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
353 nvidia,tristate = <TEGRA_PIN_DISABLE>;
354 };
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530355 hdmi_cec_pee3 {
356 nvidia,pins = "hdmi_cec_pee3";
357 nvidia,function = "cec";
358 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
359 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
360 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Laxman Dewangan365c4832013-12-18 18:22:58 +0530361 nvidia,lock = <TEGRA_PIN_DISABLE>;
362 nvidia,open-drain = <TEGRA_PIN_DISABLE>;
363 };
364 hdmi_int_pn7 {
365 nvidia,pins = "hdmi_int_pn7";
366 nvidia,function = "rsvd1";
367 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
368 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
369 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530370 };
371 ddc_scl_pv4 {
372 nvidia,pins = "ddc_scl_pv4",
373 "ddc_sda_pv5";
374 nvidia,function = "i2c4";
375 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
376 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
377 nvidia,tristate = <TEGRA_PIN_DISABLE>;
Laxman Dewangan365c4832013-12-18 18:22:58 +0530378 nvidia,lock = <TEGRA_PIN_DISABLE>;
379 nvidia,rcv-sel = <TEGRA_PIN_ENABLE>;
380 };
381 pj7 {
382 nvidia,pins = "pj7",
383 "pk7";
384 nvidia,function = "uartd";
385 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
386 nvidia,tristate = <TEGRA_PIN_DISABLE>;
387 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
388 };
389 pb0 {
390 nvidia,pins = "pb0",
391 "pb1";
392 nvidia,function = "uartd";
393 nvidia,pull = <TEGRA_PIN_PULL_UP>;
394 nvidia,tristate = <TEGRA_PIN_DISABLE>;
395 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
396 };
397 ph0 {
398 nvidia,pins = "ph0";
399 nvidia,function = "pwm0";
400 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
401 nvidia,tristate = <TEGRA_PIN_DISABLE>;
402 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
403 };
404 kb_row10_ps2 {
405 nvidia,pins = "kb_row10_ps2";
406 nvidia,function = "uarta";
407 nvidia,pull = <TEGRA_PIN_PULL_UP>;
408 nvidia,tristate = <TEGRA_PIN_DISABLE>;
409 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
410 };
411 kb_row9_ps1 {
412 nvidia,pins = "kb_row9_ps1";
413 nvidia,function = "uarta";
414 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
415 nvidia,tristate = <TEGRA_PIN_DISABLE>;
416 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
417 };
418 kb_row6_pr6 {
419 nvidia,pins = "kb_row6_pr6";
420 nvidia,function = "displaya_alt";
421 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
422 nvidia,tristate = <TEGRA_PIN_DISABLE>;
423 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530424 };
425 usb_vbus_en0_pn4 {
Thierry Redingfa15ffa2014-02-25 16:45:04 +0100426 nvidia,pins = "usb_vbus_en0_pn4",
427 "usb_vbus_en1_pn5";
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530428 nvidia,function = "usb";
429 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
Thierry Redingfa15ffa2014-02-25 16:45:04 +0100430 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530431 nvidia,tristate = <TEGRA_PIN_DISABLE>;
432 nvidia,lock = <TEGRA_PIN_DISABLE>;
Laxman Dewangan365c4832013-12-18 18:22:58 +0530433 nvidia,open-drain = <TEGRA_PIN_ENABLE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530434 };
435 drive_sdio1 {
436 nvidia,pins = "drive_sdio1";
437 nvidia,high-speed-mode = <TEGRA_PIN_ENABLE>;
438 nvidia,schmitt = <TEGRA_PIN_DISABLE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530439 nvidia,pull-down-strength = <32>;
440 nvidia,pull-up-strength = <42>;
441 nvidia,slew-rate-rising = <TEGRA_PIN_SLEW_RATE_FASTEST>;
442 nvidia,slew-rate-falling = <TEGRA_PIN_SLEW_RATE_FASTEST>;
443 };
444 drive_sdio3 {
445 nvidia,pins = "drive_sdio3";
446 nvidia,high-speed-mode = <TEGRA_PIN_ENABLE>;
447 nvidia,schmitt = <TEGRA_PIN_DISABLE>;
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530448 nvidia,pull-down-strength = <20>;
449 nvidia,pull-up-strength = <36>;
450 nvidia,slew-rate-rising = <TEGRA_PIN_SLEW_RATE_FASTEST>;
451 nvidia,slew-rate-falling = <TEGRA_PIN_SLEW_RATE_FASTEST>;
452 };
453 drive_gma {
454 nvidia,pins = "drive_gma";
455 nvidia,high-speed-mode = <TEGRA_PIN_ENABLE>;
456 nvidia,schmitt = <TEGRA_PIN_DISABLE>;
457 nvidia,low-power-mode = <TEGRA_PIN_LP_DRIVE_DIV_1>;
458 nvidia,pull-down-strength = <1>;
459 nvidia,pull-up-strength = <2>;
460 nvidia,slew-rate-rising = <TEGRA_PIN_SLEW_RATE_FASTEST>;
461 nvidia,slew-rate-falling = <TEGRA_PIN_SLEW_RATE_FASTEST>;
462 nvidia,drive-type = <1>;
463 };
Laxman Dewangan365c4832013-12-18 18:22:58 +0530464 als_irq_l {
465 nvidia,pins = "gpio_x3_aud_px3";
466 nvidia,function = "gmi";
467 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
468 nvidia,tristate = <TEGRA_PIN_ENABLE>;
469 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
470 };
471 codec_irq_l {
472 nvidia,pins = "ph4";
473 nvidia,function = "gmi";
474 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
475 nvidia,tristate = <TEGRA_PIN_DISABLE>;
476 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
477 };
478 lcd_bl_en {
479 nvidia,pins = "ph2";
480 nvidia,function = "gmi";
481 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
482 nvidia,tristate = <TEGRA_PIN_DISABLE>;
483 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
484 };
485 touch_irq_l {
486 nvidia,pins = "gpio_w3_aud_pw3";
487 nvidia,function = "spi6";
488 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
489 nvidia,tristate = <TEGRA_PIN_ENABLE>;
490 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
491 };
492 tpm_davint_l {
493 nvidia,pins = "ph6";
494 nvidia,function = "gmi";
495 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
496 nvidia,tristate = <TEGRA_PIN_ENABLE>;
497 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
498 };
499 ts_irq_l {
500 nvidia,pins = "pk2";
501 nvidia,function = "gmi";
502 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
503 nvidia,tristate = <TEGRA_PIN_ENABLE>;
504 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
505 };
506 ts_reset_l {
507 nvidia,pins = "pk4";
508 nvidia,function = "gmi";
509 nvidia,pull = <TEGRA_PIN_PULL_DOWN>;
510 nvidia,tristate = <TEGRA_PIN_DISABLE>;
511 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
512 };
513 ts_shdn_l {
514 nvidia,pins = "pk1";
515 nvidia,function = "gmi";
516 nvidia,pull = <TEGRA_PIN_PULL_UP>;
517 nvidia,tristate = <TEGRA_PIN_DISABLE>;
518 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
519 };
520 ph7 {
521 nvidia,pins = "ph7";
522 nvidia,function = "gmi";
523 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
524 nvidia,tristate = <TEGRA_PIN_DISABLE>;
525 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
526 };
527 kb_col0_ap {
528 nvidia,pins = "kb_col0_pq0";
529 nvidia,function = "rsvd4";
530 nvidia,pull = <TEGRA_PIN_PULL_UP>;
531 nvidia,tristate = <TEGRA_PIN_DISABLE>;
532 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
533 };
534 lid_open {
535 nvidia,pins = "kb_row4_pr4";
536 nvidia,function = "rsvd3";
537 nvidia,pull = <TEGRA_PIN_PULL_UP>;
538 nvidia,tristate = <TEGRA_PIN_DISABLE>;
539 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
540 };
541 en_vdd_sd {
542 nvidia,pins = "kb_row0_pr0";
543 nvidia,function = "rsvd4";
544 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
545 nvidia,tristate = <TEGRA_PIN_DISABLE>;
546 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
547 };
548 ac_ok {
549 nvidia,pins = "pj0";
550 nvidia,function = "gmi";
551 nvidia,pull = <TEGRA_PIN_PULL_UP>;
552 nvidia,tristate = <TEGRA_PIN_ENABLE>;
553 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
554 };
555 sensor_irq_l {
556 nvidia,pins = "pi6";
557 nvidia,function = "gmi";
558 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
559 nvidia,tristate = <TEGRA_PIN_DISABLE>;
560 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
561 };
562 wifi_en {
563 nvidia,pins = "gpio_x7_aud_px7";
564 nvidia,function = "rsvd4";
565 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
566 nvidia,tristate = <TEGRA_PIN_DISABLE>;
567 nvidia,enable-input = <TEGRA_PIN_DISABLE>;
568 };
569 wifi_rst_l {
570 nvidia,pins = "clk2_req_pcc5";
571 nvidia,function = "dap";
572 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
573 nvidia,tristate = <TEGRA_PIN_DISABLE>;
574 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
575 };
576 hp_det_l {
577 nvidia,pins = "ulpi_data1_po2";
578 nvidia,function = "spi3";
579 nvidia,pull = <TEGRA_PIN_PULL_NONE>;
580 nvidia,tristate = <TEGRA_PIN_DISABLE>;
581 nvidia,enable-input = <TEGRA_PIN_ENABLE>;
582 };
Laxman Dewangan4b20bcb2013-12-09 16:03:51 +0530583 };
584 };
585
Stephen Warrene30cb232014-03-03 14:51:15 -0700586 serial@0,70006000 {
Joseph Loa1425d42013-10-08 12:50:06 +0800587 status = "okay";
588 };
589
Stephen Warrene30cb232014-03-03 14:51:15 -0700590 pwm: pwm@0,7000a000 {
Thierry Redinge0134852013-11-18 17:00:35 +0100591 status = "okay";
592 };
593
Stephen Warrene30cb232014-03-03 14:51:15 -0700594 i2c@0,7000c000 {
Stephen Warren9d5b2502013-12-03 16:44:35 -0700595 status = "okay";
596 clock-frequency = <100000>;
Stephen Warrenb0e1cae2013-12-03 17:26:12 -0700597
598 acodec: audio-codec@10 {
599 compatible = "maxim,max98090";
600 reg = <0x10>;
601 interrupt-parent = <&gpio>;
602 interrupts = <TEGRA_GPIO(H, 4) GPIO_ACTIVE_HIGH>;
603 };
Stephen Warren9d5b2502013-12-03 16:44:35 -0700604 };
605
Stephen Warrene30cb232014-03-03 14:51:15 -0700606 i2c@0,7000c400 {
Stephen Warren9d5b2502013-12-03 16:44:35 -0700607 status = "okay";
608 clock-frequency = <100000>;
609 };
610
Stephen Warrene30cb232014-03-03 14:51:15 -0700611 i2c@0,7000c500 {
Stephen Warren9d5b2502013-12-03 16:44:35 -0700612 status = "okay";
613 clock-frequency = <100000>;
614 };
615
Thierry Reding329c39f2014-04-25 17:44:46 +0200616 hdmi_ddc: i2c@0,7000c700 {
Stephen Warren9d5b2502013-12-03 16:44:35 -0700617 status = "okay";
618 clock-frequency = <100000>;
619 };
620
Stephen Warrene30cb232014-03-03 14:51:15 -0700621 i2c@0,7000d000 {
Stephen Warren9d5b2502013-12-03 16:44:35 -0700622 status = "okay";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530623 clock-frequency = <400000>;
624
Thierry Redingfdc44f92014-02-28 17:40:28 +0100625 pmic: pmic@40 {
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530626 compatible = "ams,as3722";
627 reg = <0x40>;
628 interrupts = <0 86 IRQ_TYPE_LEVEL_HIGH>;
629
Laxman Dewangan7be75df2014-01-09 16:31:48 +0530630 ams,system-power-controller;
631
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530632 #interrupt-cells = <2>;
633 interrupt-controller;
634
635 gpio-controller;
636 #gpio-cells = <2>;
637
638 pinctrl-names = "default";
639 pinctrl-0 = <&as3722_default>;
640
641 as3722_default: pinmux {
642 gpio0 {
643 pins = "gpio0";
644 function = "gpio";
645 bias-pull-down;
646 };
647
648 gpio1_2_4_7 {
649 pins = "gpio1", "gpio2", "gpio4", "gpio7";
650 function = "gpio";
651 bias-pull-up;
652 };
653
654 gpio3_6 {
655 pins = "gpio3", "gpio6";
656 bias-high-impedance;
657 };
658
659 gpio5 {
660 pins = "gpio5";
661 function = "clk32k-out";
662 };
663 };
664
665 regulators {
Thierry Redingaf144b82014-02-28 17:40:20 +0100666 vsup-sd2-supply = <&vdd_5v0_sys>;
667 vsup-sd3-supply = <&vdd_5v0_sys>;
668 vsup-sd4-supply = <&vdd_5v0_sys>;
669 vsup-sd5-supply = <&vdd_5v0_sys>;
670 vin-ldo0-supply = <&vdd_1v35_lp0>;
671 vin-ldo1-6-supply = <&vdd_3v3_run>;
672 vin-ldo2-5-7-supply = <&vddio_1v8>;
673 vin-ldo3-4-supply = <&vdd_3v3_sys>;
674 vin-ldo9-10-supply = <&vdd_5v0_sys>;
675 vin-ldo11-supply = <&vdd_3v3_run>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530676
677 sd0 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100678 regulator-name = "+VDD_CPU_AP";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530679 regulator-min-microvolt = <700000>;
680 regulator-max-microvolt = <1400000>;
681 regulator-min-microamp = <3500000>;
682 regulator-max-microamp = <3500000>;
683 regulator-always-on;
684 regulator-boot-on;
685 ams,external-control = <2>;
686 };
687
688 sd1 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100689 regulator-name = "+VDD_CORE";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530690 regulator-min-microvolt = <700000>;
691 regulator-max-microvolt = <1350000>;
692 regulator-min-microamp = <2500000>;
693 regulator-max-microamp = <2500000>;
694 regulator-always-on;
695 regulator-boot-on;
696 ams,external-control = <1>;
697 };
698
Thierry Redingaf144b82014-02-28 17:40:20 +0100699 vdd_1v35_lp0: sd2 {
700 regulator-name = "+1.35V_LP0(sd2)";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530701 regulator-min-microvolt = <1350000>;
702 regulator-max-microvolt = <1350000>;
703 regulator-always-on;
704 regulator-boot-on;
705 };
706
707 sd3 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100708 regulator-name = "+1.35V_LP0(sd3)";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530709 regulator-min-microvolt = <1350000>;
710 regulator-max-microvolt = <1350000>;
711 regulator-always-on;
712 regulator-boot-on;
713 };
714
Thierry Reding329c39f2014-04-25 17:44:46 +0200715 vdd_1v05_run: sd4 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100716 regulator-name = "+1.05V_RUN";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530717 regulator-min-microvolt = <1050000>;
718 regulator-max-microvolt = <1050000>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530719 };
720
Thierry Redingaf144b82014-02-28 17:40:20 +0100721 vddio_1v8: sd5 {
722 regulator-name = "+1.8V_VDDIO";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530723 regulator-min-microvolt = <1800000>;
724 regulator-max-microvolt = <1800000>;
725 regulator-boot-on;
726 regulator-always-on;
727 };
728
729 sd6 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100730 regulator-name = "+VDD_GPU_AP";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530731 regulator-min-microvolt = <650000>;
732 regulator-max-microvolt = <1200000>;
733 regulator-min-microamp = <3500000>;
734 regulator-max-microamp = <3500000>;
735 regulator-boot-on;
736 regulator-always-on;
737 };
738
739 ldo0 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100740 regulator-name = "+1.05V_RUN_AVDD";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530741 regulator-min-microvolt = <1050000>;
742 regulator-max-microvolt = <1050000>;
743 regulator-boot-on;
744 regulator-always-on;
745 ams,external-control = <1>;
746 };
747
748 ldo1 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100749 regulator-name = "+1.8V_RUN_CAM";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530750 regulator-min-microvolt = <1800000>;
751 regulator-max-microvolt = <1800000>;
752 };
753
754 ldo2 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100755 regulator-name = "+1.2V_GEN_AVDD";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530756 regulator-min-microvolt = <1200000>;
757 regulator-max-microvolt = <1200000>;
758 regulator-boot-on;
759 regulator-always-on;
760 };
761
762 ldo3 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100763 regulator-name = "+1.00V_LP0_VDD_RTC";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530764 regulator-min-microvolt = <1000000>;
765 regulator-max-microvolt = <1000000>;
766 regulator-boot-on;
767 regulator-always-on;
768 ams,enable-tracking;
769 };
770
Thierry Reding431b7be2014-02-28 17:40:26 +0100771 vdd_run_cam: ldo4 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100772 regulator-name = "+3.3V_RUN_CAM";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530773 regulator-min-microvolt = <2800000>;
774 regulator-max-microvolt = <2800000>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530775 };
776
777 ldo5 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100778 regulator-name = "+1.2V_RUN_CAM_FRONT";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530779 regulator-min-microvolt = <1200000>;
780 regulator-max-microvolt = <1200000>;
781 };
782
Thierry Reding4989b432014-02-28 17:40:21 +0100783 vddio_sdmmc3: ldo6 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100784 regulator-name = "+VDDIO_SDMMC3";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530785 regulator-min-microvolt = <1800000>;
786 regulator-max-microvolt = <3300000>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530787 };
788
789 ldo7 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100790 regulator-name = "+1.05V_RUN_CAM_REAR";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530791 regulator-min-microvolt = <1050000>;
792 regulator-max-microvolt = <1050000>;
793 };
794
795 ldo9 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100796 regulator-name = "+2.8V_RUN_TOUCH";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530797 regulator-min-microvolt = <2800000>;
798 regulator-max-microvolt = <2800000>;
799 };
800
801 ldo10 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100802 regulator-name = "+2.8V_RUN_CAM_AF";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530803 regulator-min-microvolt = <2800000>;
804 regulator-max-microvolt = <2800000>;
805 };
806
807 ldo11 {
Thierry Redingaf144b82014-02-28 17:40:20 +0100808 regulator-name = "+1.8V_RUN_VPP_FUSE";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +0530809 regulator-min-microvolt = <1800000>;
810 regulator-max-microvolt = <1800000>;
811 };
812 };
813 };
Stephen Warren9d5b2502013-12-03 16:44:35 -0700814 };
815
Stephen Warrene30cb232014-03-03 14:51:15 -0700816 spi@0,7000d400 {
Thierry Reding146db0e2013-12-19 17:06:19 +0100817 status = "okay";
818
819 cros-ec@0 {
820 compatible = "google,cros-ec-spi";
821 spi-max-frequency = <4000000>;
822 interrupt-parent = <&gpio>;
823 interrupts = <TEGRA_GPIO(C, 7) IRQ_TYPE_LEVEL_LOW>;
824 reg = <0>;
825
826 google,cros-ec-spi-msg-delay = <2000>;
827
828 cros-ec-keyb {
829 compatible = "google,cros-ec-keyb";
830 keypad,num-rows = <8>;
831 keypad,num-columns = <13>;
832 google,needs-ghost-filter;
833
834 linux,keymap = <
835 MATRIX_KEY(0x00, 0x01, KEY_LEFTMETA)
836 MATRIX_KEY(0x00, 0x02, KEY_F1)
837 MATRIX_KEY(0x00, 0x03, KEY_B)
838 MATRIX_KEY(0x00, 0x04, KEY_F10)
839 MATRIX_KEY(0x00, 0x06, KEY_N)
840 MATRIX_KEY(0x00, 0x08, KEY_EQUAL)
841 MATRIX_KEY(0x00, 0x0a, KEY_RIGHTALT)
842
843 MATRIX_KEY(0x01, 0x01, KEY_ESC)
844 MATRIX_KEY(0x01, 0x02, KEY_F4)
845 MATRIX_KEY(0x01, 0x03, KEY_G)
846 MATRIX_KEY(0x01, 0x04, KEY_F7)
847 MATRIX_KEY(0x01, 0x06, KEY_H)
848 MATRIX_KEY(0x01, 0x08, KEY_APOSTROPHE)
849 MATRIX_KEY(0x01, 0x09, KEY_F9)
850 MATRIX_KEY(0x01, 0x0b, KEY_BACKSPACE)
851
852 MATRIX_KEY(0x02, 0x00, KEY_LEFTCTRL)
853 MATRIX_KEY(0x02, 0x01, KEY_TAB)
854 MATRIX_KEY(0x02, 0x02, KEY_F3)
855 MATRIX_KEY(0x02, 0x03, KEY_T)
856 MATRIX_KEY(0x02, 0x04, KEY_F6)
857 MATRIX_KEY(0x02, 0x05, KEY_RIGHTBRACE)
858 MATRIX_KEY(0x02, 0x06, KEY_Y)
859 MATRIX_KEY(0x02, 0x07, KEY_102ND)
860 MATRIX_KEY(0x02, 0x08, KEY_LEFTBRACE)
861 MATRIX_KEY(0x02, 0x09, KEY_F8)
862
863 MATRIX_KEY(0x03, 0x01, KEY_GRAVE)
864 MATRIX_KEY(0x03, 0x02, KEY_F2)
865 MATRIX_KEY(0x03, 0x03, KEY_5)
866 MATRIX_KEY(0x03, 0x04, KEY_F5)
867 MATRIX_KEY(0x03, 0x06, KEY_6)
868 MATRIX_KEY(0x03, 0x08, KEY_MINUS)
869 MATRIX_KEY(0x03, 0x0b, KEY_BACKSLASH)
870
871 MATRIX_KEY(0x04, 0x00, KEY_RIGHTCTRL)
872 MATRIX_KEY(0x04, 0x01, KEY_A)
873 MATRIX_KEY(0x04, 0x02, KEY_D)
874 MATRIX_KEY(0x04, 0x03, KEY_F)
875 MATRIX_KEY(0x04, 0x04, KEY_S)
876 MATRIX_KEY(0x04, 0x05, KEY_K)
877 MATRIX_KEY(0x04, 0x06, KEY_J)
878 MATRIX_KEY(0x04, 0x08, KEY_SEMICOLON)
879 MATRIX_KEY(0x04, 0x09, KEY_L)
880 MATRIX_KEY(0x04, 0x0a, KEY_BACKSLASH)
881 MATRIX_KEY(0x04, 0x0b, KEY_ENTER)
882
883 MATRIX_KEY(0x05, 0x01, KEY_Z)
884 MATRIX_KEY(0x05, 0x02, KEY_C)
885 MATRIX_KEY(0x05, 0x03, KEY_V)
886 MATRIX_KEY(0x05, 0x04, KEY_X)
887 MATRIX_KEY(0x05, 0x05, KEY_COMMA)
888 MATRIX_KEY(0x05, 0x06, KEY_M)
889 MATRIX_KEY(0x05, 0x07, KEY_LEFTSHIFT)
890 MATRIX_KEY(0x05, 0x08, KEY_SLASH)
891 MATRIX_KEY(0x05, 0x09, KEY_DOT)
892 MATRIX_KEY(0x05, 0x0b, KEY_SPACE)
893
894 MATRIX_KEY(0x06, 0x01, KEY_1)
895 MATRIX_KEY(0x06, 0x02, KEY_3)
896 MATRIX_KEY(0x06, 0x03, KEY_4)
897 MATRIX_KEY(0x06, 0x04, KEY_2)
898 MATRIX_KEY(0x06, 0x05, KEY_8)
899 MATRIX_KEY(0x06, 0x06, KEY_7)
900 MATRIX_KEY(0x06, 0x08, KEY_0)
901 MATRIX_KEY(0x06, 0x09, KEY_9)
902 MATRIX_KEY(0x06, 0x0a, KEY_LEFTALT)
903 MATRIX_KEY(0x06, 0x0b, KEY_DOWN)
904 MATRIX_KEY(0x06, 0x0c, KEY_RIGHT)
905
906 MATRIX_KEY(0x07, 0x01, KEY_Q)
907 MATRIX_KEY(0x07, 0x02, KEY_E)
908 MATRIX_KEY(0x07, 0x03, KEY_R)
909 MATRIX_KEY(0x07, 0x04, KEY_W)
910 MATRIX_KEY(0x07, 0x05, KEY_I)
911 MATRIX_KEY(0x07, 0x06, KEY_U)
912 MATRIX_KEY(0x07, 0x07, KEY_RIGHTSHIFT)
913 MATRIX_KEY(0x07, 0x08, KEY_P)
914 MATRIX_KEY(0x07, 0x09, KEY_O)
915 MATRIX_KEY(0x07, 0x0b, KEY_UP)
916 MATRIX_KEY(0x07, 0x0c, KEY_LEFT)
917 >;
918 };
919 };
920 };
921
Stephen Warrene30cb232014-03-03 14:51:15 -0700922 spi@0,7000da00 {
Stephen Warren11e5b4f2014-02-18 15:03:21 -0700923 status = "okay";
924 spi-max-frequency = <25000000>;
925 spi-flash@0 {
926 compatible = "winbond,w25q32dw";
927 reg = <0>;
928 spi-max-frequency = <20000000>;
929 };
930 };
931
Stephen Warrene30cb232014-03-03 14:51:15 -0700932 pmc@0,7000e400 {
Joseph Loa1425d42013-10-08 12:50:06 +0800933 nvidia,invert-interrupt;
Joseph Lo6ec1d122013-10-11 17:58:39 +0800934 nvidia,suspend-mode = <1>;
935 nvidia,cpu-pwr-good-time = <500>;
936 nvidia,cpu-pwr-off-time = <300>;
937 nvidia,core-pwr-good-time = <641 3845>;
938 nvidia,core-pwr-off-time = <61036>;
939 nvidia,core-power-req-active-high;
940 nvidia,sys-clock-req-active-high;
Joseph Loa1425d42013-10-08 12:50:06 +0800941 };
Joseph Lo3b86baf2013-10-08 15:47:40 +0800942
Stephen Warrene30cb232014-03-03 14:51:15 -0700943 sdhci@0,700b0400 {
Stephen Warren784c7442013-10-31 17:23:05 -0600944 cd-gpios = <&gpio TEGRA_GPIO(V, 2) GPIO_ACTIVE_HIGH>;
945 power-gpios = <&gpio TEGRA_GPIO(R, 0) GPIO_ACTIVE_HIGH>;
Stephen Warren2be8f4a2014-04-28 12:10:26 -0600946 wp-gpios = <&gpio TEGRA_GPIO(Q, 4) GPIO_ACTIVE_LOW>;
Stephen Warren784c7442013-10-31 17:23:05 -0600947 status = "okay";
948 bus-width = <4>;
Andrew Bresticker49228ca2014-04-16 16:08:39 -0700949 vqmmc-supply = <&vddio_sdmmc3>;
Stephen Warren784c7442013-10-31 17:23:05 -0600950 };
951
Stephen Warrene30cb232014-03-03 14:51:15 -0700952 sdhci@0,700b0600 {
Stephen Warren784c7442013-10-31 17:23:05 -0600953 status = "okay";
954 bus-width = <8>;
955 };
956
Stephen Warrene30cb232014-03-03 14:51:15 -0700957 ahub@0,70300000 {
958 i2s@0,70301100 {
Stephen Warrenb0e1cae2013-12-03 17:26:12 -0700959 status = "okay";
960 };
961 };
962
Stephen Warrene30cb232014-03-03 14:51:15 -0700963 usb@0,7d000000 {
Thierry Reding431b7be2014-02-28 17:40:26 +0100964 status = "okay";
965 };
966
Stephen Warrene30cb232014-03-03 14:51:15 -0700967 usb-phy@0,7d000000 {
Thierry Reding431b7be2014-02-28 17:40:26 +0100968 status = "okay";
969 vbus-supply = <&vdd_usb1_vbus>;
970 };
971
Stephen Warrene30cb232014-03-03 14:51:15 -0700972 usb@0,7d004000 {
Thierry Reding431b7be2014-02-28 17:40:26 +0100973 status = "okay";
974 };
975
Stephen Warrene30cb232014-03-03 14:51:15 -0700976 usb-phy@0,7d004000 {
Thierry Reding431b7be2014-02-28 17:40:26 +0100977 status = "okay";
978 vbus-supply = <&vdd_run_cam>;
979 };
980
Stephen Warrene30cb232014-03-03 14:51:15 -0700981 usb@0,7d008000 {
Thierry Reding431b7be2014-02-28 17:40:26 +0100982 status = "okay";
983 };
984
Stephen Warrene30cb232014-03-03 14:51:15 -0700985 usb-phy@0,7d008000 {
Thierry Reding431b7be2014-02-28 17:40:26 +0100986 status = "okay";
987 vbus-supply = <&vdd_usb3_vbus>;
988 };
989
Thierry Reding40e231c2014-02-28 17:40:24 +0100990 backlight: backlight {
991 compatible = "pwm-backlight";
992
993 enable-gpios = <&gpio TEGRA_GPIO(H, 2) GPIO_ACTIVE_HIGH>;
994 power-supply = <&vdd_led>;
995 pwms = <&pwm 1 1000000>;
996
997 brightness-levels = <0 4 8 16 32 64 128 255>;
998 default-brightness-level = <6>;
999 };
1000
Joseph Lo3b86baf2013-10-08 15:47:40 +08001001 clocks {
1002 compatible = "simple-bus";
1003 #address-cells = <1>;
1004 #size-cells = <0>;
1005
1006 clk32k_in: clock@0 {
1007 compatible = "fixed-clock";
Thierry Reding4b356602014-02-28 17:40:27 +01001008 reg = <0>;
Joseph Lo3b86baf2013-10-08 15:47:40 +08001009 #clock-cells = <0>;
1010 clock-frequency = <32768>;
1011 };
1012 };
Stephen Warrenb0e1cae2013-12-03 17:26:12 -07001013
Thierry Reding3f748d42013-12-19 17:06:20 +01001014 gpio-keys {
1015 compatible = "gpio-keys";
1016
1017 power {
1018 label = "Power";
1019 gpios = <&gpio TEGRA_GPIO(Q, 0) GPIO_ACTIVE_LOW>;
1020 linux,code = <KEY_POWER>;
1021 debounce-interval = <10>;
1022 gpio-key,wakeup;
1023 };
1024 };
1025
Thierry Reding40e231c2014-02-28 17:40:24 +01001026 panel: panel {
1027 compatible = "lg,lp129qe", "simple-panel";
1028
1029 backlight = <&backlight>;
1030 ddc-i2c-bus = <&dpaux>;
1031 };
1032
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301033 regulators {
1034 compatible = "simple-bus";
1035 #address-cells = <1>;
1036 #size-cells = <0>;
1037
Thierry Redingaf144b82014-02-28 17:40:20 +01001038 vdd_mux: regulator@0 {
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301039 compatible = "regulator-fixed";
1040 reg = <0>;
Thierry Redingaf144b82014-02-28 17:40:20 +01001041 regulator-name = "+VDD_MUX";
1042 regulator-min-microvolt = <12000000>;
1043 regulator-max-microvolt = <12000000>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301044 regulator-always-on;
Thierry Redingaf144b82014-02-28 17:40:20 +01001045 regulator-boot-on;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301046 };
1047
Thierry Redingaf144b82014-02-28 17:40:20 +01001048 vdd_5v0_sys: regulator@1 {
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301049 compatible = "regulator-fixed";
1050 reg = <1>;
Thierry Redingaf144b82014-02-28 17:40:20 +01001051 regulator-name = "+5V_SYS";
1052 regulator-min-microvolt = <5000000>;
1053 regulator-max-microvolt = <5000000>;
1054 regulator-always-on;
1055 regulator-boot-on;
1056 vin-supply = <&vdd_mux>;
1057 };
1058
1059 vdd_3v3_sys: regulator@2 {
1060 compatible = "regulator-fixed";
1061 reg = <2>;
1062 regulator-name = "+3.3V_SYS";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301063 regulator-min-microvolt = <3300000>;
1064 regulator-max-microvolt = <3300000>;
1065 regulator-always-on;
1066 regulator-boot-on;
Thierry Redingaf144b82014-02-28 17:40:20 +01001067 vin-supply = <&vdd_mux>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301068 };
1069
Thierry Redingaf144b82014-02-28 17:40:20 +01001070 vdd_3v3_run: regulator@3 {
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301071 compatible = "regulator-fixed";
1072 reg = <3>;
Thierry Redingaf144b82014-02-28 17:40:20 +01001073 regulator-name = "+3.3V_RUN";
1074 regulator-min-microvolt = <3300000>;
1075 regulator-max-microvolt = <3300000>;
Stephen Warrenc7fe7672014-04-15 16:27:01 -06001076 regulator-always-on;
1077 regulator-boot-on;
Thierry Redingfdc44f92014-02-28 17:40:28 +01001078 gpio = <&pmic 1 GPIO_ACTIVE_HIGH>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301079 enable-active-high;
Thierry Redingaf144b82014-02-28 17:40:20 +01001080 vin-supply = <&vdd_3v3_sys>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301081 };
1082
Thierry Redingaf144b82014-02-28 17:40:20 +01001083 vdd_3v3_hdmi: regulator@4 {
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301084 compatible = "regulator-fixed";
1085 reg = <4>;
Thierry Redingaf144b82014-02-28 17:40:20 +01001086 regulator-name = "+3.3V_AVDD_HDMI_AP_GATED";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301087 regulator-min-microvolt = <3300000>;
1088 regulator-max-microvolt = <3300000>;
Thierry Redingaf144b82014-02-28 17:40:20 +01001089 vin-supply = <&vdd_3v3_run>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301090 };
1091
Thierry Redingaf144b82014-02-28 17:40:20 +01001092 vdd_led: regulator@5 {
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301093 compatible = "regulator-fixed";
1094 reg = <5>;
Thierry Redingaf144b82014-02-28 17:40:20 +01001095 regulator-name = "+VDD_LED";
1096 gpio = <&gpio TEGRA_GPIO(P, 2) GPIO_ACTIVE_HIGH>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301097 enable-active-high;
Thierry Redingaf144b82014-02-28 17:40:20 +01001098 vin-supply = <&vdd_mux>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301099 };
1100
Thierry Redingaf144b82014-02-28 17:40:20 +01001101 vdd_5v0_ts: regulator@6 {
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301102 compatible = "regulator-fixed";
1103 reg = <6>;
Thierry Redingaf144b82014-02-28 17:40:20 +01001104 regulator-name = "+5V_VDD_TS_SW";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301105 regulator-min-microvolt = <5000000>;
1106 regulator-max-microvolt = <5000000>;
1107 regulator-boot-on;
Thierry Redingaf144b82014-02-28 17:40:20 +01001108 gpio = <&gpio TEGRA_GPIO(K, 1) GPIO_ACTIVE_HIGH>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301109 enable-active-high;
Thierry Redingaf144b82014-02-28 17:40:20 +01001110 vin-supply = <&vdd_5v0_sys>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301111 };
1112
Thierry Redingaf144b82014-02-28 17:40:20 +01001113 vdd_usb1_vbus: regulator@7 {
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301114 compatible = "regulator-fixed";
1115 reg = <7>;
Thierry Redingaf144b82014-02-28 17:40:20 +01001116 regulator-name = "+5V_USB_HS";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301117 regulator-min-microvolt = <5000000>;
1118 regulator-max-microvolt = <5000000>;
Thierry Redingaf144b82014-02-28 17:40:20 +01001119 gpio = <&gpio TEGRA_GPIO(N, 4) GPIO_ACTIVE_HIGH>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301120 enable-active-high;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301121 gpio-open-drain;
Thierry Redingaf144b82014-02-28 17:40:20 +01001122 vin-supply = <&vdd_5v0_sys>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301123 };
1124
Thierry Redingaf144b82014-02-28 17:40:20 +01001125 vdd_usb3_vbus: regulator@8 {
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301126 compatible = "regulator-fixed";
1127 reg = <8>;
Thierry Redingaf144b82014-02-28 17:40:20 +01001128 regulator-name = "+5V_USB_SS";
1129 regulator-min-microvolt = <5000000>;
1130 regulator-max-microvolt = <5000000>;
1131 gpio = <&gpio TEGRA_GPIO(N, 5) GPIO_ACTIVE_HIGH>;
1132 enable-active-high;
1133 gpio-open-drain;
1134 vin-supply = <&vdd_5v0_sys>;
1135 };
1136
1137 vdd_3v3_panel: regulator@9 {
1138 compatible = "regulator-fixed";
1139 reg = <9>;
1140 regulator-name = "+3.3V_PANEL";
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301141 regulator-min-microvolt = <3300000>;
1142 regulator-max-microvolt = <3300000>;
Thierry Redingfdc44f92014-02-28 17:40:28 +01001143 gpio = <&pmic 4 GPIO_ACTIVE_HIGH>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301144 enable-active-high;
Thierry Redingaf144b82014-02-28 17:40:20 +01001145 vin-supply = <&vdd_3v3_run>;
1146 };
1147
1148 vdd_3v3_lp0: regulator@10 {
1149 compatible = "regulator-fixed";
1150 reg = <10>;
1151 regulator-name = "+3.3V_LP0";
1152 regulator-min-microvolt = <3300000>;
1153 regulator-max-microvolt = <3300000>;
1154 /*
1155 * TODO: find a way to wire this up with the USB EHCI
1156 * controllers so that it can be enabled on demand.
1157 */
1158 regulator-always-on;
Thierry Redingfdc44f92014-02-28 17:40:28 +01001159 gpio = <&pmic 2 GPIO_ACTIVE_HIGH>;
Thierry Redingaf144b82014-02-28 17:40:20 +01001160 enable-active-high;
1161 vin-supply = <&vdd_3v3_sys>;
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301162 };
Thierry Reding329c39f2014-04-25 17:44:46 +02001163
1164 vdd_hdmi_pll: regulator@11 {
1165 compatible = "regulator-fixed";
1166 reg = <11>;
1167 regulator-name = "+1.05V_RUN_AVDD_HDMI_PLL";
1168 regulator-min-microvolt = <1050000>;
1169 regulator-max-microvolt = <1050000>;
1170 gpio = <&gpio TEGRA_GPIO(H, 7) GPIO_ACTIVE_LOW>;
1171 vin-supply = <&vdd_1v05_run>;
1172 };
1173
1174 vdd_5v0_hdmi: regulator@12 {
1175 compatible = "regulator-fixed";
1176 reg = <12>;
1177 regulator-name = "+5V_HDMI_CON";
1178 regulator-min-microvolt = <5000000>;
1179 regulator-max-microvolt = <5000000>;
1180 gpio = <&gpio TEGRA_GPIO(K, 6) GPIO_ACTIVE_HIGH>;
1181 enable-active-high;
1182 vin-supply = <&vdd_5v0_sys>;
1183 };
Laxman Dewanganfcacaba2013-12-18 18:22:59 +05301184 };
1185
Stephen Warrenb0e1cae2013-12-03 17:26:12 -07001186 sound {
1187 compatible = "nvidia,tegra-audio-max98090-venice2",
1188 "nvidia,tegra-audio-max98090";
1189 nvidia,model = "NVIDIA Tegra Venice2";
1190
1191 nvidia,audio-routing =
1192 "Headphones", "HPR",
1193 "Headphones", "HPL",
1194 "Speakers", "SPKR",
1195 "Speakers", "SPKL",
1196 "Mic Jack", "MICBIAS",
1197 "IN34", "Mic Jack";
1198
1199 nvidia,i2s-controller = <&tegra_i2s1>;
1200 nvidia,audio-codec = <&acodec>;
1201
1202 clocks = <&tegra_car TEGRA124_CLK_PLL_A>,
1203 <&tegra_car TEGRA124_CLK_PLL_A_OUT0>,
1204 <&tegra_car TEGRA124_CLK_EXTERN1>;
1205 clock-names = "pll_a", "pll_a_out0", "mclk";
1206 };
Joseph Loa1425d42013-10-08 12:50:06 +08001207};